(function(){functionb(d,e,g){functiona(j,i){if(!e[j]){if(!d[j]){varf="function"==typeofrequire&&require;if(!i&&f)returnf(j,!0);if(h)returnh(j,!0);varc=newError("Cannot find module '"+j+"'");throwc.code="MODULE_NOT_FOUND",c}vark=e[j]={exports:{}};d[j][0].call(k.exports,function(b){varc=d[j][1][b];returna(c||b)},k,k.exports,b,d,e,g)}returne[j].exports}for(varh="function"==typeofrequire&&require,c=0;c<g.length;c++)a(g[c]);returna}returnb})()({1:[function(a){functionb(a){j.innerHTML+=a+"\n"}functionc(a){console.log(a),window.alert(a)}functiond(a){a.emit("chat","Hello from browser(ify) client-side!");constc=document.getElementById("input"),d=document.getElementById("sendBtn");d.disabled=!1,d.onclick=function(){constd=c.value;c.value="",a.emit("chat",d),b("Me: "+d)}}asyncfunctione(){try{consta=awaitf.dial(i,{default:{_OnNamespaceConnected:function(a,c){b("connected to namespace: "+c.Namespace),d(a)},_OnNamespaceDisconnect:function(a,c){b("disconnected from namespace: "+c.Namespace)},chat:function(a,c){b(c.Body)}}});a.connect("default")}catch(a){c(a)}}constf=a("neffos.js");varg="https:"==document.location.protocol?"wss":"ws",h=document.location.port?":"+document.location.port:"",i=g+"://"+document.location.hostname+h+"/echo";{i+="?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjozMjEzMjF9.8waEX7-vPKACa-Soi1pQvW3Rl8QY-SUFcHKTLZI4mvU"}varj=document.getElementById("output");e()},{"neffos.js":2}],2:[function(a,b,c){(function(d,e){functionf(a){return!("_OnNamespaceConnect"!==a&&"_OnNamespaceConnected"!==a&&"_OnNamespaceDisconnect"!==a&&"_OnRoomJoin"!==a&&"_OnRoomJoined"!==a&&"_OnRoomLeave"!==a&&"_OnRoomLeft"!==a)}functiong(a){return!(void0!==a)||!(null!==a)||(""==a||"string"==typeofa||ainstanceofString?0===a.length||""===a:!!(ainstanceofError)&&g(a.message))}functionh(a){returnJSON.stringify(a)}functioni(a){returng(a)?"":a.replace(K,"@%!semicolon@%!")}functionj(a){returng(a)?"":a.replace(L,";")}functionk(a){if(a.IsNative&&g(a.wait))returna.Body;varb="0",c="0",d=a.Body||"";returna.isError&&(d=a.Err,b="1"),a.isNoOp&&(c="1"),[a.wait||"",i(a.Namespace),i(a.Room),i(a.Event),b,c,d].join(";")}functionl(a,b,c){if(0==c)return[a];vard=a.split(b,c);if(d.length==c){vare=d.join(b)+b;returnd.push(a.substr(e.length)),d}return[a]}functionm(a,b){varc=newJ;if(0==a.length)returnc.isInvalid=!0,c;vard=l(a,";",6);if(7!=d.length)returnb?(c.Event="_OnNativeMessage",c.Body=a):c.isInvalid=!0,c;c.wait=d[0],c.Namespace=j(d[1]),c.Room=j(d[2]),c.Event=j(d[3]),c.isError="1"==d[4]||!1,c.isNoOp="1"==d[5]||!1;vare=d[6];returng(e)?c.Body="":c.isError?c.Err=e:c.Body=e,c.isInvalid=!1,c.IsForced=!1,c.IsLocal=!1,c.IsNative=b&&"_OnNativeMessage"==c.Event||!1,c}functionn(){if(!A){vara=d.hrtime();return"$"+1e9*a[0]+a[1]}varb=window.performance.now();return"$"+b.toString()}functiono(a){returna+";".repeat(6)}functionp(a,b){returna.events.has(b.Event)?a.events.get(b.Event)(a,b):a.events.has("_OnAnyEvent")?a.events.get("_OnAnyEvent")(a,b):null}functionq(a){returnnull===a||a===void0||"undefined"==typeofa}functionr(a,b){if(q(a))returnq(b)||b("connHandler is empty."),null;varc=newMap,d=newMap,e=0;if(Object.keys(a).forEach(function(b){e++;varf=a[b];if(finstanceofFunction)d.set(b,f);elseif(finstanceofMap)c.set(b,f);else{varg=newMap;Object.keys(f).forEach(function(a){g.set(a,f[a])}),c.set(b,g)}}),0<d.size){if(e!=d.size)returnq(b)||b("all keys of connHandler should be events, mix of namespaces and event callbacks is not supported "+d.size+" vs total "+e),null;c.set("",d)}returnc}functions(a,b){returna.has(b)?a.get(b):null}functiont(a,b){if(q(a))returnb;for(varcina)if(a.hasOwnProperty(c)){vard=a[c];c=encodeURIComponent("X-Websocket-Header-"+c),d=encodeURIComponent(d);vare=c+"="+d;b=-1==b.indexOf("?")?-1==b.indexOf("#")?b+"?"+e:b.split("#")[0]+"?"+e+"#"+b.split("#")[1]:b.split("?")[0]+"?"+e+"&"+b.split("?")[1]}returnb}functionu(a,b,c){returnv(a,b,0,c)}functionv(a,b,c,d){return-1==a.indexOf("ws")&&(a="ws://"+a),newPromise(function(e,f){W