Está en la página 1de 55

function ModalShare(e){this.config=e,e&&this.

init()}function PlayerModalShare(e,t)
{this.config=$.extend(e,t.config),this.sslastscreen=t,e&&this.init(),this.gaCategor
y=this.config.gaCategory?this.config.gaCategory:t.gaCategory}function
SSLastScreen(e){this.config=e,this._init()}function SSReplayScreen(e)
{this.config=e,this.html=e.settings.html,this._init()}function SSShareWidgets(e)
{this.gaCategory=e.gaCategory,this.container=e.container}function SSShareOptions(e)
{this.config=e,this.renderTo=e.renderTo,this.html=this.config.html,this._init()}fun
ction SSSlideDisplayer(e){"undefined"!=typeof
e&&(this.config=e,this.slideOffsets=[],this.playerBgColor=e.playerBgColor||"jsplBgC
olorBigfoot",this.state="initialized",this.zoomIndex=0,this._init())}function
SSTouchInteraction(e){this.config=e,this._init()}function SSToolbar(e)
{this.config=e,this.isClippable=window.slideshare_object&&window.slideshare_object.
slideshow.is_clippable,this.GA_EVENTS={viewonss:"toolbar_viewonss",zoomin:"toolbar_
zoomin",zoomout:"toolbar_zoomout",viewfullscreen:"toolbar_fullscreen",leavefullscre
en:"toolbar_leavefullscreen",gotolastslide:"goto_last_slide",gotofirstslide:"goto_f
irst_slide"},this.GA_EVENTS_SRC={previous:"toolbar_prev",next:"toolbar_next"},this.
_init(),this._ELEMENTS=this.getElements(e.elementOverrides),this._ELEMENT_PRIORITIE
S={1:["nav"],5:["viewOnSS"],2:["fullScreen","leaveFullScreen"],3:["share"],4:
["goToSlide"],6:
["zoomButtons"]},this._BUTTONS=this.getButtons({btnFirst:"#btnFirst",btnPrevious:"#
btnPrevious",btnNext:"#btnNext",btnLast:"#btnLast",btnSS:".btnSS",btnViewOnSS:".btn
ViewOnSS",btnFullScreen:"#btnFullScreen",btnLeaveFullScreen:"#btnLeaveFullScreen",b
tnZoomOut:"#btnZoomOut",btnZoomIn:"#btnZoomIn",btnFind:".btnFind",btnShare:".btnSha
re",btnAudio:".btnAudio",btnVolume:".btnVolume"},e.buttonOverrides),this._ELEMENT_V
ISIBILITY={share:!this.config.disableShare,fullScreen:!
this.config.disableFullScreen&&!this.config.isFullScreen,leaveFullScreen:!
this.config.disableLeaveFullScreen&&this.config.isFullScreen,viewOnSS:this.config.e
nableViewSS,zoomButtons:this.config.enableZoomButtons||!1,nav:!
this.config.disableNav,goToSlide:!
this.config.disableGoToSlide},this._ELEMENT_SECTION={nav:"one",share:"two",fullScre
en:"two",leaveFullScreen:"two",goToSlide:"two",viewOnSS:"one",zoomButtons:"two"};va
r
t={small:29,normal:88};"document"==this.config.playerType||"infographic"===this.con
fig.playerType?
(this._ELEMENT_WIDTHS={nav:30,share:72,fullScreen:24,leaveFullScreen:24,goToSlide:5
7,viewOnSS:t[this.config.toolbarClass],zoomButtons:56},this._ELEMENT_SECTION.share=
"one"):this._ELEMENT_WIDTHS={nav:57,share:35,fullScreen:24,leaveFullScreen:24,goToS
lide:57,viewOnSS:t[this.config.toolbarClass]},this.config.toolbarPadding=6}function
SSPlayerController(e){"undefined"!=typeof
e&&(this.config=e,this.realSlideCount=this.config.slide_count,this.slideCount=this.
realSlideCount,this.config.has_video&&(this.slideCount+=this.config.video_slides_co
unt),delete
this.config.slide_count,this.mode=this.config.mode,this.config.show_image_player&&"
html"===this.config.mode&&(this.mode="image"),this.config.disable_meta=!!
this.config.show_image_player,delete
this.config.mode,this.currentPosition=0,this.loadingSlides=[],this.loadedSlides=[],
this.slideModes={},this.availableBgSizes={},this.availableFallbackSizes={},this.PRE
LOAD_PRE_LIMIT=2,this.PRELOAD_POST_LIMIT=5,this.FONT_BATCH_COUNT=10,this.DEFAULT_ER
ROR_SCORE=0,this.AUTOVERIFICATION_ERROR_THRESHOLD=.001,this.AUTOVERIFICATION_THRESH
OLDS={"bad v1.0":.001,"bad v1.1":1e-4,"bad v2.0":1e-
4},this.MAX_PERCENTAGE_FAILING={"bad v1.0":100,"bad v1.1":20,"bad
v2.0":20},this.isEmbed="embed"===this.config.hosted_in,this.isEmbed?
this.TOOLBAR_HEIGHT=38:this.TOOLBAR_HEIGHT=56,this.MULTIMEDIABAR_HEIGHT=25,this.con
fig.show_image_player&&(this.MULTIMEDIABAR_HEIGHT=29),this.initialized=!
1,this.PRERENDER_COUNT=1,this._init(),this.startSlide=parseInt(this.config.start_sl
ide||1,10),this.play(this.startSlide),this.config.actionButtonsContainer=$
("#svPlayerId .action-btns-container, #player .action-btns-container"))}function
SSPlayer(e){this.config=e,this._init()}function SSResource(e){"undefined"!=typeof
e&&(this.TIMEOUT_LIMIT=1e5,this.RETRY_WAIT_TIME=3e3,this.config=e,this.resourceKey=
e.resourceKey,this._init())}function SSSlide(e){"undefined"!=typeof
e&&(this.index=e.index,this.realIndex=e.realIndex,this.setContentDimensions(e.conte
ntWidth,e.contentHeight),delete e.contentWidth,delete
e.contentHeight,this.config=e,this._init())}function SSFontResource(e)
{this.resourceTemplate={prefix:e.baseUrl,cacheable:!0,retries:2,isCritical:!
1},SSResource.call(this,e)}function SSHtmlResource(e)
{this.resourceTemplate={prefix:e.baseUrl,key:"page_",suffix:".js?"+e.timestamp,digi
tLength:4,cacheable:!0,retries:2,isCritical:!0},e.is_private&&void
0===e.signature&&(this.loadBlocked=!0),SSResource.call(this,e)}function
SSImageResource(e){"undefined"!=typeof e&&(e.availableSizes?
(this.imageVersions=this._mapSizesToVersions(e.availableSizes),delete
e.availableSizes,this._setUrlGenerator(e.is_private)):this.loadBlocked=!
0,this.contentWidth=e.contentWidth,delete
e.contentWidth,SSResource.call(this,e),this.RETRY_WAIT_TIME=1e3,delete
this.imageVersions)}function SSMetaResource(e)
{this.resourceTemplate={url:e.url,cacheable:!0,retries:2,isCritical:!
0},SSResource.call(this,e)}function SSBgImageResource(e)
{this.resourceTemplate={prefix:e.baseUrl,digitLength:3,cacheable:!
0,retries:0,isCritical:!0},this.useTimeStamp=!0;var
t=e.availableSizes;this.imageVersions=[];for(var i in
t)this.imageVersions[parseInt(i,10)]=t[i];e.is_private?(this.useTimeStamp=!
1,this._generateUrl=this._generatePrivateUrl):this._generateUrl=this._generateUrl,S
SImageResource.call(this,e)}function SSFallbackImageResource(e)
{this.resourceTemplate={prefix:e.baseUrl,digitLength:1,cacheable:!
0,retries:0,isCritical:!0},this.useTimeStamp=!
0,SSImageResource.call(this,e)}function SSBandInteraction(e)
{this.config=e,this._init()}function SSInfographicDisplayer(e){"undefined"!=typeof
e&&SSSlideDisplayer.call(this,e)}function SSInfographicSlide(e)
{SSSlide.call(this,e),this.padding=5,"slideview"===this.config.hosted_in&&this.bind
ScrollEvents()}function SSPresentationDisplayer(e){"undefined"!=typeof
e&&(SSSlideDisplayer.call(this,e),this.zoomLevels=[1],this.prerenderedSlides=[],!
e.isTouch&&this.initPointlyFinger())}function SSPresentationSlide(e)
{SSSlide.call(this,e),this.PADDING=0}function SSVideoEmbedSlide(e)
{SSPresentationSlide.call(this,e),this.config=e,this.PLAYER_UNINITIALIZED=-
1,this.PLAYER_AUTOHIDE=2,this.ENABLE_JS_API=1,this.PADDING=0,this.RELATED_VIDEOS=0,
this.playerReady=!1,this._initVideoSlidesLoading()}!function(e){function t(e,t)
{return d.call(e)===t}function i(t,i){var
n,r=t.split("."),o=r.length,s=e,a=0;for(a;a<o;a++){if(n=r[a],!s[n]){if(!i)return
null;s[n]=a+1===o?i:{}}s=s[n]}return s}function n(){var
t=e.document.querySelectorAll(g);m.i18n_locale(),Array.prototype.slice.call(t).forE
ach(function(e){var t=JSON.parse(e.content);Object.keys(t).forEach(function(e)
{i(s+e,t[e])})})}var r="slideshare_object",o=r+"._modules.",s=r+"._i18n.",a=!
1,l="en",c=/[^a-zA-Z\d\-_]/g,d=Object.prototype.toString,h="[object
String]",p="[object Number]",u="[object Array]",f="[object
Object]",g='meta[name="ss-i18n-
translations"]',m={},S={en:"en_US",fr:"fr_FR",es:"es_ES",pt:"pt_BR",de:"de_DE"};m.i
18n_locale=function(){if(!a){var e=document.documentElement.lang||l;a=S[e]||
S[l]}return a},m.isString=function(e){return t(e,h)},m.isNumber=function(e){return
t(e,p)},m.isArray=function(e){return t(e,u)},m.isPlainObject=function(e){return
t(e,f)},m.addClass=function(e,t){return(e=e&&1===e.nodeType?
e:document.querySelector(e))?(e.className?new
RegExp("\\b"+t+"\\b").test(e.className)||(e.className+="
"+t):e.className=t,e):null},m.sanitizeForCSS=function(e){return
e.replace(c,"-")},m.isUserAuthenticated=function(){var t=e[r].user;return"non-
member"!==t.member_type&&t.loggedin!==!1&&"guest"!==t.login},m.i18n=function(e,t)
{if(i(s)||n(),e){var r=i(s+e);if(r&&t&&window.xmessage){var
o=window.xmessage.fromString(r,a);Array.isArray(t)||(t=[t]),r=o(t)}return r}return
i(s.slice(0,-1))},m.exports=function(e,t){i(o+e,t)},m.imports=function(e){return
i(o+e)},i(r+".utils",m)}(window),function(e,t,i,n){var
r=e(t);e.fn.lazyload=function(o){function s(){var t=0;l.each(function(){var
i=e(this);if(!c.skip_invisible||i.is(":visible"))if(e.abovethetop(this,c)||
e.leftofbegin(this,c));else if(e.belowthefold(this,c)||e.rightoffold(this,c)){if(+
+t>c.failure_limit)return!1}else i.trigger("appear"),t=0})}var
a,l=this,c={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,da
ta_attribute:"original",skip_invisible:!
1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA
AAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZU
rDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return o&&(n!
==o.failurelimit&&(o.failure_limit=o.failurelimit,delete o.failurelimit),n!
==o.effectspeed&&(o.effect_speed=o.effectspeed,delete
o.effectspeed),e.extend(c,o)),a=c.container===n||c.container===t?
r:e(c.container),0===c.event.indexOf("scroll")&&a.bind(c.event,function(){return
s()}),this.each(function(){var t=this,i=e(t);t.loaded=!1,i.attr("src")!
==n&&i.attr("src")!==!1||
i.is("img")&&i.attr("src",c.placeholder),i.one("appear",function(){if(!this.loaded)
{if(c.appear){var n=l.length;c.appear.call(t,n,c)}e("<img
/>").bind("load",function(){var
n=i.attr("data-"+c.data_attribute);i.hide(),i.is("img")?
i.attr("src",n):i.css("background-image","url('"+n+"')"),i[c.effect]
(c.effect_speed),t.loaded=!0;var r=e.grep(l,function(e){return!
e.loaded});if(l=e(r),c.load){var
o=l.length;c.load.call(t,o,c)}}).attr("src",i.attr("data-"+c.data_attribute))}}),0!
==c.event.indexOf("scroll")&&i.bind(c.event,function(){t.loaded||
i.trigger("appear")})}),r.bind("resize",function(){s()}),/(?:iphone|ipod|ipad).*os
5/gi.test(navigator.appVersion)&&r.bind("pageshow",function(t)
{t.originalEvent&&t.originalEvent.persisted&&l.each(function(){e(th
is).trigger("appear")})}),e(i).ready(function()
{s()}),this},e.belowthefold=function(i,o){var s;return s=o.container===n||
o.container===t?(t.innerHeight?t.innerHeight:r.height())
+r.scrollTop():e(o.container).offset().top+e(o.container).height(),s<=e(i).offset()
.top-o.threshold},e.rightoffold=function(i,o){var s;return s=o.container===n||
o.container===t?r.width()
+r.scrollLeft():e(o.container).offset().left+e(o.container).width(),s<=e(i).offset(
).left-o.threshold},e.abovethetop=function(i,o){var s;return s=o.container===n||
o.container===t?
r.scrollTop():e(o.container).offset().top,s>=e(i).offset().top+o.threshold+e(i).hei
ght()},e.leftofbegin=function(i,o){var s;return s=o.container===n||o.container===t?
r.scrollLeft():e(o.container).offset().left,s>=e(i).offset().left+o.threshold+e(i).
width()},e.inviewport=function(t,i){return!(e.rightoffold(t,i)||
e.leftofbegin(t,i)||e.belowthefold(t,i)||e.abovethetop(t,i))},e.extend(e.expr[":"],
{"below-the-fold":function(t){return e.belowthefold(t,{threshold:0})},"above-the-
top":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-
screen":function(t){return e.rightoffold(t,{threshold:0})},"left-of-
screen":function(t){return!e.rightoffold(t,{threshold:0})},"in-
viewport":function(t){return e.inviewport(t,{threshold:0})},"above-the-
fold":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-
fold":function(t){return e.rightoffold(t,{threshold:0})},"left-of-fold":function(t)
{return!e.rightoffold(t,{threshold:0})}})}(jQuery,window,document),function(e)
{function t(){var
e;this.APP_BASE="slideshare.js.tracking",this._bodyDefaults={},n.user&&n.user.id&&(
e={header:
{applicationViewerUrn:this.getUrn("User",n.user.id)}},this._bodyDefaults=$.extend({
},this._bodyDefaults,e)),"undefined"!
==o&&(o.setTrackingUrl(),o.setAppId(this.APP_BASE))}var
i,n=e.slideshare_object,r=n.utils,o=window.liTrackClient;r&&!
r.imports("tracking.TrackingUtils")&&(i={Clip:"urn:li:slideShareClip:",Clipboard:"u
rn:li:slideShareClipboard:",Guest:"urn:li:slideShareGuest:",LyndaCategory:"urn:li:l
yndaCategory:",LyndaCourse:"urn:li:lyndaCourse:",LyndaVideo:"urn:li:lyndaVideo:",Le
adCampaign:"urn:li:slideShareLeadCampaign:",Slideshow:"urn:li:slideShareSlideshow:"
,User:"urn:li:slideShareUser:"},t.prototype={constructor:t,getAppId:function(e)
{return e?this.APP_BASE+"."+e:this.APP_BASE},recordTrackingEvent:function(e,t,i,n)
{var r;if(i=$.extend({},this._bodyDefaults,i),!window.liTrackClient)throw new
Error("liTrackClient is not initialized");r={eventInfo:
{eventName:t,appId:e},eventBody:i},n?
o.trackWithCallback(r,n):o.track(r)},generateTrackingID:function(e){var
t,i="",r="0000";for(e=e||16,"undefined"!=typeof n&&"undefined"!=typeof
n.slideshow&&null!
==n.slideshow.id&&(t=parseInt(n.slideshow.id).toString(16).slice(-
4),i+=(r+t).slice(-r.length)),null!
==cookie("_uv_id")&&(t=parseInt(cookie("_uv_id")).toString(16).slice(-
4),i+=(r+t).slice(-r.length)),e-
=i.length;e--;)i+=Math.floor(16*Math.random()).toString(16).toUpperCase();return
i},getUrn:function(e,t){return t?i[e]?i[e]
+t:"urn:li:slideShare"+e+":"+t:null},getPageKey:function(){var e=/^pagekey-(.+)
$/.exec(document.body.id);if(e)return e[1]},getSlideShareGuest:function(){return
cookie("_uv_id")}},r.exports("tracking.TrackingUtils",t))}(window),function(e)
{function t(e){this._groups=this._validateGroups(e)}var
i=e.slideshare_object.utils;t.prototype={isValid:function(){return
this._groups.length>0},containsUser:function(){return this._groups.some(function(e)
{var t=this._getValidationMethod(e);return
t&&t.call(this)},this)},_validateGroups:function(e){return e=i.isArray(e)?e:
[e],e.filter(function(e){return t.GROUPS.indexOf(e)!==-
1})},_getValidationMethod:function(e){return
this["_userIs"+e.charAt(0).toUpperCase()+e.slice(1)]},_getUser:function(){return
e.slideshare_object.user},_userIsSuperuser:function(){var e=this._getUser();return
e&&e.su},_userIsCompany:function(){var e=this._getUser();return
e&&e.li}},t.GROUPS=["superuser","company"],i.exports("Whitelist",t)}
(window),function(e,t){function i(){var
e=t[i.LS_NAMESPACE]&&JSON.parse(t[i.LS_NAMESPACE]);this._experiments=e||{}}var
n=e.slideshare_object.utils,r=n.imports("Whitelist");i.prototype={is:function(e,t)
{return this.getBucket(e)===t},getExperiment:function(e){return
this._experiments[e]},getBucket:function(e){var t=this.getExperiment(e);return
t&&t.bucket},isOverride:function(e){var t=this.getExperiment(e);return
t&&t.override},deleteExperiment:function(e){return this.isOverride(e)?null:(delete
this._experiments[e],this._save())},addClass:function(e,t){var
i=this.getBucket(t);return i&&n.addClass(e,"exp--"+n.sanitizeForCSS(t)
+"--"+n.sanitizeForCSS(i)),this},register:function(e,t,i){var n=new
r(i),o=this.getBucket(e);if(n.isValid()){if(n.containsUser()){if(!o)return
this._save(e,this._assign(t))}else if(o)return this.deleteExperiment(e)}else if(!
o)return this._save(e,this._assign(t));return o},override:function(e,t){return
this._save(e,this._assign(t),!0)},ga:function(e,t,i,n,r,o){var
s=this.getBucket(e);return s&&_gaq.push(["_trackEvent",t,i,s+"_"+n,r,!!
o]),null},_assign:function(e){return n.isNumber(e)&&(e=[e]),n.isArray(e)?
this._assignFromArray(e):n.isPlainObject(e)?
this._assignFromObject(e):n.isString(e)?e:null},_assignFromArray:function(e,t){var
n,r,o=100,s=Math.random();for(t=t||i.BUCKETS,e[e.length-1]!
==o&&e.push(o),n=0,r=e.length;n<r;n++)if(s<=e[n]/o)return t[n]||i.BUCKETS[n];return
null},_assignFromObject:function(e){var t,i=[],n=[];for(t in
e)i.push(t),n.push(e[t]);return this._assignFromArray(n,i)},_save:function(e,n,r)
{var o=this._experiments;return n=n||null,e&&(o[e]={bucket:n},r&&(o[e].override=!
0)),t[i.LS_NAMESPACE]=JSON.stringify(this._experiments),n}},i.BUCKETS="a b c d e
f".split(" "),i.LS_NAMESPACE="slideshare.experiments",n.exports("Experiments",i)}
(window,window.localStorage||{}),function(e){var
t=e.slideshare_object.utils.imports("Experiments"),i=new
t;i.deleteExperiment("slideview-clip-button"),i.deleteExperiment("slideview-clip-
button-exp-2"),i.deleteExperiment("slideview-clip-button-exp-3")}
(window),function(e){function t(e){var e=e||{};this.trackingUtils=new
i,this.pageKey=ssClientUtils.li.getPageKey(),this.appId=e.appId||
this.trackingUtils.getAppId("sharing"),this.trackingId=e.trackingId||
this.trackingUtils.generateTrackingID(),this.bodyDefaults={sharingTrackingId:this.t
rackingId,isOwner:!1,isEmbed:!1,requestHeader:
{pageKey:this.pageKey,path:window.document.location.pathname,userAgent:window.navig
ator&&window.navigator.userAgent}}}var
i=slideshare_object.utils.imports("tracking.TrackingUtils"),n={SlideShareExternalSh
areEvent:"SlideShareExternalShareEvent"},r={slideshow:"Slideshow"},o={directlink:"D
IRECT_LINK",email:"EMAIL",facebook:"FACEBOOK",googleplus:"GOOGLE_PLUS",linkedin:"LI
NKEDIN",pinterest:"PINTEREST",twitter:"TWITTER"};t.prototype.track=function(e,t)
{var
t=$.extend({},this.bodyDefaults,t);this.trackingUtils.recordTrackingEvent(this.appI
d,e,t)},t.prototype.shareSlideShow=function(e){var e=e||
{},t=e.entityId,i=o[e.shareType];if(null!=t&&null!=i)return
this.track(n.SlideShareExternalShareEvent,
{entityUrn:ssClientUtils.li.getUrn(r.slideshow,t),shareType:i,isOwner:e.isOwner,isE
mbed:e.isEmbed})},e.ShareTracker=t}
(window.slideshare_object),ModalShare.prototype.init=function(){this.$container=$
(this.config.el),this.$shareBtn=$(this.config.btnShare),this.$shareEmailMsg=this.
$container.find(".j-share-email-msg"),this.$addMsgButton=this.$container.find(".j-
add-msg"),this.$emailSentButton=this.$container.find(".j-email-sent"),this.
$shareEmailSend=this.$container.find("#share-email-send"),this.
$shareEmailForm=this.$container.find(".j-share-email-form"),this.
$linkURLInput=this.$container.find(".j-share-link-url"),this.$close=this.
$container.find(".j-modal-close"),this.$contentWrapper=this.
$container.find(".modal-content-wrapper"),this.gaTrackCategory=this.
$container.data("ga-track-category"),this.gaTrackAction=this.$container.data("ga-
track-action"),this.shareTracker=new
slideshare_object.ShareTracker,this.createShareHash(),slideshare_object&&slideshare
_object.user&&slideshare_object.user.loggedin===!0&&null!
==slideshare_object.user.login&&this.$container.find(".j-share-email-
name").val(slideshare_object.user.login),this.bindModalToShareButtons(),this.bindMo
dalEvents(),this.bindCustomModalEvents(),this.adjustShareModalTop()},ModalShare.pro
totype.get_viral_share_url=function(e){$elem=$("li."+e+" a");var
t=this.data.ssLink;return $elem.length>0&&(t=$.param($elem.data()),!
t&&(t=this.data.ssLink)),this.SHARE_HASH[e]
+t},ModalShare.prototype.get_viral_share_urls=function()
{return{facebook:this.get_viral_share_url("facebook"),linkedin:this.get_viral_share
_url("linkedin"),twitter:this.get_viral_share_url("twitter"),wordpress:this.get_vir
al_share_url("wordpress"),pinterest:this.get_viral_share_url("pinterest"),googleplu
s:this.get_viral_share_url("googleplus")}},ModalShare.prototype.sharePopup=function
(e){var t=626,i=436,n=this.data.social[e];if(void 0!==n){if("facebook"===e)
{if(window.FB)return void this.postToFacebook()}else
if("linkedin"===e&&window.IN&&window.IN.UI)return
IN.UI.Share().params({url:this.data.ssLink}).place(),void
this.saveShare(e);window.open(n,"shareDialog","width="+t+",height="+i),this.saveSha
re(e)}},ModalShare.prototype.show=function(){this.reset(),this.
$container.show(),this.shareGATracking("modalOpen")},ModalShare.prototype.close=fun
ction(){this.reset(),this.$container.hide()},ModalShare.prototype.reset=function()
{this.$container.find(".j-embed-use-ssl-cbox").prop("checked",!1),$(".j-modal-
popup").scrollTop(0),this.clearEmailFields(),this.$shareEmailForm.show(),this.
$emailSentButton.hide(),this.collapseAllSections()},ModalShare.prototype.updateEmbe
d=function(){var e=this.$container.find(".j-share-embed-link"),t=e.val(),i=this.
$container.find(".j-embed-size-picker").val(),n=this.$container.find(".j-embed-
size-picker :selected").data("width")||
this.config.embed_sizes.presets[i].size.width,r=this.$container.find(".j-embed-
size-picker
:selected").data("height")||
this.config.embed_sizes.presets[i].size.height,o=t.match(/src="([^"]+)"/)
[1].split("?")[0],s=this.$container.find(".j-embed-start-
picker").prop("selectedIndex")+1||1;o+=s>1?"?
startSlide="+s:"",t=t.replace(/src="[^"]
+"/,'src="'+o+'"'),t=t.replace("http:",""),t=t.replace("https:",""),t=t.replace(/he
ight="\d+"/,'height="'+r+'"'),t=t.replace(/width="\d+"/,'width="'+n+'"'),e.val(t)},
ModalShare.prototype.clearEmailErrorAlerts=function(){$
(".error").removeClass("error")},ModalShare.prototype.clearEmailFields=function()
{this.$container.find(".j-email-clear").val(""),this.
$shareEmailSend.prop("disabled",!
1),this.clearEmailErrorAlerts()},ModalShare.prototype.sendShareEmail=function(e)
{this.shareGATracking("share_email","send");var t=this,i=this.$container.find(".j-
share-email-to").val(),n=this.$container.find(".j-share-email-name").val(),r=this.
$shareEmailMsg.val(),o=!1;t.$shareEmailSend.val(""),t.
$shareEmailSend.addClass("sending"),t.$shareEmailSend.prop("disabled",!
0),t.clearEmailErrorAlerts(),o||(o=!0,$.post("/w/list/email_share",{data:
{id:this.data.ssId,name:n,recipients:i,msg:r},dataType:"json"}).done(function(e)
{if(0===e.respCode)t.clearEmailFields(),t.
$shareEmailForm.slideUp(400),t.collapseAllSections(),t.$container.find("#email-
sent").slideDown(400),setTimeout(function(){t.$container.find("#email-
sent").slideUp(400),t.$shareEmailForm.slideDown(400)},2e3),t.
$contentWrapper.removeClass("email-
expanded"),t.trackShareEvent({entityId:t.data.ssId,shareType:"email",entityAuthorId
:t.data.authorId,isEmbed:t.config.isEmbed||!1});else{var i=t.$container.find(".j-
email-flash");switch(i.text(e.resp).show(),e.respCode){case 1:t.
$container.find(".j-share-email-to").addClass("error");break;case 2:t.
$container.find(".j-share-email-name").addClass("error")}setTimeout(function()
{i.fadeOut(400)},5e3)}o=!1,t.$shareEmailSend.val("Send"),t.
$shareEmailSend.removeClass("sending"),t.$shareEmailSend.prop("disabled",!
1)}).fail(function(e,i,n){o=!1,t.$shareEmailSend.val("Send"),t.
$shareEmailSend.removeClass("sending"),t.$shareEmailSend.prop("disabled",!
1)}))},ModalShare.prototype.shareGATracking=function(e,t){var i=window._gaq||
[];e=this.gaTrackAction?
this.gaTrackAction+"_"+e:e,i.push(["_trackEvent",this.gaTrackCategory,e,t])},ModalS
hare.prototype.renderSlideStartOptions=function(){for(var
e="",t=0;t<this.data.totalSlides;t++){var i="slide "+(t+1);e+="<option
",0===t&&(e+=' selected="selected"'),e+=">"+i+"</option>"}var n=this.
$container.find(".j-embed-start-picker, .j-share-start-
picker");n.empty(),n.append(e),this.updateStartSlide()},ModalShare.prototype.render
DefaultEmbedOptions=function(){var e,t={0:{small:[344,292],medium:[429,357],large:
[514,422],"default":[599,487]},1:{small:[386,410],medium:[481,512],large:
[576,614],"default":[672,716]},3:{small:[340,191],medium:[425,239],large:
[510,287],"default":[595,335]}};e=3===this.data.ssType?t[3]:t[this.data.ssType
%2];var i="";for(var n in e){var r=e[n][0]+" x "+e[n][1];i+='<option value="'+n+'"
data-width="'+e[n][0]+'" data-height="'+e[n][1]+'"',"default"===n&&(i+="
selected"),i+=">"+r+"</option>"}var o=this.$container.find(".j-embed-size-
picker");o.empty(),o.append(i),this.$container.find(".j-embed-start-
picker").prop("selecteIndex",1),this.$container.find(".j-share-embed-
wp").val(this.data.social.wordpress),this.$container.find(".j-share-embed-
link").text(this.data.embedCode)},ModalShare.prototype.toggleAddMessageHeight=funct
ion(e){this.$shareEmailMsg.toggleClass("msg-
expanded",e)},ModalShare.prototype.collapseAllSections=function(){$(".j-share-
expand").slideUp(),$("#share-embed-link").scrollTop(0),$(".j-
triggered").removeClass("j-triggered"),this.toggleAddMessageHeight(!
1)},ModalShare.prototype.triggerExpand=function(e){this.collapseAllSections(),$
(e).addClass("j-triggered"),$(e).siblings(".j-share-
expand").slideDown(400,this.adjustShareModalTop.bind(this)),this.
$contentWrapper.removeClass("email-expanded embed-expanded"),$(e).hasClass("j-
share-email-to")?this.$contentWrapper.addClass("email-expanded"):$(e).hasClass("j-
share-embed-link")&&this.$contentWrapper.addClass("embed-
expanded")},ModalShare.prototype.getNewSlideURL=function(e,t){var
i=document.createElement("a");i.href=e;var n=i.pathname.split("/");n[0]||
n.shift();for(var r=n.length,o=n[r-1];!o&&r>0;)n.pop(),r--,o=n[r-1];return
parseInt(o,10)&&r>2&&n.pop(),t>1&&n.push(t),i.pathname=n.join("/"),i.href},ModalSha
re.prototype.getSlideImageURL=function(e){return $('#svPlayerId .slide[data-
index="'+e+'"]
.slide_image').data("full")},ModalShare.prototype.bindModalEvents=function(){var
e=this;this.$close.bind("click",function(){e.close()}),this.$container.find(".j-
share-start-picker").change(function(t)
{e.updateStartSlide(),e.shareGATracking("share_social",$(this).data("ga"))}),this.
$shareEmailForm.submit(function(t)
{t.preventDefault(),t.stopPropagation(),e.sendShareEmail()}),this.
$shareEmailMsg.click(function(){e.toggleAddMessageHeight(!0)}),this.
$container.find(".j-share-email-to, .j-share-email-name").click(function(t)
{e.toggleAddMessageHeight(!1)}),this.$container.find(".j-share-social-list
li").click(function(){e.sharePopup($
(this).data("network")),e.trackShareEvent({entityId:e.data.ssId,shareType:$
(this).data("network"),entityAuthorId:e.data.authorId,isEmbed:e.config.isEmbed||!
1})}),this.$container.find(".j-update-embed").change(function()
{e.updateEmbed()}),this.$container.find(".j-share-embed-link, .j-share-embed-wp,
.j-last-screen-ssurl").bind("click",function(){this.select()}),this.
$container.find(".j-share-link-url").click(function()
{this.select(),e.shareGATracking("share_social",$(this).data("ga"))}),this.
$container.find(".j-share-email-form input, .j-share-email-form textarea, .j-add-
msg, .j-send-another-email").click(function(t){"send"!==$
(this).data("ga")&&e.shareGATracking("share_email",$(this).data("ga"))}),this.
$container.find(".j-embed-use-ssl-cbox, .j-embed-related-cbox, .j-embed-size-
picker, .j-embed-start-picker").click(function(){e.shareGATracking("share_embed",$
(this).data("ga"))}),this.$container.find(".j-share-expand-
trigger").click(function(){$(this).siblings(".j-share-expand:visible").length>0||
e.triggerExpand(this)}),$(window).resize(function(){e.adjustShareModalTop()}),$
(document).keydown(function(t){27===t.which&&(t.preventDefault(),e.close())}),$
(".j-modal-popup").on("scroll",function(t){e.$close.css("top",8+$(this).scrollTop()
+"px")})},ModalShare.prototype.bindCustomModalEvents=function()
{},ModalShare.prototype.createShareHash=function()
{this.SHARE_HASH={facebook:"https://www.facebook.com/sharer/sharer.php?",linkedin:"
https://www.linkedin.com/cws/share?
trk=SLIDESHARE&",twitter:"https://twitter.com/share?",googleplus:"https://plus.goog
le.com/share?",wordpress:"",pinterest:"https://pinterest.com/pin/create/button/?"}}
,ModalShare.prototype.getSSId=function(e){return e.length?
e.data("slideshowid"):slideshare_object.modal_player.get_ss_id()},ModalShare.protot
ype.bindModalToShareButtons=function()
{},ModalShare.prototype.trackShareEvent=function(e){var t=e||{},i=t.isEmbed||!
1,n=t.entityAuthorId&&window.slideshare_object.user&&t.entityAuthorId===window.slid
eshare_object.user.id||!
1;this.shareTracker.shareSlideShow({entityId:t.entityId,shareType:t.shareType,isOwn
er:n,isEmbed:i})},ModalShare.prototype.saveShare=function(e){var t=this;
$.get("/account/get_form_authenticity_token").done(function(i)
{$.post("/share/viralshare",{data:
{id:t.data.ssId,network:e},authenticity_token:i.auth_token})})},ModalShare.prototyp
e.showLikeUsModal=function(){},ModalShare.prototype.postToFacebook=function(){var
e=this;if(window.FB){var t=function(t)
{t&&t.post_id&&e.saveShare("facebook")};FB.ui({method:"feed",display:"popup",link:t
his.data.ssLink},t)}},ModalShare.prototype.adjustShareModalTop=function()
{},ModalShare.prototype.updateStartSlide=function(){},function(e,t)
{"object"==typeof exports&&"undefined"!=typeof module?
module.exports=t():"function"==typeof define&&define.amd?
define("jSecure",t):e.jSecure=t()}(this,function(){"use strict";function e()
{}function t(){return"undefined"==typeof document||"textContent"in
document.createElement("div")}function i(e){return e.indexOf("<")>-1||
e.indexOf("&")>-1}function n(e,t){for(var i in
t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function r(e){return
e.reduce(function(e,t){return e.concat(t)},[])}function o(e){e=M(e)?e:[e];var
t,i,n,r=0,o="<(?!/?";return o+="(?:",x(e,function(e,s){t=e.tags||y,i=e.attrs||
_,n=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")
+")",o+="(?:",o+=L,o+="|"+P,o+="(?:(?:",o+="(?:"+i+")(?:=([\"'])[^'\"<>]*\\"+ +
+r+")?",n&&(o+="|(?:"+w+")=([\"'])(?:(?:"+E+")(?::|&#(?:58|x3a);)|(?:"+C+")|[/.#?]|
&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++r),o+=")"+L+")
+",o+=")"}),o+=")",o+="/?>)",new RegExp(o,"i")}function s(e){return e=e||
y,o({tags:e,checkUrlAttrs:!0})}function a(){var e={tag:"li-icon",attrs:"active|
a11y-text|animate|color|size|type"};return o([{tags:y,checkUrlAttrs:!0},{tags:
[e.tag],attrs:[g,e.attrs].join("|"),checkUrlAttrs:!1}])}function l(e,t){var i;t=t||
{};var n=t.allowTags,r=t.hasCustomElementMarkup!==!1;return n?(i=s(n),!
i.test(e)):r?!l.R_UNSAFE_CUSTOM_ELEMENT.test(e):!l.R_UNSAFE_HTML.test(e)}function
c(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function d(e,t,n){var r=t?
h(e,t):e,o=e;return i(r)&&!l(r,n)&&(r=c(r),k("Content contains non-whitelisted tags
or attributes:\nContent: "+o,"error")),r}function h(t,i){var n={};return
t.replace(/\{([^}]+)\}/g,function(t,r){var o,s,a=t;if(n.hasOwnProperty(r))return
n[r];if(i.hasOwnProperty(r)){if(a=i[r],o="string"==typeof a,s="number"==typeof a,!
(o||a instanceof e||s))throw new Error("Only strings, numbers, and jSecure types
are allowed as placeholder replacements.");a=o?I(a):a.toString()}return
n[r]=a,a})}function p(e,t){for(var i=+t.length,n=0,r=e.length;n<i;n++)e[r+
+]=t[n];return e.length=r,e}function u(e,t){var
i,n,r,o,s,a,l,c,d=t.createDocumentFragment(),h=[];for(a=0,c=e.length;a<c;a+
+)if(s=e[a],s||0===s)if("string"==typeof
s){for(o=o||d.appendChild(t.createElement("div")),i=(A.exec(s)||["",""])
[1].toLowerCase(),n=j[i]||j._default,r=n[1]+s+n[2],
$.setElementContent(o,r),l=n[0];l--;)o.lastChild&&o.lastChild.nodeType===Node.ELEME
NT_NODE&&(o=o.lastChild);p(h,o.childNodes),o=d.firstChild,o.textContent=""}else
p(h,s.nodeType?[s]:s);for(d.textContent="",a=0,s=h[a];s;)d.appendChild(s),a+
+,s=h[a];return d}function f(e,t){t=t||
document.implementation&&document.implementation.createHTMLDocument?
document.implementation.createHTMLDocument(""):document;var i;if("string"==typeof
e)i=u([e],t);else{if(!M(e))return e;i=u(e,t)}return p([],i.childNodes)}var g="aria-
[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",m="alt|checked|
colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|
placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|
width",S="border|caption|color|controls|coords|hreflang|label|lang|loop|
marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|
datetime|accept|max|min|size|
step",v=t()?"textContent":"innerText",b=["b","del","em","i","s","strong","sub","sup
"],y=b.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","b
ig","blockquote","br","button","center","cite","code","datalist","dd","details","df
n","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3",
"h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map"
,"mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section"
,"small","source","span","strike","table","tbody","td","tfoot","th","thead","time",
"tr","u","ul","var","video","wbr"]),_=[g,m,S].join("|"),w="href|src",C="data:image/
(?:gif|jpg|jpeg|png);base64,",E="https?|ftp|mailto",T="&#?[a-zA-Z0-9]{1,10};",
$=(new RegExp(T),{ALLOWED_TAGS:y,FORMATTING_TAGS:b}),k=$.log=function(e,t)
{if(t=t||"log",window&&window.jet&&"error"===t.toLowerCase())try{throw new
Error(e)}catch(i){try{window.jet.error(i)}catch(n){}}"undefined"!=typeof
console&&"function"==typeof console[t]&&console[t](e)},I=($.unsafe=function(e)
{return e},$.htmlEncode=function(){
var e,t=/[&<>"'\u0000\\=]/g;return
e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"","\\":"&#92;"
,"=":"&#61;"},function(i){return null===i||void 0===i?
null:i.toString().replace(t,function(t){return e[t]})}}
()),M=($.htmlUnencode=function(){function e(e){var i;return r.hasOwnProperty(e)?
r[e]:(t.innerHTML="&"+e+";",i=t[v],r[e]=i,i)}var t,i,n=/&(?:([a-z0-9]+)|#x([\da-f]
{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new
Error("document is undefined (i.e. you are probably in
Node.js)")};t=document.createElement("div");var
r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return i="function"==typeof
String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return
e<=65535?String.fromCharCode(e):""},function(t){return null===t||void 0===t?null:
(t+"").replace(n,function(t,n,r,o){return n?e(n):r||o?i(parseInt(r||o,r?16:10)||
65533):""})}}(),$.reEncode=function(e){return $.htmlEncode($.htmlUnencode(e))},
$.text=function(e){return $.log("jSecure.text() is deprecated. Please use
jSecure.htmlEncode().","warn"),$.htmlEncode(e)},Array.isArray||function(e)
{return"[object Array]"===Object.prototype.toString.call(e)}),x=function(){return
Array.prototype.forEach?function(e,t)
{Array.prototype.forEach.call(e,t)}:function(e,t){for(var i=0,n=e.length;i<n;i+
+)t(e[i],i)}}(),L="[ \t\r\n]*",P="[ \t\r\n]
+";l.R_UNSAFE_HTML=s(),l.R_UNSAFE_CUSTOM_ELEMENT=a();var j={option:[1,'<select
multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:
[2,"<table><colgroup>","</colgroup></table>"],tr:
[2,"<table><tbody>","</tbody></table>"],td:
[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:
[0,"",""]};j.optgroup=j.option,j.tbody=j.tfoot=j.colgroup=j.caption=j.thead,j.th=j.
td;var A=/<([\w:]+)/,F=($.processTemplate=d,$.sanitizeHTML=function(e){return
d(e)});$.setElementContent=function(e,t,n){var r=d(t,n);return i(r)?
e.innerHTML=r:e[v]=r,r},$.parseHTML=f;var R=($.parseSelector=function(e){var
t=/^(?:\s*(<[\w\W]+>)[^>]*)$/;return"string"==typeof e&&t.test(e)?[]:e},
$.UnsafeString=function(e,t){return this instanceof R?(t=t||
{},t.allowTags=t.allowTags?
r(t.allowTags):null,this._string=e,void(this._options=t)):new
R(e,t)});R.prototype=n(new e,{toString:function(){var
e=this._string,t=this._stringVal,i=e;return void 0!==t?t:(l(e,this._options)||
(i=e,e=c(e),$.log("UnsafeString contains non-whitelisted tags or
attributes.\nString: "+i,"error")),this._stringVal=e,e)}});var N="https?|ftp|
mailto|tel|sms|blob|voyager|android-app|chrome-extension",V="data:(?:(?:image/
(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))
[;,]",O="[/.#?]",D=/ /g,B=/[\s\u0000<>"]|%00/,U=/\\/,z=/;/,H=/([.]|%2e){2}/i,W=new
RegExp("^(?:"+N+"|"+V+"|"+O+")"),G=new
RegExp("^(?:"+V+")"),q=($.sanitizeUrl=function(e){var t=void
0,i="invalid://";if("string"!=typeof e)return $.log("jSecure Warning: url must be a
string","error"),i;if(t=e.trim(),t.indexOf(" ")>-1&&($.log("jSecure Warning: url
should not contain spaces: "+e,"warn"),t=t.replace(D,"+")),!W.test(t))return
$.log("jSecure Error: URL should be absolute with allowed schemas, relative, a hash
fragment or query string. "+e,"error"),i;if(B.test(t))return $.log("jSecure Error:
not valid url character found in url: "+e,"error"),i;var n=t.split("?")[0];return
z.test(n)&&!G.test(t)||U.test(n)||H.test(n)||H.test(decodeURI(n))?($.log("jSecure
Error: malicious data found in url path: "+n,"error"),i):e},$._redirect=function(e)
{window&&(window.location.href=e)},$.redirect=function(e){var t=void
0;t=$.sanitizeUrl(e),t===e&&$._redirect(t)},$.mk=function(e){for(var
t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];var
r="",o=void 0,s=i.length;return e&&e.forEach(function(e,t){r+=e,t<s&&(o=i[t],r+=o
instanceof R?o:I(o))}),F(r)},$);return q}),PlayerModalShare.prototype=new
ModalShare,PlayerModalShare.prototype.set_data=function()
{this.data={ssLink:this.getNewSlideURL($(".j-share-social-list").data("canonical-
url"),1),ssId:this.sslastscreen.config.slideshowId,totalSlides:this.sslastscreen.co
nfig.totalSlides,authorId:this.config.authorId},this.data.social=this.get_viral_sha
re_urls(),this.SHARE_ABBRS={facebook:"fb",linkedin:"li",twitter:"tw",googleplus:"gp
",pinterest:"pi"},this.renderSlideStartOptions()},PlayerModalShare.prototype.bindCu
stomModalEvents=function()
{this.set_data()},PlayerModalShare.prototype.close=function(){$
("#svPlayerId").hasClass("infographic_player")&&$
("body").removeClass("overflow_hidden"),this.reset(),this.
$container.hide(),this.sslastscreen.restoreLastScreenState(),this.sslastscreen.isSh
areScreenVisible=!
1,this.shareGATracking("modalClose")},PlayerModalShare.prototype.trackShareClick=fu
nction(e)
{this.trackShareEvent({entityId:this.data.ssId,shareType:e,entityAuthorId:this.data
.authorId,isEmbed:this.config.isEmbed}),this.shareGATracking(this.SHARE_ABBRS[e],"s
hare_open")},PlayerModalShare.prototype.shareGATracking=function(e,t){"undefined"!
=typeof t&&(e=e+"_"+t),
$.slideshareEventManager.trackEvent(this.gaCategory+e)},ModalShare.prototype.update
StartSlide=function(){var e=$(".j-share-start-picker").prop("selectedIndex")+1||
1;if(!(e<=0)){var t=this;$(".j-share-social-list li a").each(function(i){var n=$
(this).data("url");n&&$
(this).data("url",t.getNewSlideURL(n,e))}),this.data.ssLink=this.getNewSlideURL(thi
s.data.ssLink,e),$("#share-link-url").prop("value",this.getNewSlideURL($("#share-
link-url").prop("value"),e)),$(".j-share-social-list li.pinterest
a").data("media",this.getSlideImageURL(e)),$(".j-embed-start-
picker").prop("selectedIndex",e-
1),this.updateEmbed(),this.data.social=this.get_viral_share_urls()}},function(e)
{function t(){}function i(e){s=[e]}function n(e,t,i){return e&&e.apply(t.context||
t,i)}function r(e){return/\?/.test(e)?"&":"?"}function o(o){function u(e){Y++||
(Z(),H&&($[G]={s:[e]}),D&&(e=D.apply(o,[e])),n(N,o,[e,_,o]),n(O,o,[o,_]))}function
L(e){Y++||(Z(),H&&e!=w&&($[G]=e),n(V,o,[o,e]),n(O,o,[o,e]))}o=e.extend({},I,o);var
P,j,A,F,R,N=o.success,V=o.error,O=o.complete,D=o.dataFilter,B=o.callbackParameter,U
=o.callback,z=o.cache,H=o.pageCache,W=o.charset,G=o.url,q=o.data,K=o.timeout,Y=0,Z=
t;return E&&E(function(e)
{e.done(N).fail(V),N=e.resolve,V=e.reject}).promise(o),o.abort=function(){!Y+
+&&Z()},n(o.beforeSend,o,[o])===!1||Y?o:(G=G||c,q=q?"string"==typeof q?
q:e.param(q,o.traditional):c,G+=q?r(G)+q:c,B&&(G+=r(G)+encodeURIComponent(B)
+"=?"),!z&&!H&&(G+=r(G)+"_"+(new Date).getTime()+"="),G=G.replace(/=\?(&|
$)/,"="+U+"$1"),H&&(P=$[G])?P.s?u(P.s[0]):L(P):(C[U]=i,A=e(y)[0],A.id=p+k+
+,W&&(A[l]=W),M&&M.version()<11.6?(F=e(y)
[0]).text="document.getElementById('"+A.id+"')."+g+"()":A[a]=a,x&&(A.htmlFor=A.id,A
.event=f),A[m]=A[g]=A[S]=function(e){if(!A[v]||!/i/.test(A[v])){try{A[f]&&A[f]
()}catch(t){}e=s,s=0,e?u(e[0]):L(d)}},A.src=G,Z=function(e)
{R&&clearTimeout(R),A[S]=A[m]=A[g]=null,T[b](A),F&&T[b](F)},T[h]
(A,j=T.firstChild),F&&T[h](F,j),R=K>0&&setTimeout(function(){L(w)},K)),o)}var
s,a="async",l="charset",c="",d="error",h="insertBefore",p="_jqjsp",u="on",f=u+"clic
k",g=u+d,m=u+"load",S=u+"readystatechange",v="readyState",b="removeChild",y="<scrip
t>",_="success",w="timeout",C=window,E=e.Deferred,T=e("head")[0]||
document.documentElement,$={},k=0,I={callback:p,url:location.href},M=C.opera,x=!!
e("<div>").html("<!--[if IE]><i><![endif]-->").find("i").length;o.setup=function(t)
{e.extend(I,t)},e.jsonp=o}(jQuery),"undefined"==typeof
window.cookie&&(window.cookie=function(e,t,i){if("undefined"==typeof t){var
n=null;if(document.cookie&&""!==document.cookie)for(var
r=document.cookie.split(";"),o=0;o<r.length;o++){var
s=jQuery.trim(r[o]);if(s.substring(0,e.length+1)==e+"=")
{n=decodeURIComponent(s.substring(e.length+1));break}}return n}i=i||
{},null===t&&(t="",i.expires=-1);var a="";if(i.expires&&("number"==typeof
i.expires||i.expires.toUTCString)){var l;"number"==typeof i.expires?(l=new
Date,l.setTime(l.getTime()+24*i.expires*60*60*1e3)):l=i.expires,a=";
expires="+l.toUTCString()}var c=i.path?"; path="+i.path:"",d=i.domain?";
domain="+i.domain:"",h=i.secure?";
secure":"";document.cookie=[e,"=",encodeURIComponent(t),a,c,d,h].join("")}),void
0===$.slideshareEventManager&&$.extend({slideshareEventManager:{SHOUTEVENTS:{next:!
0,previous:!0,gotoslide:!0,slidechanged:!0,insight:!0,flag:!
0},i18n:slideshare_object.utils.i18n,functions:{showlastscreen:function(){var
e=this.controller;e.isValidNextSlideshowExperiment()?
this.trigger("showNextSlideshow"):e.displayLastScreen()},hidelastscreen:function()
{this.controller.hideLastScreen()},gotofirstslide:function(){var
e=this.controller;this.trigger("hideNextSlideshow"),e.play(1),"video"===e.config.pl
ayer_type&&e.multimediaResource&&e.multimediaResource.videoPlayer.seek(0).play(!
0)},next:function(e){var t=this.controller;if("iframe"==t.mode){var
i=t.currentComponentSet.slidedisplayer;return void i.next()}var
n=t.currentPosition,r=t.slideCount,o=e&&e.touchedSlideNo,s=t.slides[n];if(t.slides[
n+1],!(o<n-3))if(o>r-
1&&t.lastSlideReached(),"ytube_video"===s.config.slideMode&&s._pauseVideo(),n===r&&
"undefined"==typeof new_mobile_player)this.onLastSlide=!
0,t.isValidNextSlideshowExperiment()?
this.trigger("showNextSlideshow"):this.trigger("showlastscreen");else{this.onLastSl
ide=!1;var a=n+1,l=e&&e.source;t.play(a,!1,l,{updateBamboo:!0}),l?
($.slideshareEventManager.trackEvent(l+"_"+a),
$.slideshareEventManager.trackEvent(l+"_"+this.controller.currentViewMode)):
(l="right_arrow_key",$.slideshareEventManager.trackEvent(l+"_"+a),
$.slideshareEventManager.trackEvent(l+"_"+this.controller.currentViewMode))}},previ
ous:function(e){var t=this.controller;if("iframe"==t.mode){var
i=t.currentComponentSet.slidedisplayer;return void i.previous()}var
n=t.currentPosition,r=n-
1,o=e&&e.source;this.trigger("hideNextSlideshow"),t.slides[n].stop(),t.play(r,!1,o,
{updateBamboo:!
0}),e&&e.source&&$.slideshareEventManager.trackEvent(e.source+"_"+r)},showNextSlide
show:function()
{this.controller.showNextSlideshowCTA()},hideNextSlideshow:function()
{this.controller.isValidNextSlideshowExperiment()&&this.controller.hideNextSlidesho
wC
TA()},updateNextSlideshowCookie:function(e){var
t=window.cookie("next_slideshows_seen_ids"),i="clear"===e?-1:1;t&&t.length>=4e3?i=-
1:t?(t=t.split(","),t.indexOf(e.toString())===-
1&&t.push(e)):t=[this.controller.config.id,e],window.cookie("next_slideshows_seen_i
ds",t,{expires:i,path:"/"})},mobileScrollPlayingMode:function(e)
{this.controller.playingMode=e},gotolastslide:function(){var
e=this.controller,t=e.slideCount;e.play(t)},document_touch_scroll:function(e)
{this.controller.currentComponentSet.slidedisplayer.manualScroll(e.delta)},toggleau
dio:function(){var
e=this.controller;e.multimediaResource&&e.multimediaResource.togglePlay()},audiopla
yed:function(){var
e=this.controller;e.currentComponentSet.toolbar.updateAudioInteraction({audioPlayin
g:!0})},audiopaused:function(){var
e=this.controller;e.currentComponentSet.toolbar.updateAudioInteraction({audioPlayin
g:!1})},videoready:function(e){var
t=this.controller;t.initVideoPlayer(e.mode),t.currentComponentSet.videobar._bindEve
nts()},gotoslide:function(e){var t=this.controller;t.play(e.index,void 0,void 0,
{updateBamboo:!0}),this.trigger("hideNextSlideshow"),
$.slideshareEventManager.trackEvent("jumptoslide_"+e.index)},viewonss:function(e)
{var
t=this.controller;window.open(jSecure.sanitizeUrl(t.config.slideview_url),"viewer")
},viewfullscreen:function(e){var
t=this.controller,i=t.currentComponentSet;if("nativefullscreen"!
=t.currentViewMode&&"fullscreen"!=t.currentViewMode)
{if("document"===t.config.player_type&&i.slidedisplayer.setZoom(0),i.videobar&&i.sl
idedisplayer.adjustSpinnerPosition(!0),t.isNativeFullScreenSupported)
{if(i.container.addClass("fullscreen"),t.switchNativeView("nativefullscreen"),"unde
fined"!=typeof SSDocumentDisplayer&&t.currentComponentSet.slidedisplayer instanceof
SSDocumentDisplayer){var n=t.currentPosition;setTimeout(function(){t.play(n,!
0)},500)}t.currentComponentSet.toolbar.showFullscreenToolbar(!0)}else
t.switchToFullScreen();"nativefullscreen"===t.currentViewMode&&_gaq.push(["_trackPa
geview","/"+this.hostedIn+"FullscreenView"])}},leavefullscreen:function(e){var
t=this.controller;if(t.currentComponentSet.toolbar.showFullscreenToolbar(!
1),"normal"!=t.currentViewMode){if(t.leaveFullScreen(),"undefined"!=typeof
SSDocumentDisplayer&&t.currentComponentSet.slidedisplayer instanceof
SSDocumentDisplayer){var i=t.currentPosition;setTimeout(function(){t.play(i,!
0)},100)}t.currentComponentSet.toolbar.
$fullscreenTitleBanner&&t.currentComponentSet.toolbar.
$fullscreenTitleBanner.hide()}},zoomin:function(e){var
t=this.controller;t.currentComponentSet.slidedisplayer.zoomin()},zoomout:function(e
){var
t=this.controller;t.currentComponentSet.slidedisplayer.zoomout()},playersearch:func
tion(e){},playershare:function(e)
{this.controller.displayShareScreen({gaCategory:e,customizations:
{title:this.i18n("ssplayer.event_manager.playershare.share_slideshare")}}),"video"=
==this.controller.config.player_type&&this.controller.multimediaResource&&this.cont
roller.multimediaResource.pause()},metadataloaded:function(e){var
t=this.controller,i=e.type,n=t._metaDataHandlers()
[i];n.success.call(t,e.json)},metadataloadfailed:function(e){var
t=this.controller,i=e.type,n=t._metaDataHandlers()
[i];n.failure.call(t),this.trackRawEvent("jsplayer_debug",i+"_metadataloadfailed",v
oid 0,!0)},slidechanged:function(e){this.trigger("hidelastscreen");var
t=e.index,i=this.controller,n=i.currentPosition,r=i.config.has_video&&i.config.vide
o_hash[i.config.start_slide];(n!==t||
e.force)&&(this.controller.updateCurrentPosition(t),this.controller.hideShareScreen
(),i.config.related_position>0&&$.slideshareEventManager.trackEvent("related"+i.con
fig.related_position+"_slide_changed"),t===i.config.start_slide&&i.config.show_imag
e_player&&!r?i._load(t,!0):i._load(t),e.alreadyInPosition||
i.currentComponentSet.slidedisplayer._scrollTo(t),2===t?
$.slideshareEventManager.trackEvent("slidechange_2"):t===i.slideCount&&$.slideshare
EventManager.trackEvent("slidechange_last"),i.clickGenTracker.trackOrganicLinkImpre
ssionEventsForSlide(t),$(window).trigger("resize"))},slidescrolled:function(e){var
t=e.index,i=this.controller,n=i.currentPosition;(n!==t||
e.force)&&this.trigger("slidechanged",e)},handlemultimedia:function(){var
e=this.controller;e.multimediaResource&&(e.wasPlaying=e.multimediaResource.isPlayin
g(),e.multimediaResource.pause())},screenoverlayclosed:function()
{this.controller.multimediaResource&&this.controller.wasPlaying&&this.controller.mu
ltimediaResource.play()},showvideospinner:function(){var
e=this.controller;e.currentComponentSet.slidedisplayer.videoSpinner.css("z-
index",e.VIDEO_FULLSCREEN_ZINDEX).show()},hidevideospinner:function(){var
e=this.controller;e.currentComponentSet.slidedisplayer.videoSpinner.css("z-
index","auto").hide()},toolbarshown:function(){$(".toolbar").css("z-index",$
(".slideDisplayer").css("z-index"))},currentversionloaded:function(e){var
t=this.controller.slides[e.index],i=e.resourceKey;t.updateRenderedResourceVersion(i
)},resourceloaded:function(e){var
t=this.controller.slides[e.index],i=e.resourceKey;if(t.updateResource(i,
{status:"cached"}),"failed"!==t.status){var n,r=t.resources;for(n in
r)if(r[n].cacheable===!0&&"cached"!
==r[n].status)return;t.status="cached",this.trigger("slideloaded",
{index:e.index})}},resourceloadfailed:function(e){var
t=this.controller.slides[e.index],i=e.resourceKey;t.updateResource(i,
{status:"failed"}),t.resources[i].isCritical===!
0&&(t.status="failed",this.trigger("slideloadfailed",
{index:e.index})),this.trackRawEvent("jsplayer_debug",i+"_resourceloadfailed",void
0,!0)},fontresourceloaded:function(e){var
t=this.controller;t.config.use_ssl&&e.style.indexOf(".eot")!==-
1&&(e.style=e.style.replace(/http:\/\//g,"https://"));var
i="<style>"+e.style+"</style>";$
(i).appendTo(t.currentComponentSet.container)},slideloaded:function(e){var
t=this.controller,i=e.index,n=t.slides[i];n.currentViewMode.rendered&&("undefined"!
=typeof new_mobile_player&&t.resetSlideShowHeight(i),n.paint()),$
("#playerFacade").hide(),t.preloadMoreIfIdle(i)},slideloadfailed:function(e)
{controller=this.controller;var t=controller.slides[e.index];if($
("#playerFacade").hide(),t.currentViewMode.rendered){var
i=t.currentViewMode.width,n=t.currentViewMode.height;t.displayError(controller.gene
rateErrorDom("slide_error_template",
{width:i,height:n}))}controller.preloadMoreIfIdle(e.index);var
r=this.controller.config.id+"_slide_"+e.index;this.trackRawEvent("jsplayer_debug","
slideloadfailed",r,!0)},videoloadfailed:function()
{this.trackRawEvent("jsplayer_debug","videoloadfailed",void 0,!
0)},slideloading:function(e){var
t=this.controller,i=t.slides[e.index],n=t.loadingSlides;n.indexOf(e.index)===-
1&&t.loadingSlides.push(e.index),i.currentViewMode.rendered&&i.displayLoading(),t.c
urrentPosition===e.index&&this.trackRawEvent("jsplayer_debug","current_slide_loadin
g",void 0,!0)},showvolumecontrol:function(e){var
t=this.controller.currentComponentSet.toolbar;t&&t.volumeControl&&t.volumeControl.s
how()},hidevolumecontrol:function(e){var
t=this.controller.currentComponentSet.toolbar;t&&t.volumeControl&&t.volumeControl.h
ide()},changevolume:function(e){var
t=this.controller,i=t.multimediaResource;i&&i.changeVolume(e.volume)},volumechanged
:function(e){var
t=this.controller.currentComponentSet.toolbar;t&&t.volumeControl&&t.volumeControl.s
etVolume(e.volume)},repaint:function(e)
{this.controller.repaint(e.mobile)},flag:function(e){var
t=this.controller.currentComponentSet.flag;t&&t.toggleFlagMenu()}},registerControll
er:function(e){this.controller=e},registerPlayer:function(e){this.player=$
(e)},registerEnvironment:function(e)
{e=e||"slideshare",this.hostedIn=e},trigger:function(e,t){void 0!
==this.functions[e]&&this.functions[e].call(this,t),this.SHOUTEVENTS[e]&&this.playe
r.trigger({type:e,ssData:t})},trackEvent:function(e,t){window._gaq||
(window._gaq=[]),window._gaq.push(["_trackEvent","jsplayer",this.hostedIn,e,void
0,!!t])},trackRawEvent:function(e,t,i,n){window._gaq||
(window._gaq=[]),window._gaq.push(["_trackEvent",e,t,i,void 0,!!
n])},trackValueEvent:function(e,t,i,n){window._gaq||
(window._gaq=[]),window._gaq.push(["_trackEvent",e,t,i,n])},trackOutboundClick:func
tion(e)
{this.controller.clickGenTracker.trackOrganicLinkClickEvent(e)},getController:funct
ion(){return this.controller},getCurrentPosition:function(){return
this.controller.currentPosition}}}),SSLastScreen.prototype._init=function()
{this.isVisible=!1,this.isShareScreenVisible=!
1,this.gaCategory="lastscreen_v1_",this.$container=$("#lastScreen"),this.
$nextButton=$("#btnNext .j-next-btn"),this.$container.find("img.j-
thumbnail").lazyload({effect:"fadeIn",event:"loadThumb"})},SSLastScreen.prototype.e
xitFullScreenIfIdle=function(){var e=setTimeout(function(){$
(".lastScreen").is(":visible")&&($.browser.mozilla||$
(".btnLeaveFullScreen").trigger("click"))},5e3);$
(".lastScreen").on("click",function()
{clearTimeout(e)})},SSLastScreen.prototype.show=function(e,t){if(this.
$container.find("img.j-thumbnail").trigger("loadThumb"),this.isVisible=!0,void 0!
==this.overlay)return this.overlay.show(),void this.lastScreen.show();var
i="lastScreenContainer";isMobile()&&(i+=" mobile"),this.lastScreen=this.
$container.addClass(i).appendTo(this.config.renderTo),this.lastScreen.show(),this.o
verlay=this.lastScreen.find(".j-last-screen-
overlay"),this.setDimensions(e),this.populateTemplate(),t&&this.exitFullScreenIfIdl
e()},SSLastScreen.prototype.populateTemplate=function()
{this.lastScreen.find(".lastScreenEmbedCode, .j-share-embed-
link").val(this.config.embed_code),this.lastScreen.find(".lastScreenSSUrl, .j-
share-link-url").val(this.config.settings.url),this.lastScreen.find(".j-share-
embed-wp").val(this.config.wp_code),$.fn.tooltip&&this.lastScreen.find(".j-
tooltip").tooltip(),this.config.disableRelated&&(this.lastScreen.find(".lastScreen"
).addClass("j-disable-
related"),this.config.disableShare&&this.lastScreen.find(".lastScreen").addClass("j
-disable-share"),this.isProLastScreen=!
0),this._bindEvents(),this.initShareWidget(),this.populateEmbedSizes()},SSLastScree
n.prototype.initShareWidget=func
tion(){this.shareWidgets=new
SSShareWidgets({container:this.lastScreen,gaCategory:this.gaCategory})},SSLastScree
n.prototype.populateEmbedSizes=function(){var e=this.lastScreen.find(".j-embed-
size-picker");$.each(this.config.embed_sizes.presets,function(t,i){var
n=i.size.width+4,r=i.size.height+2,o=$
("<option/>").val(t).text(n+"x"+r);e.append(o)}),e.val(this.config.embed_sizes.conf
ig.defaultPreset).change()},SSLastScreen.prototype._bindEvents=function(){$
(".lastscreen-share-cta").bind("click",function(e)
{e.preventDefault(),e.stopPropagation(),
$.slideshareEventManager.trigger("playershare",this.gaCategory)});var
e=this,t=this.lastScreen.find(".j-email-cta");t.bind("click",function()
{$.slideshareEventManager.trigger("playershare",this.gaCategory),e.lastScreen.find(
".j-share-email-to").click(),e.lastScreen.find(".j-share-email-to").focus(),
$.slideshareEventManager.trackEvent(e.gaCategory+"email_cta")}),this.lastScreen.fin
d(".j-last-screen-replay").bind("click",function(t)
{t.preventDefault(),t.stopPropagation(),e.hide(),
$.slideshareEventManager.trigger("gotofirstslide"),
$.slideshareEventManager.trackEvent(e.gaCategory+"replay")}),this.lastScreen.find("
.j-last-screen-overlay, .j-lastscreen-close").bind("click",function()
{e.hide()}),this.lastScreen.find(".j-lastscreen-related
a").bind("click",function(t)
{$.slideshareEventManager.trackEvent(e.gaCategory+"relatedclick")})},SSLastScreen.p
rototype.showShareScreen=function(e)
{if(this.shareOpenedFromLastScreen=this.isVisible,this.isShareScreenVisible)this.hi
de();else{if(this.isShareScreenVisible=!0,this.show(e),this.lastScreen.find(".j-
lastscreen").hide(),e.customizations.title){var t=this.lastScreen.find("a#button-
share-tab");t.text(e.customizations.title)}this.lastScreen.find("#last-screen-
modal-share").show()}},SSLastScreen.prototype.restoreLastScreenState=function()
{this.shareOpenedFromLastScreen?this.lastScreen.find(".j-lastscreen").show():
(this.lastScreen.find(".j-
lastscreen").show(),this.hide())},SSLastScreen.prototype.hide=function()
{this.isVisible=!1,this.isShareScreenVisible=!
1,this.overlay.hide(),this.lastScreen.hide()},SSLastScreen.prototype.destroy=functi
on(){this.overlay&&(this.overlay.remove(),delete
this.overlay),this.lastScreen&&(this.lastScreen.remove(),delete
this.lastScreen)},SSLastScreen.prototype.setDimensions=function(e){void 0!
==this.lastScreen&&(this.config.lastScreenClass&&this.lastScreen.find(".lastScreen"
).addClass(this.config.lastScreenClass),this.lastScreen.css({height:e.height,width:
e.width}))},SSReplayScreen.prototype._init=function()
{},SSReplayScreen.prototype.show=function(e){void 0===this.overlay&&(this.overlay=$
("<div/>").css({width:"100%",height:"100%","background-
color":"black",opacity:.75,position:"absolute",top:0,left:0}).appendTo(this.config.
renderTo),this.lastScreen=$
("<div/>").css({position:"absolute"}).html(this.html).appendTo(this.config.renderTo
),this.setDimensions(e),this.bindEvents())},SSReplayScreen.prototype.destroy=functi
on(){this.overlay&&(this.overlay.remove(),delete
this.overlay),this.lastScreen&&(this.lastScreen.remove(),delete
this.lastScreen)},SSReplayScreen.prototype.bindEvents=function(){var
e=this;this.lastScreen.find(".j-replay-button").bind("click",function(t)
{t.preventDefault(),e.destroy(),$.slideshareEventManager.trigger("gotofirstslide"),
$.slideshareEventManager.trackEvent("lastscreen_replay")})},SSReplayScreen.prototyp
e.setDimensions=function(e){if(void 0!==this.lastScreen){var
t,i,n=93,r=25;t=(e.height-r)/2,i=(e.width-n)/2,t=t<0?0:parseInt(t,10),i=i<0?
0:parseInt(i,10),this.lastScreen.css({top:t,left:i})}},SSShareWidgets.prototype.loa
dTwWidget=function(){window.twttr=function(e,t,i){var
n,r,o=e.getElementsByTagName(t)[0];if(!e.getElementById(i))return
r=e.createElement(t),r.id=i,r.src="//platform.twitter.com/widgets.js",o.parentNode.
insertBefore(r,o),window.twttr||(n={_e:[],ready:function(e){n._e.push(e)}})}
(document,"script","twitter-wjs");var e=this;twttr.ready(function(t){var
i=e;t.events.bind("tweet",function(e)
{e&&$.slideshareEventManager.trackEvent(i.gaCategory+"twitter_share")}),t.events.bi
nd("click",function(e)
{$.slideshareEventManager.trackEvent(i.gaCategory+"twitter_click")})})},SSShareWidg
ets.prototype.loadLIwidget=function(){var
e=document.location.protocol+"//platform.linkedin.com/in.js?
async=true";"undefined"==typeof IN?$.getScript(e,function(){"undefined"!=typeof
IN&&IN.init({api_key:"y4wa9oe4c6nu",credentials_cookie:!0,authorize:!
0,entropy:Math.floor(1e4*Math.random())})}):IN.parse(document),window.socialScreenL
inkedInSuccess=function()
{$.slideshareEventManager.trackEvent(that.gaCategory+"li_share")}},SSShareWidgets.p
rototype.loadGplusWidget=function(){window.___gcfg={lang:"en-US"},function(){var
e=document.createElement("script");e.type="text/javascript",e.async=!
0,e.src="https://apis.google.com/js/plusone.js";var
t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}
(),window.socialScreenPlusOneSuccess=function()
{$.slideshareEventManager.trackEvent(that.gaCategory+"gplus_share")}},SSShareWidget
s.prototype.loadPinItWidget=function(){!function(e){var
t=e.getElementsByTagName("SCRIPT")
[0],i=e.createElement("SCRIPT");i.type="text/javascript",i.async=!
0,i.src="//assets.pinterest.com/js/pinit.js",t.parentNode.insertBefore(i,t)}
(document),this.container.find(".pinit-btn").click(function()
{$.slideshareEventManager.trackEvent(that.gaCategory+"pinit_share")})},SSShareWidge
ts.prototype.sendMail=function(e){var t=!1,i=e.sendButton;t||
(i.trigger("mailSending"),t=!0,$.post(e.postTo,
{data:e.params,dataType:"json"}).success(function(e){t=!1,e.isSuccess?
i.trigger("mailSendSuccess"):i.trigger("mailSendFailure",e)}).error(function(e,n,r)
{t=!1,i.trigger("mailSendError")}))},SSShareOptions.prototype._init=function()
{},SSShareOptions.prototype.show=function(){var e=this;this.shareOptions=$
("<div/>").html(this.html).appendTo(this.renderTo),this.setShareObjects(),
$.each({".thirdPartyShare a.Twitter":this.config.twitterShare,".thirdPartyShare
a.Linkedin":this.config.linkedinShare},function(t,i)
{e.shareOptions.find(t).bind("click",function(e)
{e.preventDefault(),window.open(i,"ss_share","width=660,height=490,toolbar=no,resiz
able=fixed,status=no,scrollbars=no,menubar=no,screenX=0,screenY=0").focus()})}),thi
s.fbLike.replaceWith(this.config.facebookLike)},SSShareOptions.prototype.setShareOb
jects=function()
{this.twitter=this.shareOptions.find(".Twitter"),this.linkedIn=this.shareOptions.fi
nd(".Linkedin"),this.fbLike=this.shareOptions.find(".fb-
like")},SSSlideDisplayer.prototype._init=function(){this.config.show_image_player?
this.container=$(".stage"):(this.container=$("<div/>").addClass("slideDisplayer
"+this.playerBgColor).appendTo(this.config.renderTo),this.showInitializer())},SSSli
deDisplayer.prototype.hideInitializer=function(){this.config.show_image_player||
this.container.find("*").not(".pointly").remove()},SSSlideDisplayer.prototype.error
=function(e)
{this.hideInitializer(),e.appendTo(this.container)},SSSlideDisplayer.prototype.zoom
in=function(){var e=this.zoomIndex+1;e!
==this.zoomLevels.length&&(this.zoomIndex=e,this.setZoom(e),$
(this).trigger("zoomchanged"))},SSSlideDisplayer.prototype.zoomout=function(){0!
==this.zoomIndex&&(this.zoomIndex-=1,this.setZoom(this.zoomIndex),$
(this).trigger("zoomchanged"))},SSSlideDisplayer.prototype.activate=function()
{},SSSlideDisplayer.prototype.deactivate=function()
{},SSSlideDisplayer.prototype.destroy=function()
{this.container.remove()},SSSlideDisplayer.prototype._bindEvents=function()
{},SSSlideDisplayer.prototype.refresh=function(e){var t=this;$.each(e,function(e,i)
{t.config[e]&&(t.config[e]=i)})},SSTouchInteraction.prototype._init=function()
{this.touch={active:!
1},this._bindEvents()},SSTouchInteraction.prototype.scrollVariables=function()
{this.slideHeight=$
(".verticalStack").height(),this.scrollBottomOffset=2*this.slideHeight},SSTouchInte
raction.prototype.loadNextSlides=function(e){var t=2,i=e.data.touch,n=$
(window).scrollTop(),r=$(".slideShow").height();if(r-n<i.scrollBottomOffset)for(var
o=0;o<t;o++)$.slideshareEventManager.trigger("next",
{source:"scroll_next"})},SSTouchInteraction.prototype.loadNextSlide=function(e){var
t=$(e.target);t.hasClass(".verticalStack")||(t=t.closest(".verticalStack"));var
i=parseInt(t.attr("touchCount"),10),n=parseInt(t.attr("slideNumber"),10);isNaN(n)&&
(n=parseInt($("div[touchcount]").last().attr("slidenumber"),10)),isNaN(i)?
(t.attr("touchCount",1),$.slideshareEventManager.trigger("next",
{source:"scroll_next",touchedSlideNo:n}),window._gaq.push(["_trackEvent","jsplayer"
,"slideTouched",config.player_type])):i<3&&(t.attr("touchCount",i+1),
$.slideshareEventManager.trigger("next",
{source:"scroll_next",touchedSlideNo:n})),1===n&&i>1||90===window.orientation||
window.orientation===-90?
updateSlideNumber(n):updateSlideNumber(n+1)},SSTouchInteraction.prototype.getTouchE
vent=function(){var e;return e="ontouchstart"in
window?"touchstart":window.navigator.msPointerEnabled?"MSPointerDown":"click"},SSTo
uchInteraction.prototype.slideNextOnScroll=function(){var
e=this;config.scroll_test||$("#slideshow").on(this.getTouchEvent(),function(t)
{e.loadNextSlide(t)}),$("#more-slide").on("click",function(t)
{window._gaq.push(["_trackEvent","jsplayer","LoadMoreSlide",config.player_type]),e.
loadNextSlide(t)})},SSTouchInteraction.prototype.activate=function(){var e=$
(".hideControls"),t=$
(".slideShow"),i=$.slideshareEventManager,n=this.getTouchEvent(),r=this,o=window.in
nerWidth>0?
window.innerWidth:screen.width,s=this.config.container.width();if("embed"===this.co
nfig.hostedIn&&o<s&&$("body").width(o),e.show(),$
("#slide_next_mobile").on(n,function(e){e.preventDefault(),i.trigger("next",
{source:"tap_next"}),window._gaq.push(["_trackEvent","jsplayer","mobile_next",confi
g.real_player_type])}),$("#slide_previous_mobile").on(n,function(e)
{e.preventDefault(),i.trigger("previous",
{source:"tap_previous"}),window._gaq.push(["_trackEvent","jsplayer","mobile_prev",c
onfig.real_player_type])}),"undefined"!=typeof
new_mobile_player){$("#slide-end").live(n,function(e){$
(window).scrollTop(0)}),this.slideNextOnScroll(),$("#play-
icon").on(this.getTouchEvent(),function(e){e.stopPropagation(),"undefined"!=typeof
r.containerHeight?t.height(r.containerHeight):t.height(2*$
(".verticalStack").height()),$("#play-icon, .presentationSharing, #more-related-
content").hide(),$("#view-done, #view-save, #slidecount, #more-slide").show(),$
(".header").removeClass("fixed-header"),config.scroll_test&&(r.scrollVariables(),$
(window).bind("scroll",
{touch:r},r.loadNextSlides)),i.trigger("mobileScrollPlayingMode","play"),window._ga
q.push(["_trackEvent","jsplayer","Mobile_PlayButton",config.player_type])}),$
("#view-done").on(this.getTouchEvent(),function(e)
{e.stopPropagation(),e.preventDefault(),r.containerHeight=t.height(),t.height($
(".verticalStack").height()),$("#view-done, #view-save, #slidecount, #more-slide,
#slide-end").hide(),$(".header").addClass("fixed-
header"),i.trigger("mobileScrollPlayingMode","pause"),$.mobile.silentScroll(0),$
(".presentationSharing, #more-related-content").show(),$("#play-
icon").css("display","table"),config.scroll_test&&$
(window).unbind("scroll",r.loadNextSlides),window._gaq.push(["_trackEvent","jsplaye
r","Mobile_ViewDoneButton",config.player_type])});var a=$("#view-
save");a.on(this.getTouchEvent(),function(e)
{if(e.stopPropagation(),e.preventDefault(),!a.hasClass("mobile_view_saved"))
{a.addClass("mobile_view_saved");var t=a.data("save-
url");window._gaq.push(["_trackEvent","jsplayer","Mobile_ViewSaveButton_Click",conf
ig.player_type]),$.ajax({url:t,success:function(e){e.success?
window._gaq.push(["_trackEvent","jsplayer","Mobile_ViewSaveButton_Success",config.p
layer_type]):
(a.removeClass("mobile_view_saved"),window._gaq.push(["_trackEvent","jsplayer","Mob
ile_ViewSaveButton_Failure",config.player_type]))},error:function(e)
{a.removeClass("mobile_view_saved"),window._gaq.push(["_trackEvent","jsplayer","Mob
ile_ViewSaveButton_Error",config.player_type])}})}}),$
(document).bind("touchmove",function(e){a.is(":visible")&&(a.addClass("scrolling-
hide"),
$("#view-done, #view-save").hide())}),$
(document).bind(this.getTouchEvent(),function(e){a.hasClass("scrolling-
hide")&&(a.removeClass("scrolling-hide"),$("#view-done, #view-save").show())})}else
e.on(n,function(e){var t=1e3,i=parseInt($(".current_slide_number").text(),10),n=$
(".previous .ui-btn-inner"),r=$(".next .ui-btn-inner"),o=$(".landscape-full-screen-
slidecount");o.show(),setTimeout(function(){o.hide()},t),1!
==i&&(n.show(),setTimeout(function(){n.hide()},t)),i!==parseInt($
("#total_slides_number").text(),10)?(r.show(),setTimeout(function()
{r.hide()},t)):setTimeout(function(){$(".lastScreen").css("z-
index",99999)},2e3),4===i&&$
(".navIcons").removeClass("highlight")})},SSTouchInteraction.prototype.deactivate=f
unction(){},SSTouchInteraction.prototype.destroy=function()
{},SSTouchInteraction.prototype._bindEvents=function()
{},SSToolbar.prototype._init=function(){var e;this.config.show_image_player?e=$
(".toolbar"):(e=$('<div
class="toolbar"></div>').html(this.config.html).appendTo(this.config.renderTo),$
(".slideshow-info-container").css("padding-
top",20)),this.container=e,this.toolbarOnFullscreen="presentation"===this.config.pl
ayer_type||"document"===this.config.player_type,this.toolbarOnFullscreen&&(this.
$fullscreenTitleBanner=$(".j-fullscreen-title-banner")),this.
$currSlide=this.container.find(".j-current-slide"),this.
$progressBar=this.container.find(".j-progress-bar"),this.
$progressBar.length&&this.initProgressBar(),this.totalSlideCount=this.config.totalS
lideCount,this.config.toolbarClass=this._getToolbarClass(),this.container.addClass(
this.config.toolbarClass),this.config.enableViewSS&&e.find(".btnViewOnSS").show(),t
his.config.isFullScreen&&(e.find("#btnFullScreen").hide(),e.find("#btnLeaveFullScre
en").show()),"video"===this.config.playerType&&(this.volumeControl=new
SSVolumeControl({container:e.find(".jspl_volume_control"),renderTo:e,trigger:e.find
(".btnVolume"),player:this.config.renderTo}),this.audioActive=!0);var
t=this;e.find(".j-total-slides").text(this.totalSlideCount),$
(".slide_container").on("mousemove",function(e){t.prevCursorScreenX!
==e.screenX&&t.prevCursorScreenY!
==e.screenY&&(t.prevCursorScreenY=e.screenX,t.prevCursorScreenY=e.screenY,t.showFul
lscreenToolbar(!0))}),this.container.on("mouseover",function()
{t.showFullscreenToolbar(!
1)})},SSToolbar.prototype.showFullscreenToolbar=function(e)
{if(this.config.isFullScreen&&this.toolbarOnFullscreen){var t=this.
$fullscreenTitleBanner.add(this.container.closest(".toolbar_wrapper"));t.is(":hidde
n")&&t.fadeIn("fast"),clearTimeout(this.showFSElemsTimer),e&&(this.showFSElemsTimer
=setTimeout(function()
{t.fadeOut("fast")},3e3))}},SSToolbar.prototype._initForNativeFullScreen=function()
{this._ELEMENT_VISIBILITY.fullScreen=!this.config.disableFullScreen&&!
this.config.isFullScreen,this._ELEMENT_VISIBILITY.leaveFullScreen=!
this.config.disableLeaveFullScreen&&this.config.isFullScreen},SSToolbar.prototype._
getToolbarClass=function(){var e="";return
e=this.config.width<400?"small":"normal"},SSToolbar.prototype.resetButtons=function
(e)
{this._unbindButtonHandler(e),this._bindButtonHandler(e)},SSToolbar.prototype.getEl
ements=function(e){var
t=this.container,i={nav:".nav",share:".btnShare",fullScreen:"#btnFullScreen",leaveF
ullScreen:"#btnLeaveFullScreen",viewOnSS:".btnViewOnSS",goToSlide:".goToSlideLabel"
,zoomButtons:".docActions"},n={};return $.each(i,function(i,r){e&&e[i]?n[i]=$
(e[i]):n[i]=t.find(r)}),n},SSToolbar.prototype.getButtons=function(e,t){var
i=this,n={},r=t;return $.each(e,function(e,t){r&&r[e]?n[e]=$
(r[e]):n[e]=i.container.find(t)}),n},SSToolbar.prototype.deactivate=function(){var
e=this._BUTTONS;$.each(e,function(e,t)
{t.unbind("click")}),this._unbindButtonHandler(this._BUTTONS),this.container.find("
.goToSlideLabel>input[type=text]").attr("disabled",!0),this.active=!
1,"video"===this.config.playerType&&this._activateAudio()},SSToolbar.prototype.acti
vate=function(){var
e=this;this.container,this._bindButtonHandler({btnViewOnSS:"viewonss",btnFirst:"got
ofirstslide",btnSS:"viewonss",btnPrevious:"previous",btnNext:"next",btnLast:"gotola
stslide",btnFullScreen:"viewfullscreen",btnLeaveFullScreen:"leavefullscreen",btnZoo
mOut:"zoomout",btnZoomIn:"zoomin",btnFind:"playersearch",btnShare:"playershare"}),t
his.isClippable||(this.activateProgressTooltip(),this.
$progressBar.on("click",function(){var t=parseInt(e.$tooltipSlideCount.text(),10);
$.slideshareEventManager.trigger("gotoslide",{index:t}),
$.slideshareEventManager.trackEvent("progressbar_click")})),this.active=!
0,"video"===this.config.playerType&&this._activateAudio()},SSToolbar.prototype.upda
teAudioInteraction=function(e){var t;for(t in
e)this[t]=e[t];return"video"===this.config.playerType?void
this._activateAudio():void(this.active&&this.audioReady&&this.audioMetaReady?(!
this.audioActive&&this._activateAudio(),this._updateAudioDisplay()):this.audioActiv
e&&this._deactivateAudio())},SSToolbar.prototype._activateAudio=function()
{this.container.find(".btnAudio,.btnVolume").removeClass("disabled"),this._bindButt
onHandler({btnAudio:"toggleaudio",btnVolume:"showvolumecontrol"}),this.audioActive=
!0},SSToolbar.prototype._deactivateAudio=function()
{this.container.find(".btnAudio,.btnVolume").addClass("disabled"),this._unbindButto
nHandler({btnAudio:null,btnVolume:null}),this.audioActive=!
1},SSToolbar.prototype._updateAudioDisplay=function(e){this.audioPlaying?
this.container.find(".btnAudio").removeClass("btnAudioPlay").addClass("btnAudioPaus
e").attr("title","Pause"):this.container.find(".btnAudio").removeClass("btnAudioPau
se").addClass("btnAudioPlay").attr("title","Play")},SSToolbar.prototype._bindButton
Handler=function(e){var t=this;$.each(e,function(e,i){var
n=t._BUTTONS[e];n&&(n.unbind(),n.bind("click",function(e){e.preventDefault();var
n=t.GA_EVENTS_SRC[i];$.slideshareEventManager.trigger(i,{source:n});var
r=t.GA_EVENTS[i];r&&$.slideshareEventManager.trackEvent(r)}))})},SSToolbar.prototyp
e._unbindButtonHandler=function(e){var t=this;$.each(e,function(e){var
i=t._BUTTONS[e];i.unbind(),i.bind("click",function(e)
{e.preventDefault(),e.stopPropagation()})})},SSToolbar.prototype.setDimensions=func
tion(e){var t,i,n,r,o=this,s=o._ELEMENT_WIDTHS[o._ELEMENT_PRIORITIES[1]
[0]],a=e.width/2-o.config.toolbarPadding-
s,l={one:a,two:a};this._ELEMENT_PRIORITIES.length,
$.each(this._ELEMENT_PRIORITIES,function(e,s){t=s.length;for(var a=0;a<t;a++)
{i=s[a];var
c=o._ELEMENT_SECTION[i];n=o._ELEMENT_WIDTHS[i],r=o._ELEMENT_VISIBILITY[i]&&l[c]>n,1
==e||r?(o._ELEMENTS[i].show(),1!=e&&(l[c]-
=n)):o._ELEMENTS[i].hide()}})},SSToolbar.prototype.updateCurrentPosition=function(e
){this.handleDisabledButtons(e),this.
$currSlide.text(e)},SSToolbar.prototype.handleDisabledButtons=function(e)
{this._BUTTONS.btnPrevious.find(".j-prev-
btn").removeClass("disabled"),1===e&&this._BUTTONS.btnPrevious.find(".j-prev-
btn").addClass("disabled")},SSToolbar.prototype.destroy=function()
{this.container.remove()},SSToolbar.prototype.updateProgressBar=function(){if(this.
$slidesLoadedBar){var e=this.$currSlide.text()/this.totalSlideCount*100;this.
$slidesLoadedBar.width(e+"%")}},SSToolbar.prototype.initProgressBar=function(){var
e=this;this.$slidesLoadedBar=this.$progressBar.find(".j-slides-loaded-bar"),this.
$progressToolTip=this.$progressBar.find(".j-progress-tooltip"),this.
$toolTipContent=this.$progressToolTip.find(".j-tooltip-content"),this.
$toolTipThumb=this.$toolTipContent.find(".j-tooltip-thumb"),this.
$tooltipSlideCount=this.$progressToolTip.find(".j-slidecount-label"),this.
$tooltipSlideCount.text(this.$currSlide.text()),this.isClippable||(this.
$progressBar.on("mousemove",function(t){e.displayProgressTooltip(t)}),this.
$progressBar.on("mouseleave",function()
{e.hideProgressTooltip()}))},SSToolbar.prototype.displayProgressTooltip=function(e)
{var t=this.$progressBar.offset().left,i=e.pageX-t,n=this.
$progressBar.width(),r=Math.max(1,Math.ceil(i/n*this.totalSlideCount)),o=this.
$progressToolTip.outerWidth();this.$progressToolTip.css("margin-left",i-o/2),this.
$tooltipSlideCount.text(r),this.config.isEmbed&&this.fitTooltipInWindow();var
s=this.$toolTipThumb.attr("slide-thumb-"+r);this.$toolTipThumb.attr("src",s),this.
$progressToolTip.show()},SSToolbar.prototype.updateBamboo=function(e){var
t=this._BUTTONS.btnNext.find("a"),i=this._BUTTONS.btnPrevious.find("a");t.data("sli
de",e.nextInd),t.attr("href",e.nextHref),t.attr("title",e.nextTitle),i.data("slide"
,e.prevInd),i.attr("href",e.prevHref),i.attr("title",e.prevTitle)},SSToolbar.protot
ype.fitTooltipInWindow=function(){this.$toolTipThumb.css({"margin-left":0,"margin-
right":0}),this.$tooltipSlideCount.css({"margin-left":0,"margin-right":0,"border-
bottom-left-radius":3,"border-bottom-right-radius":3});var e=this.
$toolTipThumb.offset().left,t=e+this.$toolTipThumb.outerWidth(),i=this.
$tooltipSlideCount.offset().left,n=i+this.$tooltipSlideCount.outerWidth(),r=$
(window).width();e<0?this.$toolTipThumb.css("margin-left",e*-1):t>r&&this.
$toolTipThumb.css("margin-left",2*(r-t)),i<0?this.$tooltipSlideCount.css({"margin-
left":i*-1-1,"border-bottom-left-radius":0}):n>r&&this.
$tooltipSlideCount.css({"margin-left":r-n,"border-bottom-right-
radius":0})},SSToolbar.prototype.deactivateProgressTooltip=function(){this.
$progressToolTip&&this.$progressBar&&!this.isClippable&&(this.
$progressToolTip.hide(),this.$progressBar.off("mousemove"),this.
$progressBar.off("mouseleave"))},SSToolbar.prototype.activateProgressTooltip=functi
on(){this.$progressToolTip&&this.$progressBar&&!
this.isClippable&&(this.deactivateProgressTooltip(),this.
$progressBar.on("mousemove",this.displayProgressTooltip.bind(this)),this.
$progressBar.on("mouseleave",function(){this.
$progressToolTip.hide()}.bind(this)))},SSPlayerController.prototype._init=function(
){var
e,t=slideshare_object.utils.imports("tracking.ClickGenTracker");if(this.clickGenTra
cker=new t,this.clickGenTracker.renderAllLinks="all"===this.config.render_links,
$.slideshareEventManager.registerController(this),
$.slideshareEventManager.registerEnvironment(this.config.hosted_in),this.cachedDomE
lements={},this.componentSets={},e=th
is._isFullScreen()?"fullscreen":"normal",this._createComponentSet(e),this.isNativeF
ullScreenSupported=this._isNativeFullScreenSupported(),this._bindEvents(),this.exit
FullScreenHandler=this.exitFullScreenHandlerFactory(),"video"!==this.mode?
this.config.disable_meta&&this.config.show_image_player?
(this.conversionVersion=2,this.slideSizes={},this.slideLinks={},this.postInitialize
()):(this._initMetadata(),this._loadMetadata()):
(this.VIDEO_REINITIALISE_TIME=100,this.VIDEO_FULLSCREEN_ZINDEX=100,this._loadVideoM
eta()),$(document).trigger("slideshare-player-controller:init-done"),
$.slideshareEventManager.trackEvent("player_initialized",!
0),this.config.next_prev_experiment)
{this.config.next_slideshow_pos&&$.slideshareEventManager.trackEvent("next_slidesho
w_cta_page_load");var
i=window.cookie("next_slideshows_seen_ids");if(i&&(i=i.split(","),this.config.ssIds
=i,i&&""!==i[0]))for(var n=0,r=i.length;n<r;n++)$('.j-related-more-tab .j-related-
item a[data-ssid="'+i[n]+'"]').hide()}$(window).on("keyup",function(e)
{if(32==e.keyCode){var t=$
(".player"),i=window.innerWidth==t.width()&&window.innerHeight==t.height();i&&$.sli
deshareEventManager.trigger("next",
{source:"spacebar_next"})}})},SSPlayerController.prototype._loadVideoMeta=function(
){this.config.is_private&&this._getHtmlSignatures(),this.initialized=!
0},SSPlayerController.prototype._initMetadata=function()
{if("html"===this.mode)this.config.is_private&&this._getHtmlSignatures(),this._init
FontResources(),this._initHtmlMetadata(),this.config.image_ready&&this._initImageMe
tadata(!0);else{if("image"!==this.mode)throw
window._gaq&&_gaq.push(["_trackEvent","jsplayer","invalidplayermode",this.config.id
]),"Unknown player
mode";this._initImageMetadata()}},SSPlayerController.prototype._loadMetadata=functi
on()
{if("html"===this.mode)this.metaResource.load(),this.config.image_ready&&this.image
MetaResource.load();else{if("image"!==this.mode)throw"Unknown player
mode";this.imageMetaResource.load()}},SSPlayerController.prototype._initHtmlMetadat
a=function(e){this.metaResource=new
SSMetaResource({url:this.config.bucket_location+"meta.js",timestamp:this.config.tim
estamp,type:"html",is_private:this.config.is_private,signature:e})},SSPlayerControl
ler.prototype._initImageMetadata=function(e,t){this.imageMetaResource=new
SSMetaResource({url:this.config.image_bucket_location+"/meta.js",timestamp:this.con
fig.timestamp,type:e?"imagefallback":"imageprimary"})},SSPlayerController.prototype
._initFontResources=function(e,t){var i=navigator.userAgent.toLowerCase();t?
fontBatchNum=Math.ceil(this.slideCount/t):fontBatchNum=Math.ceil(this.slideCount/th
is.FONT_BATCH_COUNT);var n;n=/msie/.test(i)&&!/opera/.test(i)?
this.config.html_eotfont_url_suffix:this.config.html_ttffont_url_suffix;var
r;for(this.fontResources=[],r=1;r<=fontBatchNum;r++)this.fontResources[r]=new
SSFontResource({baseUrl:this.config.bucket_location,indexString:this._getIndexStrin
g(r,0),timestamp:this.config.timestamp,suffix:n})},SSPlayerController.prototype.get
ImagePrivateSignatures=function(e,t){var n=this;!function(t)
{$.ajax({url:n.config.images_signature_request_route,data:
{id:n.config.id,key:n.config.secret_key,mode:t,images_sizes:e,version:n.conversionV
ersion,password_hash:n.config.password_hash,authenticity_token:window._auth_token},
dataType:"json",cache:!1,type:"POST",success:function(e){if("html"===t?
n.privateImageSignatures=e:"image"===t&&(n.privateFallBackImageSignatures=e),"html"
===t||"image"===t)n.postInitialize();else if(n.slidesCreated){var
r,o,s=n.slideModes.image.length;for(i=0;i<s;i+
+)o=n.slideModes.image[i],r=n.slides[n.realIndexToIndex[o]],r.resources.image.addSi
gnature(e[o]),r.resources.image.ready()}else n.privateFallBackImageSignatures=e}})}
(t)},SSPlayerController.prototype._getHtmlSignatures=function(){var
e=this.config.signature_request_route,t=this;$.ajax({url:e,data:
{id:this.config.id,key:this.config.secret_key},dataType:"json",cache:!
1,type:"GET",success:function(e){var i,n=e.length;if(0!==n){for(var r=0;r<n;r+
+)i=e[r],t.htmlResourceSignatures=e[r].info;for(r=0;r<t.slideCount;r+
+)t.slides&&t.slides[r]&&(slide=t.slides[r],slide.resources.html.updateSignature(t.
htmlResourceSignatures[r].url),slide.resources.html.ready())}},failure:function()
{$.slideshareEventManager.trigger("metadataloadfailed",
{type:t.config.type})}})},SSPlayerController.prototype._metaDataHandlers=function()
{var e=function(){var
e,t,i=this.currentComponentSet.slidedisplayer;e=i.container.height(),t=i.container.
width(),i.error(this.generateErrorDom("meta_error_template",{width:t,height:e})),$
("#playerFacade").hide()};return{html:{success:function(e)
{this.conversionVersion=parseInt(e.version||2,10),this.slideSizes=e.sizes||
{},this.availableBgSizes=e.available_sizes||{};var t=e.error_scores||
{};this.algo=t.algo||"bad v1.0",this.errorScores=t.webkit||{};var i="\n.ssml_div
span {line-height:normal;} \n.ssml_div div {line-height:normal;}\n.ssml_div{font-
size:16px;}";"none"===this.config.render_links&&(i+="\n.ssml_div
a{cursor:default;}");var n="a.ssml_a {text-decoration:none;color:inherit;vertical-
align:top;} \n.ssml_div span {position:absolute; white-space:pre; vertical-
align:top;} \n.ssml_div div {position:absolute;}",r="<style>"+
(e.global_styles_css||n)+i+"</style>";$
(r).appendTo(this.currentComponentSet.container),e.pages_per_fontfile&&(this.FONT_B
ATCH_COUNT=e.pages_per_fontfile,this._initFontResources()),this.config.is_private?
this.getImagePrivateSignatures(this.availableBgSizes,"html"):this.postInitialize()}
,failure:e},imagefallback:{success:function(e)
{"none"===this.config.render_links&&(e.links={}),this.slidesCreated?
this.fallbackMetaHandler(e):this.fallbackMetaData=e},failure:function(){var
e,t,i,n,r,o=this.slideModes.image.length;for(e=0;e<o;e+
+)n=this.slideModes.image[e],r=this.slides[n],t=r.currentViewMode.width,i=r.current
ViewMode.height,r.displayError(this.generateErrorDom("slide_error_template",
{width:t,height:i}),!0)}},imageprimary:{success:function(e)
{this.conversionVersion=parseInt(e.version||2,10),this.slideSizes=e.sizes||
{},"none"===this.config.render_links&&(e.links={}),this.slideLinks=e.links||
{},this.realSlideCount,this.availableFallbackSizes=e.available_sizes,this.config.is
_private?
this.getImagePrivateSignatures(this.availableFallbackSizes,"image"):this.postInitia
lize()},failure:e}}},SSPlayerController.prototype.fallbackMetaHandler=function(e)
{var t,n,r,o=parseInt(e.version||2,10),s=e.sizes||{},a=e.available_sizes||
{},l=e.links||{},c=this.slideModes.image.length;for(i=0;i<c;i+
+)slideIndex=this.slideModes.image[i],n=s[slideIndex]||{},t=a[slideIndex],void
0===t&&(t={320:[75],768:
[75]},t[n.width]=[75]),r=this.slides[this.realIndexToIndex[slideIndex]],r.setConten
tDimensions(n.width||0,n.height||0),r.updateResource("image",{sizes:
{contentWidth:n.width||
0,availableSizes:t,conversionVersion:o,is_private:this.config.is_private},linkData:
l[slideIndex]||
[]});this.config.is_private&&this.getImagePrivateSignatures(a,"imagefb")},SSPlayerC
ontroller.prototype.postInitialize=function()
{this._initSlides(),this._activateComponentSet(this.currentViewMode),this._setModeF
orSlides(this.currentViewMode),this.setDimensions(),$
(this).trigger("playerinitialized");try{window.parent.infographic_campaign&&$.slide
shareEventManager.trigger("viewfullscreen")}catch(e)
{}},SSPlayerController.prototype.initVideoPlayer=function(e)
{this.multimediaResource=this.currentComponentSet.videobar,this.multimediaResource.
videoPlayer=jwplayer("videoSlideContainer_"+e),this._activateComponentSet(e),this.s
etDimensions(),$
("[id*=videoSlideContainer]").css("cursor","default")},SSPlayerController.prototype
._bindEvents=function(){var e=this;$(this).bind("playerinitialized",function()
{this.initialized=!0,e.play()}),this.config.preload_after_pageload&&$
(window).bind("load",function(){e.pageLoadFired=!
0}),this.config.touch||"video"===this.config.player_type||$
(document).bind("keyup",function(t){"INPUT"!==t.target.nodeName&&"TEXTAREA"!
==t.target.nodeName&&(37===t.keyCode&&(e.currentComponentSet.lastScreen&&e.currentC
omponentSet.lastScreen.destroy(),
$.slideshareEventManager.trigger("previous")),39===t.keyCode&&$.slideshareEventMana
ger.trigger("next"))}),this.isNativeFullScreenSupported&&$
(document).bind(this.nativeFullScreen.fullScreenChangeEventName(),function(t)
{e._nativeFullScreenHandler.call(e,t)})},SSPlayerController.prototype._bindComponen
tSetEvents=function(){var e=this,t=this.currentComponentSet;$
(t.slidedisplayer).bind("zoomchanged",function(t)
{if(e.repaint(),this.documentSlider)for(var i=1;i<e.slides.length&&"undefined"!
=typeof
e.slides[i].currentViewMode.imageElement;)e.currentComponentSet.slidedisplayer.slid
esContainer.width()!
==e.slides[i].currentViewMode.imageElement.width()&&e.slides[i].show(!0),i+
+})},SSPlayerController.prototype._createComponentSet=function(e)
{this.componentSets[e]={},this.currentComponentSet=this.componentSets[e],this.curre
ntViewMode=e;var t=this.currentComponentSet;if("normal"===e||
this.config.show_image_player){if(t.container=$("#"+this.config.container),1!
==t.container.length)throw"Unable to find container for
player"}else"fullscreen"===e&&(this.normalModeScrollPosition=$
(window).scrollTop(),t.container=$
("<div/>").addClass("jsplInpageFullScreen").appendTo($("body")),$("body,
html").css({overflow:"hidden"}));var
i=this._isFullScreen(e),n=this._getPlayerBgColor(e);t.navigators=[];var
r={renderTo:t.container,spinnerUrl:this.config.spinner_url,errorImageUrl:this.confi
g.error_image_url,mode:this.mode,slideCount:this.slideCount,playerType:this.config.
player_type,playerBgColor:n,hosted_in:this.config.hosted_in,show_image_player:this.
config.show_image_player};"html"===this.config.player_type&&(r.iframe_id=this.confi
g.iframe_id),this._isFullScreen(e)&&(r.spinnerUrl=this.config.spinner_url_fullscree
n),"document"===this.config.player_type?"undefined"!=typeof new_mobile_player?
t.slidedisplayer=new SSMobileDocumentDisplayer(r):t.slidedisplayer=new
SSDocumentDisplayer(r):"video"===this.config.player_type?
(this.videoSpecialSettings=this.getSpecialSettingsForVide
o(),r.videoBucket=this.config.video_bucket,r.pptLocation=this.config.ppt_location,r
.screenMode=e,r.videoSpinner=this.config.video_spinner_location,r.playerDomName=thi
s.config.container,r.videoExtension=this.config.video_extension,r.useDefaultToolbar
=this.videoSpecialSettings.defaultToolbar,r.ieAndLessThan8=this.videoSpecialSetting
s.ieLT8,r.swfLocation=this.config.swf_location,r.playIcon=this.config.video_play_ic
on,r.posterImage=this.config.poster_img_url,r.embedOnIe=this.isEmbedAndIE(),r.isEmb
ed="embed"===this.config.hosted_in,r.autoplayOnEmbed=this.config.autoplayOnEmbed,th
is.hasToolbar=!
this.videoSpecialSettings.defaultToolbar,r.isMobileDevice=this.config.touch,r.isMob
ileAndNonIos=this.config.touch&&!navigator.userAgent.match(/(iPhone|iPad|
iPod)/i),t.slidedisplayer=new
SSVideoDisplayer(r)):"infographic"===this.config.player_type?
(r.isMobileDevice=this.config.touch,t.slidedisplayer=new
SSInfographicDisplayer(r)):"html"===this.config.player_type?
(r.isMobileDevice=this.config.touch,t.slidedisplayer=new SSIframeDisplayer(r)):
(r.isTouch=this.config.touch,"undefined"!=typeof new_mobile_player?
t.slidedisplayer=new NewMobilePresentationDisplayer(r):t.slidedisplayer=new
SSPresentationDisplayer(r)),this.hasToolbar=!this.config.touch||"mobile_slideview"!
==this.config.hosted_in,t.navigators.push(t.slidedisplayer),this.setDimensions();va
r
o=this.currentComponentSet.width,s=this.currentComponentSet.height;if(this.config.s
hareScreenClass="",this.config.lastScreenClass="",this.config.showProLastScreen=!
0,"mobile_slideview"!==this.config.hosted_in&&(this.config.disable_share||
(this.config.shareScreenClass=this._getShareScreenClass(o,s)),"slideview"!
==this.config.hosted_in&&(this.config.lastScreenClass=this._getLastScreenClass(o,s)
),this.config.showProLastScreen=this.canShowProLastScreen(o,s)),this.config.touch)t
.touchInteraction=new
SSTouchInteraction({container:t.slidedisplayer.container,playerType:this.config.pla
yer_type,hostedIn:this.config.hosted_in}),t.navigators.push(t.touchInteraction);els
e if("presentation"===this.config.player_type&&!isMobile()){var
a="none"===this.config.render_links;t.bandInteraction=new
SSBandInteraction({container:t.slidedisplayer.container,width:t.width,linksDisabled
:a}),t.navigators.push(t.bandInteraction)}if(this.hasToolbar){var
l={width:t.width,height:this.TOOLBAR_HEIGHT,html:this.config.toolbar_html,renderTo:
t.container,totalSlideCount:this.slideCount,primaryResourceType:this.config.primary
ResourceType,disableShare:this.config.disable_share,disableFullScreen:this.config.d
isable_full_screen,enableViewSS:this.config.enable_viewSS,isFullScreen:i,playerType
:this.config.player_type,enableZoomButtons:"document"==this.config.player_type,show
_image_player:this.config.show_image_player,isEmbed:"slideview"!
==this.config.hosted_in,isFlagged:this.config.flagging&&this.config.flagging.is_fla
gged,player_type:this.config.player_type},c=this.config.player_type;if("infographic
"===c||"html"===c){var d={disableNav:!0,disableGoToSlide:!0,disableShare:!
1,enableViewSS:!0,enableZoomButtons:!1,disableFullScreen:!
1,disableLeaveFullScreen:!1,buttonOverrides:{btnLeaveFullScreen:"."+c+"_player a.j-
exit-fullscreen"},elementOverrides:{leaveFullScreen:"."+c+"_player a.exit-
fullscreen"}};if("slideview"==this.config.hosted_in){d.enableViewSS=!
1,d.disableFullScreen=!1,d.disableLeaveFullScreen=!1,d.enableZoomButtons=!1;var
h=d.buttonOverrides;h.btnFullScreen=".btnFullScreen",d.elementOverrides.fullScreen=
".btnFullScreen"}"slideshare"==this.config.hosted_in&&(d.enableViewSS=!1),
$.extend(l,d)}t.toolbar=new
SSToolbar(l),t.navigators.push(t.toolbar)}"video"===this.config.player_type&&(t.too
lbar||(t.toolbar=$("<div/>")),t.videobar=new
SSVideoBar({renderTo:t.toolbar.container,height:this.MULTIMEDIABAR_HEIGHT,html:this
.config.multimediabar_html,isMobileDevice:this.config.touch}),t.navigators.push(t.v
ideobar),this.multimediaResource=t.videobar),this.config.has_video&&(t.videoConfett
i=$("<img/>").attr({src:this.config.confetti_url}).css({position:"absolute",top:"-
1px",left:"-
1px"}).appendTo(t.container.find(".stage"))),this.config.disable_share||$(".j-
action-share").click(function(e){e.preventDefault(),e.stopPropagation(),
$.slideshareEventManager.trigger("playershare","share_btn_")}),"video"!
==this.mode&&this._bindComponentSetEvents()},SSPlayerController.prototype.configure
ComponentsForNativeMode=function(e){var
t=this.currentComponentSet;t.slidedisplayer.refresh({spinnerUrl:this.config.spinner
_url_fullscreen}),t.toolbar.config.isFullScreen=this._isFullScreen(e),t.toolbar._in
itForNativeFullScreen(e)},SSPlayerController.prototype._isFullScreen=function(e)
{return"fullscreen"===e||"nativefullscreen"===e||
this.config.is_fullscreen},SSPlayerController.prototype._getPlayerBgColor=function(
e){var t=this._isFullScreen(e),i="jsplBgColorBigfoot";return i=t?
this.config.fullscreen_bgcolor:this.config.player_bgcolor},SSPlayerController.proto
type._getShareScreenClass=function(e,t){var i=null;return e>360&&t>260?
i="normal":e>320&&t>250?
i="small":e>290&&t>280&&(i="tiny"),i},SSPlayerController.prototype.canShowProLastSc
reen=function(e,t){return!(e<337||
t<142)},SSPlayerController.prototype._getLastScreenClass=function(e,t){var
i="small";return e>=512&&t>=421?
i="medium":e>=427&&t>=356&&(i="normal"),i},SSPlayerController.prototype._destroyCom
ponentSet=function(e){var t=this.componentSets[e];$.each(t.navigators,function(e,t)
{t.destroy()}),delete this.componentSets[e].navigators,delete
this.componentSets[e].slidedisplayer,"fullscreen"===e&&(t.container.remove(),$
("body, html").css({overflow:"auto"}));var i;if(this.slides)for(var
n=1;n<=this.slideCount;n+
+)i=this.slides[n],i.viewModes[e].container.remove(),delete i.viewModes[e];delete
this.componentSets[e].container,delete
this.componentSets[e]},SSPlayerController.prototype._mapIndexes=function(){for(var
e=this.config.video_hash,t=1,i=this.slideCount,n={},r={},o=1;o<=i;o++)e&&e[o]?
n[o]=null:(n[o]=t,r[t]=o,t++);if(this.config.has_video){var
s=document.createElement("script"),a=this.config.use_ssl?"https://":"http://";s.src
=a+"www.youtube.com/player_api";var l=document.getElementsByTagName("script")
[0];l.parentNode.insertBefore(s,l)}this.indexToRealIndex=n,this.realIndexToIndex=r}
,SSPlayerController.prototype._percentageFailing=function(e){var t=0;for(var i in
this.errorScores)this.errorScores[i]>e&&t++;return 0===this.slideCount?
0:parseInt(100*(t/this.slideCount),10)},SSPlayerController.prototype._initSlides=fu
nction(){this.slides=[],this.slideModes.image=[],this.slideModes.html=[];var
e,t,i,n,r,o,s,a=!1,l=0,c=this.config.video_hash;this._mapIndexes();var
d=this.indexToRealIndex,h=this.AUTOVERIFICATION_ERROR_THRESHOLD,p=0,u=100,f=638,g=4
79;2===this.conversionVersion&&"undefined"!=typeof
this.AUTOVERIFICATION_THRESHOLDS[this.algo]&&(h=this.AUTOVERIFICATION_THRESHOLDS[th
is.algo],p=this._percentageFailing(h)),2===this.conversionVersion&&"undefined"!
=typeof
this.MAX_PERCENTAGE_FAILING[this.algo]&&(u=this.MAX_PERCENTAGE_FAILING[this.algo]);
for(e in d)if(d.hasOwnProperty(e)){e=parseInt(e,10),s=d[e],null===d[e]?
(o="ytube_video",l++):"iframe"===this.mode?
o="iframe":1===e&&this.config.image_ready?(o="image",a=!0):"html"!==this.mode||
this.config.image_ready?"image"===this.mode?
o="image":2===this.conversionVersion&&p>u?(o="image",a=!
0,this.disableLoadingFonts=!0):
(r=parseFloat(this.errorScores[e]),isNaN(r)&&(r=this.DEFAULT_ERROR_SCORE),r>h?
(o="image",a=!
0):o="html"):o="html",null===s&&(s=c[e].parent),i=this.slideSizes[s]||
{},"html"===o?
this.slideModes.html.push(s):"image"===o&&this.slideModes.image.push(s);var
m="all"===this.config.render_links;n={ssid:this.config.id,realIndex:s,index:e,type:
this.mode,linkOffset:l,slideMode:o,indexGenerator:this._getIndexString,contentWidth
:parseInt(i.width,10)||f,contentHeight:parseInt(i.height,10)||
g,playerWidth:this.currentComponentSet.width,errorImageUrl:this.config.error_image_
url,spinnerUrl:this.config.spinner_url,spinnerUrlFullscreen:this.config.spinner_url
_fullscreen,playerType:this.config.player_type,stripped_title:this.config.stripped_
title,timestamp:this.config.timestamp,ppt_location:this.config.ppt_location,is_priv
ate:this.config.is_private,is_render_all_links:m,hosted_in:this.config.hosted_in,sh
ow_image_player:this.config.show_image_player,isStartSlide:this.config.start_slide=
==e},"html"===o?
(n.bucketLocation=this.config.bucket_location,n.availableSizes=this.availableBgSize
s[s]):"image"===o?
(n.bucketLocation=this.config.image_bucket_location,n.availableSizes=this.config.di
sable_meta?{1024:
[95]}:this.availableFallbackSizes[s]):"iframe"===o&&(n.html_location=this.config.ht
ml_location,n.iframe_id=this.config.iframe_id),this.config.is_private&&("html"==o?
(this.htmlResourceSignatures&&this.htmlResourceSignatures[s]&&(n.htmlResourceSignat
ure=this.htmlResourceSignatures[s].url),n.privateImageSignatures=this.privateImageS
ignatures[s]):"image"==o&&this.privateFallBackImageSignatures&&(n.privateImageSigna
tures=this.privateFallBackImageSignatures[s])),"document"===this.config.player_type
?t="undefined"!=typeof new_mobile_player?new MobileDocumentSlide(n):new
SSDocumentSlide(n):"infographic"===this.config.player_type?t=new
SSInfographicSlide(n):"html"===this.config.player_type?t=new
SSIframeSlide(n):"ytube_video"!==o?t="undefined"!=typeof new_mobile_player?new
SlideshareMobileSlide(n):new SSPresentationSlide(n):
(n.video_id=c[e].video_id,n.current_video_count=l,n.loading_message_partial=this.co
nfig.loading_message_partial,1===e&&(n.contentWidth=728,n.contentHeight=542),t=new
SSVideoEmbedSlide(n)),"image"===this.mode&&void 0!
==this.slideLinks[s]&&t.updateResource("image",{linkData:this.slideLinks[s]||
{}}),this.slides[e]=t,delete this.availableFallbackSizes[s]}a===!
0&&(this.slidesCreated=!
0,this.fallbackMetaData&&this.fallbackMetaHandler(this.fallbackMetaData))},SSPlayer
Controller.prototype._getIndexString=function(e,t){var
i,n=""+e,r=n.length;for(i=0;i<t-r;i++)n="0"+n;return
n},SSPlayerController.prototype._getContainerSize=function()
{this.currentComponentSet.width=this.currentCompone
ntSet.container.width(),this.currentComponentSet.height=this.currentComponentSet.co
ntainer.height()},SSPlayerController.prototype.setDimensions=function(e,t){var
i=this.currentComponentSet;if(this._getContainerSize(),e=e||!
1,i.viewHeight=i.height,this.hasToolbar&&(i.viewHeight-
=this.TOOLBAR_HEIGHT),i.slidedisplayer.setDimensions({width:i.width,height:i.viewHe
ight,partial:e}),!e){var
n={height:i.viewHeight,width:i.width},r=this.currentComponentSet;
$.each(["toolbar","videobar","leadcta","shareScreen","lastScreen"],function(e,i)
{r[i]&&"function"==typeof
r[i].setDimensions&&r[i].setDimensions(n,t)})}},SSPlayerController.prototype.getSpe
cialSettingsForVideo=function(){var
e=navigator.userAgent.toLowerCase(),t=(/mozilla/.test(e)&&!/(compatible|webkit|
trident)/.test(e),/msie/.test(e)&&!/opera/.test(e)&&document.documentMode&&document
.documentMode<8),i={ieLT8:t},n=!1;return"video"===this.config.player_type?
t&&this.isEmbedAndIE()&&(n=!0):n=!
1,i.defaultToolbar=n,i},SSPlayerController.prototype.repaint=function(e){var
t=navigator.userAgent.toLowerCase(),i=/msie/.test(t)&&!/opera/.test(t);if(!(void
0===this.currentComponentSet.slidedisplayer||"video"===this.config.player_type&&i&&
this.currentComponentSet.videobar.fullscreen)){if(this.setDimensions(!
0),this.setDimensions(!1,e),this._repaintPrerenderedSlides(),this.config.has_video)
{var n=this;setTimeout(function()
{n.resizeVideoEmbeds()},250)}this.config.show_image_player||
this.currentComponentSet.slidedisplayer._scrollTo(this.currentPosition)}},SSPlayerC
ontroller.prototype._repaintPrerenderedSlides=function(){var
e,t=this.currentComponentSet.slidedisplayer.prerenderedSlides;if(t&&t.length>0){var
i;for(i=0;i<t.length;i++)e=t[i],this.slides[e].show(!
0)}},SSPlayerController.prototype.updateCurrentPosition=function(e)
{if(this.slides&&void 0!==this.slides[e])
{if(this.config.show_image_player&&(this.currentComponentSet.slidedisplayer.current
Position=e),"video"===this.config.player_type)return;var
t=this.currentComponentSet.toolbar;t&&t.updateCurrentPosition(e),
this.multimediaResource,this.currentPosition=e,this.slides[e].painted=!
0,t.updateProgressBar()}},SSPlayerController.prototype.displayLastScreen=function()
{var e=this;if("video"!==this.config.player_type||!
this.currentComponentSet.videobar.fullscreen){"undefined"==typeof
this.currentComponentSet.lastScreen&&(this.config.is_only_private||
this.config.disable_lastscreen&&!this.config.showProLastScreen||
this.config.show_replay_screen?this.currentComponentSet.lastScreen=new
SSReplayScreen({renderTo:this.currentComponentSet.container,settings:this.config.re
playscreen}):("undefined"==typeof
this.currentComponentSet.lastScreen&&(this.currentComponentSet.lastScreen=this._get
ShareScreen()),this.currentComponentSet.lastScreen=this.currentComponentSet.shareSc
reen),$(this.currentComponentSet.lastScreen).bind("gotofirstslide",function(){$
(e).trigger("gotofirstslide")}));var
t=this.currentComponentSet;t.viewHeight=t.height,this.hasToolbar&&(t.viewHeight-
=this.TOOLBAR_HEIGHT),this.currentComponentSet.lastScreen.show({width:t.width,heigh
t:t.viewHeight},this._isFullScreen(this.currentViewMode)),this.currentComponentSet.
lastScreen.isProLastScreen?
$.slideshareEventManager.trackEvent("proLastscreen_shown"):
$.slideshareEventManager.trackEvent("lastscreen_shown")}},SSPlayerController.protot
ype.hideLastScreen=function()
{this.currentComponentSet.lastScreen&&this.currentComponentSet.lastScreen.isVisible
&&this.currentComponentSet.lastScreen.hide()},SSPlayerController.prototype.hideShar
eScreen=function()
{this.currentComponentSet.shareScreen&&this.currentComponentSet.shareScreen.isVisib
le&&this.currentComponentSet.shareScreen.hide()},SSPlayerController.prototype.displ
ayShareScreen=function(e){var t=e.gaCategory;t||(t="lastscreen_v1_"),
$.slideshareEventManager.trackEvent(t+"share_cta_click"),this._getShareScreen(),thi
s.currentComponentSet.shareScreen.showShareScreen({width:this.currentComponentSet.w
idth,height:this.currentComponentSet.viewHeight,customizations:e.customizations}),t
his.currentComponentSet.shareScreen.modalShare?
this.currentComponentSet.shareScreen.modalShare.gaCategory=t:this.currentComponentS
et.shareScreen.modalShare=new PlayerModalShare({btnShare:".action-btns-container
.action-btn.share",parentEl:".lastScreenContainer
.lastScreen",el:".lastScreenContainer .lastScreen .modal-
share",gaCategory:t,authorId:this.config.author_id,isEmbed:this.isEmbed},this.curre
ntComponentSet.shareScreen),this.currentComponentSet.shareScreen.modalShare.updateE
mbed()},SSPlayerController.prototype.updateEmbedSizes=function(){var
e=this.config.embed_sizes,t=this.slideAspectRatio;if("infographic"===this.config.pl
ayer_type&&e&&t){for(var i in
e.presets)e.presets.hasOwnProperty(i)&&(preset=e.presets[i],preset.size.height=pars
eInt(preset.size.width*t+49,10));this.currentComponentSet&&this.currentComponentSet
.shareScreen&&this.currentComponentSet.shareScreen.populateEmbedSizes()}},SSPlayerC
ontroller.prototype._getShareScreen=function(){return"undefined"==typeof
this.currentComponentSet.shareScreen&&(this.currentComponentSet.shareScreen=new
SSLastScreen({renderTo:this.currentComponentSet.container,settings:this.config.last
screen,slideshowId:this.config.id,embed_code:this.config.embed_code,iframe_url:this
.config.iframe_url,iframe_code:this.config.iframe_code,embed_sizes:this.config.embe
d_sizes,wp_code:this.config.wp_code,lastScreenClass:this.config.lastScreenClass,dis
ableRelated:this.config.disable_lastscreen,disableShare:this.config.disable_share,s
hareOptions:this.config.shareoptions,hostedIn:this.config.hosted_in,totalSlides:thi
s.slideCount})),this.currentComponentSet.shareScreen},SSPlayerController.prototype.
loadFonts=function(e){"html"===this.mode&&this.disableLoadingFonts!==!
0&&"initialized"===this.fontResources[e].status&&this.fontResources[e].load()},SSPl
ayerController.prototype.getPrerenderSlideIndices=function(e,t){var i=e-
this.PRERENDER_COUNT;i<1&&(i=1);var n=e+this.PRERENDER_COUNT;return
n>this.slideCount&&(n=this.slideCount),
[i,n]},SSPlayerController.prototype._load=function(e,t){var
i=navigator.userAgent.toLowerCase(),n=/msie/.test(i)&&!/opera/.test(i);if("video"!
==this.config.player_type){e=e||this.config.start_slide;var
r,o,s=this;if(this.loadFonts(Math.ceil(e/this.FONT_BATCH_COUNT)),!t){var
a=this.getPrerenderSlideIndices(e,t),l=a[0],c=a[1];for(r=l;r<=c;r+
+)this.config.show_image_player&&this.slides[r].render(),this.slides[r].show(),this
.loadedSlides[r]=!0;if((n||"function"==typeof isIos&&isIos())&&"undefined"==typeof
new_mobile_player){var
d,h=this.currentComponentSet.slidedisplayer.prerenderedSlides;if(h)for(r=0;r<h.leng
th;r++)d=h[r],(d<l||
d>c)&&(o=this.slides[d],o.hide());this.currentComponentSet.slidedisplayer.prerender
edSlides=[]}this.currentComponentSet.slidedisplayer.setPrerenderedSlides({start:l,e
nd:c})}if(!this.config.disable_eagerload||e!==this.config.start_slide){var
p=this.preloadAnchorIndex;this.preloadAnchorIndex=e;var u=function()
{s.preloadSlides()};this.config.preload_after_pageload&&!this.pageLoadFired?p||$
(window).bind("load",u):
(clearTimeout(this.preloadTimeoutId),this.preloadTimeoutId=setTimeout(u,2e3))}}},SS
PlayerController.prototype.preloadSlides=function(){if(this.preloadAnchorIndex){var
e=this.PRELOAD_PRE_LIMIT+this.PRELOAD_POST_LIMIT+1,t=this.preloadAnchorIndex-
this.PRELOAD_PRE_LIMIT;t<1&&(t=1);var n=t+e-
1;n>this.slideCount&&(n=this.slideCount);var
r=Math.ceil(t/this.FONT_BATCH_COUNT),o=Math.ceil(n/this.FONT_BATCH_COUNT);for(i=r;i
<=o;i++)this.loadFonts(i);for(i=t;i<=n;i++)this.loadedSlides[i]||
(slide=this.slides[i],this.config.show_image_player&&slide.render(),slide.load(),th
is.loadedSlides[i]=!0);delete
this.preloadAnchorIndex}},SSPlayerController.prototype.preloadMoreIfIdle=function(e
){if(!this.config.disable_eagerload){var t=this.loadingSlides,i=t.indexOf(e);if(i>-
1&&t.splice(i,1),!this.preloadAnchorIndex&&t.length<2){var
n=this.loadedSlides.length+1;if(n>this.realSlideCount)return;var
r=this;setTimeout(function(){r._load(n,!
0)},0)}}},SSPlayerController.prototype.play=function(e,t,i,n){if(!
this.initialized)return void(this.playQueue=e||1);if(void 0===e&&("undefined"!
=typeof this.playQueue?(e=this.playQueue,delete
this.playQueue):e=1),e<1&&(e=1),e>this.slideCount&&(e=this.slideCount),this.current
Position!==e||t){if("video"===this.config.player_type)return void
this.currentComponentSet.slidedisplayer.start();n&&n.updateBamboo&&this.config.bamb
ooleaf_enabled&&this.updateBambooProperties({index:e}),
$.slideshareEventManager.trigger("slidechanged",
{index:e,force:t,source:i})}},SSPlayerController.prototype.updateBambooProperties=f
unction(e){var t,i=e.index<this.slideCount?e.index+1:1,n=e.index>1?e.index-
1:1;for(t in this.componentSets){var
r=this.componentSets[t];r&&r.toolbar&&r.toolbar.updateBamboo({nextInd:i,prevInd:n,n
extHref:this.config.rel_slide_urls[i-1],prevHref:this.config.rel_slide_urls[n-
1],nextTitle:this.config.slide_titles[i-1],prevTitle:this.config.slide_titles[n-
1]})}},SSPlayerController.prototype._enableVideoReloading=function(){var
e=this.slides;for(var t in
e)e.hasOwnProperty(t)&&e[t]&&"ytube_video"===e[t].config.slideMode&&e[t].emptySlide
()},SSPlayerController.prototype.switchNativeView=function(e)
{if("nativefullscreen"===e){var
t=this.currentComponentSet.container;t.length&&this.nativeFullScreen.request(t[0])}
else this.nativeFullScreen.cancel();void
0===this.componentSets[e]&&(this.componentSets[e]=this.componentSets[this.currentVi
ewMode]),this.currentComponentSet=this.componentSets[e],this.currentViewMode=e,this
.currentComponentSet.slidedisplayer.emptySlides(),this.configureComponentsForNative
Mode(e),this._setModeForSlides(e),this._load(this.currentPosition),this.updateCurre
ntPosition(this.currentPosition)},SSPlayerController.prototype._nativeFullScreenHan
dler=function(e,t){var i=this;this.nativeFullScreen.isFullScreen()?
this.currentViewMode="nativefullscreen":
$.slideshareEventManager.trigger("leavefullscreen"),window.setTimeout(function()
{i.repaint.call(i)},500)},SSPlayerController.prototype.nativeFullScreen={request:fu
nction(e){if(document.webkitFullscreenEnabled){var
t=/safari/.test(navigator.userAgent.toLowerCase())&&!/chrome/.test(navigator.userAg
ent.toLowerCase());Element&&Element.ALLOW_KEYBOARD_INPUT&&!t?
e.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):e.webkitRequestFullScreen()
}else document.mozFullScreenEnabled&&e.mozRequestFullScreen()},cancel:function()
{document.webkitFullscreenEnabled?
document.webkitCancelFullScreen():document.mozFullScreenEnabled&&document.mozCancel
FullScreen()},fullScreenChangeEventName:function(){return
document.webkitFullscreenEnabled?"webkitfullscreenchange":document.mozFullScreenEna
bled?"mozfullscreenchange":void 0},isFullScreen:function(){return
document.webkitIsFullScreen||
document.mozFullScreen}},SSPlayerController.prototype._isNativeFullScreenSupported=
function(){var
e=navigator.userAgent.toLowerCase(),t=(navigator.appName.toLowerCase(),document.web
kitFullscreenEnabled||
document.mozFullScreenEnabled),i=/chrome/.test(e)||/firefox/.test(e)||/safari/.test
(e);return t&&i},SSPlayerController.prototype.leaveFullScreen=function()
{if(this.currentComponentSet.container.removeClass("fullscreen"),this.currentCompon
entSet.videobar&&this.currentComponentSet.slidedisplayer.adjustSpinnerPosition(!
1),this.currentComponentSet.lastscreen&&this.currentComponentSet.lastscreen.hide(),
"nativefullscreen"===this.currentViewMode&&this.isNativeFullScreenSupported)this.sw
itchNativeView("normal");else if(isIEAllVersion)try{window.close()}catch(e)
{}else"video"===this.config.player_type?
this.returnFromFullscreenForVideo():this.config.inpage_full_screen&&this.switchView
("normal")},SSPlayerController.prototype.switchToFullScreen=function()
{"video"===this.config.player_type?
(this.currentComponentSet.container.addClass("fullscreen"),this.goHtmlFullscreenFor
Video()):this.config.inpage_full_screen&&(this.currentComponentSet.container.addCla
ss("fullscreen"),this.switchView("fullscreen"))},SSPlayerController.prototype.switc
hView=function(e){return
this.config.show_image_player?("fullscreen"===e?
(this.currentViewMode="nativefullscreen",this.currentComponentSet.container.addClas
s("non-native-
fullscreen")):"normal"===e&&(this.currentViewMode="normal",this.currentComponentSet
.container.removeClass("non-native-
fullscreen"),this.switchNativeView(this.currentViewMode)),this.configureComponentsF
orNativeMode(e),this.repaint(),void $(window).trigger("resize")):void(e!
==this.currentViewMode&&(this.config.has_video&&(this._enableVideoReloading(),$
("[id*=ytube_player]").remove()),this._deactivateComponentSet(this.currentViewMode)
,void
0===this.componentSets[e]&&this._createComponentSet(e),this._activateComponentSet(e
),this._setModeForSlides(e),this.setDimensions(),this.play(this.currentPosition,!
0),this._load(this.currentPosition),this.updateCurrentPosition(this.currentPosition
)))},SSPlayerController.prototype._activateComponentSet=function(e){var
t=this.componentSets[e],i=t.navigators;this.currentComponentSet=t,this.currentViewM
ode=e,$.each(i,function(e,t){t.activate()}),"fullscreen"===e||
this.config.is_fullscreen?($(document).bind("keyup",this.exitFullScreenHandler),$
(window).scrollTop(0)):($
(document).unbind("keyup",this.exitFullScreenHandler),this.normalModeScrollPosition
&&$
(window).scrollTop(this.normalModeScrollPosition))},SSPlayerController.prototype.ex
itFullScreenHandlerFactory=function(){return function(e)
{if(27===e.keyCode)try{$.slideshareEventManager.trigger("leavefullscreen")}catch(t)
{}}},SSPlayerController.prototype._deactivateComponentSet=function(e){var
t=this.componentSets[e],i=t.navigators;$.each(i,function(e,t)
{t.deactivate()}),"fullscreen"===e&&this._destroyComponentSet("fullscreen"),this.cu
rrentComponentSet=null,this.currentViewMode=null},SSPlayerController.prototype._set
ModeForSlides=function(e){"video"!
==this.config.player_type&&this.currentComponentSet.slidedisplayer.start({slides:th
is.slides,mode:e,playerBgColor:this._getPlayerBgColor(e)}),this.currentComponentSet
.slidedisplayer._bindEvents()},SSPlayerController.prototype.getFullScreenUrl=functi
on(){return this.config.fullscreen_url?
this.config.fullscreen_url+"/"+this.currentPosition:document.location},SSPlayerCont
roller.prototype.generateErrorDom=function(e,t){var
i=e+"_"+t.width+"_"+t.height,n=this.cachedDomElements[i];if(void 0===n){var
r=t.width,o=t.height,s=o/3;s=s>r/4?r/4:s;var
a=parseInt(s/20,10),l=14,c="document"===this.config.player_type?4:2,d=(o-
s)/c,h=r/25,p=s-l;n=$(this.config[e]),n.css({height:o-d,padding:d+"px "+l+"px
0"});var u=n.children("div");u.css({"-moz-border-radius":a,"-webkit-border-
radius":a,"-o-border-radius":a,"-ms-border-radius":a,"border-
radius":a,height:s}),u.children("img").css({margin:l/2,height:p,width:p}),u.childre
n("div").css({left:p+l,padding:l+"px 0 0 "+l/2+"px","font-
size":h}),this.cachedDomElements[i]=n}return $
(n).clone()},SSPlayerController.prototype.goHtmlFullscreenForVideo=function()
{this.currentComponentSet.slidedisplayer.container.addClass("inPageFullscreen");var
e=this.multimediaResource.videoPlayer,t=$(e.getContainer()),i=$
(t.parent());this.normalPosition=t.css("position"),this.normalZindex=t.css("z-
index"),this.normalLeft=t.css("left"),this.normalTop=t.css("top"),this.normalPlayer
Width=i.width(),this.normalPlayerHeight=i.height(),this.toolbarPaddingLeft=parseInt
($(".toolbar").css("padding-left"),10),this.toolbarPadingRight=parseInt($
(".toolbar").css("padding-right"),10),this.fullscreenHeight=$(window).height()-
this.TOOLBAR_HEIGHT,this.fullscreenWidth=$(window).width();var
n=this;i.css({position:"fixed",width:"100%",height:"100%",left:0,top:0,"z-
index":this.VIDEO_FULLSCREEN_ZINDEX}),e.resize(this.fullscreenWidth,this.fullscreen
Height),this.normalPlayerContainer=this.currentComponentSet.container,this.currentC
omponentSet.container=i,$(this.currentComponentSet.toolbar.container).css({"z-
index":this.VIDEO_FULLSCREEN_ZINDEX,width:n.fullscreenWidth-
(n.toolbarPaddingLeft+n.toolbarPadingRight),position:"fixed",left:0,bottom:0}),$
(this.currentComponentSet.toolbar.volumeControl.container).css({"z-
index":this.VIDEO_FULLSCREEN_ZINDEX,position:"fixed",bottom:0}),$
(this.currentComponentSet.videobar.container).css({"z-
index":this.VIDEO_FULLSCREEN_ZINDEX,width:"100%",position:"relative",left:0,bottom:
0}),this.currentComponentSet.videobar.setDimensions({height:n.fullscreenHeight,widt
h:n.fullscreenWidth,fullscreen:!0});var
r=this.currentComponentSet.toolbar.getElements();r.fullScreen.hide(),r.leaveFullScr
een.show(),e.fullscreen=!0,setTimeout(function(){"PLAYING"===e.getState()&&e.play(!
0)},this.VIDEO_REINITIALISE_TIME),this.currentViewMode="fullscreen"},SSPlayerContro
ller.prototype.returnFromFullscreenForVideo=function()
{this.currentComponentSet.slidedisplayer.container.removeClass("inPageFullscreen");
var e=this.multimediaResource.videoPlayer,t=$(e.getContainer()),i=$
(t.parent()),n=this;i.css({position:"relative",height:n.normalPlayerHeight,width:n.
normalPlayerWidth,"z-
index":n.normalZindex,left:n.normalLeft,top:n.normalTop}),e.resize(this.normalPlaye
rWidth,this.normalPlayerHeight),this.currentComponentSet.container=this.normalPlaye
rContainer;var
r=this.currentComponentSet.toolbar.getElements();r.leaveFullScreen.hide(),r.fullScr
een.show();var o=$
(this.currentComponentSet.toolbar.container);o.css({position:"relative",height:n.TO
OLBAR_HEIGHT,width:n.normalPlayerWidth-
(n.toolbarPaddingLeft+n.toolbarPadingRight),"z-
index":n.normalZindex,left:n.normalLeft,top:n.normalTop,bottom:0}),$
(this.currentComponentSet.toolbar.volumeControl.container).css({position:"relative"
,"z-index":n.normalZindex}),$
(this.currentComponentSet.videobar.container).css({position:"relative",height:n.MUL
TIMEDIABAR_HEIGHT,width:n.normalPlayerWidth,"z-
index":n.normalZindex}),this.currentComponentSet.videobar.setDimensions({height:thi
s.normalPlayerHeight,width:this.normalPlayerWidth}),e.fullscreen=!
1,setTimeout(function(){"PLAYING"===e.getState()&&e.play(!
0)},this.VIDEO_REINITIALISE_TIME),this.currentViewMode="normal"},SSPlayerController
.prototype.isEmbedAndIE=function(){return isIEAllVersion&&"slideview"!
==this.config.hosted_in},SSPlayerController.prototype.deactivateToolbar=function()
{this.currentComponentSet.toolbar.deactivate()},SSPlayerController.prototype.activa
teToolbar=function()
{this.currentComponentSet.toolbar.activate()},SSPlayerController.prototype.isToolba
rActive=function(){return
this.currentComponentSet.toolbar.active},SSPlayerController.prototype.resizeVideoEm
beds=function()
{if(this.currentComponentSet&&this.currentComponentSet.slidedisplayer&&this.current
ComponentSet.slidedisplayer.container){var
e=this.currentComponentSet.slidedisplayer.container,t=e.find(".ytube-
container");t.length>0&&t.height(e.height())}},SSPlayerController.prototype.isValid
NextSlideshowExperiment=function(){return
this.config.next_prev_experiment&&"presentation"===this.config.player_type},SSPlaye
rController.prototype.showNextSlideshowCTA=function(){var
e=this;if(this.isValidNextSlideshowExperiment()&&$(".j-related-item
a:visible").length&&!$(".j-next-container").is(":visible")){var t=$(".j-related-
item
a:visible").first(),i={id:t.data("ssid")||"0",thumb:t.find("img").attr("src")||"",t
itle:t.attr("title")||"",url:t.attr("href")||"#"};this.config.nextSlideshow=i;var
n=this.currentComponentSet.container,r=n.find(".j-next-container"),o=r.find(".j-
timer-count"),s=2,a=function(){0===s&&(clearInterval(e.countDown),
$.slideshareEventManager.trackEvent("next_slideshow_cta_loaded"),e.goToNextSlidesho
w()),s>=0&&(o.html(s),s--)};r.find(".j-next-url").on("click",function()
{$.slideshareEventManager.trackEvent("next_slideshow_cta_loaded"),e.goToNextSlidesh
ow()}),r.find(".j-next-cancel").on("click",function(){e.hideNextSlideshowCTA()}),$
(".ssActions .j-tooltip").bind("click.cancel_next_slideshow",function()
{e.hideNextSlideshowCTA()}),r.length&&(r.find(".j-next-
thumb").attr({alt:i.title,src:i.thumb}),r.find(".j-next-
title").html(i.title),o.html(s+1),r.addClass("active"),this.countDown=setInterval(a
,1e3),$.slideshareEventManager.trackEvent("next_slideshow_cta_opened"),$
(document).bind("keyup.next_slideshow",
$.proxy(e.nextSlideshowKeypressHandler,e)))}},SSPlayerController.prototype.nextSlid
eshowKeypressHandler=function(e)
{27===e.keyCode&&this.hideNextSlideshowCTA(),13===e.keyCode&&($.slideshareEventMana
ger.trackEvent("next_slideshow_cta_loaded"),this.goToNextSlideshow())},SSPlayerCont
roller.prototype.goToNextSlideshow=function()
{$.slideshareEventManager.trigger("updateNextSlideshowCookie",this.config.nextSlide
show.id),window.location.origin||
(window.location.origin=window.location.protocol+"//"+window.location.hostname+
(window.location.port?":"+window.location.port:""));var
e=this.config.next_slideshow_pos?
parseInt(this.config.next_slideshow_pos,10)+1:1,t=window.location.origin+this.confi
g.nextSlideshow.url+"?
next_slideshow="+e;window.location.href=t},SSPlayerController.prototype.hideNextSli
deshowCTA=function(){if($(".j-next-container").is(":visible"))
{$.slideshareEventManager.trackEvent("next_slideshow_cta_closed"),clearInterval(thi
s.countDown);var e=this.currentComponentSet.container,t=e.find(".j-next-
container");t.removeClass("active"),$(document).unbind("keyup.next_slideshow"),$
(".ssActions .j-tooltip").unbind("click.cancel_next_slideshow"),t.find(".j-next-
url, .j-next-
cancel").unbind("click")}},SSPlayerController.prototype.updateProgressBar=function(
){if(0!==this.$slidesLoadedBar.length){var
e=this.currentPosition/this.slideCount*100;this.
$slidesLoadedBar.width(e+"%")}},window.Modernizr=function(e,t,i){function n(e,t)
{for(var n in e)if(f[e[n]]!==i)return"pfx"!=t||e[n];return!1}function r(e,t){return
typeof e===t}function o(e){f.cssText=e}var
s,a,l,c="2.0.6",d={},h=t.documentElement,p=(t.head||t.getElementsByTagName("head")
[0],"modernizr"),u=t.createElement(p),f=u.style,g=(Object.prototype.toString,"
-webkit- -moz- -o- -ms- -khtml- ".split(" ")),m={},S=[],v=function(e,i,n,r){var
o,s,a,l=t.createElement("div");if(parseInt(n,10))for(;n--;)a=t.createElement("div")
,a.id=r?r[n]:p+(n+1),l.appendChild(a);return

o=["&shy;","<style>",e,"</style>"].join(""),l.id=p,l.innerHTML+=o,h.appendChild(l),
s=i(l,e),l.parentNode.removeChild(l),!!s},b={}.hasOwnProperty;l=r(b,i)||
r(b.call,i)?function(e,t){return t in
e&&r(e.constructor.prototype[t],i)}:function(e,t){return b.call(e,t)},function(i,n)
{var r=i.join(""),o=n.length;v(r,function(i,n){for(var
r=t.styleSheets[t.styleSheets.length-1],s=(r.cssRules&&r.cssRules[0]?
r.cssRules[0].cssText:r.cssText||"",i.childNodes),a={};o--;)a[s[o].id]=s[o];d.touch
="ontouchstart"in e||9===a.touch.offsetTop},o,n)}([,["@media (",g.join("touch-
enabled),("),p,")","{#touch{top:9px;position:absolute}}"].join("")],
[,"touch"]),m.touch=function(){return d.touch},m.csstransforms=function(){return!!
n(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"]
)};for(var y in m)l(m,y)&&(a=y.toLowerCase(),d[a]=m[y](),S.push((d[a]?"":"no-")
+a));return o(""),u=s=null,d._version=c,d._prefixes=g,d.testProp=function(e){return
n([e])},d.testStyles=v,d}(this,this.document);var isMobile=function(){var
e=navigator.userAgent.match(/iPhone|iPad|iPod|Android|BlackBerry|IEMobile|webOS|
Mobile|Windows Phone/i);return e},isIEAllVersion=function(){var
e=navigator.userAgent.toLowerCase(),t=navigator.appName.toLowerCase();return/msie/.
test(e)&&!/opera/.test(e)||/trident/.test(e)&&"netscape"===t}
();Array.prototype.indexOf||(Array.prototype.indexOf=function(e){"use
strict";if(null==this)throw new TypeError;var
t=Object(this),i=t.length>>>0;if(0===i)return-1;var
n=0;if(arguments.length>0&&(n=Number(arguments[1]),n!=n?n=0:0!=n&&n!=1/0&&n!=-
(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=i)return-1;for(var r=n>=0?
n:Math.max(i-Math.abs(n),0);r<i;r++)if(r in t&&t[r]===e)return r;return-
1}),SSPlayer.prototype._init=function(){var
e=isMobile();this.config.touch=e&&(Modernizr.touch||"Windows Phone"==e)&&!
cookie("nomobile"),$.slideshareEventManager.registerPlayer(this),"undefined"!
=typeof new_mobile_player?this.controller=new
MobileNewPlayerController(this.config):this.controller=new
SSPlayerController(this.config),this.$playerContainer=$(this.config.container);var
t=this,i=function(){if(t.config.show_image_player){var n=$(".stage"),r=$
("#svPlayerId"),o=$
(".slide_container");if("presentation"===t.config.player_type||"webinar"===t.config
.player_type){var
s=t.controller.currentPosition,a="ytube_video"===t.controller.slides[s].config.slid
eMode;if(n.css("height","auto"),n.css("max-height","none"),n.css("line-
height","normal"),n.removeClass("valign-first-slide"),a){if("undefined"==typeof
t.referenceSlideIndex)for(var l=t.controller.slides,c=1;c<=l.length;c++){var
d=l[c];if("ytube_video"!==d.config.slideMode)
{t.referenceSlideIndex=d.index;break}}t.controller.currentComponentSet.slidedisplay
er._scrollTo(t.referenceSlideIndex)}var
h;h="slideview"===t.config.hosted_in&&"normal"===t.controller.currentViewMode?
o.find(".slide_image").height():"slideview"!==t.config.hosted_in&&"embed"!
==t.config.hosted_in||"nativefullscreen"!
==t.controller.currentViewMode?"embed"===t.config.hosted_in&&"normal"===t.controlle
r.currentViewMode?window.innerHeight-$
(".toolbar").height():n.height():window.innerHeight;var p=$.map(r.find(".j-player-
toolbar"),function(e){return $(e).height()}).reduce(function(e,t){return
e+t},0),u=$(".j-clips-toolbar"),f=u.is(":visible")?u.height():0,g=$
(".embed_player .stage");g.length&&($(".embed_player .stage").css("top",f),h-
=f),n.css("height",h),n.css("max-height",h),n.css("line-height",h+"px");var
m=100;"slideview"!==t.config.hosted_in||t.setMinHeight||(n.css("min-
height",m),r.css("min-height",m+p),t.setMinHeight=!0),t.controller.setDimensions(!
1,t.config.touch),a&&(t.controller.currentComponentSet.slidedisplayer._scrollTo(s),
t.controller.resizeVideoEmbeds());var S="#"+t.controller.config.container,v=$
(S+" .slide").eq(s-1).children(".slide_image");if("undefined"!=typeof
v&&"undefined"!=typeof v[0]){var
b=n.width()/n.height(),y=v.naturalWidth()/v.naturalHeight();b>y?
(o.removeClass("wide_img"),o.addClass("tall_img")):
(o.removeClass("tall_img"),o.addClass("wide_img"))}}}else
$.slideshareEventManager.trigger("repaint",
{mobile:t.config.touch});e&&"document"===t.config.player_type&&($
(window).unbind("resize",i),setTimeout(function(){$
(window).bind("resize",i)},1e3))};"undefined"==typeof new_mobile_player&&$
(window).bind("load resize",i)},SSPlayer.prototype.play=function(e){e=e||
1,this.controller.play(e)},SSPlayer.prototype.goToSlide=function(e)
{$.slideshareEventManager.trigger("gotoslide",e)},SSPlayer.prototype.gotoCurrent=fu
nction(){this.controller.play(this.controller.currentPosition,!0)},function(e)
{function t(){this._trackingUtils=new
r,this._appId=this._trackingUtils.getAppId(o),this._eventBodyDefaults={requestHeade
r:
{pageKey:this._trackingUtils.getPageKey(),path:e.document.location.pathname}},this.
_impressionQueue=[],this.lastLinkImpressionInfo={}}var
i=e.slideshare_object,n=i.utils,r=i.utils.imports("tracking.TrackingUtils"),o="lead
s",s={SlideShareLinkImpressionEvent:"SlideShareLinkImpressionEvent",SlideShareLinkC
lickEvent:"SlideShareLinkClickEvent"},a={SlideIndex:"data-
slideIndex",LinkIndex:"data-linkIndex"};t.prototype={constructor:t,LINK_TYPE:
{Organic:"ORGANIC",OverlaidCTA:"OVERLAID_CTA"},registerLinksMetadata:function(e)
{this.linksMetadata=e,this.flushImpressionQueue()},trackLinkImpressionEvent:functio
n(e,t,n){var
r,o,a,l,c=this,d=this._trackingUtils.getUrn("Slideshow",i.slideshow.id);if(e&&t)ret
urn
l={slideshowUrn:d,url:e,linkType:t},n&&(l.slideNumber=n),r=c._trackingUtils.generat
eTrackingID(),o={slideShareGuestUrn:c._trackingUtils.getSlideShareGuest(),impressio
nId:r,linkInfo:l},a=$.extend({},c._eventBodyDefaults,o),c._trackingUtils.recordTrac
kingEvent(c._appId,s.SlideShareLinkImpressionEvent,a),r},trackLinkClickEvent:functi
on(e)
{e&&(eventBodyExtras={impressionId:e},eventBody=$.extend({},this._eventBodyDefaults
,eventBodyExtras),this._trackingUtils.recordTrackingEvent(this._appId,s.SlideShareL
inkClickEvent,eventBody))},trackOrganicLinkImpressionEventsForSlide:function(e)
{e&&this._areLinksEnabledOnSlide(e)&&(this.linksMetadata?
(this.flushImpressionQueue(),this._trackOrganicLinkImpressionEvent(e)):this._impres
sionQueue.push(e))},trackOrganicLinkClickEvent:function(e){var
t,i,n,r,o;if(this.linksMetadata&&(this.flushImpressionQueue(),e))
{if(t=e.getAttribute(a.SlideIndex),i=e.getAttribute(a.LinkIndex),!
(t&&i&&this.linksMetadata[t]&&this.linksMetadata[t].links[i]))return;n=this.linksMe
tadata[t].links[i],r={impressionId:n.impressionId},o=$.extend({},this._eventBodyDef
aults,r),this._trackingUtils.recordTrackingEvent(this._appId,s.SlideShareLinkClickE
vent,o)}},_trackOrganicLinkImpressionEvent:function(e){var
t,n,r,o,a,l=this,c=this._trackingUtils.getUrn("Slideshow",i.slideshow.id),d=this.LI
NK_TYPE.Organic;this.linksMetadata&&(t=this.linksMetadata[e],t&&t.links&&(t=t.links
,t.forEach(function(t)
{a={slideshowUrn:c,url:t.url,slideNumber:e,displayRectangle:l._getLinkDisplayRectan
gle(t.box),linkType:d},l._isDuplicateImpression(a)||
(n=l._trackingUtils.generateTrackingID(),t.impressionId=n,r={slideShareGuestUrn:l._
trackingUtils.getSlideShareGuest(),impressionId:n,linkInfo:a},o=$.extend({},l._even
tBodyDefaults,r),l._trackingUtils.recordTrackingEvent(l._appId,s.SlideShareLinkImpr
essionEvent,o),l.lastLinkImpressionInfo=a)})))},flushImpressionQueue:function(){var
e=this;this._impressionQueue.forEach(function(t)
{e._trackOrganicLinkImpressionEvent(t)}),this._impressionQueue=[]},_areLinksEnabled
OnSlide:function(e){return!!(this.renderAllLinks||"undefined"!=typeof
i&&i.user.su)||!(!e||e<=3)},_getLinkDisplayRectangle:function(e){var
t=parseInt(e[0]||0,10),i=parseInt(e[3]||0,10),n=parseInt(e[2]||
0,10),r=parseInt(e[1]||0,10);return{top:i,left:t,size:{height:r-i,width:n-
t}}},_isDuplicateImpression:function(e){var t=this.lastLinkImpressionInfo;return
JSON.stringify(t)===JSON.stringify(e)}},n.exports("tracking.ClickGenTracker",t)}
(window),!function(e){for(var t,i=["Width","Height"];t=i.pop();)!function(t,i)
{e.fn[t]=t in new Image?function(){return this[0][t]}:function(){var
e,t,n=this[0];return"img"===n.tagName.toLowerCase()&&(e=new
Image,e.src=n.src,t=e[i]),t}}("natural"+t,t.toLowerCase())}(jQuery),function(e)
{e.fn.rwdImageMaps=function(){var t=this,i=parseFloat(e.fn.jquery),n=function()
{t.each(function(){if("undefined"!=typeof e(this).attr("usemap")){var
t=this,n=e(t);e("<img />").load(function(){var r,o,s="width",a="height";if(i<1.6?
(r=t.getAttribute(s),o=t.getAttribute(a)):(r=n.attr(s),o=n.attr(a)),!r||!o){var
l=new Image;l.src=n.attr("src"),r||(r=l.width),o||(o=l.height)}var
c=n.width()/100,d=n.height()/100,h=n.attr("usemap").replace("#",""),p="coords";e('m
ap[name="'+h+'"]').find("area").each(function(){var t=e(this);t.data(p)||
t.data(p,t.attr(p));for(var i=t.data(p).split(","),n=new
Array(i.length),s=0;s<n.length;++s)s%2===0?
n[s]=parseInt(i[s]/r*100*c):n[s]=parseInt(i[s]/o*100*d);t.attr(p,n.toString())})}).
attr("src",n.attr("src"))}})};return e(window).resize(n).trigger("resize"),this}}
(jQuery),SSResource.prototype._init=function()
{this._initResourceConfig(),this.status="initialized"},SSResource.prototype.reset=f
unction(){if(this.status="initialized",this.retries=0,this.suffixes){var e,t;for(e
in this.suffixes)t=this.suffixes[e],t.status="initialized",delete
t.startTime,t.retries=2}},SSResource.prototype.load=function()
{this.status="loading",this.loadBlocked||(this.startTime=(new
Date).getTime(),this._tryLoad())},SSResource.prototype.update=function(e){var
t,i;for(t in e)i=e[t],"image"===this.resourceKey&&"sizes"===t?
this.delayedInitialize&&this.delayedInitialize(i):"image"===this.resourceKey&&"link
Data"===t?
this.addLinks(i):this[t]=i},SSResource.prototype.resourceErrorInternalHandler=funct
ion(){var e=this;return function(t){var i=e.startTime,n=(new Date).getTime()-
i,r=e.retries;r>0&&n<e.TIMEOUT_LIMIT?(r-
=1,e.update({retries:r}),setTimeout(function(){e._tryLoad()},e.RETRY_WAIT_TIME)):
$.slideshareEventManager.trigger("resourceloadfailed",
{index:e.config.slideIndex,resourceKey:e.resourceKey})}},SSSlide.prototype.setConte
ntDimensions=f
unction(e,t)
{this.contentWidth=e,this.contentHeight=t},SSSlide.prototype._init=function()
{this.status="initialized",this.controller=$.slideshareEventManager.getController()
,this.playerContainer="#"+this.controller.config.container,this.$stage=$
(this.playerContainer+" .stage"),this.$slide=this.
$stage.find(".slide").eq(this.index-1),this.$imageEle=this.
$slide.children(".slide_image"),this.viewModes={},this.resources={},this._createRes
ources(),this._bindEvents()},SSSlide.prototype.stop=function()
{},SSSlide.prototype._createResources=function(){switch("undefined"==typeof
this.config.timestamp&&(this.config.timestamp=(new
Date).getTime()),this.config.slideMode){case"image":var
e={};this.resources.image=new
SSFallbackImageResource({baseUrl:this.config.bucketLocation,timestamp:this.config.t
imestamp,resourceKey:"image",indexGenerator:this.config.indexGenerator,playerWidth:
this.config.playerWidth,slideIndex:this.index,realIndex:this.realIndex,is_private:t
his.config.is_private,signatures:e,availableSizes:this.config.availableSizes,conten
tWidth:this.contentWidth,privateImageSignatures:this.config.privateImageSignatures,
conversionVersion:this.config.conversionVersion,isFullscreen:this.isFullscreen(),sh
ow_image_player:this.config.show_image_player});break;case"html":this.resources.ima
ge=new
SSBgImageResource({baseUrl:this.config.bucketLocation,availableSizes:this.config.av
ailableSizes,timestamp:this.config.timestamp,resourceKey:"image",indexGenerator:thi
s.config.indexGenerator,playerWidth:this.config.playerWidth,slideIndex:this.index,r
ealIndex:this.realIndex,is_private:this.config.is_private,contentWidth:this.content
Width,conversionVersion:this.config.conversionVersion,privateImageSignatures:this.c
onfig.privateImageSignatures}),this.resources.html=new
SSHtmlResource({baseUrl:this.config.bucketLocation,timestamp:this.config.timestamp,
resourceKey:"html",indexGenerator:this.config.indexGenerator,slideIndex:this.index,
realIndex:this.realIndex,is_private:this.config.is_private,conversionVersion:this.c
onfig.conversionVersion,signature:this.config.htmlResourceSignature
})}delete this.config.availableSizes},SSSlide.prototype.reset=function()
{this.status="initialized";var e;for(e in
this.resources)resource=this.resources[e].reset()},SSSlide.prototype.load=function(
){if("cached"===this.status)return
this._getNewResourceVersions(this.currentViewMode.wrapperWidth),void
$.slideshareEventManager.trigger("slideloaded",
{index:this.index});if("loading"===this.status)return void
$.slideshareEventManager.trigger("slideloading",
{index:this.index});if("failed"===this.status)return void
$.slideshareEventManager.trigger("slideloadfailed",
{index:this.index});this.status="loading",
$.slideshareEventManager.trigger("slideloading",{index:this.index});var e;for(e in
this.resources)resource=this.resources[e],resource.status="loading",resource.load()
},SSSlide.prototype.updateResource=function(e,t){"undefined"!=typeof
this.resources[e]&&this.resources[e].update(t)},SSSlide.prototype.displayError=func
tion(e,t){this.empty(),e.appendTo(this.currentViewMode.wrapper);var
i=this,n=e.find("input");t?n.hide():n.bind("click",function(e)
{e.preventDefault(),e.stopPropagation(),i.reset(),i.load()})},SSSlide.prototype.pai
nt=function(){if("undefined"==typeof
this.currentViewMode.imageElement&&this.render(),this.currentViewMode.imageElement.
css({width:this.currentViewMode.width}),"html"===this.config.slideMode){var
e;e=Modernizr.csstransforms?{"-moz-
transform":"scale("+this.currentViewMode.contentScale+")","-webkit-
transform":"scale("+this.currentViewMode.contentScale+")","-o-
transform":"scale("+this.currentViewMode.contentScale+")",msTransform:"scale("+this
.currentViewMode.contentScale+")","-moz-transform-origin":"0 0","-webkit-transform-
origin":"0 0","-o-transform-origin":"0 0",msTransformOrigin:"0 0"}:
{zoom:this.currentViewMode.contentScale},this.currentViewMode.contentElement.css({w
idth:this.currentViewMode.width,height:this.currentViewMode.height}),this.currentVi
ewMode.contentElement.children(".ssml_div").css(e),this.areLinksEnabled()||
this.currentViewMode.contentElement.find(".ssml_a").remove()}else"image"===this.con
fig.slideMode&&this.config.show_image_player!==!
0&&this._updateLinks()},SSSlide.prototype.isFullscreen=function()
{return"fullscreen"===this.currentMode||"nativefullscreen"===this.currentMode},SSSl
ide.prototype.render=function(){this.empty();var
e,t,i=this;switch($.slideshareEventManager.getCurrentPosition(),"#"+i.controller.co
nfig.container,this.config.slideMode){case"html":e=$
("<img/>").css({height:"auto",position:"absolute",top:0,left:0,margin:0,padding:0})
,t=this.resources.image.getContent();break;case"image":e=this.
$imageEle,t=this.isFullscreen()||this.$stage.width()>640?this.
$imageEle.data("full"):this.$stage.width()<=320?this.$imageEle.data("small"):this.
$imageEle.data("normal")}if("undefined"!=typeof t)
{this.imageEle=e,this.currentViewMode.imageElement=e;var n=new
Image;n.onload=function(){if("undefined"!=typeof r&&"undefined"!=typeof _gaq){var
e=new Date-
r;_gaq.push(["_trackTiming","image","slide_load",e,i.index.toString()])}var
n=i.controller.currentPosition,o=i.$slide.height(),s=i.$stage.scrollTop();if(i.
$slide.css("min-height",0),"undefined"==typeof i.controller.firstLoad?
i.controller.firstLoad=!0:i.controller.firstLoad=!
1,i.currentViewMode.imageElement.attr({src:t}),i.$slide.find(".fa-
spinner").remove(),"infographic"===i.config.playerType&&i.addScrollIfNeeded(),"docu
ment"===i.config.playerType){var a=i.$slide.height()-o;i.controller.firstLoad&&!
isMobile()&&i.controller.currentComponentSet.slidedisplayer.
$slides&&(i.controller.currentComponentSet.slidedisplayer.$slides.css("min-
height",i.$slide.height()),s+=a*(n-2)),i.index<n&&i.$stage.scrollTop(s+a)}$
(window).trigger("resize");var l=function()
{i.loadLinks()};if(i.config.show_image_player&&("complete"===document.readyState?
l():window.addEventListener?window.addEventListener("load",l,!
1):window.attachEvent&&window.attachEvent("onload",l)),"function"==typeof
isIos&&isIos()&&$(this).css("-webkit-backface-
visibility","hidden"),"slideview"===i.config.hosted_in&&!
i.config.show_image_player){var c=$(this).height();$(this).css("height","auto");var
d=$(this).height();if(c!==d&&!window.slideResizeEventFired)
{window.slideResizeEventFired=!0;var h=i.config.ssid,p="00",u=/slide-
(\d+)-.*/;u.test(this.src)&&(p=this.src.match(u)[1]);var f=h+"_slide_"+p;
$.slideshareEventManager.trackRawEvent("jsplayer_debug","slideresize",f)}$
(this).css("height","auto")}},n.src=t;var r=new
Date;if(this.config.show_image_player||
e.appendTo(this.currentViewMode.wrapper),"html"===this.config.slideMode){var
o="<style>"+this.resources.html.getContent().style+"</style>";$
(o).appendTo(this.currentViewMode.wrapper),this.currentViewMode.contentElement=$
("<div/>").css({position:"absolute",overflow:"hidden"}).html(this.resources.html.ge
tContent().html),this.currentViewMode.contentElement.appendTo(this.currentViewMode.
wrapper)}}},SSSlide.prototype.addScrollIfNeeded=function(){var e=15;this.
$imageEle.height()>this.$slide.height()+e&&this.$slide.css("overflow-
y","auto")},SSSlide.prototype.areLinksEnabled=function(){return!!
(this.config.is_render_all_links||"undefined"!=typeof
slideshare_object&&slideshare_object.user.su)||$.inArray(this.index,[1,2,3])===-
1},SSSlide.prototype.loadLinks=function(){var e=this;return
e.controller.linksLoaded===!0?void this.renderLinksForSlide():void
$.jsonp({url:e.config.bucketLocation+"/meta.js?"+this.config.timestamp,callback:"sl
ideshare_jsonp_meta_hook_trigger",cache:!0,timeout:1e4,success:function(t)
{e.controller.links=t.links,e.controller.linksLoaded=!
0,e.controller.clickGenTracker.registerLinksMetadata(t.links),e.renderLinksForSlide
(),e.controller.slideAspectRatio=t.sizes[1].height/t.sizes[1].width,e.controller.up
dateEmbedSizes()}})},SSSlide.prototype.renderLinksForSlide=function()
{if(this.areLinksEnabled()){var
e=this,t="#"+e.controller.config.container,i=this.index-
this.config.linkOffset;if("undefined"==typeof
e.controller.links||"undefined"==typeof e.controller.links[i])return;var
n,r,o,s=this.imageEle,a=s.naturalWidth(),l=s.naturalHeight(),c=e.controller.links[i
].links,d=c.length,h="image_map_"+this.index+"_"+(new Date).getTime();void 0!
==this.currentViewMode.imageMapId&&$
("#"+this.currentViewMode.imageMapId).remove(),this.currentViewMode.imageMapId=h;va
r p='<map id="'+h+'" name="'+h+'">';for(n=0;n<d;n++){r=c[n],o=[parseInt((r.box[0]||
0)*a/100,10),parseInt((r.box[3]||0)*l/100,10),parseInt((r.box[2]||
0)*a/100,10),parseInt((r.box[1]||0)*l/100,10)],o=o.join(",");var u='<area
shape="rect" target="_blank" coords="'+o+'" href="'+r.url+'" rel="nofollow" data-
linkIndex="'+n+'" data-slideIndex="'+this.index+'" />';p+=u}p+="</map>";var f=$
(p).appendTo(t+" .image_maps");s.attr("usemap","#"+h),$(document).ready(function()
{s.rwdImageMaps()}),f.find("area").click(function(e){var t=e.target;
$.slideshareEventManager.trackOutboundClick(t)})}},SSSlide.prototype._updateLinks=f
unction(){void 0!==this.currentViewMode.imageMapId&&$
("#"+this.currentViewMode.imageMapId).remove(),this._renderLinks()},SSSlide.prototy
pe._renderLinks=function(){var e=this.resources.image.links;if(void 0!==e){var
t,i,n,r=this.currentViewMode.width,o=this.currentViewMode.height,s=e.length,a="imag
e_map_"+this.currentMode+"_"+this.index+parseInt(2500*Math.random(),10),l='<map
id="'+a+'" name="'+a+'">';for(t=0;t<s;t++)i=e[t],n=[parseInt((i.box[0]||
0)*r/100,10),parseInt((i.box[3]||0)*o/100,10),parseInt((i.box[2]||
0)*r/100,10),parseInt((i.box[1]||0)*o/100,10)],n=n.join(","),l=l+'<area
shape="rect" coords="'+n+'" href="'+i.url+'" rel="nofollow" />';l+="</map>",$
(l).appendTo(this.currentViewMode.wrapper),this.currentViewMode.imageElement.attr("
usemap","#"+a),this.currentViewMode.imageMapId=a}},SSSlide.prototype._getNewResourc
eVersions=function()
{this.resources.image._tryLoad(this.currentViewMode.wrapperWidth)},SSSlide.prototyp
e.updateRenderedResourceVersion=function(e)
{this.currentViewMode.rendered&&"image"===e&&void 0!
==this.currentViewMode.imageElement&&this.currentViewMode.imageElement.attr({src:th
is.resources.image.getContent()})},SSSlide.prototype._bindEvents=function()
{},SSFontResource.prototype=new
SSResource,SSFontResource.prototype._initResourceConfig=function(){var
e=this.resourceTemplate;this.url=e.prefix+"meta-"+this.config.indexString+this.conf
ig.suffix+"?"+this.config.timestamp,this.cacheable=e.cacheable,this.retries=e.retri
es||0,this.isCritical=e.isCritical},SSFontResource.prototype._tryLoad=function()
{$.jsonp({url:this.url,callback:"slideshare_jsonp_font_hook_trigger",success:this.r
esourceLoadedInternalHandler(),error:this.resourceErrorInternalHandler(),cache:!
0,timeout:1e4})},SSFontResource.prototype.resourceLoadedInternalHandler=function()
{var e=this;return function(t){e.status="cached",
$.slideshareEventManager.trigger("fontresourceloaded",
{style:t.style})}},SSFontResource.prototype.resourceErrorInternalHandler=function()
{var e=this;return function(t){var i=e.startTime,n=(new Date).getTime()-
i,r=e.retries;r>0&&n<e.TIMEOUT_LIMIT?(r-
=1,e.update({retries:r}),setTimeout(function(){e._tryLoad()},1e3)):
$.slideshareEventManager.trigger("fontloadfailed",
{})}},SSHtmlResource.prototype=new
SSResource,SSHtmlResource.prototype.ready=function()
{this._initResourceConfig(),this.loadBlocked=!
1,"loading"===this.status&&this.load()},SSHtmlResource.prototype._initResourceConfi
g=function(){if(!this.config.is_private||void 0!==this.config.signature){var
e=this.resourceTemplate,t=this.config.indexGenerator(this.config.realIndex,e.digitL
ength);this.config.is_private?
this.url=e.prefix+e.key+t+".js"+this.config.signature:this.url=e.prefix+e.key+t+e.s
uffix,this.cacheable=e.cacheable,this.retries=e.retries||
0,this.isCritical=e.isCritical}},SSHtmlResource.prototype.updateSignature=function(
e){this.config.signature=e},SSHtmlResource.prototype._tryLoad=function()
{$.jsonp({url:this.url,callback:"slideshare_jsonp_hook_trigger",success:this.resour
ceLoadedInternalHandler(),error:this.resourceErrorInternalHandler(),cache:!
0,timeout:1e4})},SSHtmlResource.prototype.resourceLoadedInternalHandler=function()
{var
e=this;return function(t){var i=t.style.replace(/a\.ssml_a \
{.*?\}/,"").replace(/\.ssml_div span \{.*?\}/,"").replace(/\.ps([\s\S]*?)\
{[\s\S]*?\}/g,"").replace(/@font-face[\s\S]*?\
{[\s\S]*?\}/g,"");e.html=t.html,e.style=i,
$.slideshareEventManager.trigger("resourceloaded",
{index:e.config.slideIndex,resourceKey:e.resourceKey})}},SSHtmlResource.prototype.g
etContent=function()
{return{html:this.html,style:this.style}},SSImageResource.prototype=new
SSResource,SSImageResource.prototype._initResourceConfig=function(){if(void 0!
==this.imageVersions){var
e=this.resourceTemplate;this.indexString=this.config.indexGenerator(this.config.rea
lIndex,e.digitLength),this.suffixes=this._getSuffixes(),this.cacheable=e.cacheable,
this.retries=e.retries||
0,this.isCritical=e.isCritical,this.privateUrls={}}},SSImageResource.prototype._get
Url=function(e){return e[e.length-
1].url},SSImageResource.prototype._mapSizesToVersions=function(e){var t=[];for(var
i in e)e.hasOwnProperty(i)&&(t[parseInt(i,10)]=e[i]);return
t},SSImageResource.prototype._setUrlGenerator=function(e){e?(this.useTimeStamp=!
1,this._generateUrl=this._generatePrivateUrl):this._generateUrl=this._generateUrl},
SSImageResource.prototype.delayedInitialize=function(e)
{this.imageVersions=this._mapSizesToVersions(e.availableSizes),this.contentWidth=e.
contentWidth,this._setUrlGenerator(e.is_private),e.is_private||
this.ready()},SSImageResource.prototype.ready=function()
{this._initResourceConfig(),delete this.imageVersions,this.loadBlocked=!
1,"loading"===this.status&&this.load()},SSImageResource.prototype._tryLoad=function
(e){e=e||this.config.playerWidth;var
t,i=this._getAppropriateWidth(e),n=this.suffixes[i];if(t=this._getUrl(n),i!
==this.currentWidth||"initialized"===n.status){if("failed"===n.status)return void
this.versionErrorInternalHandler(i,t)();if(this.currentWidth=i,"loading"!
==n.status){if("loaded"===n.status)return void
this.versionLoadedInternalHandler(i,t)();if(n.status="loading",void
0===n.startTime&&(n.startTime=(new Date).getTime()),this.config.show_image_player)
{var r=$(".slide").eq(this.config.realIndex-
1).children();t=this.config.isFullScreen?r.data("full"):r.data("normal")}var o=new
Image;$
(o).bind("load",this.versionLoadedInternalHandler(i,t)).bind("error",this.versionEr
rorInternalHandler(i)),void 0!
==t&&(o.src=t)}}},SSImageResource.prototype.versionLoadedInternalHandler=function(e
,t){var i=this;return function(n)
{i.suffixes[e].status="loaded","loading"===i.status?
(i.url=t,i.resourceLoadedInternalHandler()
()):"cached"===i.status&&e===i.currentWidth&&(i.url=t,
$.slideshareEventManager.trigger("currentversionloaded",
{index:i.config.slideIndex,resourceKey:i.resourceKey}))}},SSImageResource.prototype
.versionErrorInternalHandler=function(e){var t=this;return function(i){var
n=t.suffixes[e],r=n.startTime,o=(new Date).getTime()-
r,s=n.retries;if(s>0&&o<t.TIMEOUT_LIMIT)s-
=1,n.retries=s,n.status="initialized",setTimeout(function()
{t._tryLoad()},t.RETRY_WAIT_TIME);else
if(n.status="failed","loading"===t.status&&e===t.currentWidth){var a,l=!1;for(a in
t.suffixes){var c=t.suffixes[e];"loading"!==c.status&&"loaded"!=c.status||(l=!
0)}l||t.resourceErrorInternalHandler()
()}}},SSImageResource.prototype.resourceLoadedInternalHandler=function(){var
e=this;return function(t){$.slideshareEventManager.trigger("resourceloaded",
{index:e.config.slideIndex,resourceKey:e.resourceKey})}},SSImageResource.prototype.
getContent=function(){var
e=this.suffixes[this.currentWidth];if("loaded"===e.status)return this.url;var
t;for(t in this.suffixes)if(e=this.suffixes[t],"loaded"===e.status)return
url=this._getUrl(e),url;return
this.url},SSImageResource.prototype._getAppropriateWidth=function(e){var
t,i,n,r=this.suffixes,o=[],s=426,a=638;for(i in
r)i=parseInt(i,10),r.hasOwnProperty(i)&&o.push(i);for(o.sort(function(e,t){return
e-t}),e<s&&window.devicePixelRatio>=2&&(e=a),t=0;t<o.length;t+
+)if(i=o[t],n=i,e<=i)return i;return n},SSMetaResource.prototype=new
SSResource,SSMetaResource.prototype._initResourceConfig=function(){var
e=this.resourceTemplate;this.url=e.url+"?"+this.config.timestamp,this.cacheable=e.c
acheable,this.retries=e.retries||
0,this.isCritical=e.isCritical},SSMetaResource.prototype._tryLoad=function()
{$.jsonp({url:this.url,callback:"slideshare_jsonp_meta_hook_trigger",success:this.r
esourceLoadedInternalHandler(),error:this.resourceErrorInternalHandler(),cache:!
0,timeout:1e4})},SSMetaResource.prototype.resourceLoadedInternalHandler=function()
{var e=this;return function(t){e.status="loaded",
$.slideshareEventManager.trigger("metadataloaded",
{type:e.config.type,json:t})}},SSMetaResource.prototype.resourceErrorInternalHandle
r=function(){var e=this;return function(t){var i=e.startTime,n=(new
Date).getTime()-i,r=e.retries;r>0&&n<e.TIMEOUT_LIMIT?(r-
=1,e.update({retries:r}),setTimeout(function(){e._tryLoad()},1e3)):
$.slideshareEventManager.trigger("metadataloadfailed",
{type:e.config.type})}},SSBgImageResource.prototype=new
SSImageResource,SSBgImageResource.prototype._generateUrl=function(e,t,i){return
this.config.baseUrl+"images/"+parseInt(i,10)+"/slide-"+e+"-"+t+".jpg?
cb="+this.config.timestamp},SSBgImageResource.prototype._generatePrivateUrl=functio
n(e,t,i){return this.config.baseUrl+"images
%2F"+parseInt(i,10)+"%2Fslide-"+e+"-"+t+".jpg"+this.config.privateImageSignatures[t
][i].url},SSBgImageResource.prototype._getSuffixes=function(){var
e,t,i,n,r,o,s={},a=this.imageVersions;this.config.timestamp;for(t in
a)if(a.hasOwnProperty(t))for(t=parseInt(t,10),i=a[t],s[t]=[],n=i.length,e=0;e<n;e+
+)r=parseInt(i[e],10),o={url:this._generateUrl(this.indexString,t,i[e]),status:"ini
tialized",retries:2},s[t][isNaN(r)?75:r]=o;return
s},SSFallbackImageResource.prototype=new
SSImageResource,SSFallbackImageResource.prototype._generateUrl=function(e,t,i)
{return
this.config.baseUrl+"/"+i+"/slide-"+e+"-"+t+".jpg?"+this.config.timestamp},SSFallba
ckImageResource.prototype._generatePrivateUrl=function(e,t,i)
{return"undefined"==typeof
this.config.privateImageSignatures?"":this.config.baseUrl+"%2F"+i+"%2Fslide-"+e+"-"
+t+".jpg"+this.config.privateImageSignatures[t]
[i].url},SSFallbackImageResource.prototype._getSuffixes=function(){var
e,t,i,n,r,o,s=[],a=this.imageVersions;for(t in
a)if(a.hasOwnProperty(t))for(t=parseInt(t,10),n=a[t],s[t]=[],o=n.length,e=0;e<o;e+
+)r=parseInt(n[e],10),i={url:this._generateUrl(this.indexString,t,r),status:"initia
lized",retries:2},s[t][r]=i;return
s},SSFallbackImageResource.prototype.addLinks=function(e){this.links=e.links||
[]},SSFallbackImageResource.prototype.addSignature=function(e)
{this.config.privateImageSignatures=e},SSBandInteraction.prototype._init=function()
{var
e=this,t=this.config.container,i=this.config.linksDisabled;t.bind("mousedown",funct
ion(n){if(1===n.which){var r=$(this).offset();e.startX=n.pageX-
r.left,t.bind("mouseup",function(e){var
n,r=e.target,o=r.tagName.toUpperCase();if(i?n=!
1:"SPAN"===o&&"A"===r.parentNode.tagName.toUpperCase()?n=r.parentNode:"A"!
==o&&"AREA"!==o||(n=r),n){var
s=parseInt(n.attributes.href.value,10);isNaN(s)&&window.open(n.href),
$.slideshareEventManager.trackOutboundClick(n)}t.unbind("mouseup")})}}),$
(t).bind("click",function(e){e.preventDefault()}),$
(this).bind("bandclick",function(t){t.preventDefault();var
i=t.ssData.x,n=e.config.width/3;i<n?$(e).trigger("bandprevious"):i>2*n&&$
(e).trigger("bandnext")});var n=$(".leftpoint");n.click(function(t){$
(e).trigger("bandprevious")});var r=$(".rightpoint");r.click(function(t){$
(e).trigger("bandnext")})},SSBandInteraction.prototype.activate=function(){$
(this).bind("bandprevious",function(){$.slideshareEventManager.trigger("previous",
{source:"band"})}),$(this).bind("bandnext",function()
{$.slideshareEventManager.trigger("next",
{source:"band"})})},SSBandInteraction.prototype.deactivate=function(){$
(this).unbind("bandprevious"),$
(this).unbind("bandnext")},SSBandInteraction.prototype.destroy=function()
{},SSInfographicDisplayer.prototype=new
SSSlideDisplayer,SSInfographicDisplayer.prototype.start=function(e)
{"undefined"==typeof this.slidesContainer&&(this.slidesContainer=$
(".slide_container"),this.bindEvents()),this.config.playerBgColor&&(this.playerBgCo
lor=this.config.playerBgColor),this.slides=e.slides,this.slide=this.slides[1],this.
slideContainer=this.slidesContainer.children(".slide"),this.slide.setContainer({mod
e:e.mode,bgColor:this.playerBgColor,container:this.slideContainer})},SSInfographicD
isplayer.prototype.bindEvents=function(){this.config.isMobileDevice||
this.slidesContainer.bind("click",function(e)
{e.preventDefault(),e.stopPropagation(),
$.slideshareEventManager.trigger("viewfullscreen")})},SSInfographicDisplayer.protot
ype.setDimensions=function(e){"object"==typeof
e&&(this.config.width=e.width,this.config.height=e.height)},SSInfographicDisplayer.
prototype.emptySlides=function()
{},SSInfographicDisplayer.prototype.setPrerenderedSlides=function()
{},SSInfographicDisplayer.prototype.showInitializer=function()
{this.config.show_image_player||$
("<div/>").addClass(".jsplInitializer").css({width:this.container.width()-
10,height:this.container.height()-
20}).text(slideshare_object.utils.i18n("slideshow.foundation_slideview.loading")).a
ppendTo(this.container)},SSInfographicDisplayer.prototype._scrollTo=function(e)
{if(this.config.show_image_player){var t=this.slidesContainer.children();return
t.removeClass("show"),void t.eq(e-
1).addClass("show")}},SSInfographicSlide.prototype=new
SSSlide,SSInfographicSlide.prototype.empty=function()
{},SSInfographicSlide.prototype.setContainer=function(e){var t=e.mode;void
0===this.viewModes[t]&&(this.viewModes[t]={rendered:!
1,bgColor:e.bgColor||"jsplBgColorBigfoot",container:e.container,wrapper:$
("<div/>")}),this.viewModes[t].container.css({position:"relative"}),this.currentVie
wMode=this.viewModes[t],this.currentViewMode.wrapper.removeClass("hide"),this.curre
ntMode=e.mode},SSInfographicSlide.prototype.show=function(e)
{this.currentViewMode.rendered&&!e||(this.currentViewMode.rendered=!
0,this.load())},SSInfographicSlide.prototype.hide=function(){this.
$slide.hide()},SSInfographicSlide.prot
otype.displayLoading=function()
{},SSInfographicSlide.prototype.bindScrollEvents=function(){var e=this,t=$
("#slideview-container");$(document).ready(function(){var i=parseInt($("#main-
nav").height(),10)||51,n=8,r=0,o=550,s=550,a=$
("#svPlayerId"),l=parseInt(a.css("height"),10);if(l<s)return void
t.removeClass("infographicHoverTitle");var c=!0;setInterval(function(){c=!
0},10),"infographic"===e.config.playerType&&$(window).on("scroll",function(e)
{if(c&&a&&a.offset()){c=!1;var s=a.offset().top-i,d=$(this).scrollTop(),h=l+s-
o;d>h&&(d=h);var
p=$.slideshareEventManager.getController(),u="nativefullscreen"===p.currentViewMode
||"fullscreen"===p.currentViewMode;if(d>s&&!u){$(".action-btns-
container").css("top",n+d-s+"px"),$(".modal-popup").css("top",r+d-s+"px");var f=$
(this).scrollTop()+$(this).height()-a.height()-
a.offset().top;t.toggleClass("infographicHoverTitle",f<=0)}else $(".action-btns-
container").css("top",n+12+"px"),$(".modal-
popup").css("top",r+"px")}})})},SSPresentationDisplayer.prototype=new
SSSlideDisplayer,SSPresentationDisplayer.prototype.initPointlyFinger=function()
{this.rightbandInteraction=$("<div/>").attr({"class":"rightpoint
pointly"}).appendTo(this.container),this.leftbandInteraction=$
("<div/>").attr({"class":"leftpoint
pointly"}).appendTo(this.container)},SSPresentationDisplayer.prototype._scrollTo=fu
nction(e){if("playing"===this.state){if(this.config.show_image_player){var
t=this.slidesContainer.children();return t.removeClass("show"),void t.eq(e-
1).addClass("show")}var i="function"==typeof
isIos&&isIos(),n=this.slideOffsets[e]*-1,r=!1;r&&i?this.slidesContainer.css({"-
webkit-transform":"translateX("+n+"px)","-webkit-transition":"-webkit-transform
275ms ease-in-out"}):this.slidesContainer.css("margin-
left",n)}},SSPresentationDisplayer.prototype.start=function(e){var t,i;void
0===this.slideContainers&&(this.slideContainers=[]);var
n=this.slideContainers;if(void
0===this.slides)for(this.slides=e.slides,this.state="playing",this.hideInitializer(
),this.slidesContainer=this.config.show_image_player?$(".slide_container"):$
("<div/>").appendTo(this.container),t=1;t<=this.config.slideCount;t+
+)n[t]=this.config.show_image_player?$(".slide").eq(t-1):$
("<div/>").appendTo(this.slidesContainer);for(!
this.config.show_image_player&&this.slidesContainer.removeClass(this.playerBgColor)
.addClass("slidesContainer
"+e.playerBgColor),e.playerBgColor&&(this.slidesContainer.removeClass(this.playerBg
Color),this.playerBgColor=e.playerBgColor,this.slidesContainer.addClass(this.player
BgColor)),t=1;t<=this.config.slideCount;t+
+)i=this.slides[t],i.setContainer({mode:e.mode,container:n[t],bgColor:this.playerBg
Color,slideNumber:t})},SSPresentationDisplayer.prototype.showInitializer=function()
{var e,t;e=this.container.height()/2-16,t=this.container.width()/2-16,$
("<img/>").attr({src:this.config.spinnerUrl,"class":"jsplInitializer"}).css({width:
32,height:32,top:e,left:t}).appendTo(this.container)},SSPresentationDisplayer.proto
type.setDimensions=function(e){"object"==typeof
e&&(this.config.width=e.width,this.config.height=e.height);var t=e&&e.partial;if(!
this.config.show_image_player&&this.container.css({height:this.config.height,width:
this.config.width}),!t&&"playing"===this.state){this.panelWidth=0;var
i,n,r;for(r=0,i=1;i<=this.config.slideCount;i++)n=this.slides[i],!
this.config.show_image_player&&n.setDimensions({parentHeight:this.config.height,par
entWidth:this.config.width}),this.slideOffsets[i]=r,r+=n.wrapperOffset();this.slide
sContainer.width(r),this.width=r}},SSPresentationDisplayer.prototype.setPrerendered
Slides=function(e){var t;for(t=e.start;t<=e.end;t++)
$.inArray(t,this.prerenderedSlides)===-
1&&this.prerenderedSlides.push(t)},SSPresentationDisplayer.prototype.emptySlides=fu
nction(){var e;for(e in this.slides){var t=this.slides;if(t.hasOwnProperty(e)){var
i=t[e];i.hide()}}this.prerenderedSlides=[]},SSPresentationSlide.prototype=new
SSSlide,SSPresentationSlide.prototype.wrapperOffset=function(){return
this.currentViewMode.wrapperWidth},SSPresentationSlide.prototype.empty=function()
{"undefined"!=typeof
this.currentViewMode.wrapper&&this.currentViewMode.wrapper.empty()},SSPresentationS
lide.prototype.displayLoading=function(){var e,t;e=this.currentViewMode.height/2-
16,t=this.currentViewMode.width/2-
16,this.empty(),this.spinnerUrl=this.isFullscreen()?
this.config.spinnerUrlFullscreen:this.config.spinnerUrl,$
("<img/>").attr({src:this.spinnerUrl}).css({width:32,height:32,top:e,left:t,positio
n:"absolute"}).appendTo(this.currentViewMode.wrapper)},SSPresentationSlide.prototyp
e.setDimensions=function(e){var t,i,n,r,o=e.parentWidth,s=e.parentHeight,a=o/s;void
0===this.contentWidth||void 0===this.contentHeight?(t=o,i=s,n=a,r=n,
$.slideshareEventManager.trackRawEvent("jsplayer_debug","no_content_meta_info","st_
"+this.config.stripped_title)):(t=this.contentWidth,i=this.contentHeight,n=t/i,r=t/
(i-20));var l,c,d,h,p,u,f;r>a?(c=o/t,d=16*c,h=o,l=a/n,f=0,u=(1-
l)/2*100+"%",p=l*e.parentHeight):(c=s/i,d=16*c,l=n/a,u=0,f=(1-
l)/2*100+"%",h=l*e.parentWidth,p=s),h=parseInt(h,10),p=parseInt(p,10);var
g=o,m=s;this.currentViewMode.container.css({width:o,height:s}),!
this.config.show_image_player&&this.currentViewMode.wrapper.css({width:h,height:p,t
op:u,left:f,position:"absolute",padding:this.PADDING,overflow:"hidden"}),this.curre
ntViewMode.wrapperWidth=g,this.currentViewMode.wrapperHeight=m,this.currentViewMode
.top=u,this.currentViewMode.left=f,this.currentViewMode.contentScale=c,this.current
ViewMode.fontscale=d,this.currentViewMode.width=h,this.currentViewMode.height=p},SS
PresentationSlide.prototype.hide=function()
{this.currentViewMode.rendered&&(this.empty(),delete
this.currentViewMode.contentElement,delete
this.currentViewMode.imageElement,this.currentViewMode.rendered=!
1)},SSPresentationSlide.prototype.show=function(e){this.currentViewMode.rendered&&!
e||(this.currentViewMode.rendered=!
0,this.load())},SSPresentationSlide.prototype.play=function()
{this.show()},SSPresentationSlide.prototype.setContainer=function(e){var
t=e.mode,i=this.viewModes[t],n=!
1;this.config.isStartSlide&&this.config.show_image_player&&(n=!0);var
r={rendered:n,container:e.container};if(void 0===i?(this.config.show_image_player||
(r.wrapper=$
("<div/>").appendTo(e.container)),i=r):"nativefullscreen"==t&&(this.config.show_ima
ge_player||(r.wrapper=this.currentViewMode.wrapper),i=r),!
this.config.show_image_player){i.container.removeClass();var
o=e.bgColor||"jsplBgColorBigfoot";o+="undefined"==typeof new_mobile_player?"
horizontalStack":" verticalStack",i.container.addClass(o)}var
s=e.slideNumber;s&&i.container.attr("slideNumber",s),this.viewModes[t]=i,this.curre
ntViewMode=i,this.currentMode=e.mode},SSVideoEmbedSlide.prototype=new
SSPresentationSlide,SSVideoEmbedSlide.prototype._initVideoSlidesLoading=function()
{"function"!=typeof
window.onYouTubePlayerAPIReady&&(window.onYouTubePlayerAPIReady=function(){$
(window.video_slides||[]).each(function(e,t){t.playerReady=!
0})}),window.video_slides||
(window.video_slides=[]),window.video_slides.push(this)},SSVideoEmbedSlide.prototyp
e._videoReady=function(e)
{this.ytube_player=e.target},SSVideoEmbedSlide.prototype._playVideo=function()
{if(this.ytube_player.getPlayerState)this.ytube_player.getPlayerState()===this.PLAY
ER_UNINITIALIZED&&this.ytube_player.playVideo();else{var
e=this;setTimeout(function()
{e._playVideo()},1e3)}},SSVideoEmbedSlide.prototype._pauseVideo=function()
{this.ytube_player&&this.ytube_player.pauseVideo&&this.ytube_player.pauseVideo()},S
SVideoEmbedSlide.prototype._videoLoadFailed=function(e)
{$.slideshareEventManager.trigger("videoloadfailed")},SSVideoEmbedSlide.prototype._
tryPlayerLoad=function(){var
e=this,t="ytube_player"+e.config.current_video_count,i="100%";navigator.userAgent.m
atch(/(iPod|iPhone|iPad)/)&&(i="80%"),e.ytube_player||(e.ytube_player=new
YT.Player(t,{videoId:e.config.video_id,playerVars:
{autohide:e.PLAYER_AUTOHIDE,enablejsapi:e.ENABLE_JS_API,rel:e.RELATED_VIDEOS,origin
:"http://www.slideshare.net",theme:"light"},width:i,height:"100%",events:
{onReady:function(){var t=e;return function(e){t._videoReady(e)}}
(),onError:e._videoLoadFailed}}))},SSVideoEmbedSlide.prototype.retryPlayerLoad=func
tion()
{if(clearTimeout(this.retrying),this.playerReady)this._tryPlayerLoad();else{var
e=this;this.retrying=setTimeout(function()
{e.retryPlayerLoad()},1e3)}},SSVideoEmbedSlide.prototype.removeLoading=function()
{var
e=this.currentViewMode.wrapper,t="#ytube_player"+this.config.current_video_count,i=
".ytube_message";$(t,e).show(),$
(i,e).remove()},SSVideoEmbedSlide.prototype.showLoading=function(){var
e=this.currentViewMode.wrapper,t=this.config.loading_message_partial;$
(t).appendTo(e),this.hideLoadingMessage=!
0},SSVideoEmbedSlide.prototype.show=function(e){this.currentViewMode.rendered=!
0,this.load(),this.painted&&this.showMessage()},SSVideoEmbedSlide.prototype.showMes
sage=function(){if(this.hideLoadingMessage)$
("#ytube_player"+this.config.current_video_count).show();else{this.showLoading(),cl
earTimeout(this.removeLoadingTimeout);var e=this;(void
0===this.hideLoadingMessage||
this.hideLoadingMessage)&&(this.removeLoadingTimeout=setTimeout(function()
{e.removeLoading()},3e3))}},SSVideoEmbedSlide.prototype.emptySlide=function()
{this.currentViewMode.contentElement=null,this.currentViewMode.rendered=!
1,this.painted=!
1,this.ytube_player=null},SSVideoEmbedSlide.prototype.stop=function()
{this._pauseVideo()},SSVideoEmbedSlide.prototype.load=function()
{$.slideshareEventManager.trigger("slideloaded",
{index:this.index})},SSVideoEmbedSlide.prototype.paint=function(){var
e="ytube_player"+this.config.current_video_count;this.config.show_image_player?
0===this.$slide.find(".ytube-
container").length&&(this.currentViewMode.contentElement=$("<div
id="+e+"></div>").css({overflow:"hidden"}),this.currentViewMode.contentElement.appe
ndTo($("<div/>").addClass("ytube-container").css({height:this.$stage.height()||
this.contentHeight}).appendTo(this.$slide)),this.playerReady?
this._tryPlayerLoad():this.retryPlayerLoad()):
(this.currentViewMode.contentElement=$("<div

id="+e+"></div>").css({position:"absolute",overflow:"hidden",display:"none"}),this.
currentViewMode.contentElement.appendTo(this.currentViewMode.wrapper),this.playerRe
ady?
this._tryPlayerLoad():this.retryPlayerLoad())},SSVideoEmbedSlide.prototype._getNewR
esourceVersions=function(){},!function(e){function t(){var
e,t;i.slideshareEventManager&&(this.$clickgenCTATop=i(c.clickgenCTATop),this.
$clickgenCTA=this.
$clickgenCTATop.find(c.clickgenCTA),this.clickgenTracker=o.controller.clickGenTrack
er,s.addClass(c.clickgenCTA,a),n.slideshow.is_clickgen_enabled&&l&&(this.
$clickgenCTA.addClass(d.visible),t=o.controller.currentPosition,e=this.clickgenTrac
ker.trackLinkImpressionEvent(n.slideshow.clickgen_url,this.clickgenTracker.LINK_TYP
E.OverlaidCTA,t),this.impressionId=e,this.lastSlideWithImpression=t,this.bindEvents
()))}var i=e.
$,n=e.slideshare_object,r=n.utils.imports("Experiments"),o=i.slideshareEventManager
,s=new r,a="slideview-clickgen-cta-2",l=s.is(a,"b"),c={clickgenCTATop:".clickgen-
cta-top",clickgenCTA:".j-clickgen-cta",stage:".stage,
.image_maps"},d={visible:"visible"};t.prototype={constructor:t,bindEvents:function(
){this.$clickgenCTA.off("click").on("click",function()
{this.impressionId&&(this.clickgenTracker.trackLinkClickEvent(this.impressionId),e.
open(n.slideshow.clickgen_url,"_blank"),e.focus())}.bind(this)),i(c.stage).hover(fu
nction(){var e,t;this.$clickgenCTA.hasClass(d.visible)||(this.
$clickgenCTA.addClass(d.visible),t=o.controller.currentPosition,t!
=this.lastSlideWithImpression&&(e=this.clickgenTracker.trackLinkImpressionEvent(n.s
lideshow.clickgen_url,this.clickgenTracker.LINK_TYPE.OverlaidCTA,t),this.impression
Id=e,this.lastSlideWithImpression=t))}.bind(this),function(){this.
$clickgenCTA.removeClass(d.visible)}.bind(this)),o.player&&o.player.one("next
previous gotoslide",function(){this.
$clickgenCTA.removeClass(d.visible)}.bind(this))}},n.utils.exports("clickgen.Clickg
enCTA",t)}(window),function(e){function t()
{$.slideshareEventManager&&$.slideshareEventManager.controller?n=new i:$
(document).on("slideshare-player-controller:init-done",function(){
n=new i})}var
i=e.slideshare_object.utils.imports("clickgen.ClickgenCTA"),n=null;t()}
(window),Handlebars.registerPartial("svg-icon",Handlebars.template({compiler:[6,">=
2.0.0-beta.1"],main:function(e,t,i,n){var
r,o=t.helperMissing,s="function",a=this.escapeExpression;return'<svg>\n <use data-
size="'+a((r=null!=(r=t.size||(null!=e?e.size:e))?r:o,typeof r===s?r.call(e,
{name:"size",hash:{},data:n}):r))+'" xlink:href="#'+a((r=null!=(r=t.type||(null!=e?
e.type:e))?r:o,typeof r===s?r.call(e,{name:"type",hash:{},data:n}):r))
+'"></use>\n</svg>\n'},useData:!0})),Handlebars.registerPartial("clipboard-
trio",Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,i,n)
{var r,o=t.helperMissing,s="function",a=this.escapeExpression;return'<div
class="container clearfix">\n <div class="main left">\n <a href="'+a((r=null!
=(r=t.url||(null!=e?e.url:e))?r:o,typeof r===s?r.call(e,{name:"url",hash:
{},data:n}):r))+'" class="main-image link-bg-img" data-original="'+a((r=null!
=(r=t.mainImage||(null!=e?e.mainImage:e))?r:o,typeof r===s?r.call(e,
{name:"mainImage",hash:{},data:n}):r))+'" alt="'+a((r=null!=(r=t.title||(null!=e?
e.title:e))?r:o,typeof r===s?r.call(e,{name:"title",hash:{},data:n}):r))+'"/>\n
</div>\n <div class="side">\n <a href="'+a((r=null!=(r=t.url||(null!=e?
e.url:e))?r:o,typeof r===s?r.call(e,{name:"url",hash:{},data:n}):r))+'"
class="side-image link-bg-img" data-original="'+a((r=null!=(r=t.firstSideImage||
(null!=e?e.firstSideImage:e))?r:o,typeof r===s?r.call(e,
{name:"firstSideImage",hash:{},data:n}):r))+'" alt="'+a((r=null!=(r=t.title||(null!
=e?e.title:e))?r:o,typeof r===s?r.call(e,{name:"title",hash:{},data:n}):r))+'"/>\n
<a href="'+a((r=null!=(r=t.url||(null!=e?e.url:e))?r:o,typeof r===s?r.call(e,
{name:"url",hash:{},data:n}):r))+'" class="side-image link-bg-img" data-
original="'+a((r=null!=(r=t.secSideImage||(null!=e?e.secSideImage:e))?r:o,typeof
r===s?r.call(e,{name:"secSideImage",hash:{},data:n}):r))+'" alt="'+a((r=null!
=(r=t.title||(null!=e?e.title:e))?r:o,typeof r===s?r.call(e,{name:"title",hash:
{},data:n}):r))+'"/>\n </div>\n</div>\n'},useData:!
0})),slideshare_object.utils.exports("templates.clipping.top-clipboards-
thumbnail",Handlebars.template({compiler:[6,">= 2.0.0-
beta.1"],main:function(e,t,i,n){var
r,o,s=t.helperMissing,a="function",l=this.escapeExpression,c=this.lambda;return'<li
class="clipboard-thumbnail thumbnail">\n <div class="thumbnail-content">\n'+(null!
=(r=this.invokePartial(i["clipboard-trio"],e,{name:"clipboard-trio",hash:
{secSideImage:null!=(r=null!=(r=null!=e?e.clips:e)?r[2]:r)?
r.image_url:r,firstSideImage:null!=(r=null!=(r=null!=e?e.clips:e)?r[1]:r)?
r.image_url:r,mainImage:null!=e?e.image_url:e,url:null!=e?e.url:e,title:null!=e?
e.title:e},data:n,indent:" ",helpers:t,partials:i}))?r:"")+' <a
class="clipboard-url" href="'+l((o=null!=(o=t.url||(null!=e?e.url:e))?o:s,typeof
o===a?o.call(e,{name:"url",hash:{},data:n}):o))+'"><h5 class="title">'+l((o=null!
=(o=t.title||(null!=e?e.title:e))?o:s,typeof o===a?o.call(e,{name:"title",hash:
{},data:n}):o))+'</h5></a>\n <a class="author" href="'+l(c(null!=(r=null!=e?
e.user:e)?r.url:r,e))+'">\n <img alt="author" class="user-photo left"
src="'+l(c(null!=(r=null!=e?e.user:e)?r.photo:r,e))+'">\n <div class="user-
name">'+l(c(null!=(r=null!=e?e.user:e)?r.return_name:r,e))+"</div>\n </a>\n
</div>\n</li>\n"},usePartial:!0,useData:!
0})),slideshare_object.utils.exports("templates.clipping.clipboards-dropdown-list-
item",Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,i,n)
{var r,o,s=t.helperMissing,a="function",l=this.escapeExpression;return'<li
class="j-clipboard j-clipboard-item">\n <button>\n <span class="title
left"> '+l((o=null!=(o=t.title||(null!=e?e.title:e))?o:s,typeof o===a?o.call(e,
{name:"title",hash:{},data:n}):o))+' </span>\n <span class="svg-icon check
right '+l((o=null!=(o=t.checkVisibility||(null!=e?e.checkVisibility:e))?o:s,typeof
o===a?o.call(e,{name:"checkVisibility",hash:{},data:n}):o))+'">\n'+(null!
=(r=this.invokePartial(i["svg-icon"],e,{name:"svg-icon",hash:{type:"check-
icon",size:"small"},data:n,indent:" ",helpers:t,partials:i}))?r:"")+"
</span>\n </button>\n</li>\n"},usePartial:!0,useData:!
0})),slideshare_object.utils.exports("templates.clipping.clipboards-list-
item",Handlebars.template({1:function(e,t,i,n){return"clip-added"},compiler:[6,">=
2.0.0-beta.1"],main:function(e,t,i,n){var
r,o,s=t.helperMissing,a="function",l=this.escapeExpression;return'<li
class="clipboard-list-item '+(null!=(r=t["if"].call(e,null!=e?e.checked:e,
{name:"if",hash:{},fn:this.program(1,n,0),inverse:this.noop,data:n}))?r:"")+'">\n
<div class="clipboard-item-thumb" style="background-image: url(\''+l((o=null!
=(o=t.clipboard_image_url||(null!=e?e.clipboard_image_url:e))?o:s,typeof o===a?
o.call(e,{name:"clipboard_image_url",hash:{},data:n}):o))+'\');"></div>\n <div
class="clipboard-item-title">'+l((o=null!=(o=t.title||(null!=e?e.title:e))?
o:s,typeof o===a?o.call(e,{name:"title",hash:{},data:n}):o))+'\n <span
class="svg-icon check">\n'+(null!=(r=this.invokePartial(i["svg-icon"],e,{name:"svg-
icon",hash:{type:"check-icon",size:"small"},data:n,indent:"
",helpers:t,partials:i}))?r:"")+' </span>\n </div>\n <button class="clipboard-
item-select-btn art-deco small primary" type="button">'+l(this.lambda(null!
=(r=null!=e?e.i18n:e)?r.select:r,e))+"</button>\n</li>\n"},usePartial:!0,useData:!
0})),slideshare_object.utils.exports("templates.clipping.clipboards-list-item-
default",Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,i,n)
{var r,o,s=t.helperMissing,a="function",l=this.escapeExpression;return'<li
class="clipboard-list-item clip-added">\n <div class="clipboard-item-thumb"
style="background-image: url(\''+l((o=null!=(o=t.clipboard_image_url||(null!=e?
e.clipboard_image_url:e))?o:s,typeof o===a?o.call(e,
{name:"clipboard_image_url",hash:{},data:n}):o))+'\');"></div>\n <div
class="clipboard-item-title">'+l((o=null!=(o=t.title||(null!=e?e.title:e))?
o:s,typeof o===a?o.call(e,{name:"title",hash:{},data:n}):o))+'</div>\n <button
class="clipboard-item-select-btn art-deco small tertiary" type="button"
disabled>'+l(this.lambda(null!=(r=null!=e?e.i18n:e)?r.selected:r,e))
+"</button>\n</li>\n"},useData:!
0})),slideshare_object.utils.exports("templates.clipping.notice-
prompt",Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,i,n)
{var r;return'<div class="notice-prompt-container">\n <div class="side-bar column
small-1">\n <div class="icon-container">\n <div class="svg-icon">\n'+(null!
=(r=this.invokePartial(i["svg-icon"],e,{name:"svg-icon",hash:{type:null!=e?
e.svg_icon_type:e,size:"large"},data:n,indent:" ",helpers:t,partials:i}))?
r:"")+' </div>\n </div>\n </div>\n <div class="content-bar column small-
11">\n <div class="close-container clearfix">\n <span
class="close"></span>\n </div>\n <div class="content">\n </div>\n
</div>\n</div>\n'},usePartial:!0,useData:!
0})),slideshare_object.utils.exports("templates.clipping.success-
toast",Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,i,n)
{var r,o,s=this.lambda,a=this.escapeExpression;return'<a href="'+a(s(null!=(r=null!
=e?e.clipboard:e)?r.url:r,e))+'">\n <span class="slide-thumb" style="background-
image: url(\''+a(s(null!=(r=null!=e?e.clip:e)?r.thumbnail:r,e))
+'\');"></span>\n</a>\n<p class="details">\n '+(null!=(o=null!=(o=t.message||
(null!=e?e.message:e))?o:t.helperMissing,r="function"==typeof o?o.call(e,
{name:"message",hash:{},data:n}):o)?r:"")+'\n</p>\n<div class="toast-actions">\n
<span class="change j-change-clipboard">'+a(s(null!=(r=null!=(r=null!=(r=null!=e?
e.i18n:e)?r.clipping:r)?r.toast:r)?r.change_clipboard:r,e))+'</span>\n <span
class="share j-share-clip">\n <i class="fa fa-fw fa-share"></i> '+a(s(null!
=(r=null!=(r=null!=(r=null!=e?e.i18n:e)?r.clipping:r)?r.toast:r)?r.share_clip:r,e))
+"\n </span>\n</div>\n"},useData:!0})),function(e){var
t=(window.encodeURIComponent,"LinkedIn"),i="Twitter",n="Facebook",r="GooglePlus",o=
"Pinterest",s={linkedin:t,twitter:i,facebook:n,googleplus:r,pinterest:o},a="https:/
/www.linkedin.com/shareArticle",l="https://twitter.com/intent/tweet",c="https://www
.facebook.com/sharer/sharer.php",d="https://plus.google.com/u/0/share",h="https://p
interest.com/pin/create/button/",p={SERVICE_LINKEDIN:t,SERVICE_TWITTER:i,SERVICE_FA
CEBOOK:n,SERVICE_GOOGLEPLUS:r,SERVICE_PINTEREST:o,getNormalizedServiceName:function
(e){var t,i;if(!e)throw new Error("Undefined service name: "+e);return
t=e.toLowerCase(),i=s[t],i&&(e=i),e},isSupportedService:function(e){return
Object.keys(s).some(function(t){return
s[t]===e})},generateLinkedInShareWindowUrl:function(e,t){var i={url:e};return
t&&(t.title&&(i.title=t.title),t.description&&(i.summary=t.description)),a+"?"+
$.param(i)},generateTwitterShareWindowUrl:function(e,t){var i={url:e};return
t&&(t.description&&(i.text=t.description),t.via&&(i.via=t.via)),l+"?"+
$.param(i)},generateFacebookShareWindowUrl:function(e){var t={u:e};return c+"?"+
$.param(t)},generateGooglePlusShareWindowUrl:function(e){var t={url:e};return
d+"?"+$.param(t)},generatePinterestShareWindowUrl:function(e,t){var
i={url:e};return
t&&(t.title&&(i.title=t.title),t.description&&(i.description=t.description),t.image
Url&&(i.media=t.imageUrl)),h+"?"+$.param(i)},generateShareWindowUrl:function(e,t,i)
{var n="generate"+e+"ShareWindowUrl";return this[n]
(t,i)}};e.utils.exports("socialShareUtil",p)}(window.slideshare_object),function(e)
{var
t,i=e.utils.imports("socialShareUtil"),n={strWindowFeatures:"width=550,height=380,s
crollbars=yes,resizable=yes"};if(!i)throw new Error("SocialShareWindow dependency
missing: SocialShareUtil");t=function(e){var e=$.extend({},n,e),t=e.url||
window.location.href,r=i.getNormalizedServiceName(e.serviceType),o=e.title,s=e.desc
ription,a=e.imageUrl,l=e.strWindowFeatures,c=i.generateShareWindowUrl(r,t,
{title:o,description:s,imageUrl:a});return{open:function(){if(!
i.isSupportedService(r))thr
ow new Error("Unsupported service:
"+r);window.open(c,null,l)}}},e.utils.exports("SocialShareWindow",t)}
(window.slideshare_object),function(e){function t(e)
{this.config=$.extend({},l,e),this.shareEntity=this.config.shareEntity,this.shareEn
tityType=this.config.shareEntityType,this.onClose=this.config.onClose,this.shareTyp
es=[],this._init()}var
i=e.utils.imports("SocialShareWindow"),n=e.utils.imports("socialShareUtil"),r={emai
l:"email",facebook:"facebook",twitter:"twitter",linkedin:"linkedin",googleplus:"goo
gleplus"},o="clipboard",s="clip",a={clipShared:"clip:shared",clipboardShared:"clipb
oard:shared",beforeModalOpen:"open.fndtn.reveal",afterModalOpen:"opened.fndtn.revea
l",afterModalClose:"closed.fndtn.reveal"},l={shareEntity:
{},shareEntityType:o,onClose:$.noop},c={modalTitle:".j-modal-
title",shareLinkInput:".j-share-link-url",socialNetworkList:".j-share-social-
list",emailShareForm:".j-share-email-form",shareEmailSend:"#share-email-
send",shareEmailForm:".j-share-email-form",shareEmailTo:".j-share-email-
to",shareEmailName:".j-share-email-name",shareEmailMessage:".j-share-email-
msg",shareEmailClear:".j-email-clear",shareEmailSent:".j-email-
sent",shareEmailFlash:".j-email-flash"};t.prototype._init=function(){if(this.$el=$
(this.config.el),this.$shareLinkInput=this.$el.find(c.shareLinkInput),this.
$shareEmailSend=this.$el.find(c.shareEmailSend),this.$shareEmailForm=this.
$el.find(c.shareEmailForm),this.$modalTitle=this.$el.find(c.modalTitle),!this.
$el.length||$.isEmptyObject(this.shareEntity))throw new Error("Error initializing
ShareModal");if(!i)throw new Error("ClipboardModalShare dependency missing:
SocialShareWindow");this.gaTrackCategory=this.$el.data("ga-track-
category"),this.gaTrackAction=this.$el.data("ga-track-
action"),this._updateView(),this._attachEventListeners()},t.prototype._updateView=f
unction(){var t=this.config.modalTitle;t&&this.$modalTitle.text(t),this.
$shareLinkInput.val(this.shareEntity.url),e&&e.utils.isUserAuthenticated()&&this.
$el.find(c.shareEmailName).val(e.user.login)},t.prototype._attachEventListeners=fun
ction(){this.$el.on(a.afterModalClose,this._onClosed.bind(this)),this.
$el.on("click",c.socialNetworkList,this._onSocialNetworkClick.bind(this)),this.
$el.on("click",c.shareLinkInput,function(e){$(e.target).select()}),this.
$el.on("submit",c.emailShareForm,this._onEmailShareSubmit.bind(this))},t.prototype.
_detachEventListeners=function(){this.
$el.off()},t.prototype._onSocialNetworkClick=function(e){var t,a,l,c,d=$
(e.target),h=d.data("network"),p="Make your own by #clipping the best @SlideShare
slides.",u="Share your own by #clipping the best @SlideShare
slides.";h&&(this.shareTypes.push(r[h]),a={url:this.shareEntity.url,serviceType:h},
n.getNormalizedServiceName(h)==n.SERVICE_TWITTER&&(this.shareEntityType===o?l="See
"+this.shareEntityType+' "'+this.shareEntity.title+'".
'+p:this.shareEntityType===s?
(t=this.shareEntity.description.charAt(0).toLowerCase()
+this.shareEntity.description.slice(1),l="See "+t+".
"+u):l=p,a.description=l),c=new
i(a),c.open())},t.prototype._clearEmailErrorAlerts=function(){this.
$el.find(".error").removeClass("error")},t.prototype._clearEmailFields=function()
{this.$el.find(c.shareEmailClear).val(""),this.$shareEmailSend.prop("disabled",!
1),this._clearEmailErrorAlerts()},t.prototype._onEmailShareSubmit=function(e)
{e.preventDefault();var t=this,i=this.$el.find(c.shareEmailTo).val(),n=this.
$el.find(c.shareEmailName).val(),o=this.$el.find(c.shareEmailMessage).val(),s=!1;t.
$shareEmailSend.val("Sending").addClass("sending").prop("disabled",!
0),t._clearEmailErrorAlerts(),s||(s=!
0,$.ajax({url:"/w/clipboards/email_share",type:"POST",dataType:"json",data:
{id:this.shareEntity.id,name:n,recipients:i,message:o,entity:this.shareEntityType},
success:function(e)
{if(0===e.response_code)t.shareTypes.push(r.email),t._clearEmailFields(),t.
$shareEmailForm.slideUp(400),t.
$el.find(c.shareEmailSent).slideDown(400),setTimeout(function(){t.
$el.find(c.shareEmailSent).slideUp(400),t.
$shareEmailForm.slideDown(400)},2e3);else{var i=t.
$el.find(c.shareEmailFlash);switch(i.text(e.response).show(),e.response_code){case
1:t.$el.find(c.shareEmailTo).addClass("error");break;case 2:t.
$el.find(c.shareEmailName).addClass("error")}setTimeout(function()
{i.fadeOut(400)},5e3)}},complete:function(){s=!1,t.
$shareEmailSend.val("Send").removeClass("sending").prop("disabled",!
1)}}))},t.prototype._onClosed=function()
{this._detachEventListeners(),this._trackEvents(),this.onClose({shareEntity:this.sh
areEntity,shareEntityType:this.shareEntityType,shareTypes:this.shareTypes})},t.prot
otype._trackEvents=function(){var e,t;this.shareEntityType===s?
(e=a.clipShared,t={clip:this.shareEntity}):this.shareEntityType===o&&(e=a.clipboard
Shared,t={clipboard:this.shareEntity}),e&&t&&this.shareTypes.forEach(function(i){$
(document).trigger(e,$.extend(t,{shareType:i}))})},t.prototype.close=function()
{this.$el.foundation("reveal","close")},t.prototype.open=function(){this.
$el.foundation("reveal","open"),this.shareTypes=[]},e.utils.exports("ClipboardModal
Share",t)}(window.slideshare_object),function(e,t){var
i=e.utils,n={onClose:t.noop,onHide:t.noop},r={close:".close"},o="notice-
prompt",s=function(e){return e.toString()+"px"},a=function(e){var i;return
this.config=t.extend(n,e),this.$el=t(this.config.selector||r.container),
(i=this._getInstance(this.$el))?i:void
this._init()};a.prototype={constructor:a,_getInstance:function(e){return
e.data(o)},_init:function(){this.$el.data(o,this),this.timeouts={hide:null},this.
$close=t(r.close),this._attachEventListeners()},_attachEventListeners:function()
{this.$el.on("click",r.close,function()
{this.hide(),this.config.onClose.call()}.bind(this))},show:function(){var e=this.
$el;1!
==e.css("opacity")&&(e.css("opacity",0).removeClass("hide").addClass("show").css("r
ight","-"+s(this.width())),e.animate({right:"+="+this.width(),opacity:1}))},hide:fu
nction(){this.$el.animate({right:"-"+this.width(),opacity:0},function(){this.
$el.removeClass("show").addClass("hide")}.bind(this)),this.config.onHide.call()},wi
dth:function(){return this.width=this.width||this.
$el.width(),this.width}},i.exports("NoticePrompt",a)}
(window.slideshare_object,jQuery),function(e){var
t=e.slideshare_object.utils.imports("Experiments"),i=new
t;i.deleteExperiment("slideview-clip-button"),i.deleteExperiment("slideview-clip-
button-exp-2"),i.deleteExperiment("slideview-clip-button-exp-3")}
(window),function(e){function t(e,t)
{e.super_=t,e.prototype=Object.create(t.prototype,{constructor:
{value:e,enumerable:!1,writable:!0,configurable:!
0}}),e.prototype["super"]=function()
{t.apply(this,arguments)}}Handlebars.registerHelper("pluralize",function(e,t,i)
{return 1===e?t:i}),e.Clipboards={},e.Clipboards.config={},e.Clipboards.inherits=t}
(window.slideshare_object),function(e){function t(){}var
i=e.slideshare_object.utils,n="POST",r="GET",o="PUT",s="DELETE";t.prototype.addAnno
tation=function(e,t,i){return
this._ajax("/clipboards/"+e+"/clips/"+t+"/add_annotation",n,
{annotation:i})},t.prototype.addClipToClipboard=function(e,t){return
this._ajax("/clipboards/"+e+"/clips",n,t)},t.prototype.addClips=function(e,t)
{return this._ajax("/clipboards/"+e+"/clips/bulk",n,
{ids:t})},t.prototype.reclipClips=function(e,t,i){return
this._ajax("/clipboards/"+e+"/clips/bulk_reclip",n,
{source_clipboard_id:t,ids:i})},t.prototype.clipboards=function(){return
this._ajax("/clipboards",r)},t.prototype.createClipboard=function(e){return
this._ajax("/clipboards",n,e)},t.prototype.deleteClip=function(e){return
this._ajax("/clips/"+e,s)},t.prototype.deleteClipFromClipboard=function(e,t){return
this._ajax("/clipboards/"+e+"/clips/"+t,s)},t.prototype.deleteClipsFromClipboard=fu
nction(e,t){return this._ajax("/clipboards/"+e+"/clips/bulk",s,
{ids:t})},t.prototype.deleteClipboard=function(e){return
this._ajax("/clipboards/"+e,s)},t.prototype.editClipboard=function(e,t){return
this._ajax("/clipboards/"+e,o,t)},t.prototype.reorderClips=function(e,t){return
this._ajax("/clipboards/"+e+"/clips/reorder",n,
{clips_order:t})},t.prototype.topClipboards=function(e,t){return
this._ajax("/clipboards/top",r,
{slideshow_id:e,position:t})},t.prototype._ajax=function(e,t,i){return
$.ajax({url:e,type:t,dataType:"json",contentType:"application/json",data:t===r?
i:JSON.stringify(i)})},i.exports("clips.api",new t)}(window),function(e){function
t(e,t,i){var
n=s(t).data(f.clipboard),r=s(i).data(f.clipboard),o=n.title.toLowerCase(),a=r.title
.toLowerCase(),l=o.indexOf(e),c=a.indexOf(e);return l!==c?l-c:o<a?-1:o>a?
1:0}function i(e,t){return t=t||e.title}function n(e,t){var
n=e.title,r=n.toLowerCase().indexOf(t),o=n.substring(0,r),a=n.substring(r,r+t.lengt
h),l=n.substring(r+t.length),c=s("<span>").addClass(d.searchHighlight).text(a);retu
rn i(e,o+c.get(0).outerHTML+l)}function r()
{this._$events=s({}),this.api=l.imports("clips.api"),this.$el=s(p.dropdown),this.
$clipboardList=this.$el.find(p.clipboardList),this.$searchInput=this.
$el.find(p.searchInput),this.$createNew=this.$el.find(p.createNew),this.
$createFormWrapper=this.$el.find(p.createFormWrapper),this.$createForm=this.
$createFormWrapper.find(p.createForm),this.$createFormInput=this.
$createFormWrapper.find(p.createFormInput),this.$createFormError=this.
$createFormWrapper.find(p.createFormError),this.itemTemplate=l.imports(u.listItem),
this.attachEventListeners()}var o=4,s=e.$,a=e.slideshare_object,l=a.utils,c=!!
s.fn.foundation,d=(e.jSecure,{clipboardItem:"j-clipboard j-clipboard-
item",searchHighlight:"search-
highlight",bulk:"bulk"}),h={enter:13},p={searchInput:".j-clips-
search",createForm:".j-create-form",createFormError:".j-create-form-
error",createFormInput:".j-create-form-input",createFormWrapper:".j-create-form-
wrapper",clipboardItem:".j-clipboard-item",clipboardList:".j-clipboard-names-
dropdown",createNew:".j-create-new",dropdown:"#clipboard-names-
dropdown"},u={listItem:"templates.clipping.clipboards-dropdown-list-
item"},f={clipboard:"clipboard-
to"},g={clipboardSelected:"clipboard:selected",clipboardCreated:"clipboard:created"
,bulkClipboardSelected:"clipboard:select
ed:bulk",bulkClipboardCreated:"clipboard:created:bulk"};r.prototype.attachEventList
eners=function(){this.
$el.on("input",p.searchInput,this.onSearchClipboards.bind(this)),this.
$el.on("input",p.searchInput,this.clearCreateFormError.bind(this)),this.
$el.on("input",p.createFormInput,this.clearCreateFormError.bind(this)),this.
$el.on("keypress",p.searchInput,this.onSearchKeypress.bind(this)),this.
$el.on("click",p.createNew,this.showCreateInput.bind(this)),this.
$el.on("submit",p.createForm,this.onCreateFormSubmit.bind(this)),this.
$el.on("click",p.clipboardItem,this.onClipboardClick.bind(this))},r.prototype.onCre
ateFormSubmit=function(e)
{e.preventDefault(),this.clearCreateFormError(),this.api.createClipboard({title:thi
s.
$createFormInput.val()}).then(this.onCreateClipboardSuccess.bind(this),this.onCreat
eClipboardFailure.bind(this))},r.prototype.onCreateClipboardSuccess=function(e){var
t=this.isBulk()?
g.bulkClipboardCreated:g.clipboardCreated;this._$events.trigger(t,e),s(document).tr
igger(g.clipboardCreated,e),this.close()},r.prototype.onCreateClipboardFailure=func
tion(e){this.setCreateFormError("Name
"+e.responseJSON.errors.title[0])},r.prototype.onClipboardClick=function(e){var
t=s(e.currentTarget),i=t.data(f.clipboard);if(i){var n=this.isBulk()?
g.bulkClipboardSelected:g.clipboardSelected;this._$events.trigger(n,i),this.close()
}},r.prototype.onSearchClipboards=function(e){var
i=s(e.target),r=i.val().toLowerCase(),o=s(p.clipboardItem);o.hide(),o.detach(),o.so
rt(function(e,i){return t(r,e,i)}),o.appendTo(this.
$clipboardList),o.each(function(e,t){var
i=s(t),o=i.find("button"),a=i.data(f.clipboard),l=a.title;l.toLowerCase().indexOf(r
)>-
1&&(o.html(n(a,r)),i.show())}),this.scrollToTop()},r.prototype.onSearchKeypress=fun
ction(e){if(e.which===h.enter){var
t=s(p.clipboardItem+":visible"),i=t.first(),n=i.data(f.clipboard);n&&(n.is_default?
this.close():this._$events.trigger(g.clipboardSelected,n))}},r.prototype.showCreate
Input=function(){this.$createNew.hide(),this.$createForm.show(),this.
$createFormInput.val("").focus()},r.prototype.setCreateFormError=function(e){var
t=Boolean(e);this.$createFormWrapper.toggleClass("error",t),this.
$createFormError.text(e||"").toggleClass("hide",!
t)},r.prototype.clearCreateFormError=function()
{this.setCreateFormError()},r.prototype.on=function(e,t)
{this._$events.on(e,t)},r.prototype.updateClipboards=function(e){this.
$clipboardList.empty().append(e.map(function(e){return
e.checkVisibility=e.checked?"show":"hide",itemTempl=this.itemTemplate(e),s(itemTemp
l).data(f.clipboard,e)}.bind(this)))},r.prototype.updateSearchInput=function(e){var
t=e.length>o;this.$clipboardList.toggleClass("has-search",t),this.
$searchInput.toggle(t),this.
$searchInput.val("")},r.prototype.updateCreateNew=function()
{this.clearCreateFormError(),this.$createNew.show(),this.
$createForm.hide()},r.prototype.update=function(e)
{this.updateClipboards(e),this.updateSearchInput(e),this.updateCreateNew(),this.scr
ollToTop()},r.prototype.close=function()
{c&&s(document).foundation("dropdown","close",this.
$el)},r.prototype.scrollToTop=function(){this.
$clipboardList.scrollTop(0)},r.prototype.isBulk=function(){return this.
$clipboardList.hasClass(d.bulk)},l.exports("clips.ClipboardsDropdown",r)}
(window),function(e,t){function i(e){this.api=o,this.config=n.extend(!0,
{},h,e),this._$events=n({}),this.$el=n(this.config.el),this.$el.length?
(this._init(),this._attachEventListeners()):console.error("Unable to initialize
ClipboardsList")}var n=e.$,r=t.utils,o=r.imports("clips.api"),s=!!
n.fn.foundation,a={enter:13},l=".clipboardslist",c={clipboardSelected:"clipboard:se
lected"},d={select:r.i18n("select"),selected:r.i18n("selected")},h={el:null,classes
:{clipboardItem:"j-clipboard j-clipboard-item",searchHighlight:"search-
highlight"},selectors:{searchInputContainer:".clipboard-search-input-
container",searchInput:".clipboard-search-input",clipboardList:".clipboard-
list",clipboardItem:".clipboard-list .clipboard-list-
item",clipboardItemTitle:".clipboard-item-title"},templates:
{listItem:"templates.clipping.clipboards-list-item"},dataAttr:
{clipboard:"clipboard-to"},minItemsToShowSearch:4};i.prototype._init=function()
{this.classes=this.config.classes,this.selectors=this.config.selectors,this.dataAtt
r=this.config.dataAttr,this.templates={listItem:r.imports(this.config.templates.lis
tItem)},this.$clipboardList=this.$el.find(this.selectors.clipboardList),this.
$searchInputContainer=this.$el.find(this.selectors.searchInputContainer),this.
$searchInput=this.
$el.find(this.selectors.searchInput)},i.prototype._attachEventListeners=function()
{this.
$el.on("input"+l,this.selectors.searchInput,this.onSearchClipboards.bind(this)),thi
s.
$el.on("keypress"+l,this.selectors.searchInput,this.onSearchKeypress.bind(this)),th
is.
$el.on("click"+l,this.selectors.clipboardItem,this.onClipboardClick.bind(this))},i.
prototype._detachEventListeners=function(){this.
$el.off(l)},i.prototype.sortClipboardsByQueryMatch=function(e,t,i){var
r=n(t).data(this.dataAttr.clipboard),o=n(i).data(this.dataAttr.clipboard),s=r.title
.toLowerCase(),a=o.title.toLowerCase(),l=s.indexOf(e),c=a.indexOf(e);return l!==c?
l-c:s<a?-1:s>a?1:0},i.prototype.makeClipboardTitle=function(e,t){return t=t||
e.title},i.prototype.makeSearchTitle=function(e,t){var
i=e.title,r=i.toLowerCase().indexOf(t),o=i.substring(0,r),s=i.substring(r,r+t.lengt
h),a=i.substring(r+t.length),l=n("<span>").addClass(this.classes.searchHighlight).t
ext(s);return
this.makeClipboardTitle(e,o+l.get(0).outerHTML+a)},i.prototype.onClipboardClick=fun
ction(e){var t=n(e.currentTarget),i=t.data(this.dataAttr.clipboard);i&&!
i.checked&&this._$events.trigger(c.clipboardSelected,i)},i.prototype.onSearchClipbo
ards=function(e){var
t=n(e.target),i=t.val().toLowerCase(),r=n(this.selectors.clipboardItem);r.hide(),r.
detach(),r.sort(function(e,t){return
this.sortClipboardsByQueryMatch(i,e,t)}.bind(this)),r.appendTo(this.
$clipboardList),r.each(function(e,t){var
r=n(t),o=r.find(this.selectors.clipboardItemTitle),s=r.data(this.dataAttr.clipboard
),a=s.title;a.toLowerCase().indexOf(i)>-
1&&(o.html(this.makeSearchTitle(s,i)),r.show())}.bind(this)),this.scrollToTop()},i.
prototype.onSearchKeypress=function(e){if(e.which===a.enter){var
t=n(this.selectors.clipboardItem+":visible"),i=t.first(),r=i.data(this.dataAttr.cli
pboard);r&&(r.is_default?
this.close():this._$events.trigger(c.clipboardSelected,r))}},i.prototype.updateClip
boards=function(e){this.$clipboardList.empty().append(e.map(function(e){var
t=this.templates.listItem(n.extend(!0,{},{i18n:d},e));return
n(t).data(this.dataAttr.clipboard,e)}.bind(this)))},i.prototype.updateSearchInput=f
unction(e){var t=e.length>this.config.minItemsToShowSearch;this.
$clipboardList.toggleClass("has-search",t),this.
$searchInputContainer.toggle(t),this.
$searchInput.val("")},i.prototype.update=function(e)
{this.updateClipboards(e),this.updateSearchInput(e),this.scrollToTop()},i.prototype
.close=function(){s&&n(document).foundation("dropdown","close",this.
$el)},i.prototype.scrollToTop=function(){this.
$clipboardList.scrollTop(0)},i.prototype.on=function(e,t)
{this._$events.on(e,t)},r.exports("clips.ClipboardsList",i)}
(window,window.slideshare_object),function(e){function t(e){this.$el=$(e.el),this.
$loader=this.$el.find(".loading"),this.$empty=this.$el.find(".empty"),this.
$clipboards=this.$el.find(".clipboards"),this.$clipboardsList=this.
$clipboards.find("ul"),this.api=i.imports("clips.api")}var
i=e.utils,n={tiny:"tiny",small:"small",medium:"medium",large:"large",xlarge:"xlarge
",full:"full"},r={singleColumn:"small-block-grid-1 medium-block-grid-1 large-block-
grid-1",multiColumns:"small-block-grid-1 medium-block-grid-2 large-block-grid-
3"},o={template:"#top-clipboards-thumbnail-template",lazyImg:".thumbnail .link-bg-
img"},s={thumbnail:i.imports("templates.clipping.top-clipboards-
thumbnail")};t.prototype.loadClipboards=function(e)
{this.api.topClipboards(this.slideshowId,this.position).then(function(t)
{e(t)}.bind(this),function(){console.log("failed to load
clipboards",arguments),e([])})},t.prototype.showClipboards=function(e){this.
$clipboardsList.empty().append(e.map(s.thumbnail)),this.$clipboards.show(),this.
$el.find(o.lazyImg).lazyload({threshold:300,effect:"fadeIn"})},t.prototype.hideClip
boards=function(e){this.$clipboards.hide()},t.prototype.showEmptyMessage=function()
{this.$empty.show()},t.prototype.hideEmptyMessage=function(){this.
$empty.hide()},t.prototype.updateModalSize=function(e){var t=e.length<=2;this.
$el.removeClass(n.medium).removeClass(n.xlarge).addClass(t?n.medium:n.xlarge),this.
$clipboardsList.removeClass().addClass(t?
r.singleColumn:r.multiColumns)},t.prototype.open=function(e,t)
{this.slideshowId=e,this.position=t,this.showLoader(),this.hideEmptyMessage(),this.
hideClipboards(),this.
$el.foundation("reveal","open"),this.loadClipboards(function(e)
{this.hideLoader(),e&&0!==e.length?
(this.updateModalSize(e),this.showClipboards(e)):this.showEmptyMessage()}.bind(this
))},t.prototype.close=function(){this.
$el.foundation("reveal","close")},t.prototype.showLoader=function(){this.
$loader.show()},t.prototype.hideLoader=function(){this.
$loader.hide()},i.exports("clips.TopClipboardsModal",t)}
(window.slideshare_object),function(e){function t(e)
{this.config=$.extend({},c,e),this.clipboard=this.config.clipboard,this.onClose=thi
s.config.onClose,this.onSave=this.config.onSave,this.status=i.cancelled,this.change
dFields=s,this._init()}var
i={created:"created",updated:"updated",cancelled:"cancelled",failed:"failed"},n={cl
ipboardEdited:"clipboard:edited",clipboardCreated:"clipboard:created",beforeModalOp
en:"open.fndtn.reveal",afterModalOpen:"opened.fndtn.reveal",afterModalClose:"closed
.fndtn.reveal"},r={cancel:".j-cancel-button",submit:".j-submit-
button",form:"form",firstClipMessage:".first-clip-message",modalTitle:".modal-
title","private":".j-privacy-input",privacyDescription:"#privacy-switch-
description",title:".j-title-input",titleError:".j-title-error",titleWrapper:".j-
title-wrapper",description:".j-description-input",descriptionError:".j-description-
error",de
scriptionWrapper:".j-description-wrapper",i18n:".j-i18n-edit-clipboard-
modal"},o={firstClipModal:"first-clip-modal",hide:"hide"},s={title:!1,description:!
1},a="edit",l="create",c={onClose:$.noop,clipboard:{}};t.prototype._init=function()
{var e;if(this.$el=$(this.config.el),!this.$el.length)throw new Error("Error
initializing EditModal");this.$form=this.$el.find(r.form),this.
$firstClipMessage=this.$el.find(r.firstClipMessage),this.$modalTitle=this.
$el.find(r.modalTitle),this.$private=this.$form.find(r["private"]),this.
$privacyDescription=this.$form.find(r.privacyDescription),this.$title=this.
$form.find(r.title),this.$description=this.
$form.find(r.description),this.i18n=JSON.parse($(r.i18n).val()),e=this.
$el.find(this.config.focus),this.$focusEl=e.length?e:this.
$title,this._attachEventListeners()},t.prototype._attachEventListeners=function()
{this.config.type.toLowerCase()===a?this.
$el.on("click",r.submit,this._editClipboard.bind(this)):this.
$el.on("click",r.submit,this._createClipboard.bind(this)),this.
$el.on("click",r.cancel,this.close.bind(this)),this.
$el.on("keyup",r.title,this._clearTitleErrors.bind(this)),this.
$el.on("keyup",r.description,this._clearDescriptionErrors.bind(this)),this.
$el.on("change",r["private"],this._setPrivacyDescription.bind(this)),this.
$el.on(n.beforeModalOpen,this._onOpen.bind(this)),this.
$el.on(n.afterModalOpen,this._onOpened.bind(this)),this.
$el.on(n.afterModalClose,this._onClosed.bind(this))},t.prototype._detachEventListen
ers=function(){this.$el.off()},t.prototype.reset=function(){this.
$form[0].reset(),this._resetChangedFields(),this.
$el.removeClass(o.firstClipModal),this.
$firstClipMessage.addClass(o.hide)},t.prototype._setModalTitle=function(){var
e=this.config.type===l?this.i18n.formTitleCreate:this.i18n.formTitleEdit;this.
$modalTitle.text(e)},t.prototype._setFormContent=function()
{this.clipboard&&this.config.type.toLowerCase()===a&&(this.
$title.val(this.clipboard.title),this.
$description.val(this.clipboard.description),this.$private.attr("checked",!!
this.clipboard["private"]));
},t.prototype._setPrivacyDescription=function(){var e=this.$private.is(":checked")?
this.i18n.privacyEnabled:this.i18n.privacyDisabled;this.
$privacyDescription.text(e)},t.prototype._setFirstClipMessage=function()
{this.config.showFirstClipMessage&&(this.$el.addClass(o.firstClipModal),this.
$firstClipMessage.removeClass(o.hide))},t.prototype._showErrors=function(e){var
t=(e.responseJSON||{}).errors||
{};t.title&&this._setTitleErrors(t.title[0]),t.description&&this._setDescriptionErr
ors(t.description[0])},t.prototype._setTitleErrors=function(e){var t=this.
$el.find(r.titleError),i=this.
$el.find(r.titleWrapper);this._setErrors(t,i,e)},t.prototype._setDescriptionErrors=
function(e){var t=this.$el.find(r.descriptionError),i=this.
$el.find(r.descriptionWrapper);this._setErrors(t,i,e)},t.prototype._setErrors=funct
ion(e,t,i){var n=Boolean(i);e.text(i||""),e.toggleClass("hide",!
n),t.toggleClass("error",n)},t.prototype._clearTitleErrors=function()
{this._setTitleErrors()},t.prototype._clearDescriptionErrors=function()
{this._setDescriptionErrors()},t.prototype._onOpen=function()
{this._setFirstClipMessage(),this._setModalTitle(),this._setFormContent(),this._set
PrivacyDescription()},t.prototype._onOpened=function(){this.
$focusEl.focus()},t.prototype._onClosed=function()
{this._detachEventListeners(),this.reset(),this.onClose(this.status,this.response)}
,t.prototype._onClipboadChange=function(){(this.changedFields.title||
this.changedFields.description)&&e.sharePrompt.show()},t.prototype._editClipboard=f
unction(t)
{t.preventDefault(),this._determineChangedFields(),e.api.editClipboard(this.clipboa
rd.id,{title:this.$title.val(),description:this.$description.val(),"private":this.
$private.is(":checked")}).then(function(e){$(document).trigger(n.clipboardEdited,
{newClipboard:e.clipboard,oldClipboard:this.clipboard}),this.status=i.updated,this.
response=e,this.close(),this._onClipboadChange()}.bind(this),function(e)
{this._showErrors(e),this.status=i.failed}.bind(this))},t.prototype._determineChang
edFields=function(){var e=(this.clipboard,this.$title.val()),t=this.
$description.val(),i=this.$private.is(":checked");$.extend(this.changedFields,
{title:e!==this.clipboard.title,description:t!
==this.clipboard.description,privacy:i!
==this.clipboard["private"]})},t.prototype._resetChangedFields=function()
{this.changedFields=s},t.prototype._createClipboard=function(t)
{t.preventDefault(),e.api.createClipboard({title:this.
$title.val(),description:this.$description.val(),"private":this.
$private.is(":checked")}).then(function(e){$
(document).trigger(n.clipboardCreated,e),this.status=i.created,this.response=e,this
.close()}.bind(this),function(e)
{this._showErrors(e),this.status=i.failed}.bind(this))},t.prototype.open=function()
{this.status=i.cancelled,this.response=null,this.
$el.foundation("reveal","open")},t.prototype.close=function(){this.
$el.foundation("reveal","close")},e.EditModal=t}
(window.slideshare_object.Clipboards),function(e){function t(t)
{this.api=n,this.config=$.extend(!0,{},u,t),this.$el=$(this.config.el),this.
$el.length?(this.clipboards=this.config.clipboards||
[],this.clips=e.slideshow.clips||
{},this.defaultClipboard=this.config.defaultClipboard||
{},this.currentClip=null,this.templates={clipboardListItem:i.imports(d.clipboardLis
tItem),clipboardListItemDefault:i.imports(d.clipboardListItemDefault)},this.clipboa
rdsList=new
r({el:this.config.el}),this.config.actionType=this.config.actionType.toLowerCase(),
this._init()):console.error("Unable to initialize SelectClipboardModal")}var
i=e.utils,n=i.imports("clips.api"),r=i.imports("clips.ClipboardsList"),o=".selectcl
ipboard",s="copy",a="move",l={body:"body",loader:".loading",modalTitle:".modal-
title",modalContent:".modal-content",allClipboardsHeader:".all-clipboards-
header",defaultClipboardTitle:".default-clipboard-
title",defaultClipboardPanel:".default-clipboard-
panel",defaultClipboardList:".existing-clipboard-
list",clipboardListContainer:".clipboard-list-
container",createNewClipboard:".clipboard-create-
new"},c={clipCopied:"clip:copied",clipMoved:"clip:moved",clipboardSelected:"clipboa
rd:selected",click:"click"+o,beforeModalOpen:"open.fndtn.reveal"+o,afterModalOpen:"
opened.fndtn.reveal"+o,afterModalClose:"closed.fndtn.reveal"+o},d={clipboardListIte
m:"templates.clipping.clipboards-list-
item",clipboardListItemDefault:"templates.clipping.clipboards-list-item-
default"},h={defaultClipboard:"slideshare.clips.defaultClipboard."+e.user.id},p={se
lect:i.i18n("select"),selected:i.i18n("selected"),select_new_clipboard:i.i18n("clip
ping.select_clipboard_modal.select_new_clipboard"),select_another_clipboard:i.i18n(
"clipping.select_clipboard_modal.select_another_clipboard")},u={el:null,clipboards:
[],defaultClipboard:null,actionType:s};t.prototype._init=function(){this.
$loader=this.$el.find(l.loader),this.$modalTitle=this.$el.find(l.modalTitle),this.
$modalContent=this.$el.find(l.modalContent),this.$defaultClipboardPanel=this.
$el.find(l.defaultClipboardPanel),this._attachEventListeners()},t.prototype._attach
EventListeners=function()
{this.clipboardsList.on(c.clipboardSelected,this._onClipboardSelected.bind(this)),t
his.
$el.on(c.click,l.createNewClipboard,this._onCreateNewClipboardClick.bind(this)),thi
s.$el.on(c.beforeModalOpen,this._onBeforeModalOpen.bind(this)),this.
$el.on(c.afterModalClose,this._onAfterModalClose.bind(this))},t.prototype._detachEv
entListeners=function(){$(document).off(o),this.
$el.off(o)},t.prototype._onClipboardSelected=function(e,t)
{this.config.actionType===s&&this.addClipToClipboard(this.currentClip,t).then(funct
ion(e){e.clip.alreadyInClipboard||(this.setUserDefaultClipboard(t.id),$
(document).trigger(c.clipCopied,e)),this.close()}.bind(this)).fail(function(e,t,i)
{e&&console.error("Error while clipping.
"+e.statusText)}),this.config.actionType==a&&this.moveClip(this.defaultClipboard,t)
.then(function(e){$
(document).trigger(c.clipMoved,e),this.close()}.bind(this)).fail(function(e,t,i)
{e&&console.error("Error while moving clip.
"+e.statusText)})},t.prototype._onCreateNewClipboardClick=function(){var t=new
e.Clipboards.EditModal({el:"#clipboard-create-
modal",type:"create",onClose:function(e,t){"created"===e&&t&&t.clipboard?
this.clipboardsList._$events.trigger(c.clipboardSelected,t.clipboard):
(this._attachEventListeners(),this.clipboardsList._attachEventListeners(),this.open
({clip:this.currentClip}))}.bind(this)});t.open()},t.prototype._onBeforeModalOpen=f
unction(){var e=this.config.actionType===s,t=e?
p.select_another_clipboard:p.select_new_clipboard;this.$modalContent.hide(),this.
$loader.show(),t&&this.updateModalTitle(t),e&&($
(l.defaultClipboardTitle).text(this.defaultClipboard.title),this.
$defaultClipboardPanel.show()),$(l.body).css("overflow-
y","hidden")},t.prototype._onAfterModalClose=function()
{this.reset()},t.prototype.updateModalTitle=function(e){this.
$modalTitle.text(e)},t.prototype.showDefaultClipboardUI=function()
{this.templates.clipboardListItemDefault&&this.config.actionType===a&&$
(l.defaultClipboardList).empty().append($
(this.templates.clipboardListItemDefault($.extend(!0,{},
{i18n:p},this.defaultClipboard))))},t.prototype.loadClipboards=function(e)
{this.api.clipboards().then(function(t){e(t)}.bind(this),function()
{console.log("Failed to load
clipboards",arguments),e()})},t.prototype._processClipboards=function(e){var
t=this.currentClip,i=t&&t.clipboards||[];return $.map(e,function(e){return
e.id===this.defaultClipboard.id&&this.config.actionType==a?
void(this.defaultClipboard=e):(e.checked=!1,$.inArray(e.id,i)>-1&&(e.checked=!
0),e)}.bind(this))},t.prototype._sortedClipboardsBySelected=function(e,t){return
e.checked===t.checked?0:e.checked?-1:1},t.prototype.open=function(e){var
t;this.currentClip=this.clips[e.clip&&e.clip.position],this.
$el.foundation("reveal","open"),this.loadClipboards(function(e)
{e&&(processedClipboards=this._processClipboards(e),t=processedClipboards.sort(func
tion(e,t){return
this._sortedClipboardsBySelected(e,t)}.bind(this)),this.showDefaultClipboardUI(),th
is.clipboardsList.update(processedClipboards),this.$loader.hide(),this.
$modalContent.show())}.bind(this))},t.prototype.close=function(){this.
$el.foundation("reveal","close")},t.prototype.reset=function()
{this._detachEventListeners(),this.clipboardsList._detachEventListeners(),$
(l.defaultClipboardList).empty(),this.$defaultClipboardPanel.hide(),$
(l.clipboardListContainer).scrollTo(0),$(l.body).css("overflow-
y","auto")},t.prototype.addClipToClipboard=function(e,t){function i(e){var
i=this.currentClip;return i?(i.clipboards=i.clipboards||
[],i.clipboards.indexOf(t.id)===-
1&&i.clipboards.push(t.id)):e.clip.clipboards=[t.id],e}return
this.api.addClipToClipboard(t.id,e).then(function(e){return i.call(this,e),
{clip:e.clip,clipboard:t}}.bind(this),function(e,t,i){console.error("Error adding
to clipboard. "+e.statusText)})},t.prototype.removeClipFromClipboard=function(e,t)
{function i(){var e,t=this.currentClip;t&&(t.clipboards=t.clipboards||
[],e=t.clipboards.indexOf(n),e>-1&&t.clipboards.splice(e,1))}var n=t.id;return
this.api.deleteClipFromClipboard(n,e.id).then(function(e){return
i.call(this),e}.bind(this),function(e,t,i){console.error("Error removing clip from
clipboard. "+e.statusText)}.bind(this))},t.prototype.moveClip=function(e,t){var
i=this.currentClip;return this.addClipToClipboard(i,t).then(function(){return
this.removeClipFromClipboard(i,e)}.bind(this)).then(function(){return
this.setUserDefaultClipboard(t.id),
{clip:i,fromClipboard:e,toClipboard:t}}.bind(this))},t.prototype.setUserDefaultClip
board=function(e)
{window.localStorage&&window.localStorage.setItem(h.defaultClipboard,e)},i.exports(
"SelectClipboardModal",t)}(window.slideshare_object),function(e){function t()
{this._init()}var
i=e.utils,n=e.is_mobile,r=i.i18n(),o=i.imports("SelectClipboardModal"),s=i.imports(
"ClipboardModalShare"),a=i.imports("NoticePrompt"),l=".successtoast",c={noticePromp
t:i.imports("templates.clipping.notice-
prompt"),successToast:i.imports("templates.clipping.success-
toast")},d={slideContainer:".slide_container",slide:".slide",successToastWra
pper:".success-toast-wrapper",content:".content",changeClipboard:".j-change-
clipboard",shareClip:".j-share-clip",selectClipboardModal:"#select-clipboard-
modal",clipShareModal:"#clipboard-share-
modal"},h={clipCreated:"clip:created",clipCopied:"clip:copied",clipShared:"clip:sha
red",clipMoved:"clip:moved",successToastHide:"successtoast:hide"},p="clipshare",u=5
e3;t.prototype={constructor:t,_init:function(){this.$el=$
(d.successToastWrapper),this.$noticePrompt=$
(c.noticePrompt({svg_icon_type:"success-pebble-icon"})),this.$el.append(this.
$noticePrompt),this.$toastContainer=this.$noticePrompt.find(d.content),this.
$slides=$(d.slideContainer),this.noticePrompt=new
a({selector:d.successToastWrapper,onHide:this._onHide.bind(this)}),this.clip=null,t
his.clipboard=null,this.hideToastTimer=null,this._attachEventHandlers()},_attachEve
ntHandlers:function(){$(document).on(h.clipCreated,this.show.bind(this)),$
(document).on(h.clipCopied,this.show.bind(this)),$
(document).on(h.clipMoved,this.show.bind(this)),this.
$toastContainer.on("click",d.changeClipboard,this._onChangeClipboard.bind(this)),th
is.
$toastContainer.on("click",d.shareClip,this._onShareClip.bind(this))},_attachHideTo
astEvents:function(){$(document).on("click"+l,this.hide.bind(this)),this.
$el.on("click"+l,function(e)
{e.stopPropagation()}),this.hideToastTimer=setTimeout(this.hide.bind(this),u),this.
$el.on("mouseenter"+l,function()
{clearTimeout(this.hideToastTimer)}.bind(this)),this.
$el.on("mouseleave"+l,function()
{this.hideToastTimer=setTimeout(this.hide.bind(this),u)}.bind(this))},_onChangeClip
board:function(){this.selectModal=new
o({el:d.selectClipboardModal,defaultClipboard:this.clipboard,actionType:"move"}),th
is.selectModal.open({clip:this.clip})},_onShareClip:function(){var
e=this.clip,t=e.position,n=this._getClipUrl(e,
{src:p}),r=i.i18n("clip.slideview.share_message",
[t,slideshare_object.slideshow.title]);this.shareModal=new
s({el:d.clipShareModal,modalTitle:r,shareEntityType:"clip",shareEntity:
{id:e.id,url:n,description:r}}),this.shareModal.open()},_getClipUrl:function(t,i)
{var n=e.slideshow.ss_url;return i=i||{},t&&(n+="/"+t.position),n+"?"+
$.param(i)},_getClipboardUrl:function(t){var i=e.user.clipboards_url;return
i+"/"+t.slug+"?rftp=success_toast"},_getSlideThumb:function(e){var t=this.
$slides.find(d.slide+'[slidenumber="'+e+'"]'),i=t.find("img");if(i.length)return
i.attr("data-small")},_onHide:function(){clearTimeout(this.hideToastTimer),$
(document).off("click"+l),this.$el.off("click"+l),this.
$el.off("mouseenter"+l),this.$el.off("mouseleave"+l),$
(document).trigger(h.successToastHide)},show:function(e,t){if(!n){var
o,s=$.extend({},t.clip,
{thumbnail:this._getSlideThumb(t.clip.position)});o=e.type===h.clipMoved?
t.toClipboard:t.clipboard,o=$.extend({},o,
{url:this._getClipboardUrl(o)}),this.clip=s,this.clipboard=o,this.
$toastContainer.empty().append(c.successToast($.extend({clipboard:o,clip:s},
{i18n:r,message:i.i18n("clip.slideview.success_toast.message",[s.position,
{title:o.title,href:o.url,"class":"clipboard-
title"},o.title])}))),this.noticePrompt.show(),this._attachHideToastEvents()}},hide
:function(){this.noticePrompt.hide()}},e.utils.exports("clips.SuccessToast",t)}
(window.slideshare_object),function(e){function t(){this.$document=$
(document),this.attachEventListeners()}var
i=e.slideshare_object,n=i.utils,r={clipCreated:"clip:created",clipDeleted:"clip:del
eted",clipShared:"clip:shared",clipMoved:"clip:moved",clipboardCreated:"clipboard:c
reated"},o={clipTopButton:".clip-button-top",clipsToolbarActive:".j-clips-
toolbar:not(.inactive)",topClipboardOwner:".top-clipboards-modal
.author",topClipboardThumb:".top-clipboards-modal .link-bg-
img",topClipboardTitle:".top-clipboards-modal .clipboard-
url"};t.prototype.attachEventListeners=function(){this.
$document.on(r.clipCreated,function(e,t)
{i.clippingTracker.createClip(t.clip,t.clipboard.id)}).on(r.clipDeleted,function(e,
t){i.clippingTracker.deleteClip(t.clip)}).on(r.clipMoved,function(e,t){var
n=t.clip.id,r=t.fromClipboard.id,o=t.toClipboard.id;i.clippingTracker.moveSingleCli
p(n,r,o)}).on(r.clipShared,function(e,t)
{i.clippingTracker.shareClip(t.clip.id,t.shareType)}).on(r.clipboardCreated,functio
n(e,t){i.clippingTracker.createClipboard(t.clipboard)}),n.isUserAuthenticated()||
this.attachClickTracker("clipTopButton","clickClipButton"),this.attachClickTracker(
"clipsToolbarActive","clickSlideviewTopClipboardsOpen"),this.attachClickTracker("to
pClipboardOwner","clickTopClipboardsClipboardOwner"),this.attachClickTracker("topCl
ipboardThumb","clickTopClipboardsClipboardThumb"),this.attachClickTracker("topClipb
oardTitle","clickTopClipboardsClipboardTitle")},t.prototype.attachClickTracker=func
tion(e,t){this.$document.on("click",o[e],function(){i.clippingTracker[t]
()})},t.prototype.trackAfterLogin=function(){var
e=null,t=i.after_login_clip_data,r=n.isUserAuthenticated();r&&t&&!
t.trackingComplete&&(e=new i.ClippingTracker({userIsOwner:!
0,trackingId:t.tracking_id}),e.createClip(t.clip,t.clipboard.id),t.is_first_clip&&e
.createClipboard(t.clipboard),t.trackingComplete=!
0)},t.prototype.trackingId=function(){return
i.clippingTracker.trackingId},n.exports("clips.Tracker",t)}(window),function(e)
{function t()
{n.slideshareEventManager&&(this.api=o.imports("clips.api"),r.Clipboards.api=this.a
pi,this.tracker=new l,this.topClipboardsModal=new s({el:"#top-clipboards-
modal"}),this.successToast=new c,this.ariaLabel="aria-label",this.
$clipsToolbar=n(m.clipsToolbar),this.$clipsInfo=n(".j-clips-info"),this.
$clipsCount=n(".j-clips-count"),this.$clipsCountText=n(".j-clips-count-text"),this.
$slidePosition=n(".j-slide-position"),this.$progressMeter=n(".j-clips-meter"),this.
$clipButtonTop=n(".clip-button-top"),this.$clipButton=this.
$clipButtonTop.find(m.clipButton),this.
$clipButton.show(),this.afterLoginRedirectLink=this.
$clipButton.attr("href"),this.clips=r.slideshow.clips||
{},this.clipCounts=r.slideshow.clip_counts||
{},this.userClipsNumber=r.user.clips_number||0,this.clipboards=r.user.clipboards||
[],this.toggleClipButton(!
1),this.bindEvents(),this.updateSlideState(),r.after_login_clip_data&&(this.tracker
.trackAfterLogin(),this._forceToastAfterLogin()))}var i,n=e.
$,r=e.slideshare_object,o=r.utils,s=(o.imports("ClipboardModalShare"),o.imports("cl
ips.TopClipboardsModal")),a=o.imports("SelectClipboardModal"),l=o.imports("clips.Tr
acker"),c=o.imports("clips.SuccessToast"),d=n.slideshareEventManager,h=(!!
n.fn.foundation,e.localStorage),p=slideshare_object.utils.i18n,u=slideshare_object.
utils.i18n_locale(),f=(window.xmessage,
{clippedOnce:"slideshare.clips.clippedOnce."+r.user.id,defaultClipboard:"slideshare
.clips.defaultClipboard."+r.user.id}),g={clipCreated:"clip:created",clipDeleted:"cl
ip:deleted",clipMoved:"clip:moved",clipboardCreated:"clipboard:created"},m={clipBut
ton:".j-clips-button",clipsToolbar:".j-clips-toolbar",clipsToolbarActive:".j-clips-
toolbar:not(.inactive,.unavailable)",clipboardCreateModal:"#clipboard-create-
modal",selectClipboardModal:"#select-clipboard-modal"},S="My
Clips";i=t.prototype,i.activate=function(){},i.handleClipActionLoggedout=function()
{var
e=location.protocol+"//"+location.host+"/"+slideshare_object.slideshow.user_login+"
/"+slideshare_object.stripped_title+"/"+n.slideshareEventManager.getCurrentPosition
(),t=this.afterLoginRedirectLink+encodeURIComponent(e);this.
$clipButton.attr("href",t),this.$clipButton.attr("data-tracking-
id",this.tracker.trackingId()),r.addAfterLoginEvent({event:"clip",data:
{slideshow_id:r.slideshow.id,position:n.slideshareEventManager.getCurrentPosition()
,tracking_id:this.tracker.trackingId()}});var
i="create_loggedout";r.ga("clips","click",i)},i.bindEvents=function()
{if(o.isUserAuthenticated()||(this.
$clipButtonTop.on("click",this.handleClipActionLoggedout.bind(this)),r.bindToModalL
ogin(".clip-button-top")),this.$clipButton.off("click").on("click",function()
{o.isUserAuthenticated()&&r.slideshow.allow_clips&&this.clipSlide(d.getCurrentPosit
ion())}.bind(this)),d.player){d.player.on("slidechanged.toolbarClips",function()
{this.updateSlideState()}.bind(this));var e="next.clipcta previous.clipcta
gotoslide.clipcta";d.player.on(e,function(t)
{d.player.off(e),t.ssData&&"band"===t.ssData.source||this.
$clipButton.removeClass("visible")}.bind(this))}n(document).on("click",m.clipsToolb
arActive,this._onClipsToolbarClick.bind(this))},i._onClipsToolbarClick=function(e)
{this.topClipboardsModal.open(r.slideshow.id,d.getCurrentPosition())},i.updateSlide
State=function(){var
e,t=n.slideshareEventManager.getCurrentPosition();r.slideshow.allow_clips||this.
$clipButtonTop.toggleClass("clipped",!1),this.$clipsInfo.toggleClass("j-clips-info-
none",!this.clipCounts[t]),this.$clipsToolbar.toggleClass("inactive",!
this.clipCounts[t]);var i=window.xmessage.fromString("{0,number}",u);this.
$clipsCount.attr(this.ariaLabel,i([this.clipCounts[t]])),e=p("jsplayer_toolbar_clip
s.clip_count_info",{count:this.clipCounts[t]}),this.
$clipsCountText.attr(this.ariaLabel,e),this.
$slidePosition.attr(this.ariaLabel,t),this.updateProgress(this.clips[t]?100:0,!
1)},i.updateProgress=function(e,t){this.$progressMeter.toggleClass("j-
animate",t).css("width",e+"%")},i.toggleClipButton=function(e){this.
$clipButton.toggleClass("pending",e).prop("disabled",e)},i.setClipData=function(e)
{this.clips[e.position]=e,this.clipCounts[e.position]=(this.clipCounts[e.position]|
|0)+1,this.userClipsNumber++},i.hasUserClippedOnce=function(){return
this.userClipsNumber||!h||h.getItem(f.clippedOnce)},i.setUserClippedOnce=function()
{h&&h.setItem(f.clippedOnce,!0)},i._currentClip=function(){return
this.clips[d.getCurrentPosition()]},i._getClipboard=function(e){var
t=this.clipboards.filter(function(t){return t.id==e});if(t.length)return
t[0]},i.clipSlide=function(e){function t(e){this.createClip(e).always(function()
{this.updateSlideState(),this.toggleClipButton(!
1)}.bind(this)),this.toggleClipButton(!0)}var i=this.clips[e];if(i||
this.hasUserClippedOnce())t.call(this,e);else{this.setUserClippedOnce();var
n=new
r.Clipboards.EditModal({el:m.clipboardCreateModal,type:"create",showFirstClipMessag
e:!0,onClose:function(i,n)
{t.call(this,e)}.bind(this)});n.open()}r.ga("clips","click","create")},i.onError=fu
nction(e){var t=window.console&&(console.error||console.log).bind(console)||
function(){};t(e)},i.createClip=function(e){var
t=[],i={slideshow_id:r.slideshow.id,user_id:r.user.id,position:e};return
this.updateProgress(90,!0),this.getClipboards().then(function(e){var
i=this.getDefaultClipboard(e);return t=e,i&&i.id?
i:this.createClipboard(i)}.bind(this)).then(function(e){return
this.addClipToClipboard(i,e)}.bind(this)).then(function(e)
{if(e.clip.alreadyInClipboard){var t=(this.clips[d.getCurrentPosition()],new
a({el:m.selectClipboardModal,defaultClipboard:e.clipboard,actionType:"copy"}));t.op
en({clip:e.clip})}else this.clips[e.clip.position]||
this.setClipData(e.clip),this.updateSlideState(),n(document).trigger(g.clipCreated,
e)}.bind(this)).fail(function(e,t,i)
{e&&this.onError(slideshare_object.utils.i18n("clip.clips.error_clipping")+"
"+e.statusText)}.bind(this))},i.createFakeSystemClipboard=function()
{return{title:S,"private":!1,system_created:!0,is_default:!
0}},i.getClipboards=function(){return this.api.clipboards().fail(function(e,t,i)
{this.onError(slideshare_object.utils.i18n("clip.clips.error_fetching_clipboards")
+" "+e.statusText)}.bind(this)).done(function(e){var t=e||
[];if(0===t.length)t.push(this.createFakeSystemClipboard());else{var
i=null,n=this.getUserDefaultClipboardId();t.some(function(e){if(n&&n===e.id||!i||!
i.system_created&&e.system_created)return i=e,n&&e.id===n}),i.is_default=!
0,this.setUserDefaultClipboard(i.id)}return
t}.bind(this))},i.getUserDefaultClipboardId=function(){return
Number(h&&h.getItem(f.defaultClipboard))||!1},i.setUserDefaultClipboard=function(e)
{h&&h.setItem(f.defaultClipboard,e)},i.createClipboard=function(e){return
this.api.createClipboard(e).then(function(e){return
this.clipboards.push(e.clipboard),n(document).trigger(g.clipboardCreated,e),e.clipb
oard}.bind(this),function(e)
{this.onError(slideshare_object.utils.i18n("clip.clips.error_creating_clipboard")+"
"+e.statusText)}.bind(this))},i.addClipToClipboard=function(e,t){function i(e){var
i=this.clips[d.getCurrentPosition()];i?(i.clipboards=i.clipboards||
[],i.clipboards.indexOf(t.id)===-
1&&i.clipboards.push(t.id)):e.clip.clipboards=[t.id]}return
this.api.addClipToClipboard(t.id,e).then(function(e){return i.call(this,e),
{clip:e.clip,clipboard:t}}.bind(this),function(e,t,i)
{this.onError(slideshare_object.utils.i18n("clip.clips.error_adding_to_clipboard")
+" "+e.statusText)}.bind(this))},i.getDefaultClipboard=function(e){var
t;for(t=0;t<e.length;t++)if(e[t].is_default)return e[t];return
null},i._forceToastAfterLogin=function(){var
e=r.after_login_clip_data;this.successToast.show({},
{clip:e.clip,clipboard:e.clipboard})},o.exports("clips.Toolbar",t)}
(window),function(e,t){function i(){0!==$
("#svPlayerId").length&&($.slideshareEventManager&&$.slideshareEventManager.control
ler?r=new n:$(document).on("slideshare-player-controller:init-done",function()
{r=new n}))}var n=t.utils.imports("clips.Toolbar"),r=null;i()}
(window,window.slideshare_object);

También podría gustarte