!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.io=e()}}(function(){var e,t,n;return function r(e,t,n){function i(o,u){if(!t[o]){if(!e[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(s)return s(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=t[o]={exports:{}};e[o][0].call(f.exports,function(t){var n=e[o][1][t];return i(n?n:t)},f,f.exports,r,e,t,n)}return t[o].exports}var s=typeof require=="function"&&require;for(var o=0;o0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},r.prototype.cleanup=function(){var e;while(e=this.subs.shift())e.destroy();this.packetBuffer=[],this.encoding=!1,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){this.skipReconnect=!0,this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(e){h("close"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();h("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){if(e.skipReconnect)return;h("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts);if(e.skipReconnect)return;e.open(function(t){t?(h("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(h("reconnect success"),e.onreconnect())})},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},{"./on":4,"./socket":5,"./url":6,backo2:7,"component-bind":8,"component-emitter":9,debug:10,"engine.io-client":11,indexof:42,"object-component":43,"socket.io-parser":46}],4:[function(e,t,n){function r(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}t.exports=r},{}],5:[function(e,t,n){function r(e,t){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.io.autoConnect&&this.open(),this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0}var i=e("socket.io-parser"),s=e("component-emitter"),o=e("to-array"),u=e("./on"),a=e("component-bind"),f=e("debug")("socket.io-client:socket"),l=e("has-binary");t.exports=n=r;var c={connect:1,connect_error:1,connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1},h=s.prototype.emit;s(r.prototype),r.prototype.subEvents=function(){if(this.subs)return;var e=this.io;this.subs=[u(e,"open",a(this,"onopen")),u(e,"packet",a(this,"onpacket")),u(e,"close",a(this,"onclose"))]},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"==this.io.readyState&&this.onopen(),this)},r.prototype.send=function(){var e=o(arguments);return e.unshift("message"),this.emit.apply(this,e),this},r.prototype.emit=function(e){if(c.hasOwnProperty(e))return h.apply(this,arguments),this;var t=o(arguments),n=i.EVENT;l(t)&&(n=i.BINARY_EVENT);var r={type:n,data:t};return"function"==typeof t[t.length-1]&&(f("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),r.id=this.ids++),this.connected?this.packet(r):this.sendBuffer.push(r),this},r.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},r.prototype.onopen=function(){f("transport is open - connecting"),"/"!=this.nsp&&this.packet({type:i.CONNECT})},r.prototype.onclose=function(e){f("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},r.prototype.onpacket=function(e){if(e.nsp!=this.nsp)return;switch(e.type){case i.CONNECT:this.onconnect();break;case i.EVENT:this.onevent(e);break;case i.BINARY_EVENT:this.onevent(e);break;case i.ACK:this.onack(e);break;case i.BINARY_ACK:this.onack(e);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",e.data)}},r.prototype.onevent=function(e){var t=e.data||[];f("emitting event %j",t),null!=e.id&&(f("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?h.apply(this,t):this.receiveBuffer.push(t)},r.prototype.ack=function(e){var t=this,n=!1;return function(){if(n)return;n=!0;var r=o(arguments);f("sending ack %j",r);var s=l(r)?i.BINARY_ACK:i.ACK;t.packet({type:s,id:e,data:r})}},r.prototype.onack=function(e){f("calling ack %s with %j",e.id,e.data);var t=this.acks[e.id];t.apply(this,e.data),delete this.acks[e.id]},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var e;for(e=0;e0&&e.jitter<=1?e.jitter:0,this.attempts=0}t.exports=r,r.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(e){this.ms=e},r.prototype.setMax=function(e){this.max=e},r.prototype.setJitter=function(e){this.jitter=e}},{}],8:[function(e,t,n){var r=[].slice;t.exports=function(e,t){"string"==typeof t&&(t=e[t]);if("function"!=typeof t)throw new Error("bind() requires a function");var n=r.call(arguments,2);return function(){return t.apply(e,n.concat(r.call(arguments)))}}},{}],9:[function(e,t,n){function r(e){if(e)return i(e)}function i(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){r.off(e,n),t.apply(this,arguments)}var r=this;return this._callbacks=this._callbacks||{},n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){this._callbacks=this._callbacks||{};if(0==arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1==arguments.length)return delete this._callbacks[e],this;var r;for(var i=0;i=r?(e/r).toFixed(1)+"h":e>=n?(e/n).toFixed(1)+"m":e>=t?(e/t|0)+"s":e+"ms"},r.enabled=function(e){for(var t=0,n=r.skips.length;t';l=document.createElement(t)}catch(e){l=document.createElement("iframe"),l.name=i.iframeId,l.src="javascript:0"}l.id=i.iframeId,i.form.appendChild(l),i.iframe=l}var i=this;if(!this.form){var s=document.createElement("form"),o=document.createElement("textarea"),f=this.iframeId="eio_iframe_"+this.index,l;s.className="socketio",s.style.position="absolute",s.style.top="-1000px",s.style.left="-1000px",s.target=f,s.method="POST",s.setAttribute("accept-charset","utf-8"),o.name="d",s.appendChild(o),document.body.appendChild(s),this.form=s,this.area=o}this.form.action=this.uri(),r(),e=e.replace(a,"\\\n"),this.area.value=e.replace(u,"\\n");try{this.form.submit()}catch(c){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){i.iframe.readyState=="complete"&&n()}:this.iframe.onload=n}}).call(this,typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./polling":18,"component-inherit":21}],17:[function(e,t,n){(function(n){function r(){}function i(e){a.call(this,e);if(n.location){var t="https:"==location.protocol,r=location.port;r||(r=t?443:80),this.xd=e.hostname!=n.location.hostname||r!=e.port,this.xs=e.secure!=t}}function s(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=undefined!=e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.create()}function o(){for(var e in s.requests)s.requests.hasOwnProperty(e)&&s.requests[e].abort()}var u=e("xmlhttprequest"),a=e("./polling"),f=e("component-emitter"),l=e("component-inherit"),c=e("debug")("engine.io-client:polling-xhr");t.exports=i,t.exports.Request=s,l(i,a),i.prototype.supportsBinary=!0,i.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,new s(e)},i.prototype.doWrite=function(e,t){var n=typeof e!="string"&&e!==undefined,r=this.request({method:"POST",data:e,isBinary:n}),i=this;r.on("success",t),r.on("error",function(e){i.onError("xhr post error",e)}),this.sendXhr=r},i.prototype.doPoll=function(){c("xhr poll");var e=this.request(),t=this;e.on("data",function(e){t.onData(e)}),e.on("error",function(e){t.onError("xhr poll error",e)}),this.pollXhr=e},f(s.prototype),s.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new u(e),r=this;try{c("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async),this.supportsBinary&&(t.responseType="arraybuffer");if("POST"==this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}"withCredentials"in t&&(t.withCredentials=!0),this.hasXDR()?(t.onload=function(){r.onLoad()},t.onerror=function(){r.onError(t.responseText)}):t.onreadystatechange=function(){if(4!=t.readyState)return;200==t.status||1223==t.status?r.onLoad():setTimeout(function(){r.onError(t.status)},0)},c("xhr data %s",this.data),t.send(this.data)}catch(i){setTimeout(function(){r.onError(i)},0);return}n.document&&(this.index=s.requestsCount++,s.requests[this.index]=this)},s.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},s.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},s.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},s.prototype.cleanup=function(e){if("undefined"==typeof this.xhr||null===this.xhr)return;this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r;if(e)try{this.xhr.abort()}catch(t){}n.document&&delete s.requests[this.index],this.xhr=null},s.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(n){}t==="application/octet-stream"?e=this.xhr.response:this.supportsBinary?e="ok":e=this.xhr.responseText}catch(n){this.onError(n)}null!=e&&this.onData(e)},s.prototype.hasXDR=function(){return"undefined"!=typeof n.XDomainRequest&&!this.xs&&this.enablesXDR},s.prototype.abort=function(){this.cleanup()},n.document&&(s.requestsCount=0,s.requests={},n.attachEvent?n.attachEvent("onunload",o):n.addEventListener&&n.addEventListener("beforeunload",o,!1))}).call(this,typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./polling":18,"component-emitter":9,"component-inherit":21,debug:22,xmlhttprequest:20}],18:[function(e,t,n){function r(e){var t=e&&e.forceBase64;if(!f||t)this.supportsBinary=!1;i.call(this,e)}var i=e("../transport"),s=e("parseqs"),o=e("engine.io-parser"),u=e("component-inherit"),a=e("debug")("engine.io-client:polling");t.exports=r;var f=function(){var t=e("xmlhttprequest"),n=new t({xdomain:!1});return null!=n.responseType}();u(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(e){function t(){a("paused"),r.readyState="paused",e()}var n=0,r=this;this.readyState="pausing";if(this.polling||! this.writable){var i=0;this.polling&&(a("we are currently polling - waiting to pause"),i++,this.once("pollComplete",function(){a("pre-pause polling complete"),--i||t()})),this.writable||(a("we are currently writing - waiting to pause"),i++,this.once("drain",function(){a("pre-pause writing complete"),--i||t()}))}else t()},r.prototype.poll=function(){a("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(e){var t=this;a("polling got data %s",e);var n=function(e,n,r){"opening"==t.readyState&&t.onOpen();if("close"==e.type)return t.onClose(),!1;t.onPacket(e)};o.decodePayload(e,this.socket.binaryType,n),"closed"!=this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"==this.readyState?this.poll():a('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function e(){a("writing close packet"),t.write([{type:"close"}])}var t=this;"open"==this.readyState?(a("transport open - closing"),e()):(a("transport not open - deferring close"),this.once("open",e))},r.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")},t=this;o.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},r.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=+(new Date)+"-"+i.timestamps++),!this.supportsBinary&&!e.sid&&(e.b64=1),e=s.encode(e),this.port&&("https"==t&&this.port!=443||"http"==t&&this.port!=80)&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+this.hostname+n+this.path+e}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:35,xmlhttprequest:20}],19:[function(e,t,n){function r(e){var t=e&&e.forceBase64;t&&(this.supportsBinary=!1),i.call(this,e)}var i=e("../transport"),s=e("engine.io-parser"),o=e("parseqs"),u=e("component-inherit"),a=e("debug")("engine.io-client:websocket"),f=e("ws");t.exports=r,u(r,i),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(!this.check())return;var e=this,t=this.uri(),n=void 0,r={agent:this.agent};r.pfx=this.pfx,r.key=this.key,r.passphrase=this.passphrase,r.cert=this.cert,r.ca=this.ca,r.ciphers=this.ciphers,r.rejectUnauthorized=this.rejectUnauthorized,this.ws=new f(t,n,r),this.ws.binaryType===undefined&&(this.supportsBinary=!1),this.ws.binaryType="arraybuffer",this.addEventListeners()},r.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},"undefined"!=typeof navigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(r.prototype.onData=function(e){var t=this;setTimeout(function(){i.prototype.onData.call(t,e)},0)}),r.prototype.write=function(e){function t(){n.writable=!0,n.emit("drain")}var n=this;this.writable=!1;for(var r=0,i=e.length;r=31}function i(){var e=arguments,t=this.useColors;e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff);if(!t)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var i=0,s=0;return e[0].replace(/%[a-z%]/g,function(e){if("%"===e)return;i++,"%c"===e&&(s=i)}),e.splice(s,0,r),e}function s(){return"object"==typeof console&&"function"==typeof console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(e){try{null==e?localStorage.removeItem("debug"):localStorage.debug=e}catch(t){}}function u(){var e;try{e=localStorage.debug}catch(t){}return e}n=t.exports=e("./debug"),n.log=s,n.formatArgs=i,n.save=o,n.load=u,n.useColors=r,n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){return JSON.stringify(e)},n.enable(u())},{"./debug":23}],23:[function(e,t,n){function r(){return n.colors[f++%n.colors.length]}function i(e){function t(){}function i(){var e=i,t=+(new Date),s=t-(l||t);e.diff=s,e.prev=l,e.curr=t,l=t,null==e.useColors&&(e.useColors=n.useColors()),null==e.color&&e.useColors&&(e.color=r());var o=Array.prototype.slice.call(arguments);o[0]=n.coerce(o[0]),"string"!=typeof o[0]&&(o=["%o"].concat(o));var u=0;o[0]=o[0].replace(/%([a-z%])/g,function(t,r){if(t==="%")return t;u++;var i=n.formatters[r];if("function"==typeof i){var s=o[u];t=i.call(e,s),o.splice(u,1),u--}return t}),"function"==typeof n.formatArgs&&(o=n.formatArgs.apply(e,o));var a=i.log||n.log||console.log.bind(console);a.apply(e,o)}t.enabled=!1,i.enabled=!0;var s=n.enabled(e)?i:t;return s.namespace=e,s}function s(e){n.save(e);var t=(e||"").split(/[\s,]+/),r=t.length;for(var i=0;i=l?Math.round(e/l)+"d":e>=f?Math.round(e/f)+"h":e>=a?Math.round(e/a)+"m":e>=u?Math.round(e/u)+"s":e+"ms"}function s(e){return o(e,l,"day")||o(e,f,"hour")||o(e,a,"minute")||o(e,u,"second")||e+" ms"}function o(e,t,n){if(e1?{type:y[s],data:e.substring(1)}:{type:y[s]}}var o=new Uint8Array(e),s=o[0],u=l(e,1);return w&&t==="blob"&&(u=new w([u])),{type:y[s],data:u}},n.decodeBase64Packet=function(e,n){var r=y[e.charAt(0)];if(!t.ArrayBuffer)return{type:r,data:{base64:!0,data:e.substr(1)}};var i=c.decode(e.substr(1));return n==="blob"&&w&&(i=new w([i])),{type:r,data:i}},n.encodePayload=function(e,t,r){function i(e){return e.length+":"+e}function s(e,r){n.encodePacket(e,o?t:!1,!0,function(e){r(null,i(e))})}typeof t=="function"&&(r=t,t=null);var o=f(e);if(t&&o)return w&&!m?n.encodePayloadAsBlob(e,r):n.encodePayloadAsArrayBuffer(e,r);if(!e.length)return r("0:");u(e,s,function(e,t){return r(t.join(""))})},n.decodePayload=function(e,t,r){if(typeof e!="string")return n.decodePayloadAsBinary(e,t,r);typeof t=="function"&&(r=t,t=null);var i;if(e=="")return r(b,0,1);var s="",o,u;for(var a=0,f=e.length;a0){var u=new Uint8Array(i),a=u[0]===0,f="";for(var c=1;;c++){if(u[c]==255)break;if(f.length>310){o=!0;break}f+=u[c]}if(o)return r(b,0,1);i=l(i,2+f.length),f=parseInt(f);var h=l(i,0,f);if(a)try{h=String.fromCharCode.apply(null,new Uint8Array(h))}catch(p){var d=new Uint8Array(h);h="";for(var c=0;cr&&(n=r);if(t>=r||t>=n||r===0)return new ArrayBuffer(0);var i=new Uint8Array(e),s=new Uint8Array(n-t);for(var o=t,u=0;o>2],s+=e[(n[r]&3)<<4|n[r+1]>>4],s+=e[(n[r+1]&15)<<2|n[r+2]>>6],s+=e[n[r+2]&63];return i%3===2?s=s.substring(0,s.length-1)+"=":i%3===1&&(s=s.substring(0,s.length-2)+"=="),s},n.decode=function(t){var n=t.length*.75,r=t.length,i,s=0,o,u,a,f;t[t.length-1]==="="&&(n--,t[t.length-2]==="="&&n--);var l=new ArrayBuffer(n),c=new Uint8Array(l);for(i=0;i>4,c[s++]=(u&15)<<4|a>>2,c[s++]=(a&3)<<6|f&63;return l}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],30:[function(e,t,n){(function(e){function n(e,t){t=t||{};var n=new r;for(var i=0;i=55296&&i<=56319&&n65535&&(r-=65536,i+=m(r>>>10&1023|55296),r=56320|r&1023),i+=m(r);return i}function u(e,t){return m(e>>t&63|128)}function a(e){if((e&4294967168)==0)return m(e);var t="";return(e&4294965248)==0?t=m(e>>6&31|192):(e&4294901760)==0?(t=m(e>>12&15|224),t+=u(e,6)):(e&4292870144)==0&&(t=m(e>>18&7|240),t+=u(e,12),t+=u(e,6)),t+=m(e&63|128),t}function f(e){var t=s(e),n=t.length,r=-1,i,o="";while(++r=y)throw Error("Invalid byte index");var e=g[b]&255;b++;if((e&192)==128)return e&63;throw Error("Invalid continuation byte")}function c(){var e,t,n,r,i;if(b>y)throw Error("Invalid byte index");if(b==y)return!1;e=g[b]&255,b++;if((e&128)==0)return e;if((e&224)==192){var t=l();i=(e&31)<<6|t;if(i>=128)return i;throw Error("Invalid continuation byte")}if((e&240)==224){t=l(),n=l(),i=(e&15)<<12|t<<6|n;if(i>=2048)return i;throw Error("Invalid continuation byte")}if((e&248)==240){t=l(),n=l(),r=l(),i=(e&15)<<18|t<<12|n<<6|r;if(i>=65536&&i<=1114111)return i}throw Error("Invalid UTF-8 detected")}function h(e){g=s(e),y=g.length,b=0;var t=[],n;while((n=c())!==!1)t.push(n);return o(t)}var p=typeof r=="object"&&r,d=typeof n=="object"&&n&&n.exports==p&&n,v=typeof t=="object"&&t;if(v.global===v||v.window===v)i=v;var m=String.fromCharCode,g,y,b,w={version:"2.0.0",encode:f,decode:h};if(typeof e=="function"&&typeof e.amd=="object"&&e.amd)e(function(){return w});else if(p&&!p.nodeType)if(d)d.exports=w;else{var E={},S=E.hasOwnProperty;for(var x in w)S.call(w,x)&&(p[x]=w[x])}else i.utf8=w})(this)}).call(this,typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],34:[function(e,t,n){(function(e){var n=/^[\],:{}\s]*$/,r=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,i=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,s=/(?:^|:|,)(?:\s*\[)+/g,o=/^\s+/,u=/\s+$/;t.exports=function(t){if("string"!=typeof t||!t)return null;t=t.replace(o,"").replace(u,"");if(e.JSON&&JSON.parse)return JSON.parse(t);if(n.test(t.replace(r,"@").replace(i,"]").replace(s,"")))return(new Function("return "+t))()}}).call(this,typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],35:[function(e,t,n){n.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},n.decode=function(e){var t={},n=e.split("&");for(var r=0,i=n.length;r1)))/4)-w((e-1901+t)/100)+w((e-1601+t)/400)};(s={}.hasOwnProperty)||(s=function(e){var t={},n;return(t.__proto__=null,t.__proto__={toString:1},t).toString!=i?s=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(n=t.constructor,s=function(e){var t=(this.constructor||n).prototype;return e in this&&!(e in t&&this[e]===t[e])}),t=null,s.call(this,e)});var x={"boolean":1,number:1,string:1,"undefined":1},T=function(e,t){var n=typeof e[t];return n=="object"?!!e[t]:!x[n]};o=function(e,t){var n=0,r,u,a;(r=function(){this.valueOf=0}).prototype.valueOf=0,u=new r;for(a in u)s.call(u,a)&&n++;return r=u=null,n?n==2?o=function(e,t){var n={},r=i.call(e)==p,o;for(o in e)(!r||o!="prototype")&&!s.call(n,o)&&(n[o]=1)&&s.call(e,o)&&t(o)}:o=function(e,t){var n=i.call(e)==p,r,o;for(r in e)(!n||r!="prototype")&&s.call(e,r)&&!(o=r==="constructor")&&t(r);(o||s.call(e,r="constructor"))&&t(r)}:(u=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],o=function(e,t){var n=i.call(e)==p,r,o,a=!n&&typeof e.constructor!="function"&&T(e,"hasOwnProperty")?e.hasOwnProperty:s;for(r in e)(!n||r!="prototype")&&a.call(e,r)&&t(r);for(o=u.length;r=u[--o];a.call(e,r)&&t(r));}),o(e,t)};if(!n("json-stringify")){var N={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},C="000000",k=function(e,t){return(C+(t||0)).slice(-e)},L="\\u00",A=function(e){var t='"',n=0,r=e.length,i=r>10&&b,s;i&&(s=e.split(""));for(;n-1/0&&c<1/0){if(S){E=w(c/864e5);for(p=w(E/365.2425)+1970-1;S(p+1,0)<=E;p++);for(b=w((E-S(p,0))/30.42);S(p,b+1)<=E;b++);E=1+E-S(p,b),x=(c%864e5+864e5)%864e5,T=w(x/36e5)%24,N=w(x/6e4)%60,C=w(x/1e3)%60,L=x%1e3}else p=c.getUTCFullYear(),b=c.getUTCMonth(),E=c.getUTCDate(),T=c.getUTCHours(),N=c.getUTCMinutes(),C=c.getUTCSeconds(),L=c.getUTCMilliseconds();c=(p<=0||p>=1e4?(p<0?"-":"+")+k(6,p<0?-p:p):k(4,p))+"-"+k(2,b+1)+"-"+k(2,E)+"T"+k(2,T)+":"+k(2,N)+":"+k(2,C)+"."+k(3,L)+"Z"}else c=null;else typeof c.toJSON=="function"&&(h!=v&&h!=m&&h!=g||s.call(c,"toJSON"))&&(c=c.toJSON(e))}n&&(c=n.call(t,e,c));if(c===null)return"null";h=i.call(c);if(h==y)return""+c;if(h==v)return c>-1/0&&c<1/0?""+c:"null";if(h==m)return A(""+c);if(typeof c=="object"){for(P=l.length;P--;)if(l[P]===c)throw TypeError();l.push(c),M=[],H=f,f+=a;if(h==g){for(D=0,P=c.length;D0)for(r="",n>10&&(n=10);r.length=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||H();n+=M("0x"+e.slice(r,D));break;default:H()}}else{if(o==34)break;o=e.charCodeAt(D),r=D;while(o>=32&&o!=92&&o!=34)o=e.charCodeAt(++D);n+=e.slice(r,D)}}if(e.charCodeAt(D)==34)return D++,n;H();default:r=D,o==45&&(s=!0,o=e.charCodeAt(++D));if(o>=48&&o<=57){o==48&&(o=e.charCodeAt(D+1),o>=48&&o<=57)&&H(),s=!1;for(;D=48&&o<=57);D++);if(e.charCodeAt(D)==46){i=++D;for(;i=48&&o<=57);i++);i==D&&H(),D=i}o=e.charCodeAt(D);if(o==101||o==69){o=e.charCodeAt(++D),(o==43||o==45)&&D++;for(i=D;i=48&&o<=57);i++);i==D&&H(),D=i}return+e.slice(r,D)}s&&H();if(e.slice(D,D+4)=="true")return D+=4,!0;if(e.slice(D,D+5)=="false")return D+=5,!1;if(e.slice(D,D+4)=="null")return D+=4,null;H()}}return"$"},j=function(e){var t,n;e=="$"&&H();if(typeof e=="string"){if((b?e.charAt(0):e[0])=="@")return e.slice(1);if(e=="["){t=[];for(;;n||(n=!0)){e=B();if(e=="]")break;n&&(e==","?(e=B(),e=="]"&&H()):H()),e==","&&H(),t.push(j(e))}return t}if(e=="{"){t={};for(;;n||(n=!0)){e=B();if(e=="}")break;n&&(e==","?(e=B(),e=="}"&&H()):H()),(e==","||typeof e!="string"||(b?e.charAt(0):e[0])!="@"||B()!=":")&&H(),t[e.slice(1)]=j(B())}return t}H()}return e},F=function(e,t,n){var r=I(e,t,n);r===u?delete e[t]:e[t]=r},I=function(e,t,n){var r=e[t],s;if(typeof r=="object"&&r)if(i.call(r)==g)for(s=r.length;s--;)F(r,s,n);else o(r,function(e){F(r,e,n)});return n.call(e,t,r)};l.parse=function(e,t){var n,r;return D=0,P=""+e,n=j(B()),B()!="$"&&H(),D=P=null,t&&i.call(t)==p?I((r={},r[""]=n,r),"",t):n}}}a&&e(function(){return l})})(this)},{}],50:[function(e,t,n){function r(e,t){var n=[];t=t||0;for(var r=t||0;r