returnd.isValidJavaScriptVariableName=function(a){return!d.RESERVED_WORDS[a]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(a)?!0:!1},e=d}(d,c),l=function(a,b,c,d,e){"use strict";varf,g=a,h=b,i=c.parser,j=c.parse,k=d.Compiler,l=d.compile,m=d.precompile,n=e,o=g.create,p=function(){vara=o();returna.compile=function(b,c){returnl(b,c,a)},a.precompile=function(b,c){returnm(b,c,a)},a.AST=h,a.Compiler=k,a.JavaScriptCompiler=n,a.Parser=i,a.parse=j,a};returng=p(),g.create=p,f=g}(f,g,i,j,k);returnl}();!function(a){a.fn.history=a.fn.inputhistory=function(b){varc=a.extend({history:[],submit:!1},b),d=this;if(d.size()>1)returnd.each(function(){a(this).history(b)});d.data("history",c.history.concat([""]));vare=0;returnd.on("keydown",function(a){varb=d.data("history"),f=a.which;switch(f){case13:""!=d.val()&&(e=b.length,b[e-1]=d.val(),b.push("")),c.submit&&d.parents("form").eq(0).submit(),d.val("");break;case38:case40:b[e]=d.val(),38==f&&0!=e?e--:40==f&&e<b.length-1&&e++,d.val(b[e]);break;default:return}return!1}),this}}(jQuery),function(a){"function"==typeofdefine&&define.amd?define(["jquery"],a):a("object"==typeofexports?require("jquery"):jQuery)}(function(a){functionb(a){returnh.raw?a:encodeURIComponent(a)}functionc(a){returnh.raw?a:decodeURIComponent(a)}functiond(a){returnb(h.json?JSON.stringify(a):String(a))}functione(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{returna=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}functionf(b,c){vard=h.raw?b:e(b);returna.isFunction(c)?c(d):d}varg=/\+/g,h=a.cookie=function(e,g,i){if(void0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeofi.expires){varj=i.expires,k=i.expires=newDate;k.setTime(+k+864e5*j)}returndocument.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(varl=e?void0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){varp=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void0===(r=f(r))||(l[q]=r)}returnl};h.defaults={},a.removeCookie=function(b,c){returnvoid0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}}),!function(a){"object"==typeofexports?module.exports=a():"function"==typeofdefine&&define.amd?define(a):"undefined"!=typeofwindow?window.io=a():"undefined"!=typeofglobal?global.io=a():"undefined"!=typeofself&&(self.io=a())}(function(){vara;returnfunctionb(a,c,d){functione(g,h){if(!c[g]){if(!a[g]){vari="function"==typeofrequire&&require;if(!h&&i)returni(g,!0);if(f)returnf(g,!0);thrownewError("Cannot find module '"+g+"'")}varj=c[g]={exports:{}};a[g][0].call(j.exports,function(b){varc=a[g][1][b];returne(c?c:b)},j,j.exports,b,a,c,d)}returnc[g].exports}for(varf="function"==typeofrequire&&require,g=0;g<d.length;g++)e(d[g]);returne}({1:[function(a,b){b.exports=a("./lib/")},{"./lib/":2}],2:[function(a,b,c){functiond(a,b){"object"==typeofa&&(b=a,a=void0),b=b||{};varc,d=e(a),f=d.source,j=d.id;returnb.forceNew||b["force new connection"]||!1===b.multiplex?(h("ignoring socket cache for %s",f),c=g(f,b)):(i[j]||(h("new io instance for %s",f),i[j]=g(f,b)),c=i[j]),c.socket(d.path)}vare=a("./url"),f=a("socket.io-parser"),g=a("./manager"),h=a("debug")("socket.io-client");b.exports=c=d;vari=c.managers={};c.protocol=f.protocol,c.connect=d,c.Manager=a("./manager"),c.Socket=a("./socket")},{"./manager":3,"./socket":5,"./url":6,debug:9,"socket.io-parser":40}],3:[function(a,b){functionc(a,b){returnthisinstanceofc?(a&&"object"==typeofa&&(b=a,a=void0),b=b||{},b.path=b.path||"/socket.io",this.nsps={},this.subs=[],this.opts=b,this.reconnection(b.reconnection!==!1),this.reconnectionAttempts(b.reconnectionAttempts||1/0),this.reconnectionDelay(b.reconnectionDelay||1e3),this.reconnectionDelayMax(b.reconnectionDelayMax||5e3),this.timeout(null==b.timeout?2e4:b.timeout),this.readyState="closed",this.uri=a,this.connected=0,this.attempts=0,this.encoding=!1,this.packetBuffer=[
}varc=this;if(this.readyState="pausing",this.polling||!this.writable){vard=0;this.polling&&(h("we are currently polling - waiting to pause"),d++,this.once("pollComplete",function(){h("pre-pause polling complete"),--d||b()})),this.writable||(h("we are currently writing - waiting to pause"),d++,this.once("drain",function(){h("pre-pause writing complete"),--d||b()}))}elseb()},c.prototype.poll=function(){h("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},c.prototype.onData=function(a){varb=this;h("polling got data %s",a);varc=function(a){return"opening"==b.readyState&&b.onOpen(),"close"==a.type?(b.onClose(),!1):voidb.onPacket(a)};f.decodePayload(a,this.socket.binaryType,c),"closed"!=this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"==this.readyState?this.poll():h('ignoring poll - transport state "%s"',this.readyState))},c.prototype.doClose=function(){functiona(){h("writing close packet"),b.write([{type:"close"}])}varb=this;"open"==this.readyState?(h("transport open - closing"),a()):(h("transport not open - deferring close"),this.once("open",a))},c.prototype.write=function(a){varb=this;this.writable=!1;varc=function(){b.writable=!0,b.emit("drain")},b=this;f.encodePayload(a,this.supportsBinary,function(a){b.doWrite(a,c)})},c.prototype.uri=function(){vara=this.query||{},b=this.secure?"https":"http",c="";return!1!==this.timestampRequests&&(a[this.timestampParam]=+newDate+"-"+d.timestamps++),this.supportsBinary||a.sid||(a.b64=1),a=e.encode(a),this.port&&("https"==b&&443!=this.port||"http"==b&&80!=this.port)&&(c=":"+this.port),a.length&&(a="?"+a),b+"://"+this.hostname+c+this.path+a}},{"../transport":14,"component-inherit":21,debug:9,"engine.io-parser":22,parseqs:30,xmlhttprequest:20}],19:[function(a,b){functionc(a){varb=a&&a.forceBase64;b&&(this.supportsBinary=!1),d.call(this,a)}vard=a("../transport"),e=a("engine.io-parser"),f=a("parseqs"),g=a("component-inherit"),h=a("debug")("engine.io-client:websocket"),i=a("ws");b.exports=c,g(c,d),c.prototype.name="websocket",c.prototype.supportsBinary=!0,c.prototype.doOpen=function(){if(this.check()){vara=this.uri(),b=void0,c={agent:this.agent};this.ws=newi(a,b,c),void0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.binaryType="arraybuffer",this.addEventListeners()}},c.prototype.addEventListeners=function(){vara=this;this.ws.onopen=function(){a.onOpen()},this.ws.onclose=function(){a.onClose()},this.ws.onmessage=function(b){a.onData(b.data)},this.ws.onerror=function(b){a.onError("websocket error",b)}},"undefined"!=typeofnavigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(c.prototype.onData=function(a){varb=this;setTimeout(function(){d.prototype.onData.call(b,a)},0)}),c.prototype.write=function(a){functionb(){c.writable=!0,c.emit("drain")}varc=this;this.writable=!1;for(vard=0,f=a.length;f>d;d++)e.encodePacket(a[d],this.supportsBinary,function(a){try{c.ws.send(a)}catch(b){h("websocket closed before onclose event")}});setTimeout(b,0)},c.prototype.onClose=function(){d.prototype.onClose.call(this)},c.prototype.doClose=function(){"undefined"!=typeofthis.ws&&this.ws.close()},c.prototype.uri=function(){vara=this.query||{},b=this.secure?"wss":"ws",c="";returnthis.port&&("wss"==b&&443!=this.port||"ws"==b&&80!=this.port)&&(c=":"+this.port),this.timestampRequests&&(a[this.timestampParam]=+newDate),this.supportsBinary||(a.b64=1),a=f.encode(a),a.length&&(a="?"+a),b+"://"+this.hostname+c+this.path+a},c.prototype.check=function(){return!(!i||"__initialize"ini&&this.name===c.prototype.name)}},{"../transport":14,"component-inherit":21,debug:9,"engine.io-parser":22,parseqs:30,ws:31}],20:[function(a,b){varc=a("has-cors");b.exports=function(a){varb=a.xdomain;try{if("undefined"!=typeofXMLHttpRequest&&(!b||c))returnnewXMLHttpRequest}catch(d){}if(!b)try{returnnewActiveXObject("Microsoft.XMLHTTP")}catch(d){}}},{"has-cors":34}],21:[function(a,b){b.exports=function(a,b){varc=function(){};c.prototype=b.prototype,a.prototype=newc,a.prototype.constructor=a}},{}],22:[function(a,b,c){functiond(a,b,d){if(!b)returnc.encodeBase64Packet(a,d);var