"use strict";String.prototype.startsWith||(String.prototype.startsWith=function(t,i){return i=i||0,this.substr(i,t.length)===t});var Bookmark=function(t,i,e,n,s,o){this.id=t,this.strategy=i,this.pages=e,this.excludedPages=n,this.resolution=s,this.timeout=o,this.toggle(),this.listenResize()};function ToggleVPSignet(t,i){var e=$("#"+t+" a:last-child > img").width(),n="0px"==$("#"+t).css(i)?-e:"0px",s=$("#"+t);return $(s).animate($.parseJSON('{"'+i+'": "'+n+'"}'),250),!1}function showAnimatedBookmark(t){var i=$(t).find(".sleep"),e=$(t).find(".awake");return i.hide(),e.show(),!1}function hideAnimatedBookmark(t){var i=$(t).find(".sleep");return $(t).find(".awake").hide(),i.show(),!1}Bookmark.prototype={toggle:function(){this.canApplyStrategy()&&!this.isExcluded()&&$(window).width()>=this.resolution?this.show():this.hide()},show:function(){var t=this.id;window.setTimeout(function(){$("#"+t).show()},this.timeout)},hide:function(){$("#"+this.id).hide()},canApplyStrategy:function(){var t=_.some(this.pages,function(t){return"/"===t?window.location.pathname===t:window.location.pathname.toLowerCase().startsWith(t)});return"exclusion"===this.strategy?!t:t},isExcluded:function(){return _.some(this.excludedPages,function(t){return window.location.pathname.toLowerCase().startsWith(t)})},listenResize:function(){$(window).on("resize",$.proxy(this.toggle,this))}};