1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(c){return c.raw=c};$jscomp.createTemplateTagFirstArgWithRaw=function(c,f){c.raw=f;return c}; 2!function(c,f,g){String.prototype.replaceTagsToValues=String.prototype.replaceTagsToValues||function(a){var d=this,b;for(b in a)d=d.replace(new RegExp("<"+b+">","g"),a[b]);return d};XF.Messenger=c.extend(XF.Messenger||{},{noticesUrl:"",popupUrl:"",popup:null,enableSound:!1,soundPath:"",$audio:null,init:function(){this.noticesUrl=XF.config.messenger.noticesUrl;this.popupUrl=XF.config.messenger.popupUrl;XF.EchoManager.channels.visitor.listen("XFM.NewMessage",XF.proxy(this,"onNewMessage"));XF.config.messenger.popupEnabled&& 3(this.popup=new XF.ChatPopup({url:this.popupUrl,eventPrefix:"XFM",draggable:!0}),this.isValidPage()&&this.popup.setupFromCookie());XF.config.messenger.enableSound&&(this.enableSound=!0,this.soundPath=XF.config.messenger.soundPath,this.$audio=c("<audio />").attr("src",this.soundPath).appendTo(g.body))},isValidPage:function(){return!this.isConversationsPage()&&!this.isAdminPage()},isConversationsPage:function(){var a;return!(null==(a=f.location.href.match(/conversations/))||!a.length)},isAdminPage:function(){var a; 4return!(null==(a=f.location.href.match(/admin\.php/))||!a.length)},onNewMessage:function(a){var d=this,b=a.message;b.user_id===XF.config.userId||!this.isValidPage()||this.popup&&this.popup.isOpened()||(function(){if(!d.enableSound)return!1;var e=d.getSoundConfig();e=e[b.room_tag]||e[parseInt(b.room_tag,10)];return"undefined"===typeof e?!0:e?!g.hasFocus():!1}()&&this.playSound(),XF.ajax("GET",this.noticesUrl.replaceTagsToValues({tag:b.room_tag}),{start_message_id:b.id},function(e){XF.setupHtmlInsert(e.html, 5function(h){if(g.hasFocus())d.showFloatingNotices(h);else c(g).one("focus",function(){d.showFloatingNotices(h)})})},{global:!1}))},showFloatingNotices:function(a){var d=c(".js-notices.notices--floating");d.length||(d=c('<ul class="notices notices--floating js-notices" data-xf-init="notices" data-type="floating" />').appendTo(c(".u-bottomFixer")));a.on("click",".js-locationChanger",function(b){b.preventDefault();b=c(b.currentTarget);f.location.href=b.data("href")});a.appendTo(d);XF.activate(a);XF.activate(d); 6this.setupNoticesDestructTimer(a);a=XF.Element.getHandler(d,"notices");a.updateNoticeList();a.filter();a.start()},setupNoticesDestructTimer:function(a){a.find(".js-notice").each(function(d,b){var e=c(b),h=e.data("display-duration"),k,l=function(){e.xfFadeUp(XF.config.speed.slow,function(){e.remove()})};h&&(k=setTimeout(l,h));e.find(".js-alertToggle").click(function(){k&&clearTimeout(k);l()})})},playSound:function(){this.$audio[0].play()},getSoundConfig:function(){return XF.Cookie.getJson(this.getSoundConfigCookieName())|| 7{}},getSoundConfigCookieName:function(){return"xfm_chat_sound"}});c(g).ready(function(){return XF.Messenger.init()})}(window.jQuery,window,document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.