/** * Minified by jsDelivr using UglifyJS v3.3.22. * Original file: /npm/strophejs-plugin-muc@1.1.0/lib/strophe.muc.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("strophe.js")):"function"==typeof define&&define.amd?define(["strophe.js"],e):e(t.window)}(this,function(l){"use strict";var n,d,c={}.hasOwnProperty,o=function(t,e){return function(){return t.apply(e,arguments)}};l.Strophe.addConnectionPlugin("muc",{_connection:null,rooms:{},roomNames:[],init:function(t){return this._connection=t,this._muc_handler=null,l.Strophe.addNamespace("MUC_OWNER",l.Strophe.NS.MUC+"#owner"),l.Strophe.addNamespace("MUC_ADMIN",l.Strophe.NS.MUC+"#admin"),l.Strophe.addNamespace("MUC_USER",l.Strophe.NS.MUC+"#user"),l.Strophe.addNamespace("MUC_ROOMCONF",l.Strophe.NS.MUC+"#roomconfig"),l.Strophe.addNamespace("MUC_REGISTER","jabber:iq:register")},join:function(u,t,e,n,i,o,r,s){var c,h,a;return h=this.test_append_nick(u,t),c=l.$pres({from:this._connection.jid,to:h}).c("x",{xmlns:l.Strophe.NS.MUC}),null!=r&&(c=c.c("history",r).up()),null!=o&&c.cnode(l.Strophe.xmlElement("password",[],o)),null!=s&&c.up().cnode(s),null==this._muc_handler&&(this._muc_handler=this._connection.addHandler((a=this,function(t){var e,n,i,o,r,s,c,h;if(!(e=t.getAttribute("from")))return!0;if(s=e.split("/")[0],!a.rooms[s])return!0;if(u=a.rooms[s],n={},"message"===t.nodeName)n=u._message_handlers;else if("presence"===t.nodeName&&0<(h=t.getElementsByTagName("x")).length)for(i=0,r=h.length;i