typeof sircl=="undefined"&&console.warn("The 'sircl-serversentevents' component should be registered after the 'sircl' component. Please review order of script files.");typeof EventSource!="undefined"?($$("before",function(){$(this).find("[sse-url]").each(function(){this.eventSource.close()})}),$$("process",function(){$(this).find("[sse-url]").each(function(){var f=this.getAttribute("sse-url"),r=$(this).closest("[sse-distinct]"),n=r.length>0?r[0].getAttribute("sse-distinct"):null,e=$(this).closest("[sse-withcredentials]").length>0,t=new EventSource(f,{withCredentials:e}),u,i;this.hasAttribute("sse-dispatch")&&(n!=null&&(this.__sse_lastEventId=t.lastEventId||""),u=this.getAttribute("sse-dispatch")||"content",i=this,t.addEventListener(u,function(t){(n!="last"||t.lastEventId!=i.__sse_lastEventId)&&(n=="sequential"&&t.lastEventId<=i.__sse_lastEventId||(i.__sse_lastEventId=t.lastEventId,sircl.ext.processDataEventRequest($(i),t)))}));$(this).filter("[sse-event]").add($(this).find("[sse-event]")).each(function(){var u,i,r;for(n!=null&&(this.__sse_lastEventId=t.lastEventId||""),u=this.getAttribute("sse-event").split(" "),i=this,r=0;r