(function(mw,$){$(document).ready(function(){$('.PopUpMediaTransform a').each(function(){var link,title,parent=$(this).parent();if(parent.attr('videopayload')){$(this).click(function(){var thisref=this;mw.loader.using('mw.MwEmbedSupport',function(){var $videoContainer=$($(thisref).parent().attr('videopayload'));mw.addDialog({'width':'auto','height':'auto','title':mw.html.escape($videoContainer.find('video, audio').attr('data-mwtitle')),'content':$videoContainer,'close':function(){var domEl=$(this).find('video, audio').get(0);if(domEl&&domEl.pause){domEl.pause();}return true;}}).css('overflow','hidden').find('video, audio').embedPlayer();});return false;});}else if(parent.attr('data-videopayload')){link=$(this).attr('href');title=mw.Title.newFromImg({src:link});if(title&&title.getPrefixedDb()!==mw.config.get('wgPageName')){$(this).attr('href',title.getUrl());}}});});})(mediaWiki,jQuery);mw.loader.state({"mw.PopUpMediaTransform":"ready"}); /* cache key: global:resourceloader:filter:minify-js:7:7af4f805cc92b2737cd39396e6019bdd */