1 2//Begin SHARED/cometd 3define("SHARED/cometd",[],function(){var qa=eXo.define;eXo.define.names=[];eXo.define.deps=[];return function(){(function(fa,ha){"object"===typeof exports?module.exports=ha():"function"===typeof qa&&qa.amd?qa([],ha):(fa.org=fa.org||{},fa.org.cometd=ha())})(this,function(){function fa(){var r=0,p={};this.register=function(q){var d=++r;p[d]=q;return d};this.unregister=function(q){var d=p[q];delete p[q];return d};this.setTimeout=function(q,d){return window.setTimeout(q,d)};this.clearTimeout=function(q){window.clearTimeout(q)}} 4function ha(){var r={};self.onmessage=function(p){var q=p.data;p=r[q.id];switch(q.type){case "setTimeout":r[q.id]=self.setTimeout(function(){delete r[q.id];self.postMessage({id:q.id})},q.delay);break;case "clearTimeout":delete r[q.id];p&&self.clearTimeout(p);break;default:throw"Unknown command "+q.type;}}}function Pa(){var r=[],p={};this.getTransportTypes=function(){return r.slice(0)};this.findTransportTypes=function(q,d,k){for(var n=[],u=0;u<r.length;++u){var v=r[u];!0===p[v].accept(q,d,k)&&n.push(v)}return n}; 5this.negotiateTransport=function(q,d,k,n){for(var u=0;u<r.length;++u)for(var v=r[u],w=0;w<q.length;++w)if(v===q[w]){var C=p[v];if(!0===C.accept(d,k,n))return C}return null};this.add=function(q,d,k){for(var n=!1,u=0;u<r.length;++u)if(r[u]===q){n=!0;break}n||("number"!==typeof k?r.push(q):r.splice(k,0,q),p[q]=d);return!n};this.find=function(q){for(var d=0;d<r.length;++d)if(r[d]===q)return p[q];return null};this.remove=function(q){for(var d=0;d<r.length;++d)if(r[d]===q)return r.splice(d,1),d=p[q],delete p[q], 6d;return null};this.clear=function(){r=[];p={}};this.reset=function(q){for(var d=0;d<r.length;++d)p[r[d]].reset(q)}}function X(){var r,p,q;this.registered=function(d,k){r=d;p=k};this.unregistered=function(){p=r=null};this._notifyTransportTimeout=function(d){var k=p._getTransportListeners("timeout");if(k)for(var n=0;n<k.length;++n){var u=k[n];try{var v=u.call(this,d);if("number"===typeof v&&0<v)return v}catch(w){this._info("Exception during execution of transport listener",u,w)}}return 0};this._debug= 7function(){p._debug.apply(p,arguments)};this._info=function(){p._info.apply(p,arguments)};this._mixin=function(){return p._mixin.apply(p,arguments)};this.getConfiguration=function(){return p.getConfiguration()};this.getAdvice=function(){return p.getAdvice()};this.setTimeout=function(d,k){return p.setTimeout(d,k)};this.clearTimeout=function(d){p.clearTimeout(d)};this.convertToJSON=function(d){for(var k=this.getConfiguration().maxSendBayeuxMessageSize,n="[",u=0;u<d.length;++u){0<u&&(n+=",");var v=JSON.stringify(d[u]); 8if(v.length>k)throw"maxSendBayeuxMessageSize "+k+" exceeded";n+=v}return n+"]"};this.convertToMessages=function(d){if(U.isString(d))try{return JSON.parse(d)}catch(k){throw this._debug("Could not convert to JSON the following string",'"'+d+'"'),k;}if(Array.isArray(d))return d;if(void 0===d||null===d)return[];if(d instanceof Object)return[d];throw"Conversion Error "+d+", typeof "+typeof d;};this.accept=function(d,k,n){throw"Abstract";};this.getType=function(){return r};this.getURL=function(){return q}; 9this.setURL=function(d){q=d};this.send=function(d,k){throw"Abstract";};this.reset=function(d){this._debug("Transport",r,"reset",d?"initial":"retry")};this.abort=function(){this._debug("Transport",r,"aborted")};this.toString=function(){return this.getType()}}function ra(){function r(h){for(;0<G.length;){var t=G[0],z=t[0];t=t[1];if(z.url===h.url&&z.sync===h.sync)G.shift(),h.messages=h.messages.concat(z.messages),this._debug("Coalesced",z.messages.length,"messages from request",t.id);else break}}function p(h, 10t,z){var H=this,A=this._notifyTransportTimeout(h.messages);if(0<A)this._debug("Transport",this.getType(),"extended waiting for message replies of request",t.id,":",A,"ms"),t.timeout=this.setTimeout(function(){p.call(H,h,t,z+A)},A);else{t.expired=!0;var M="Transport "+this.getType()+" expired waiting for message replies of request "+t.id+": "+z+" ms",f={reason:M},m=t.xhr;f.httpCode=this.xhrStatus(m);this.abortXHR(m);this._debug(M);this.complete(t,!1,t.metaConnect);h.onFailure(m,h.messages,f)}}function q(h, 11t){var z=this;if(this.transportSend(h,t)&&(t.expired=!1,!h.sync)){var H=this.getConfiguration().maxNetworkDelay;!0===t.metaConnect&&(H+=this.getAdvice().timeout);
11this._debug("Transport",this.getType(),"started waiting for message replies of request",t.id,":",H,"ms");t.timeout=this.setTimeout(function(){p.call(z,h,t,H)},H)}}function d(h){var t=++v,z={id:t,metaConnect:!1,envelope:h};C.length<this.getConfiguration().maxConnections-1?(C.push(z),q.call(this,h,z)):(this._debug("Transport",this.getType(), 12"queueing request",t,"envelope",h),G.push([h,z]))}function k(h,t){var z=this,H=C.indexOf(h);0<=H&&C.splice(H,1);if(0<G.length){H=G.shift();var A=H[0],M=H[1];this._debug("Transport dequeued request",M.id);t?(this.getConfiguration().autoBatch&&r.call(this,A),d.call(this,A),this._debug("Transport completed request",h.id,A)):this.setTimeout(function(){z.complete(M,!1,M.metaConnect);var f={reason:"Previous request failed"},m=M.xhr;f.httpCode=z.xhrStatus(m);A.onFailure(m,A.messages,f)},0)}}var n=new X, 13u=X.derive(n),v=0,w=null,C=[],G=[];u.complete=function(h,t,z){if(z){h=h.id;this._debug("Transport",this.getType(),"/meta/connect complete, request",h);if(null!==w&&w.id!==h)throw"/meta/connect request mismatch, completing request "+h;w=null}else k.call(this,h,t)};u.transportSend=function(h,t){throw"Abstract";};u.transportSuccess=function(h,t,z){if(!t.expired)if(this.clearTimeout(t.timeout),this._debug("Transport",this.getType(),"cancelled waiting for message replies"),this.complete(t,!0,t.metaConnect), 14z&&0<z.length)h.onSuccess(z);else h.onFailure(t.xhr,h.messages,{httpCode:204})};u.transportFailure=function(h,t,z){t.expired||(this.clearTimeout(t.timeout),this._debug("Transport",this.getType(),"cancelled waiting for failed message replies"),this.complete(t,!1,t.metaConnect),h.onFailure(t.xhr,h.messages,z))};u.send=function(h,t){if(t){if(null!==w)throw"Concurrent /meta/connect requests not allowed, request id\x3d"+w.id+" not yet completed";t=++v;this._debug("Transport",this.getType(),"/meta/connect send, request", 15t,"envelope",h);t={id:t,metaConnect:!0,envelope:h};q.call(this,h,t);w=t}else d.call(this,h)};u.abort=function(){n.abort();for(var h=0;h<C.length;++h){var t=C[h];t&&(this._debug("Aborting request",t),this.abortXHR(t.xhr)||this.transportFailure(t.envelope,t,{reason:"abort"}))}if(h=w)this._debug("Aborting /meta/connect request",h),this.abortXHR(h.xhr)||this.transportFailure(h.envelope,h,{reason:"abort"});this.reset(!0)};u.reset=function(h){n.reset(h);w=null;C=[];G=[]};u.abortXHR=function(h){if(h)try{var t= 16h.readyState;h.abort();return t!==window.XMLHttpRequest.UNSENT}catch(z){this._debug(z)}return!1};u.xhrStatus=function(h){if(h)try{return h.status}catch(t){this._debug(t)}return-1};return u}function ya(){var r=new ra,p=X.derive(r),q=!0;p.accept=function(d,k,n){return q||!k};p.newXMLHttpRequest=function(){return new window.XMLHttpRequest};p.xhrSend=function(d){var k=p.newXMLHttpRequest();try{k.context=p.context}catch(v){p._debug("Could not copy transport context into XHR",v)}k.withCredentials=!0;k.open("POST", 17d.url,!0!==d.sync);var n=d.headers;if(n)for(var u in n)n.hasOwnProperty(u)&&k.setRequestHeader(u,n[u]);k.setRequestHeader("Content-Type","application/json;charset\x3dUTF-8");k.onload=function(){if(200===k.status)d.onSuccess(k.responseText);else d.onError(k.statusText)};k.onabort=k.onerror=function(){d.onError(k.statusText)};k.send(d.body);return k};p.transportSend=function(d,k){var n=this;this._debug("Transport",this.getType(),"sending request",k.id,"envelope",d);try{var u=!0;k.xhr=this.xhrSend({transport:this, 18url:d.url,sync:d.sync,headers:this.getConfiguration().requestHeaders,body:this.convertToJSON(d.messages),onSuccess:function(v){n._debug("Transport",n.getType(),"received response",v);var w=!1;try{var C=n.convertToMessages(v);0===C.length?(q=!1,n.transportFailure(d,k,{httpCode:204})):(w=!0,n.transportSuccess(d,k,C))}catch(G){n._debug(G),w||(q=!1,v={exception:G},v.httpCode=n.xhrStatus(k.xhr),n.transportFailure(d,k,v))}},onError:function(v,w){n._debug("Transport",n.getType(),"received error",v,w);q= 19!1;var C={reason:v,exception:w};C.httpCode=n.xhrStatus(k.xhr);u?n.setTimeout(function(){n.transportFailure(d,k,C)},0):n.transportFailure(d,k,C)}});u=!1;return!0}
19catch(v){return this._debug("Transport",this.getType(),"exception:",v),q=!1,this.setTimeout(function(){n.transportFailure(d,k,{exception:v})},0),!1}};p.reset=function(d){r.reset(d);q=!0};return p}function za(){function r(d,k,n){var u=this;return function(){u.transportFailure(d,k,"error",n)}}var p=new ra;p=X.derive(p);var q=0;p.accept=function(d, 20k,n){return!0};p.jsonpSend=function(d){var k=document.getElementsByTagName("head")[0],n=document.createElement("script"),u="_cometd_jsonp_"+q++;window[u]=function(w){k.removeChild(n);delete window[u];d.onSuccess(w)};var v=d.url;v+=0>v.indexOf("?")?"?":"\x26";v=v+("jsonp\x3d"+u)+("\x26message\x3d"+encodeURIComponent(d.body));n.src=v;n.async=!0!==d.sync;n.type="application/javascript";n.onerror=function(w){d.onError("jsonp "+w.type)};k.appendChild(n)};p.transportSend=function(d,k){for(var n=this,u= 210,v=d.messages.length,w=[];0<v;){var C=JSON.stringify(d.messages.slice(u,u+v));C=d.url.length+encodeURI(C).length;var G=this.getConfiguration().maxURILength;if(C>G){if(1===v){w="Bayeux message too big ("+C+" bytes, max is "+G+") for transport "+this.getType();this.setTimeout(r.call(this,d,k,w),0);return}--v}else w.push(v),u+=v,v=d.messages.length-u}var h=d;if(1<w.length)for(u=0,v=w[0],this._debug("Transport",this.getType(),"split",d.messages.length,"messages into",w.join(" + ")),h=this._mixin(!1, 22{},d),h.messages=d.messages.slice(u,v),h.onSuccess=d.onSuccess,h.onFailure=d.onFailure,C=1;C<w.length;++C)G=this._mixin(!1,{},d),u=v,v+=w[C],G.messages=d.messages.slice(u,v),G.onSuccess=d.onSuccess,G.onFailure=d.onFailure,this.send(G,k.metaConnect);this._debug("Transport",this.getType(),"sending request",k.id,"envelope",h);try{var t=!0;this.jsonpSend({transport:this,url:h.url,sync:h.sync,headers:this.getConfiguration().requestHeaders,body:JSON.stringify(h.messages),onSuccess:function(z){var H=!1; 23try{var A=n.convertToMessages(z);0===A.length?n.transportFailure(h,k,{httpCode:204}):(H=!0,n.transportSuccess(h,k,A))}catch(M){n._debug(M),H||n.transportFailure(h,k,{exception:M})}},onError:function(z,H){var A={reason:z,exception:H};t?n.setTimeout(function(){n.transportFailure(h,k,A)},0):n.transportFailure(h,k,A)}});t=!1;return!0}catch(z){return this.setTimeout(function(){n.transportFailure(h,k,{exception:z})},0),!1}};return p}function Aa(){function r(f,m){f&&(this.webSocketClose(f,m.code,m.reason), 24this.onClose(f,m))}function p(f,m,y){for(var D=[],B=0;B<m.messages.length;++B){var E=m.messages[B];E.id&&D.push(E.id)}f.envelopes[D.join(",")]=[m,y];this._debug("Transport",this.getType(),"stored envelope, envelopes",f.envelopes)}function q(f,m){var y=!1;f=f.envelopes;for(var D=0;D<m.length;++D){var B=m[D],E;for(E in f)if(f.hasOwnProperty(E)){var I=E.split(","),O=I.indexOf(B);if(0<=O){y=!0;I.splice(O,1);B=f[E][0];O=f[E][1];delete f[E];0<I.length&&(f[I.join(",")]=[B,O]);break}}}y&&this._debug("Transport", 25this.getType(),"removed envelope, envelopes",f)}function d(f){var m=this;if(!H){var y=C.getURL().replace(/^http/,"ws");this._debug("Transport",this.getType(),"connecting to URL",y);try{var D=C.getConfiguration().protocol;f.webSocket=D?new window.WebSocket(y,D):new window.WebSocket(y);H=f}catch(I){throw G=!1,this._debug("Exception while creating WebSocket object",I),I;}t=!1!==C.getConfiguration().stickyReconnect;var B=C.getConfiguration().connectTimeout;0<B&&(f.connectTimer=this.setTimeout(function(){C._debug("Transport", 26m.getType(),"timed out while connecting to URL",y,":",B,"ms");r.call(m,f,{code:1E3,reason:"Connect Timeout"})},B));var E=function(I){I=I||{code:1E3};C._debug("WebSocket onclose",f,I,"connecting",H,"current",z);f.connectTimer&&m.clearTimeout(f.connectTimer);m.onClose(f,I)};f.webSocket.onopen=function(){C._debug("WebSocket onopen",f);f.connectTimer&&m.clearTimeout(f.connectTimer);f===H||f===z?(H=null,z=f,h=!0,m.onOpen(f)):(C._warn("Closing extra WebSocket connection",m,"active connection",z),r.call(m, 27f,{code:1E3,reason:"Extra Connection"}))};f.webSocket.onclose=E;f.webSocket.onerror=function(){E({code:1E3,reason:"Error"})};f.webSocket.onmessage=function(I){C._debug("WebSocket onmessage",I,f);m.onMessage(f,I)};
27this._debug("Transport",this.getType(),"configured callbacks on",f)}}function k(f,m,y){var D=this,B=this._notifyTransportTimeout([m]);0<B?(this._debug("Transport",this.getType(),"extended waiting for message replies:",B,"ms"),f.timeouts[m.id]=this.setTimeout(function(){k.call(D,f,m,y+B)}, 28B)):(this._debug("Transport",this.getType(),"expired waiting for message reply",m.id,":",y,"ms"),r.call(this,f,{code:1E3,reason:"Message Timeout"}))}function n(f,m,y){var D=this;try{var B=this.convertToJSON(m.messages)}catch(O){this._debug("Transport",this.getType(),"exception:",O);y=[];for(B=0;B<m.messages.length;++B)y.push(m.messages[B].id);q.call(this,f,y);this.setTimeout(function(){D._notifyFailure(m.onFailure,f,m.messages,{exception:O})},0);return}f.webSocket.send(B);this._debug("Transport", 29this.getType(),"sent",m,"/meta/connect \x3d",y);var E=this.getConfiguration().maxNetworkDelay;y&&(E+=this.getAdvice().timeout,A=!0);y=[];B=0;for(var I={};B<m.messages.length;I={H$jscomp$3:void 0},++B)I.H$jscomp$3=m.messages[B],I.H$jscomp$3.id&&(y.push(I.H$jscomp$3.id),f.timeouts[I.H$jscomp$3.id]=this.setTimeout(function(O){return function(){k.call(D,f,O.H$jscomp$3,E)}}(I),E));this._debug("Transport",this.getType(),"started waiting for message replies",E,"ms, messageIds:",y,", timeouts:",f.timeouts)} 30function u(f,m,y){var D=this;try{null===f?(f=H||{envelopes:{},timeouts:{}},p.call(this,f,m,y),d.call(this,f)):(p.call(this,f,m,y),n.call(this,f,m,y))}catch(B){this.setTimeout(function(){r.call(D,f,{code:1E3,reason:"Exception",exception:B})},0)}}var v=new X,w=X.derive(v),C,G=!0,h=!1,t=!0,z=null,H=null,A=!1,M=null;w.reset=function(f){v.reset(f);G=!0;f&&(h=!1);t=!0;f&&(z=null);H=null;A=!1};w._notifySuccess=function(f,m){f.call(this,m)};w._notifyFailure=function(f,m,y,D){f.call(this,m,y,D)};w.onOpen= 31function(f){var m=f.envelopes;this._debug("Transport",this.getType(),"opened",f,"pending messages",m);for(var y in m)if(m.hasOwnProperty(y)){var D=m[y],B=D[0];D=D[1];M=B.onSuccess;n.call(this,f,B,D)}};w.onMessage=function(f,m){this._debug("Transport",this.getType(),"received websocket message",m,f);var y=!1;m=this.convertToMessages(m.data);for(var D=[],B=0;B<m.length;++B){var E=m[B];if((/^\/meta\//.test(E.channel)||void 0===E.data)&&E.id){D.push(E.id);var I=f.timeouts[E.id];I&&(this.clearTimeout(I), 32delete f.timeouts[E.id],this._debug("Transport",this.getType(),"removed timeout for message",E.id,", timeouts",f.timeouts))}"/meta/connect"===E.channel&&(A=!1);"/meta/disconnect"!==E.channel||A||(y=!0)}q.call(this,f,D);this._notifySuccess(M,m);y&&this.webSocketClose(f,1E3,"Disconnect")};w.onClose=function(f,m){this._debug("Transport",this.getType(),"closed",f,m);if(f===H||f===z)G=t&&h,z=H=null;var y=f.timeouts;f.timeouts={};for(var D in y)y.hasOwnProperty(D)&&this.clearTimeout(y[D]);y=f.envelopes; 33f.envelopes={};for(var B in y)if(y.hasOwnProperty(B)){D=y[B][0];y[B][1]&&(A=!1);var E={websocketCode:m.code,reason:m.reason};m.exception&&(E.exception=m.exception);this._notifyFailure(D.onFailure,f,D.messages,E)}};w.registered=function(f,m){v.registered(f,m);C=m};w.accept=function(f,m,y){this._debug("Transport",this.getType(),"accept, supported:",G);return G&&!!window.WebSocket&&!1!==C.websocketEnabled};w.send=function(f,m){this._debug("Transport",this.getType(),"sending",f,"/meta/connect \x3d",m); 34u.call(this,z,f,m)};w.webSocketClose=function(f,m,y){try{f.webSocket&&f.webSocket.close(m,y)}catch(D){this._debug(D)}};w.abort=function(){v.abort();r.call(this,z,{code:1E3,reason:"Abort"});this.reset(!0)};return w}var U={isString:function(r){return void 0===r||null===r?!1:"string"===typeof r||r instanceof String}};X.derive=function(r){function p(){}p.prototype=r;return new p};var sa="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+\x3d^!/*?\x26\x3c\x3e()[]{}@%$#".split(""),Qa=[0, 3568,0,84,83,82,72,0,75,76,70,65,0,63,62,69,0,1,2,3,4,5,6,7,8,9,64,0,73,66,74,71,81,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,77,0,78,67,0,0,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,79,0,80,0,0];return{CometD:function(r){function p(a,b){try{return a[b]}catch(c){}}function q(a){if(!U.isString(a)||2>a.length||"/"!==a.charAt(0))return!1;for(var b=1;b<a.length;++b){var c=a.charAt(b),e="A"<=c&&"Z">=c?!0:"a"<=c&&"z">=c;if(!(e=e||"0"<= 36c&&"9">=c))a:switch(c){case " ":case "!":case "#":case "$":case "(":case ")":case "*":case "+":case "-":case ".":case "/":case "@":case "_":case "{":case "~":case "}":e=!0;break a;default:e=!1}if(!e)return!1}return!0}function d(a){return void 0===a||null===a?!1:"function"===typeof a}function k(a,b){for(var c="";0<--b&&!(a>=Math.pow(10,b));)c+="0";return c+a}function n(a,b){if(window.console&&(a=window.console[a],d(a))){var c=new Date;[].splice.call(b,0,0,k(c.getHours(),2)+":"+k(c.getMinutes(),2)+ 37":"+k(c.getSeconds(),2)+"."+k(c.getMilliseconds(),3));a.apply(window.console,b)}}function u(a){return RegExp("(^https?://)?(((\\[[^\\]]+])|([^:/?#]+))(:(\\d+))?)?([^?#]*)(.*)?").exec(a)}function v(a){l._debug("Configuring cometd object with",a);
37U.isString(a)&&(a={url:a});a||(a={});K=l._mixin(!1,K,a);a=l.getURL();if(!a)throw"Missing required configuration parameter 'url' specifying the Bayeux server URL";var b=u(a);a=b[8];var c=b[9];la=l._isCrossDomain(b[2]);K.appendMessageTypeToURL&&(void 0!==c&& 380<c.length?(l._info("Appending message type to URI "+a+c+" is not supported, disabling 'appendMessageTypeToURL' configuration"),K.appendMessageTypeToURL=!1):(b=a.split("/"),c=b.length-1,a.match(/\/$/)&&--c,0<=b[c].indexOf(".")&&(l._info("Appending message type to URI "+a+" is not supported, disabling 'appendMessageTypeToURL' configuration"),K.appendMessageTypeToURL=!1)));if(window.Worker&&window.Blob&&window.URL&&K.useWorkerScheduler){a=ha.toString();a=a.substring(a.indexOf("{")+1,a.lastIndexOf("}")); 39a=new window.Blob([a],{type:"application/json"});a=window.URL.createObjectURL(a);var e=new window.Worker(a);aa.setTimeout=function(g,x){g=aa.register(g);e.postMessage({id:g,type:"setTimeout",delay:x});return g};aa.clearTimeout=function(g){aa.unregister(g);e.postMessage({id:g,type:"clearTimeout"})};e.onmessage=function(g){(g=aa.unregister(g.data.id))&&g()}}}function w(a){if(a){var b=S[a.channel];b&&b[a.id]&&(delete b[a.id],l._debug("Removed",a.listener?"listener":"subscription",a))}}function C(){for(var a in S)if(S.hasOwnProperty(a)){var b= 40S[a];if(b)for(var c in b)if(b.hasOwnProperty(c)){var e=b[c];e&&!e.listener&&w(e)}}}function G(a){Y!==a&&(l._debug("Status",Y,"-\x3e",a),Y=a)}function h(){return"disconnecting"===Y||"disconnected"===Y}function t(a,b,c,e,g){try{return b.call(a,e)}catch(x){a=l.onExtensionException;if(d(a)){l._debug("Invoking extension exception handler",c,x);try{a.call(l,x,c,g,e)}catch(F){l._info("Exception during execution of extension exception handler",c,F)}}else l._info("Exception during execution of extension", 41c,x);return e}}function z(a){for(var b=P.length-1;0<=b&&void 0!==a&&null!==a;--b){var c=P[b],e=c.extension.outgoing;d(e)&&(c=t(c.extension,e,c.name,a,!0),a=void 0===c?a:c)}return a}function H(a,b){if(a=S[a])for(var c in a)if(a.hasOwnProperty(c)){var e=a[c];if(e)try{e.callback.call(e.scope,b)}catch(x){var g=l.onListenerException;if(d(g)){l._debug("Invoking listener exception handler",e,x);try{g.call(l,x,e,e.listener,b)}catch(F){l._info("Exception during execution of listener exception handler",e,F)}}else l._info("Exception during execution of listener", 42e,b,x)}}}function A(a,b){H(a,b);a=a.split("/");for(var c=a.length-1,e=c;0<e;--e){var g=a.slice(0,e).join("/")+"/*";e===c&&H(g,b);g+="*";H(g,b)}}function M(a,b){null!==ba&&l.clearTimeout(ba);ba=null;b=N.interval+b;l._debug("Function scheduled in",b,"ms, interval \x3d",N.interval,"backoff \x3d",Q,a);ba=l.setTimeout(a,b)}function f(a,b,c){for(var e=0;e<a.length;++e){var g=a[e],x=g.id;ca&&(g.clientId=ca);g=z(g);void 0!==g&&null!==g?(g.id=x,a[e]=g):(delete ma[x],a.splice(e--,1))}0!==a.length&&(b&&(ia= 43a[0]),e=l.getURL(),K.appendMessageTypeToURL&&(e.match(/\/$/)||(e+="/"),c&&(e+=c)),a={url:e,sync:!1,messages:a,onSuccess:function(F){try{Ra.call(l,F)}catch(L){l._info("Exception during handling of messages",L)}},onFailure:function(F,L,Z){try{var Ba=l.getTransport();Z.connectionType=Ba?Ba.getType():"unknown";Ca.call(l,F,L,Z)}catch(Sa){l._info("Exception during handling of failure",Sa)}}},l._debug("Send",a),J.send(a,b))}function m(a){0<V||!0===ja?da.push(a):f([a],!1)}function y(){var a=da;da=[];0<a.length&& 44f(a,!1)}function D(a){G("connecting");M(function(){if(!h()){var b={id:""+ ++W,channel:"/meta/connect",connectionType:J.getType()};na||(b.advice={timeout:0});G("connecting");l._debug("Connect sent",b);f([b],!0,"connect");G("connected")}},a)}function B(a){a&&(N=l._mixin(!1,{},K.advice,a),l._debug("New advice",N))}function E(a){null!==ba&&l.clearTimeout(ba);ba=null;a&&J&&J.abort();la=!1;J=null;G("disconnected");ca=null;Q=V=0;na=ta=!1;ka=0;ia=null;0<da.length&&(a=da,da=[],Ca.call(l,void 0,a,{reason:"Disconnected"}))} 45function I(a,b,c){var e=l.onTransportException;if(d(e)){l._debug("Invoking transport exception handler",a,b,c);try{e.call(l,c,a,b)}catch(g){l._info("Exception during execution of transport exception handler",g)}}}function O(a,b){d(a)&&(b=a,a=void 0);ca=null;C();h()&&R.reset(!0);B({});V=0;ja=!0;ua=a;Da=b;
45a=l.getURL();var c=R.findTransportTypes("1.0",la,a),e={id:""+ ++W,version:"1.0",minimumVersion:"1.0",channel:"/meta/handshake",supportedConnectionTypes:c,advice:{timeout:N.timeout,interval:N.interval}}; 46e=l._mixin(!1,{},ua,e);l._putCallback(e.id,b);if(!J&&(J=R.negotiateTransport(c,"1.0",la,a),!J))throw b="Could not find initial transport among: "+R.getTransportTypes(),l._warn(b),b;l._debug("Initial transport is",J.getType());G("handshaking");l._debug("Handshake sent",e);f([e],!1,"handshake")}function Ta(a){G("handshaking");ja=!0;M(function(){O(ua,Da)},a)}function oa(a,b){try{a.call(l,b)}catch(c){if(a=l.onCallbackException,d(a)){l._debug("Invoking callback exception handler",c);try{a.call(l,c,b)}catch(e){l._info("Exception during execution of callback exception handler", 47e)}}else l._info("Exception during execution of message callback",c)}}function T(a){var b=l._getCallback([a.id]);d(b)&&(delete ma[a.id],oa(b,a))}function Ea(a){var b=va[a.id];delete va[a.id];if(b){l._debug("Handling remote call response for",a,"with context",b);var c=b.timeout;c&&l.clearTimeout(c);b=b.callback;if(d(b))return oa(b,a),!0}return!1}function Fa(a){l._debug("Transport failure handling",a);a.transport&&(J=a.transport);a.url&&J.setURL(a.url);var b=a.action;a=a.delay||0;switch(b){case "handshake":Ta(a); 48break;case "retry":D(a);break;case "none":E(!0);break;default:throw"Unknown action "+b;}}function wa(a,b){T(a);A("/meta/handshake",a);A("/meta/unsuccessful",a);h()&&(b.action="none");l.onTransportFailure.call(l,a,b,Fa)}function Ga(a){return"disconnected"===Y?!0:ia&&ia.id===a.id?(ia=null,!0):!1}function Ha(a,b){A("/meta/connect",a);A("/meta/unsuccessful",a);h()&&(b.action="none");l.onTransportFailure.call(l,a,b,Fa)}function Ia(a){E(!0);T(a);A("/meta/disconnect",a);A("/meta/unsuccessful",a)}function Ja(a){var b= 49S[a.subscription];if(b)for(var c in b)if(b.hasOwnProperty(c)){var e=b[c];e&&!e.listener&&(delete b[c],l._debug("Removed failed subscription",e))}T(a);A("/meta/subscribe",a);A("/meta/unsuccessful",a)}function Ka(a){T(a);A("/meta/unsubscribe",a);A("/meta/unsuccessful",a)}function xa(a){Ea(a)||(T(a),A("/meta/publish",a),A("/meta/unsuccessful",a))}function La(a){for(var b=ka=0;b<P.length&&void 0!==a&&null!==a;++b){var c=P[b],e=c.extension.incoming;d(e)&&(c=t(c.extension,e,c.name,a,!1),a=void 0===c?a: 50c)}if(void 0!==a&&null!==a)switch(B(a.advice),a.channel){case "/meta/handshake":b=l.getURL();if(a.successful)if(c=l._isCrossDomain(u(b)[2]),b=R.negotiateTransport(a.supportedConnectionTypes,a.version,c,b),null===b)a.successful=!1,wa(a,{cause:"negotiation",action:"none",transport:null});else switch(J!==b&&(l._debug("Transport",J.getType(),"-\x3e",b.getType()),J=b),ca=a.clientId,ja=!1,y(),a.reestablish=ta,ta=!0,T(a),A("/meta/handshake",a),ea=a["x-messages"]||0,a=h()?"none":N.reconnect||"retry",a){case "retry":Q= 510;0===ea?D(0):l._debug("Processing",ea,"handshake-delivered messages");break;case "none":E(!0);break;default:throw"Unrecognized advice action "+a;}else wa(a,{cause:"unsuccessful",action:N.reconnect||"handshake",transport:J});break;case "/meta/connect":if(Ga(a))if(na=a.successful)switch(A("/meta/connect",a),a=h()?"none":N.reconnect||"retry",a){case "retry":Q=0;D(Q);break;case "none":E(!1);break;default:throw"Unrecognized advice action "+a;}else Ha(a,{cause:"unsuccessful",action:N.reconnect||"retry", 52transport:J});else l._debug("Mismatched /meta/connect reply",a);break;case "/meta/disconnect":a.successful?(E(!1),T(a),A("/meta/disconnect",a)):Ia(a);break;case "/meta/subscribe":a.successful?(T(a),A("/meta/subscribe",a)):Ja(a);break;case "/meta/unsubscribe":a.successful?(T(a),A("/meta/unsubscribe",a)):Ka(a);break;default:void 0!==a.data?Ea(a)||(A(a.channel,a),0<ea&&(--ea,0===ea&&(l._debug("Processed last handshake-delivered message"),D(0)))):void 0===a.successful?l._warn("Unknown Bayeux Message", 53a):a.successful?(T(a),A("/meta/publish",a)):xa(a)}}function Ma(a){if(a=S[a])for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!0;return!1}function Na(a,b){var c={scope:a,method:b};if(d(a))c.scope=void 0,c.method=a;else if(U.isString(b)){if(!a)throw"Invalid scope "+a;c.method=a[b];if(!d(c.method))throw"Invalid callback "+b+" for scope "+a;}else if(!d(b))throw"Invalid callback "+b;return c}function Oa(a,b,c,e){c=Na(b,c);l._debug("Adding",e?"listener":"subscription","on",a,"with scope",c.scope,"and callback", 54c.method);b=++Ua;c={id:b,channel:a,scope:c.scope,callback:c.method,listener:e};var g=S[a];g||(g={},S[a]=g);g[b]=c;l._debug("Added",e?"listener":"subscription",c);return c}var aa=new fa,l=this,Va=r||"default",la=!1,R=new Pa,J,Y="disconnected",W=0,ca=null,V=0,da=[],ja=!1,Ua=0,S={},pa={},Q=0,ba=null,P=[],N={},ua,Da,ma={},va={},ta=!1,na=!1,ka=0,ea=0,ia=null,K={useWorkerScheduler:!0,protocol:null,stickyReconnect:!0,connectTimeout:0,maxConnections:2,backoffIncrement:1E3,max
54Backoff:6E4,logLevel:"info",maxNetworkDelay:1E4, 55requestHeaders:{},appendMessageTypeToURL:!0,autoBatch:!1,urls:{},maxURILength:2E3,maxSendBayeuxMessageSize:8192,advice:{timeout:6E4,interval:0,reconnect:void 0,maxInterval:0}};this._mixin=function(a,b,c){for(var e=b||{},g=2;g<arguments.length;++g){var x=arguments[g];if(void 0!==x&&null!==x)for(var F in x)if(x.hasOwnProperty(F)){var L=p(x,F),Z=p(e,F);L!==b&&void 0!==L&&(e[F]=a&&"object"===typeof L&&null!==L?L instanceof Array?this._mixin(a,Z instanceof Array?Z:[],L):this._mixin(a,"object"!==typeof Z|| 56Z instanceof Array?{}:Z,L):L)}}return e};this._warn=function(){n("warn",arguments)};this._info=function(){"warn"!==K.logLevel&&n("info",arguments)};this._debug=function(){"debug"===K.logLevel&&n("debug",arguments)};this._isCrossDomain=function(a){return window.location&&window.location.host&&a?a!==window.location.host:!1};this.send=m;this._getCallback=function(a){return ma[a]};this._putCallback=function(a,b){var c=this._getCallback(a);d(b)&&(ma[a]=b);return c};this.onTransportFailure=function(a,b, 57c){this._debug("Transport failure",b,"for",a);var e=this.getTransportRegistry(),g=this.getURL(),x=this._isCrossDomain(u(g)[2]),F=e.findTransportTypes("1.0",x,g);if("none"===b.action)"/meta/handshake"!==a.channel||b.transport||(a="Could not negotiate transport, client\x3d["+F+"], server\x3d["+a.supportedConnectionTypes+"]",this._warn(a),I(J.getType(),null,{reason:a,connectionType:J.getType(),transport:J}));else if(b.delay=this.getBackoffPeriod(),"/meta/handshake"===a.channel){if(!b.transport){var L= 58J?J.getType():null;(e=e.negotiateTransport(F,"1.0",x,g))?(F=e.getType(),this._debug("Transport",L,"-\x3e",F),I(L,F,a.failure),b.action="handshake",b.transport=e):(this._warn("Could not negotiate transport, client\x3d["+F+"]"),I(L,null,a.failure),b.action="none")}"none"!==b.action&&this.increaseBackoffPeriod()}else a=(new Date).getTime(),0===ka&&(ka=a),"retry"===b.action&&(b.delay=this.increaseBackoffPeriod(),L=N.maxInterval,0<L&&a-ka+Q>N.timeout+N.interval+L&&(b.action="handshake")),"handshake"=== 59b.action&&(b.delay=0,e.reset(!1),this.resetBackoffPeriod());c.call(l,b)};this.receive=La;var Ra=function(a){l._debug("Received",a);for(var b=0;b<a.length;++b)La(a[b])};var Ca=function(a,b,c){l._debug("handleFailure",a,b,c);c.transport=a;for(a=0;a<b.length;++a){var e=b[a],g={id:e.id,successful:!1,channel:e.channel,failure:c};c.message=e;switch(e.channel){case "/meta/handshake":wa(g,{cause:"failure",action:"handshake",transport:null});break;case "/meta/connect":Ga(g)?(na=!1,Ha(g,{cause:"failure",action:"retry", 60transport:null})):l._debug("Mismatched /meta/connect failure",g);break;case "/meta/disconnect":Ia(g);break;case "/meta/subscribe":g.subscription=e.subscription;Ja(g);break;case "/meta/unsubscribe":g.subscription=e.subscription;Ka(g);break;default:xa(g)}}};this.registerTransport=function(a,b,c){if(c=R.add(a,b,c))this._debug("Registered transport",a),d(b.registered)&&b.registered(a,this);return c};this.unregisterTransport=function(a){var b=R.remove(a);null!==b&&(this._debug("Unregistered transport", 61a),d(b.unregistered)&&b.unregistered());return b};this.unregisterTransports=function(){R.clear()};this.getTransportTypes=function(){return R.getTransportTypes()};this.findTransport=function(a){return R.find(a)};this.getTransportRegistry=function(){return R};this.configure=function(a){v.call(this,a)};this.init=function(a,b){this.configure(a);this.handshake(b)};this.handshake=function(a,b){if("disconnected"!==Y)throw"Illegal state: handshaken";O(a,b)};this.disconnect=function(a,b){if(!h()){d(a)&&(b= 62a,a=void 0);var c={id:""+ ++W,channel:"/meta/disconnect"};a=this._mixin(!1,{},a,c);l._putCallback(a.id,b);G("disconnecting");f([a],!1,"disconnect")}};this.startBatch=function(){++V;l._debug("Starting batch, depth",V)};this.endBatch=function(){--V;l._debug("Ending batch, depth",V);if(0>V)throw"Calls to startBatch() and endBatch() are not paired";0!==V||h()||ja||y()};this.batch=function(a,b){a=Na(a,b);this.startBatch();try{a.method.call(a.scope),this.endBatch()}catch(c){throw this._info("Exception during execution of batch", 63c),this.endBatch(),c;}};this.addTransportListener=function(a,b){if("timeout"!==a)throw"Unsupported event "+a;var c=pa[a];c||(pa[a]=c=[]);c.push(b)};this.removeTransportListener=function(a,b){if(a=pa[a])if(b=a.indexOf(b),0<=b)return a.splice(b,1),!0;return!1};this._getTransportListeners=function(a){return pa[a]};this.addListener=function(a,b,c){if(2>arguments.length)throw"Illegal arguments number: required 2, got "+arguments.length;if(!U.isString(a))throw"Illegal argument type: channel must be a string"; 64return Oa(a,b,c,!0)};
64this.removeListener=function(a){if(!(a&&a.channel&&"id"in a))throw"Invalid argument: expected subscription, not "+a;w(a)};this.clearListeners=function(){S={}};this.subscribe=function(a,b,c,e,g){if(2>arguments.length)throw"Illegal arguments number: required 2, got "+arguments.length;if(!q(a))throw"Illegal argument: invalid channel "+a;if(h())throw"Illegal state: disconnected";d(b)&&(g=e,e=c,c=b,b=void 0);d(e)&&(g=e,e=void 0);var x=!Ma(a),F=Oa(a,b,c,!1);x?(x={id:""+ ++W,channel:"/meta/subscribe", 65subscription:a},x=this._mixin(!1,{},e,x),l._putCallback(x.id,g),m(x)):d(g)&&l.setTimeout(function(){oa(g,{id:""+ ++W,successful:!0,channel:"/meta/subscribe",subscription:a})},0);return F};this.unsubscribe=function(a,b,c){if(1>arguments.length)throw"Illegal arguments number: required 1, got "+arguments.length;if(h())throw"Illegal state: disconnected";d(b)&&(c=b,b=void 0);this.removeListener(a);var e=a.channel;if(Ma(e))d(c)&&l.setTimeout(function(){oa(c,{id:""+ ++W,successful:!0,channel:"/meta/unsubscribe", 66subscription:e})},0);else{var g={id:""+ ++W,channel:"/meta/unsubscribe",subscription:e};g=this._mixin(!1,{},b,g);l._putCallback(g.id,c);m(g)}};this.resubscribe=function(a,b){a&&!a.listener&&w(a);if(a)return this.subscribe(a.channel,a.scope,a.callback,b)};this.clearSubscriptions=function(){C()};this.publish=function(a,b,c,e){if(1>arguments.length)throw"Illegal arguments number: required 1, got "+arguments.length;if(!q(a))throw"Illegal argument: invalid channel "+a;if(/^\/meta\//.test(a))throw"Illegal argument: cannot publish to meta channels"; 67if(h())throw"Illegal state: disconnected";d(b)?(e=b,b={},c=void 0):d(c)&&(e=c,c=void 0);var g={id:""+ ++W,channel:a,data:b};g=this._mixin(!1,{},c,g);l._putCallback(g.id,e);m(g)};this.publishBinary=function(a,b,c,e,g,x){d(b)?(x=b,b=new ArrayBuffer(0),c=!0,g=e=void 0):d(c)?(x=c,c=!0,g=e=void 0):d(e)?(x=e,g=e=void 0):d(g)&&(x=g,g=void 0);b={meta:e,data:b,last:c};g=this._mixin(!1,g,{ext:{binary:{}}});this.publish(a,b,g,x)};this.remoteCall=function(a,b,c,e,g){if(1>arguments.length)throw"Illegal arguments number: required 1, got "+ 68arguments.length;if(!U.isString(a))throw"Illegal argument type: target must be a string";if(h())throw"Illegal state: disconnected";d(b)?(g=b,b={},c=K.maxNetworkDelay,e=void 0):d(c)?(g=c,c=K.maxNetworkDelay,e=void 0):d(e)&&(g=e,e=void 0);if("number"!==typeof c)throw"Illegal argument type: timeout must be a number";a.match(/^\//)||(a="/"+a);var x="/service"+a;if(!q(x))throw"Illegal argument: invalid target "+a;x={id:""+ ++W,channel:x,data:b};var F=this._mixin(!1,{},e,x);x={callback:g};0<c&&(x.timeout= 69l.setTimeout(function(){l._debug("Timing out remote call",F,"after",c,"ms");xa({id:F.id,error:"406::timeout",successful:!1,failure:{message:F,reason:"Remote Call Timeout"}})},c),l._debug("Scheduled remote call timeout",F,"in",c,"ms"));va[F.id]=x;m(F)};this.remoteCallBinary=function(a,b,c,e,g,x,F){d(b)?(F=b,b=new ArrayBuffer(0),c=!0,e=void 0,g=K.maxNetworkDelay,x=void 0):d(c)?(F=c,c=!0,e=void 0,g=K.maxNetworkDelay,x=void 0):d(e)?(F=e,e=void 0,g=K.maxNetworkDelay,x=void 0):d(g)?(F=g,g=K.maxNetworkDelay, 70x=void 0):d(x)&&(F=x,x=void 0);b={meta:e,data:b,last:c};x=this._mixin(!1,x,{ext:{binary:{}}});this.remoteCall(a,b,g,x,F)};this.getStatus=function(){return Y};this.isDisconnected=h;this.setBackoffIncrement=function(a){K.backoffIncrement=a};this.getBackoffIncrement=function(){return K.backoffIncrement};this.getBackoffPeriod=function(){return Q};this.increaseBackoffPeriod=function(){Q<K.maxBackoff&&(Q+=K.backoffIncrement);return Q};this.resetBackoffPeriod=function(){Q=0};this.setLogLevel=function(a){K.logLevel= 71a};this.registerExtension=function(a,b){if(2>arguments.length)throw"Illegal arguments number: required 2, got "+arguments.length;if(!U.isString(a))throw"Illegal argument type: extension name must be a string";for(var c=!1,e=0;e<P.length;++e)if(P[e].name===a){c=!0;break}if(c)return this._info("Could not register extension with name",a,"since another extension with the same name already exists"),!1;P.push({name:a,extension:b});this._debug("Registered extension",a);d(b.registered)&&b.registered(a,this); 72return!0};
72this.unregisterExtension=function(a){if(!U.isString(a))throw"Illegal argument type: extension name must be a string";for(var b=!1,c=0;c<P.length;++c){var e=P[c];if(e.name===a){P.splice(c,1);b=!0;this._debug("Unregistered extension",a);a=e.extension;d(a.unregistered)&&a.unregistered();break}}return b};this.getExtension=function(a){for(var b=0;b<P.length;++b){var c=P[b];if(c.name===a)return c.extension}return null};this.getName=function(){return Va};this.getClientId=function(){return ca}; 73this.getURL=function(){if(J){var a=J.getURL();if(a||(a=K.urls[J.getType()]))return a}return K.url};this.getTransport=function(){return J};this.getConfiguration=function(){return this._mixin(!0,{},K)};this.getAdvice=function(){return this._mixin(!0,{},N)};this.setTimeout=function(a,b){return aa.setTimeout(function(){try{l._debug("Invoking timed function",a),a()}catch(c){l._debug("Exception invoking timed function",a,c)}},b)};this.clearTimeout=function(a){aa.clearTimeout(a)};window.WebSocket&&this.registerTransport("websocket", 74new Aa);this.registerTransport("long-polling",new ya);this.registerTransport("callback-polling",new za)},Transport:X,RequestTransport:ra,LongPollingTransport:ya,CallbackPollingTransport:za,WebSocketTransport:Aa,Utils:U,Z85:{encode:function(r){var p=null;r instanceof ArrayBuffer?p=r:r.buffer instanceof ArrayBuffer?p=r.buffer:Array.isArray(r)&&(p=(new Uint8Array(r)).buffer);if(null==p)throw"Cannot Z85 encode "+r;r=p.byteLength;var q=r%4;q=4-(0===q?4:q);p=new DataView(p);for(var d="",k=0,n=0;n<r+q;++n){var u= 75n>=r;k=256*k+(u?0:p.getUint8(n));if(0===(n+1)%4){for(var v=52200625,w=5;0<w;--w){if(!u||w>q)d+=sa[Math.floor(k/v)%85];v/=85}k=0}}return d},decode:function(r){var p=r.length%5,q=5-(0===p?5:p);for(p=0;p<q;++p)r+=sa[sa.length-1];p=r.length;q=new ArrayBuffer(4*p/5-q);for(var d=new DataView(q),k=0,n=0,u=0,v=0;v<p;++v){var w=r.charCodeAt(n++)-32;k=85*k+Qa[w];if(0===n%5){for(w=16777216;1<=w;)u<d.byteLength&&d.setUint8(u++,Math.floor(k/w)%256),w/=256;k=0}}return q}}}});return org.cometd}()}); 76//End SHARED/cometd 77 78//Begin SHARED/commons-cometd3 79define("SHARED/commons-cometd3",["SHARED/jquery","SHARED/jquery_cometd"],function(k,l){eXo.define.names=["$","jquery_cometd"];eXo.define.deps=[k,l];return function(f){var g=f.cometd,a=f.extend({eXoSecret:{exoId:null,exoToken:null},eXoResubs:[],eXoPublish:[],eXoRemoteCalls:[],autoResubscribe:!0},g);a.configure=function(e){e.exoId&&(this.eXoSecret={exoId:e.exoId,exoToken:e.exoToken});typeof e.autoResubscribe!="undefined"&&(this.autoResubscribe=e.autoResubscribe);g.configure.apply(this,arguments)};a.addListener("/meta/handshake", 80function(e){e.successful&&a.batch(a,function(){f.each(a.eXoResubs,function(c,b){g.subscribe.apply(a,b)});f.each(a.eXoPublish,function(c,b){g.publish.apply(a,b)});a.eXoPublish=[];f.each(a.eXoRemoteCalls,function(c,b){g.remoteCall.apply(a,b)});a.eXoRemoteCalls=[]})});a.subscribe=function(e,c,b,d,h){f.isFunction(c)&&(h=d,d=b,b=c,c=void 0);f.isFunction(d)&&(h=d,d=void 0);d||(d={});d=f.extend({},a.eXoSecret,d);this.autoResubscribe&&this.eXoResubs.push([e,c,b,d,h]);if(this.isDisconnected())this.handshake(d); 81else if(this.getStatus()!=="handshaking")return g.subscribe.call(this,e,c,b,d,h)};a.publish=function(e,c,b,d){if(this.isDisconnected()){if(!b||_isFunction(b))b={};b=f.extend({},a.eXoSecret,b);this.handshake(b)}else if(this.getStatus()==="handshaking")this.eXoPublish.push(arguments);else return g.publish.call(this,e,c,b,d)};a.remoteCall=function(e,c,b,d){if(this.isDisconnected()){if(!c||_isFunction(c))c={};c=f.extend({},a.eXoSecret,c);this.handshake(c)}else if(this.getStatus()==="handshaking")this.eXoRemoteCalls.push(arguments); 82else return g.remoteCall.call(this,e,c,b,d)};a.clearResubscriptions=function(){this.eXoResubs=[]};return a}(k)}); 83//End SHARED/commons-cometd3 84 85//Begin SHARED/jquery_cometd 86define("SHARED/jquery_cometd",["SHARED/jquery","SHARED/cometd"],function(k,n){var l=eXo.require,f=eXo.define;eXo.define.names=["jQuery","cometd"];eXo.define.deps=[k,n];return function(e,d){typeof exports==="object"?module.exports=d(l("jquery"),l("cometd/cometd")):typeof f==="function"&&f.amd?f(["jquery","cometd/cometd"],d):d(k,e.org.cometd)}(this,function(e,d){function m(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&c.toLowerCase()!=="content-type"&&a.setRequestHeader(c,b[c])}function p(){var a=new d.LongPollingTransport; 87a=d.Transport.derive(a);a.xhrSend=function(b){return e.ajax({url:b.url,async:b.sync!==!0,type:"POST",contentType:"application/json;charset\x3dUTF-8",data:b.body,global:!1,xhrFields:{withCredentials:!0},beforeSend:function(c){c.withCredentials=!0;m(c,b.headers);return!0},success:b.onSuccess,error:function(c,g,h){b.onError(g,h)}})};return a}function q(){var a=new d.CallbackPollingTransport;a=d.Transport.derive(a);a.jsonpSend=function(b){e.ajax({url:b.url,async:b.sync!==!0,type:"GET",dataType:"jsonp", 88jsonp:"jsonp",data:{message:b.body},beforeSend:function(c){m(c,b.headers);return!0},success:b.onSuccess,error:function(c,g,h){b.onError(g,h)}})};return a}e.CometD=function(a){a=new d.CometD(a);a.unregisterTransports();window.WebSocket&&a.registerTransport("websocket",new d.WebSocketTransport);a.registerTransport("long-polling",new p);a.registerTransport("callback-polling",new q);return a};e.cometd=new e.CometD;return e.cometd})}); 89//End SHARED/jquery_cometd
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.