"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dist/socket.io.js.map" between
socket.io-client-4.5.1.tar.gz and socket.io-client-4.5.2.tar.gz

About: Socket.IO client is a Javascript client library for the browser (or a Node.js client) that enables real-time communication with an Socket.IO server.

socket.io.js.map  (socket.io-client-4.5.1):socket.io.js.map  (socket.io-client-4.5.2)
{"version":3,"file":"socket.io.js","sources":["../node_modules/engine.io-client/ node_modules/engine.io-parser/build/esm/commons.js","../node_modules/engine.io-c lient/node_modules/engine.io-parser/build/esm/encodePacket.browser.js","../node_ modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js","../node_m odules/engine.io-client/node_modules/engine.io-parser/build/esm/decodePacket.bro wser.js","../node_modules/engine.io-client/node_modules/engine.io-parser/build/e sm/index.js","../node_modules/@socket.io/component-emitter/index.mjs","../node_m odules/engine.io-client/build/esm/globalThis.browser.js","../node_modules/engine .io-client/build/esm/util.js","../node_modules/engine.io-client/build/esm/transp ort.js","../node_modules/engine.io-client/build/esm/contrib/yeast.js","../node_m odules/engine.io-client/build/esm/contrib/parseqs.js","../node_modules/engine.io -client/build/esm/contrib/has-cors.js","../node_modules/engine.io-client/build/e sm/transports/xmlhttprequest.browser.js","../node_modules/engine.io-client/build /esm/transports/polling.js","../node_modules/engine.io-client/build/esm/transpor ts/websocket-constructor.browser.js","../node_modules/engine.io-client/build/esm /transports/websocket.js","../node_modules/engine.io-client/build/esm/transports /index.js","../node_modules/engine.io-client/build/esm/contrib/parseuri.js","../ node_modules/engine.io-client/build/esm/socket.js","../build/esm/url.js","../nod e_modules/socket.io-parser/build/esm/is-binary.js","../node_modules/socket.io-pa rser/build/esm/binary.js","../node_modules/socket.io-parser/build/esm/index.js", "../build/esm/on.js","../build/esm/socket.js","../build/esm/contrib/backo2.js"," ../build/esm/manager.js","../build/esm/index.js"],"sourcesContent":["const PACKE T_TYPES = Object.create(null); // no Map = no polyfill\nPACKET_TYPES[\"open\"] = \"0\";\nPACKET_TYPES[\"close\"] = \"1\";\nPACKET_TYPES[\"ping\"] = \"2\";\nPACK ET_TYPES[\"pong\"] = \"3\";\nPACKET_TYPES[\"message\"] = \"4\";\nPACKET_TYPES[\" upgrade\"] = \"5\";\nPACKET_TYPES[\"noop\"] = \"6\";\nconst PACKET_TYPES_REVERSE = Object.create(null);\nObject.keys(PACKET_TYPES).forEach(key => {\n PACKET_ TYPES_REVERSE[PACKET_TYPES[key]] = key;\n});\nconst ERROR_PACKET = { type: \"err or\", data: \"parser error\" };\nexport { PACKET_TYPES, PACKET_TYPES_REVERSE, ER ROR_PACKET };\n","import { PACKET_TYPES } from \"./commons.js\";\nconst withNati veBlob = typeof Blob === \"function\" ||\n (typeof Blob !== \"undefined\" &&\ n Object.prototype.toString.call(Blob) === \"[object BlobConstructor]\"); \nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\n// ArrayBu ffer.isView method is not defined in IE10\nconst isView = obj => {\n return t ypeof ArrayBuffer.isView === \"function\"\n ? ArrayBuffer.isView(obj)\n : obj && obj.buffer instanceof ArrayBuffer;\n};\nconst encodePacket = ({ t ype, data }, supportsBinary, callback) => {\n if (withNativeBlob && data inst anceof Blob) {\n if (supportsBinary) {\n return callback(data) ;\n }\n else {\n return encodeBlobAsBase64(data, callba ck);\n }\n }\n else if (withNativeArrayBuffer &&\n (data ins tanceof ArrayBuffer || isView(data))) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encode BlobAsBase64(new Blob([data]), callback);\n }\n }\n // plain string \n return callback(PACKET_TYPES[type] + (data || \"\"));\n};\nconst encodeBlo bAsBase64 = (data, callback) => {\n const fileReader = new FileReader();\n fileReader.onload = function () {\n const content = fileReader.result.sp lit(\",\")[1];\n callback(\"b\" + content);\n };\n return fileReade r.readAsDataURL(data);\n};\nexport default encodePacket;\n","/*\n * base64-array buffer 1.0.1 <https://github.com/niklasvh/base64-arraybuffer>\n * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>\n * Released under MIT License\n * /\nvar chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ ';\n// Use a lookup table to find the index.\nvar lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);\nfor (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n}\nvar encode = function (arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';\n for (i = 0; i < len; i += 3) {\n base64 += chars[bytes[i] >> 2] ;\n base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];\n base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];\n ba se64 += chars[bytes[i + 2] & 63];\n }\n if (len % 3 === 2) {\n base 64 = base64.substring(0, base64.length - 1) + '=';\n }\n else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + '==';\n } \n return base64;\n};\nvar decode = function (base64) {\n var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, enco ded3, encoded4;\n if (base64[base64.length - 1] === '=') {\n bufferLen gth--;\n if (base64[base64.length - 2] === '=') {\n bufferLeng th--;\n }\n }\n var arraybuffer = new ArrayBuffer(bufferLength), by tes = new Uint8Array(arraybuffer);\n for (i = 0; i < len; i += 4) {\n encoded1 = lookup[base64.charCodeAt(i)];\n encoded2 = lookup[base64.charC odeAt(i + 1)];\n encoded3 = lookup[base64.charCodeAt(i + 2)];\n en coded4 = lookup[base64.charCodeAt(i + 3)];\n bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);\n bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);\n bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);\n }\n r eturn arraybuffer;\n};\n\nexport { decode, encode };\n//# sourceMappingURL=base6 4-arraybuffer.es5.js.map\n","import { ERROR_PACKET, PACKET_TYPES_REVERSE } from \"./commons.js\";\nimport { decode } from \"@socket.io/base64-arraybuffer\";\nco nst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\nconst decodePa cket = (encodedPacket, binaryType) => {\n if (typeof encodedPacket !== \"stri ng\") {\n return {\n type: \"message\",\n data: map Binary(encodedPacket, binaryType)\n };\n }\n const type = encodedPa cket.charAt(0);\n if (type === \"b\") {\n return {\n type: \"message\",\n data: decodeBase64Packet(encodedPacket.substring(1), b inaryType)\n };\n }\n const packetType = PACKET_TYPES_REVERSE[type] ;\n if (!packetType) {\n return ERROR_PACKET;\n }\n return encod edPacket.length > 1\n ? {\n type: PACKET_TYPES_REVERSE[type],\ n data: encodedPacket.substring(1)\n }\n : {\n type: PACKET_TYPES_REVERSE[type]\n };\n};\nconst decodeBase64Packet = (data, binaryType) => {\n if (withNativeArrayBuffer) {\n const decoded = decode(data);\n return mapBinary(decoded, binaryType);\n }\n els e {\n return { base64: true, data }; // fallback for old browsers\n }\ n};\nconst mapBinary = (data, binaryType) => {\n switch (binaryType) {\n case \"blob\":\n return data instanceof ArrayBuffer ? new Blob([da ta]) : data;\n case \"arraybuffer\":\n default:\n retur n data; // assuming the data is already an ArrayBuffer\n }\n};\nexport defaul t decodePacket;\n","import encodePacket from \"./encodePacket.js\";\nimport deco dePacket from \"./decodePacket.js\";\nconst SEPARATOR = String.fromCharCode(30); // see https://en.wikipedia.org/wiki/Delimiter#ASCII_delimited_text\nconst enco dePayload = (packets, callback) => {\n // some packets may be added to the ar ray while encoding, so the initial length must be saved\n const length = pack ets.length;\n const encodedPackets = new Array(length);\n let count = 0;\n packets.forEach((packet, i) => {\n // force base64 encoding for binar y packets\n encodePacket(packet, false, encodedPacket => {\n e ncodedPackets[i] = encodedPacket;\n if (++count === length) {\n callback(encodedPackets.join(SEPARATOR));\n }\n });\ n });\n};\nconst decodePayload = (encodedPayload, binaryType) => {\n const encodedPackets = encodedPayload.split(SEPARATOR);\n const packets = [];\n for (let i = 0; i < encodedPackets.length; i++) {\n const decodedPacket = decodePacket(encodedPackets[i], binaryType);\n packets.push(decodedPack et);\n if (decodedPacket.type === \"error\") {\n break;\n }\n }\n return packets;\n};\nexport const protocol = 4;\nexport { encod ePacket, encodePayload, decodePacket, decodePayload };\n","/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nexport function Emitter(obj) {\n if (obj) return mixin(obj);\n}\n\n/**\n * Mixin the emitter properties.\n *\n * @pa ram {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(ob j) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[k ey];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @ api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callb acks['$' + event] = this._callbacks['$' + event] || [])\n .push(fn);\n retur n this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Fun ction} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n function on() {\n this.off(event, on);\n fn.apply (this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\ n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callb acks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitte r}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeList ener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventLis tener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this ;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments .length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n call backs.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arra ys for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param { String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.proto type.emit = function(event){\n this._callbacks = this._callbacks || {};\n\n va r args = new Array(arguments.length - 1)\n , callbacks = this._callbacks['$' + event];\n\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = a rguments[i];\n }\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].ap ply(this, args);\n }\n }\n\n return this;\n};\n\n// alias used for reserved events (protected method)\nEmitter.prototype.emitReserved = Emitter.prototype.e mit;\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} e vent\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = f unction(event){\n this._callbacks = this._callbacks || {};\n return this._call backs['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handl ers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\ nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(e vent).length;\n};\n","export default (() => {\n if (typeof self !== \"undefin ed\") {\n return self;\n }\n else if (typeof window !== \"undefined \") {\n return window;\n }\n else {\n return Function(\"retu rn this\")();\n }\n})();\n","import globalThis from \"./globalThis.js\";\nexp ort function pick(obj, ...attr) {\n return attr.reduce((acc, k) => {\n if (obj.hasOwnProperty(k)) {\n acc[k] = obj[k];\n }\n return acc;\n }, {});\n}\n// Keep a reference to the real timeout functions s o they can be used when overridden\nconst NATIVE_SET_TIMEOUT = setTimeout;\ncons t NATIVE_CLEAR_TIMEOUT = clearTimeout;\nexport function installTimerFunctions(ob j, opts) {\n if (opts.useNativeTimers) {\n obj.setTimeoutFn = NATIVE_S ET_TIMEOUT.bind(globalThis);\n obj.clearTimeoutFn = NATIVE_CLEAR_TIMEOUT. bind(globalThis);\n }\n else {\n obj.setTimeoutFn = setTimeout.bind (globalThis);\n obj.clearTimeoutFn = clearTimeout.bind(globalThis);\n }\n}\n// base64 encoded buffers are about 33% bigger (https://en.wikipedia.org/w iki/Base64)\nconst BASE64_OVERHEAD = 1.33;\n// we could also have used `new Blob ([obj]).size`, but it isn't supported in IE9\nexport function byteLength(obj) {\ n if (typeof obj === \"string\") {\n return utf8Length(obj);\n }\n // arraybuffer or blob\n return Math.ceil((obj.byteLength || obj.size) * B ASE64_OVERHEAD);\n}\nfunction utf8Length(str) {\n let c = 0, length = 0;\n for (let i = 0, l = str.length; i < l; i++) {\n c = str.charCodeAt(i);\n if (c < 0x80) {\n length += 1;\n }\n else if (c < 0x800) {\n length += 2;\n }\n else if (c < 0xd800 || c >= 0xe000) {\n length += 3;\n }\n else {\n i++;\n length += 4;\n }\n }\n return length;\n}\n","im port { decodePacket } from \"engine.io-parser\";\nimport { Emitter } from \"@soc ket.io/component-emitter\";\nimport { installTimerFunctions } from \"./util.js\" ;\nclass TransportError extends Error {\n constructor(reason, description, co ntext) {\n super(reason);\n this.description = description;\n this.context = context;\n this.type = \"TransportError\";\n }\n}\ne xport class Transport extends Emitter {\n /**\n * Transport abstract cons tructor.\n *\n * @param {Object} options.\n * @api private\n */\ n constructor(opts) {\n super();\n this.writable = false;\n installTimerFunctions(this, opts);\n this.opts = opts;\n this. query = opts.query;\n this.readyState = \"\";\n this.socket = opts .socket;\n }\n /**\n * Emits an error.\n *\n * @param {String} reason\n * @param description\n * @param context - the error context\n * @return {Transport} for chaining\n * @api protected\n */\n onEr ror(reason, description, context) {\n super.emitReserved(\"error\", new T ransportError(reason, description, context));\n return this;\n }\n /**\n * Opens the transport.\n *\n * @api public\n */\n open( ) {\n if (\"closed\" === this.readyState || \"\" === this.readyState) {\n this.readyState = \"opening\";\n this.doOpen();\n }\n return this;\n }\n /**\n * Closes the transport.\n *\n * @api public\n */\n close() {\n if (\"opening\" === this.read yState || \"open\" === this.readyState) {\n this.doClose();\n this.onClose();\n }\n return this;\n }\n /**\n * Sen ds multiple packets.\n *\n * @param {Array} packets\n * @api public\ n */\n send(packets) {\n if (\"open\" === this.readyState) {\n this.write(packets);\n }\n else {\n // this mig ht happen if the transport was silently closed in the beforeunload event handler \n }\n }\n /**\n * Called upon open\n *\n * @api protec ted\n */\n onOpen() {\n this.readyState = \"open\";\n this. writable = true;\n super.emitReserved(\"open\");\n }\n /**\n * Called with data.\n *\n * @param {String} data\n * @api protected\n */\n onData(data) {\n const packet = decodePacket(data, this.socke t.binaryType);\n this.onPacket(packet);\n }\n /**\n * Called wi th a decoded packet.\n *\n * @api protected\n */\n onPacket(packe t) {\n super.emitReserved(\"packet\", packet);\n }\n /**\n * Ca lled upon close.\n *\n * @api protected\n */\n onClose(details) { \n this.readyState = \"closed\";\n super.emitReserved(\"close\", d etails);\n }\n}\n","// imported from https://github.com/unshiftio/yeast\n'use strict';\nconst alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmno pqrstuvwxyz-_'.split(''), length = 64, map = {};\nlet seed = 0, i = 0, prev;\n/* *\n * Return a string representing the specified number.\n *\n * @param {Number} num The number to convert.\n * @returns {String} The string representation of t he number.\n * @api public\n */\nexport function encode(num) {\n let encoded = '';\n do {\n encoded = alphabet[num % length] + encoded;\n nu m = Math.floor(num / length);\n } while (num > 0);\n return encoded;\n}\n/ **\n * Return the integer value specified by the given string.\n *\n * @param {S tring} str The string to convert.\n * @returns {Number} The integer value repres ented by the string.\n * @api public\n */\nexport function decode(str) {\n le t decoded = 0;\n for (i = 0; i < str.length; i++) {\n decoded = decode d * length + map[str.charAt(i)];\n }\n return decoded;\n}\n/**\n * Yeast: A tiny growing id generator.\n *\n * @returns {String} A unique id.\n * @api pub lic\n */\nexport function yeast() {\n const now = encode(+new Date());\n i f (now !== prev)\n return seed = 0, prev = now;\n return now + '.' + e ncode(seed++);\n}\n//\n// Map each character to its index.\n//\nfor (; i < lengt h; i++)\n map[alphabet[i]] = i;\n","// imported from https://github.com/galkn /querystring\n/**\n * Compiles a querystring\n * Returns string representation o f the object\n *\n * @param {Object}\n * @api private\n */\nexport function enco de(obj) {\n let str = '';\n for (let i in obj) {\n if (obj.hasOwnPr operty(i)) {\n if (str.length)\n str += '&';\n str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]);\n }\ n }\n return str;\n}\n/**\n * Parses a simple querystring into an object\n *\n * @param {String} qs\n * @api private\n */\nexport function decode(qs) {\n let qry = {};\n let pairs = qs.split('&');\n for (let i = 0, l = pairs. length; i < l; i++) {\n let pair = pairs[i].split('=');\n qry[deco deURIComponent(pair[0])] = decodeURIComponent(pair[1]);\n }\n return qry;\ n}\n","// imported from https://github.com/component/has-cors\nlet value = false ;\ntry {\n value = typeof XMLHttpRequest !== 'undefined' &&\n 'withCre dentials' in new XMLHttpRequest();\n}\ncatch (err) {\n // if XMLHttp support is disabled in IE then it will throw\n // when trying to create\n}\nexport co nst hasCORS = value;\n","// browser shim for xmlhttprequest module\nimport { has CORS } from \"../contrib/has-cors.js\";\nimport globalThis from \"../globalThis. js\";\nexport default function (opts) {\n const xdomain = opts.xdomain;\n // XMLHttpRequest can be disabled on IE\n try {\n if (\"undefined\" != = typeof XMLHttpRequest && (!xdomain || hasCORS)) {\n return new XMLH ttpRequest();\n }\n }\n catch (e) { }\n if (!xdomain) {\n try {\n return new globalThis[[\"Active\"].concat(\"Object\").join(\ "X\")](\"Microsoft.XMLHTTP\");\n }\n catch (e) { }\n }\n}\n","i mport { Transport } from \"../transport.js\";\nimport { yeast } from \"../contri b/yeast.js\";\nimport { encode } from \"../contrib/parseqs.js\";\nimport { encod ePayload, decodePayload } from \"engine.io-parser\";\nimport XMLHttpRequest from \"./xmlhttprequest.js\";\nimport { Emitter } from \"@socket.io/component-emitte r\";\nimport { installTimerFunctions, pick } from \"../util.js\";\nimport global This from \"../globalThis.js\";\nfunction empty() { }\nconst hasXHR2 = (function () {\n const xhr = new XMLHttpRequest({\n xdomain: false\n });\n return null != xhr.responseType;\n})();\nexport class Polling extends Transpor t {\n /**\n * XHR Polling constructor.\n *\n * @param {Object} op ts\n * @api public\n */\n constructor(opts) {\n super(opts);\n this.polling = false;\n if (typeof location !== \"undefined\") {\ n const isSSL = \"https:\" === location.protocol;\n let po rt = location.port;\n // some user agents have empty `location.port`\ n if (!port) {\n port = isSSL ? \"443\" : \"80\";\n }\n this.xd =\n (typeof location !== \"undefi ned\" &&\n opts.hostname !== location.hostname) ||\n port !== opts.port;\n this.xs = opts.secure !== isSSL;\n }\n /**\n * XHR supports binary\n */\n const forceBase64 = opts && opts.forceBase64;\n this.supportsBinary = hasXHR2 && !forceBase64;\n }\n /**\n * Transport name.\n */\n get name( ) {\n return \"polling\";\n }\n /**\n * Opens the socket (trigg ers polling). We write a PING message to determine\n * when the transport is open.\n *\n * @api private\n */\n doOpen() {\n this.poll( );\n }\n /**\n * Pauses polling.\n *\n * @param {Function} cal lback upon buffers are flushed and transport is paused\n * @api private\n */\n pause(onPause) {\n this.readyState = \"pausing\";\n cons t pause = () => {\n this.readyState = \"paused\";\n onPaus e();\n };\n if (this.polling || !this.writable) {\n let total = 0;\n if (this.polling) {\n total++;\n this.once(\"pollComplete\", function () {\n --total | | pause();\n });\n }\n if (!this.writable) {\n total++;\n this.once(\"drain\", function () {\ n --total || pause();\n });\n }\n }\n else {\n pause();\n }\n }\n /**\n * Starts polling cycle.\n *\n * @api public\n */\n poll() {\n this.polling = true;\n this.doPoll();\n this.emitReserved(\"pol l\");\n }\n /**\n * Overloads onData to detect payloads.\n *\n * @api private\n */\n onData(data) {\n const callback = packet => {\n // if its the first message we consider the transport open\n if (\"opening\" === this.readyState && packet.type === \"open\") {\n this.onOpen();\n }\n // if its a close packet, we close the ongoing requests\n if (\"close\" === packet.type) {\n this.onClose({ description: \"transport closed by the server\" }); \n return false;\n }\n // otherwise bypass onData and handle the message\n this.onPacket(packet);\n };\n // decode payload\n decodePayload(data, this.socket.binaryType).fo rEach(callback);\n // if an event did not trigger closing\n if (\" closed\" !== this.readyState) {\n // if we got data we're not polling \n this.polling = false;\n this.emitReserved(\"pollComplet e\");\n if (\"open\" === this.readyState) {\n this.pol l();\n }\n else {\n }\n }\n }\n /* *\n * For polling, send a close packet.\n *\n * @api private\n * /\n doClose() {\n const close = () => {\n this.write([{ typ e: \"close\" }]);\n };\n if (\"open\" === this.readyState) {\n close();\n }\n else {\n // in case we're trying to close while\n // handshaking is in progress (GH-164)\n this.once(\"open\", close);\n }\n }\n /**\n * Writes a packets payload.\n *\n * @param {Array} data packets\n * @param {Function} drain callback\n * @api private\n */\n write(packets) {\n this .writable = false;\n encodePayload(packets, data => {\n this.d oWrite(data, () => {\n this.writable = true;\n thi s.emitReserved(\"drain\");\n });\n });\n }\n /**\n * Generates uri for connection.\n *\n * @api private\n */\n uri() {\n let query = this.query || {};\n const schema = this.opts.secur e ? \"https\" : \"http\";\n let port = \"\";\n // cache busting is forced\n if (false !== this.opts.timestampRequests) {\n query [this.opts.timestampParam] = yeast();\n }\n if (!this.supportsBina ry && !query.sid) {\n query.b64 = 1;\n }\n // avoid por t if default for schema\n if (this.opts.port &&\n ((\"https\" === schema && Number(this.opts.port) !== 443) ||\n (\"http\" === schema && Number(this.opts.port) !== 80))) {\n port = \":\" + this.op ts.port;\n }\n const encodedQuery = encode(query);\n const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n return (schema +\n \"://\" +\n (ipv6 ? \"[\" + this.opts.hostname + \"]\" : this .opts.hostname) +\n port +\n this.opts.path +\n (encodedQuery.length ? \"?\" + encodedQuery : \"\"));\n }\n /**\n * C reates a request.\n *\n * @param {String} method\n * @api private\n */\n request(opts = {}) {\n Object.assign(opts, { xd: this.xd, xs: this.xs }, this.opts);\n return new Request(this.uri(), opts);\n }\n /**\n * Sends data.\n *\n * @param {String} data to send.\n * @param {Function} called upon flush.\n * @api private\n */\n doWrite (data, fn) {\n const req = this.request({\n method: \"POST\",\ n data: data\n });\n req.on(\"success\", fn);\n req.on(\"error\", (xhrStatus, context) => {\n this.onError(\"xhr post error\", xhrStatus, context);\n });\n }\n /**\n * Starts a pol l cycle.\n *\n * @api private\n */\n doPoll() {\n const re q = this.request();\n req.on(\"data\", this.onData.bind(this));\n req.on(\"error\", (xhrStatus, context) => {\n this.onError(\"xhr poll error\", xhrStatus, context);\n });\n this.pollXhr = req;\n }\ n}\nexport class Request extends Emitter {\n /**\n * Request constructor\ n *\n * @param {Object} options\n * @api public\n */\n constr uctor(uri, opts) {\n super();\n installTimerFunctions(this, opts); \n this.opts = opts;\n this.method = opts.method || \"GET\";\n this.uri = uri;\n this.async = false !== opts.async;\n this.da ta = undefined !== opts.data ? opts.data : null;\n this.create();\n }\ n /**\n * Creates the XHR object and sends the request.\n *\n * @ api private\n */\n create() {\n const opts = pick(this.opts, \"age nt\", \"pfx\", \"key\", \"passphrase\", \"cert\", \"ca\", \"ciphers\", \"rejectU nauthorized\", \"autoUnref\");\n opts.xdomain = !!this.opts.xd;\n opts.xscheme = !!this.opts.xs;\n const xhr = (this.xhr = new XMLHttpReque st(opts));\n try {\n xhr.open(this.method, this.uri, this.asyn c);\n try {\n if (this.opts.extraHeaders) {\n xhr.setDisableHeaderCheck && xhr.setDisableHeaderCheck(true);\n for (let i in this.opts.extraHeaders) {\n i f (this.opts.extraHeaders.hasOwnProperty(i)) {\n xhr. setRequestHeader(i, this.opts.extraHeaders[i]);\n }\n }\n }\n }\n catch (e) { }\n if (\"POST\" === this.method) {\n try {\n xhr.setRequestHeader(\"Content-type\", \"text/plain;charset=UTF-8\");\n }\n catch (e) { }\n }\n try {\n xhr.setRequestHeader(\"Accept\", \"*/*\");\n }\n catch (e) { }\n // ie6 check\n if (\"withCredent ials\" in xhr) {\n xhr.withCredentials = this.opts.withCredential s;\n }\n if (this.opts.requestTimeout) {\n xhr.timeout = this.opts.requestTimeout;\n }\n xhr.onreadys tatechange = () => {\n if (4 !== xhr.readyState)\n return;\n if (200 === xhr.status || 1223 === xhr.status) {\n this.onLoad();\n }\n else {\n // make sure the `error` event handler that's user-set\n // does not throw in the same tick and gets caught here\n this.setTimeoutFn(() => {\n this.onError(type of xhr.status === \"number\" ? xhr.status : 0);\n }, 0);\n }\n };\n xhr.send(this.data);\n }\n catch (e) {\n // Need to defer since .create() is called directl y from the constructor\n // and thus the 'error' event can only be on ly bound *after* this exception\n // occurs. Therefore, also, we can not throw here at all.\n this.setTimeoutFn(() => {\n t his.onError(e);\n }, 0);\n return;\n }\n if (typeof document !== \"undefined\") {\n this.index = Request.requests Count++;\n Request.requests[this.index] = this;\n }\n }\n /**\n * Called upon error.\n *\n * @api private\n */\n onEr ror(err) {\n this.emitReserved(\"error\", err, this.xhr);\n this.c leanup(true);\n }\n /**\n * Cleans up house.\n *\n * @api priv ate\n */\n cleanup(fromError) {\n if (\"undefined\" === typeof thi s.xhr || null === this.xhr) {\n return;\n }\n this.xhr. onreadystatechange = empty;\n if (fromError) {\n try {\n this.xhr.abort();\n }\n catch (e) { }\n } \n if (typeof document !== \"undefined\") {\n delete Request.r equests[this.index];\n }\n this.xhr = null;\n }\n /**\n * Called upon load.\n *\n * @api private\n */\n onLoad() {\n const data = this.xhr.responseText;\n if (data !== null) {\n this.emitReserved(\"data\", data);\n this.emitReserved(\"success\") ;\n this.cleanup();\n }\n }\n /**\n * Aborts the req uest.\n *\n * @api public\n */\n abort() {\n this.cleanup( );\n }\n}\nRequest.requestsCount = 0;\nRequest.requests = {};\n/**\n * Aborts pending requests when unloading the window. This is needed to prevent\n * memor y leaks (e.g. when using IE) and to ensure that no spurious error is\n * emitted .\n */\nif (typeof document !== \"undefined\") {\n // @ts-ignore\n if (typ eof attachEvent === \"function\") {\n // @ts-ignore\n attachEvent( \"onunload\", unloadHandler);\n }\n else if (typeof addEventListener === \ "function\") {\n const terminationEvent = \"onpagehide\" in globalThis ? \"pagehide\" : \"unload\";\n addEventListener(terminationEvent, unloadHan dler, false);\n }\n}\nfunction unloadHandler() {\n for (let i in Request.r equests) {\n if (Request.requests.hasOwnProperty(i)) {\n Reque st.requests[i].abort();\n }\n }\n}\n","import globalThis from \"../glo balThis.js\";\nexport const nextTick = (() => {\n const isPromiseAvailable = typeof Promise === \"function\" && typeof Promise.resolve === \"function\";\n if (isPromiseAvailable) {\n return cb => Promise.resolve().then(cb);\n }\n else {\n return (cb, setTimeoutFn) => setTimeoutFn(cb, 0);\n }\n})();\nexport const WebSocket = globalThis.WebSocket || globalThis.MozWebSock et;\nexport const usingBrowserWebSocket = true;\nexport const defaultBinaryType = \"arraybuffer\";\n","import { Transport } from \"../transport.js\";\nimport { encode } from \"../contrib/parseqs.js\";\nimport { yeast } from \"../contrib/yea st.js\";\nimport { pick } from \"../util.js\";\nimport { defaultBinaryType, next Tick, usingBrowserWebSocket, WebSocket } from \"./websocket-constructor.js\";\ni mport { encodePacket } from \"engine.io-parser\";\n// detect ReactNative environ ment\nconst isReactNative = typeof navigator !== \"undefined\" &&\n typeof na vigator.product === \"string\" &&\n navigator.product.toLowerCase() === \"rea ctnative\";\nexport class WS extends Transport {\n /**\n * WebSocket tran sport constructor.\n *\n * @api {Object} connection options\n * @api public\n */\n constructor(opts) {\n super(opts);\n this.su pportsBinary = !opts.forceBase64;\n }\n /**\n * Transport name.\n *\n * @api public\n */\n get name() {\n return \"websocket\";\ n }\n /**\n * Opens socket.\n *\n * @api private\n */\n doOpen() {\n if (!this.check()) {\n // let probe timeout\n return;\n }\n const uri = this.uri();\n const prot ocols = this.opts.protocols;\n // React Native only supports the 'headers ' option, and will print a warning if anything else is passed\n const opt s = isReactNative\n ? {}\n : pick(this.opts, \"agent\", \" perMessageDeflate\", \"pfx\", \"key\", \"passphrase\", \"cert\", \"ca\", \"ciphe rs\", \"rejectUnauthorized\", \"localAddress\", \"protocolVersion\", \"origin\", \"maxPayload\", \"family\", \"checkServerIdentity\");\n if (this.opts.ex traHeaders) {\n opts.headers = this.opts.extraHeaders;\n }\n try {\n this.ws =\n usingBrowserWebSocket && !is ReactNative\n ? protocols\n ? new WebS ocket(uri, protocols)\n : new WebSocket(uri)\n : new WebSocket(uri, protocols, opts);\n }\n catch (err) {\n return this.emitReserved(\"error\", err);\n }\n thi s.ws.binaryType = this.socket.binaryType || defaultBinaryType;\n this.add EventListeners();\n }\n /**\n * Adds event listeners to the socket\n *\n * @api private\n */\n addEventListeners() {\n this.ws.o nopen = () => {\n if (this.opts.autoUnref) {\n this.ws ._socket.unref();\n }\n this.onOpen();\n };\n this.ws.onclose = closeEvent => this.onClose({\n description: \"web socket connection closed\",\n context: closeEvent\n });\n this.ws.onmessage = ev => this.onData(ev.data);\n this.ws.onerror = e => this.onError(\"websocket error\", e);\n }\n /**\n * Writes data to socket.\n *\n * @param {Array} array of packets.\n * @api private\n */\n write(packets) {\n this.writable = false;\n // encodeP acket efficient as it uses WS framing\n // no need for encodePayload\n for (let i = 0; i < packets.length; i++) {\n const packet = pack ets[i];\n const lastPacket = i === packets.length - 1;\n e ncodePacket(packet, this.supportsBinary, data => {\n // always cr eate a new object (GH-437)\n const opts = {};\n if (!usingBrowserWebSocket) {\n if (packet.options) {\n opts.compress = packet.options.compress;\n }\ n if (this.opts.perMessageDeflate) {\n const len = \n // @ts-ignore\n \" string\" === typeof data ? Buffer.byteLength(data) : data.length;\n if (len < this.opts.perMessageDeflate.threshold) {\n opts.compress = false;\n }\n }\n }\n // Sometimes the websocket has already b een closed but the browser didn't\n // have a chance of informing us about it yet, in that case send will\n // throw an error\n try {\n if (usingBrowserWebSocket) {\n // TypeError is thrown when passing the second argument on Safari\ n this.ws.send(data);\n }\n else {\n this.ws.send(data, opts);\n }\n }\n catch (e) {\n }\n if (lastPacket) {\n // fake drain\n // defer to next tick to allow Socket to clear writeBuffer\n nextTick(() => {\n this.writable = true;\n this.emitReserved(\"drain\");\n }, this.setT imeoutFn);\n }\n });\n }\n }\n /**\n * Closes socket.\n *\n * @api private\n */\n doClose() {\n if (typeof this.ws !== \"undefined\") {\n this.ws.close();\n this.ws = null;\n }\n }\n /**\n * Generates uri for connect ion.\n *\n * @api private\n */\n uri() {\n let query = thi s.query || {};\n const schema = this.opts.secure ? \"wss\" : \"ws\";\n let port = \"\";\n // avoid port if default for schema\n if ( this.opts.port &&\n ((\"wss\" === schema && Number(this.opts.port) != = 443) ||\n (\"ws\" === schema && Number(this.opts.port) !== 80)) ) {\n port = \":\" + this.opts.port;\n }\n // append ti mestamp to URI\n if (this.opts.timestampRequests) {\n query[th is.opts.timestampParam] = yeast();\n }\n // communicate binary sup port capabilities\n if (!this.supportsBinary) {\n query.b64 = 1;\n }\n const encodedQuery = encode(query);\n const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n return (schema +\n \"://\" +\n (ipv6 ? \"[\" + this.opts.hostname + \"]\" : this.opts. hostname) +\n port +\n this.opts.path +\n (enco dedQuery.length ? \"?\" + encodedQuery : \"\"));\n }\n /**\n * Feature detection for WebSocket.\n *\n * @return {Boolean} whether this transpo rt is available.\n * @api public\n */\n check() {\n return (!! WebSocket &&\n !(\"__initialize\" in WebSocket && this.name === WS.pr ototype.name));\n }\n}\n","import { Polling } from \"./polling.js\";\nimport { WS } from \"./websocket.js\";\nexport const transports = {\n websocket: WS, \n polling: Polling\n};\n","// imported from https://github.com/galkn/parseur i\n/**\n * Parses an URI\n *\n * @author Steven Levithan <stevenlevithan.com> (M IT license)\n * @api private\n */\nconst re = /^(?:(?![^:@]+:[^:@\\/]*@)(http|ht tps|ws|wss):\\/\\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f 0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#] |$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/;\nconst parts = [\n 'sour ce', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host', 'port', 'r elative', 'path', 'directory', 'file', 'query', 'anchor'\n];\nexport function pa rse(str) {\n const src = str, b = str.indexOf('['), e = str.indexOf(']');\n if (b != -1 && e != -1) {\n str = str.substring(0, b) + str.substring(b , e).replace(/:/g, ';') + str.substring(e, str.length);\n }\n let m = re.e xec(str || ''), uri = {}, i = 14;\n while (i--) {\n uri[parts[i]] = m[ i] || '';\n }\n if (b != -1 && e != -1) {\n uri.source = src;\n uri.host = uri.host.substring(1, uri.host.length - 1).replace(/;/g, ':');\n uri.authority = uri.authority.replace('[', '').replace(']', '').replace(/ ;/g, ':');\n uri.ipv6uri = true;\n }\n uri.pathNames = pathNames(ur i, uri['path']);\n uri.queryKey = queryKey(uri, uri['query']);\n return ur i;\n}\nfunction pathNames(obj, path) {\n const regx = /\\/{2,9}/g, names = pa th.replace(regx, \"/\").split(\"/\");\n if (path.substr(0, 1) == '/' || path. length === 0) {\n names.splice(0, 1);\n }\n if (path.substr(path.le ngth - 1, 1) == '/') {\n names.splice(names.length - 1, 1);\n }\n r eturn names;\n}\nfunction queryKey(uri, query) {\n const data = {};\n quer y.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function ($0, $1, $2) {\n if ($1) {\n data[$1] = $2;\n }\n });\n return data;\n}\n","impor t { transports } from \"./transports/index.js\";\nimport { installTimerFunctions , byteLength } from \"./util.js\";\nimport { decode } from \"./contrib/parseqs.j s\";\nimport { parse } from \"./contrib/parseuri.js\";\nimport { Emitter } from \"@socket.io/component-emitter\";\nimport { protocol } from \"engine.io-parser\" ;\nexport class Socket extends Emitter {\n /**\n * Socket constructor.\n *\n * @param {String|Object} uri or options\n * @param {Object} opts - options\n * @api public\n */\n constructor(uri, opts = {}) {\n super();\n if (uri && \"object\" === typeof uri) {\n opts = uri;\n uri = null;\n }\n if (uri) {\n uri = parse(uri);\n opts.hostname = uri.host;\n opts.secure = uri.protocol === \"https\" || uri.protocol === \"wss\";\n opts.port = uri.port;\n if (uri.query)\n opts.query = uri.query;\ n }\n else if (opts.host) {\n opts.hostname = parse(opt s.host).host;\n }\n installTimerFunctions(this, opts);\n th is.secure =\n null != opts.secure\n ? opts.secure\n : typeof location !== \"undefined\" && \"https:\" === location.prot ocol;\n if (opts.hostname && !opts.port) {\n // if no port is specified manually, use the protocol default\n opts.port = this.secur e ? \"443\" : \"80\";\n }\n this.hostname =\n opts.host name ||\n (typeof location !== \"undefined\" ? location.hostname : \"localhost\");\n this.port =\n opts.port ||\n (typeof location !== \"undefined\" && location.port\n ? loc ation.port\n : this.secure\n ? \"443\" \n : \"80\");\n this.transports = opts.transports || [\"polling\", \"websocket\"];\n this.readyState = \"\";\n this. writeBuffer = [];\n this.prevBufferLen = 0;\n this.opts = Object.a ssign({\n path: \"/engine.io\",\n agent: false,\n withCredentials: false,\n upgrade: true,\n timestampPar am: \"t\",\n rememberUpgrade: false,\n rejectUnauthorized: true,\n perMessageDeflate: {\n threshold: 1024\n },\n transportOptions: {},\n closeOnBeforeunload: t rue\n }, opts);\n this.opts.path = this.opts.path.replace(/\\/$/, \"\") + \"/\";\n if (typeof this.opts.query === \"string\") {\n this.opts.query = decode(this.opts.query);\n }\n // set on hands hake\n this.id = null;\n this.upgrades = null;\n this.pingI nterval = null;\n this.pingTimeout = null;\n // set on heartbeat\n this.pingTimeoutTimer = null;\n if (typeof addEventListener === \ "function\") {\n if (this.opts.closeOnBeforeunload) {\n // Firefox closes the connection when the \"beforeunload\" event is emitted bu t not Chrome. This event listener\n // ensures every browser beha ves the same (no \"disconnect\" event at the Socket.IO level when the page is\n // closed/reloaded)\n addEventListener(\"beforeunl oad\", () => {\n if (this.transport) {\n // silently close the transport\n this.transport.remov eAllListeners();\n this.transport.close();\n }\n }, false);\n }\n if (this.hostna me !== \"localhost\") {\n this.offlineEventListener = () => {\n this.onClose(\"transport close\", {\n d escription: \"network connection lost\"\n });\n };\n addEventListener(\"offline\", this.offlineEventListener, f alse);\n }\n }\n this.open();\n }\n /**\n * C reates transport of the given type.\n *\n * @param {String} transport na me\n * @return {Transport}\n * @api private\n */\n createTranspor t(name) {\n const query = Object.assign({}, this.opts.query);\n // append engine.io protocol identifier\n query.EIO = protocol;\n // transport name\n query.transport = name;\n // session id if we al ready have one\n if (this.id)\n query.sid = this.id;\n const opts = Object.assign({}, this.opts.transportOptions[name], this.opts, {\n query,\n socket: this,\n hostname: this.hostnam e,\n secure: this.secure,\n port: this.port\n });\n return new transports[name](opts);\n }\n /**\n * Initializes t ransport to use and starts probe.\n *\n * @api private\n */\n ope n() {\n let transport;\n if (this.opts.rememberUpgrade &&\n Socket.priorWebsocketSuccess &&\n this.transports.indexOf(\"webs ocket\") !== -1) {\n transport = \"websocket\";\n }\n e lse if (0 === this.transports.length) {\n // Emit error on next tick so it can be listened to\n this.setTimeoutFn(() => {\n this.emitReserved(\"error\", \"No transports available\");\n }, 0);\ n return;\n }\n else {\n transport = this.tr ansports[0];\n }\n this.readyState = \"opening\";\n // Retr y with the next transport if the transport is disabled (jsonp: false)\n t ry {\n transport = this.createTransport(transport);\n }\n catch (e) {\n this.transports.shift();\n this.open();\n return;\n }\n transport.open();\n this.setTrans port(transport);\n }\n /**\n * Sets the current transport. Disables th e existing one (if any).\n *\n * @api private\n */\n setTransport (transport) {\n if (this.transport) {\n this.transport.removeA llListeners();\n }\n // set up transport\n this.transport = transport;\n // set up transport listeners\n transport\n .on(\"drain\", this.onDrain.bind(this))\n .on(\"packet\", this.onP acket.bind(this))\n .on(\"error\", this.onError.bind(this))\n .on(\"close\", reason => this.onClose(\"transport close\", reason));\n }\ n /**\n * Probes a transport.\n *\n * @param {String} transport n ame\n * @api private\n */\n probe(name) {\n let transport = th is.createTransport(name);\n let failed = false;\n Socket.priorWebs ocketSuccess = false;\n const onTransportOpen = () => {\n if ( failed)\n return;\n transport.send([{ type: \"ping\", data: \"probe\" }]);\n transport.once(\"packet\", msg => {\n if (failed)\n return;\n if (\"pong\" == = msg.type && \"probe\" === msg.data) {\n this.upgrading = tr ue;\n this.emitReserved(\"upgrading\", transport);\n if (!transport)\n return;\n Socket.priorWebsocketSuccess = \"websocket\" === transport.name;\n this.transport.pause(() => {\n if (failed)\n return;\n if (\"closed\" === this.r eadyState)\n return;\n cleanup ();\n this.setTransport(transport);\n transport.send([{ type: \"upgrade\" }]);\n this.emitR eserved(\"upgrade\", transport);\n transport = null;\n this.upgrading = false;\n this.flush ();\n });\n }\n else {\n const err = new Error(\"probe error\");\n // @ts -ignore\n err.transport = transport.name;\n this.emitReserved(\"upgradeError\", err);\n }\n });\ n };\n function freezeTransport() {\n if (failed)\n return;\n // Any callback called by transport should be i gnored since now\n failed = true;\n cleanup();\n transport.close();\n transport = null;\n }\n // Handl e any error that happens while probing\n const onerror = err => {\n const error = new Error(\"probe error: \" + err);\n // @ts-igno re\n error.transport = transport.name;\n freezeTransport() ;\n this.emitReserved(\"upgradeError\", error);\n };\n function onTransportClose() {\n onerror(\"transport closed\");\n }\n // When the socket is closed while we're probing\n function onclose() {\n onerror(\"socket closed\");\n }\n // Whe n the socket is upgraded while we're probing\n function onupgrade(to) {\n if (transport && to.name !== transport.name) {\n free zeTransport();\n }\n }\n // Remove all listeners on the transport and on self\n const cleanup = () => {\n transport.r emoveListener(\"open\", onTransportOpen);\n transport.removeListener( \"error\", onerror);\n transport.removeListener(\"close\", onTranspor tClose);\n this.off(\"close\", onclose);\n this.off(\"upgr ading\", onupgrade);\n };\n transport.once(\"open\", onTransportOp en);\n transport.once(\"error\", onerror);\n transport.once(\"clos e\", onTransportClose);\n this.once(\"close\", onclose);\n this.on ce(\"upgrading\", onupgrade);\n transport.open();\n }\n /**\n * Called when connection is deemed open.\n *\n * @api private\n */\n onOpen() {\n this.readyState = \"open\";\n Socket.priorWebsocke tSuccess = \"websocket\" === this.transport.name;\n this.emitReserved(\"o pen\");\n this.flush();\n // we check for `readyState` in case an `open`\n // listener already closed the socket\n if (\"open\" === this.readyState &&\n this.opts.upgrade &&\n this.transport .pause) {\n let i = 0;\n const l = this.upgrades.length;\n for (; i < l; i++) {\n this.probe(this.upgrades[i]);\ n }\n }\n }\n /**\n * Handles a packet.\n *\n * @api private\n */\n onPacket(packet) {\n if (\"opening\" === t his.readyState ||\n \"open\" === this.readyState ||\n \"cl osing\" === this.readyState) {\n this.emitReserved(\"packet\", packet );\n // Socket is live - any packet counts\n this.emitRese rved(\"heartbeat\");\n switch (packet.type) {\n case \ "open\":\n this.onHandshake(JSON.parse(packet.data));\n break;\n case \"ping\":\n this.r esetPingTimeout();\n this.sendPacket(\"pong\");\n this.emitReserved(\"ping\");\n this.emitReserved(\"po ng\");\n break;\n case \"error\":\n const err = new Error(\"server error\");\n // @ts-ig nore\n err.code = packet.data;\n this.onEr ror(err);\n break;\n case \"message\":\n this.emitReserved(\"data\", packet.data);\n thi s.emitReserved(\"message\", packet.data);\n break;\n }\n }\n else {\n }\n }\n /**\n * Called upon h andshake completion.\n *\n * @param {Object} data - handshake obj\n * @api private\n */\n onHandshake(data) {\n this.emitReserved(\"ha ndshake\", data);\n this.id = data.sid;\n this.transport.query.sid = data.sid;\n this.upgrades = this.filterUpgrades(data.upgrades);\n this.pingInterval = data.pingInterval;\n this.pingTimeout = data.pingT imeout;\n this.maxPayload = data.maxPayload;\n this.onOpen();\n // In case open handler closes socket\n if (\"closed\" === this.read yState)\n return;\n this.resetPingTimeout();\n }\n /**\n * Sets and resets ping timeout timer based on server pings.\n *\n * @api private\n */\n resetPingTimeout() {\n this.clearTimeoutFn(th is.pingTimeoutTimer);\n this.pingTimeoutTimer = this.setTimeoutFn(() => { \n this.onClose(\"ping timeout\");\n }, this.pingInterval + th is.pingTimeout);\n if (this.opts.autoUnref) {\n this.pingTimeo utTimer.unref();\n }\n }\n /**\n * Called on `drain` event\n *\n * @api private\n */\n onDrain() {\n this.writeBuffer.spl ice(0, this.prevBufferLen);\n // setting prevBufferLen = 0 is very import ant\n // for example, when upgrading, upgrade packet is sent over,\n // and a nonzero prevBufferLen could cause problems on `drain`\n this. prevBufferLen = 0;\n if (0 === this.writeBuffer.length) {\n th is.emitReserved(\"drain\");\n }\n else {\n this.flush() ;\n }\n }\n /**\n * Flush write buffers.\n *\n * @api p rivate\n */\n flush() {\n if (\"closed\" !== this.readyState &&\n this.transport.writable &&\n !this.upgrading &&\n this.writeBuffer.length) {\n const packets = this.getWritablePacke ts();\n this.transport.send(packets);\n // keep track of c urrent length of writeBuffer\n // splice writeBuffer and callbackBuff er on `drain`\n this.prevBufferLen = packets.length;\n thi s.emitReserved(\"flush\");\n }\n }\n /**\n * Ensure the encoded size of the writeBuffer is below the maxPayload value sent by the server (only for HTTP\n * long-polling)\n *\n * @private\n */\n getWritabl ePackets() {\n const shouldCheckPayloadSize = this.maxPayload &&\n this.transport.name === \"polling\" &&\n this.writeBuffer.length > 1;\n if (!shouldCheckPayloadSize) {\n return this.writeBuff er;\n }\n let payloadSize = 1; // first packet type\n for ( let i = 0; i < this.writeBuffer.length; i++) {\n const data = this.wr iteBuffer[i].data;\n if (data) {\n payloadSize += byte Length(data);\n }\n if (i > 0 && payloadSize > this.maxPay load) {\n return this.writeBuffer.slice(0, i);\n }\n payloadSize += 2; // separator + packet type\n }\n retur n this.writeBuffer;\n }\n /**\n * Sends a message.\n *\n * @pa ram {String} message.\n * @param {Function} callback function.\n * @para m {Object} options.\n * @return {Socket} for chaining.\n * @api public\n */\n write(msg, options, fn) {\n this.sendPacket(\"message\", msg , options, fn);\n return this;\n }\n send(msg, options, fn) {\n this.sendPacket(\"message\", msg, options, fn);\n return this;\n } \n /**\n * Sends a packet.\n *\n * @param {String} packet type.\n * @param {String} data.\n * @param {Object} options.\n * @param {Fu nction} callback function.\n * @api private\n */\n sendPacket(type, d ata, options, fn) {\n if (\"function\" === typeof data) {\n fn = data;\n data = undefined;\n }\n if (\"function\" === typeof options) {\n fn = options;\n options = null;\n }\n if (\"closing\" === this.readyState || \"closed\" === this.readyS tate) {\n return;\n }\n options = options || {};\n options.compress = false !== options.compress;\n const packet = {\n type: type,\n data: data,\n options: options\n };\n this.emitReserved(\"packetCreate\", packet);\n this.writ eBuffer.push(packet);\n if (fn)\n this.once(\"flush\", fn);\n this.flush();\n }\n /**\n * Closes the connection.\n *\n * @api public\n */\n close() {\n const close = () => {\n this.onClose(\"forced close\");\n this.transport.close();\n };\n const cleanupAndClose = () => {\n this.off(\"upgrade\", cleanupAndClose);\n this.off(\"upgradeError\", cleanupAndClose);\n close();\n };\n const waitForUpgrade = () => {\n // wait for upgrade to finish since we can't send packets while pausing a tr ansport\n this.once(\"upgrade\", cleanupAndClose);\n this. once(\"upgradeError\", cleanupAndClose);\n };\n if (\"opening\" == = this.readyState || \"open\" === this.readyState) {\n this.readyStat e = \"closing\";\n if (this.writeBuffer.length) {\n th is.once(\"drain\", () => {\n if (this.upgrading) {\n waitForUpgrade();\n }\n els e {\n close();\n }\n }) ;\n }\n else if (this.upgrading) {\n waitFo rUpgrade();\n }\n else {\n close();\n }\n }\n return this;\n }\n /**\n * Called upon tra nsport error\n *\n * @api private\n */\n onError(err) {\n Socket.priorWebsocketSuccess = false;\n this.emitReserved(\"error\", err) ;\n this.onClose(\"transport error\", err);\n }\n /**\n * Calle d upon transport close.\n *\n * @api private\n */\n onClose(reaso n, description) {\n if (\"opening\" === this.readyState ||\n \ "open\" === this.readyState ||\n \"closing\" === this.readyState) {\n // clear timers\n this.clearTimeoutFn(this.pingTimeoutTim er);\n // stop event from firing again for transport\n thi s.transport.removeAllListeners(\"close\");\n // ensure transport won' t stay open\n this.transport.close();\n // ignore further transport communication\n this.transport.removeAllListeners();\n if (typeof removeEventListener === \"function\") {\n remov eEventListener(\"offline\", this.offlineEventListener, false);\n }\n // set ready state\n this.readyState = \"closed\";\n // clear session id\n this.id = null;\n // emit clos e event\n this.emitReserved(\"close\", reason, description);\n // clean buffers after, so users can still\n // grab the buffers on `close` event\n this.writeBuffer = [];\n this.prevBuff erLen = 0;\n }\n }\n /**\n * Filters upgrades, returning only t hose matching client transports.\n *\n * @param {Array} server upgrades\ n * @api private\n *\n */\n filterUpgrades(upgrades) {\n c onst filteredUpgrades = [];\n let i = 0;\n const j = upgrades.leng th;\n for (; i < j; i++) {\n if (~this.transports.indexOf(upgr ades[i]))\n filteredUpgrades.push(upgrades[i]);\n }\n return filteredUpgrades;\n }\n}\nSocket.protocol = protocol;\n","import { parse } from \"engine.io-client\";\n/**\n * URL parser.\n *\n * @param uri - url \n * @param path - the request path of the connection\n * @param loc - An object meant to mimic window.location.\n * Defaults to window.location.\n * @pu blic\n */\nexport function url(uri, path = \"\", loc) {\n let obj = uri;\n // default to window.location\n loc = loc || (typeof location !== \"undefine d\" && location);\n if (null == uri)\n uri = loc.protocol + \"//\" + l oc.host;\n // relative path support\n if (typeof uri === \"string\") {\n if (\"/\" === uri.charAt(0)) {\n if (\"/\" === uri.charAt(1)) { \n uri = loc.protocol + uri;\n }\n else {\n uri = loc.host + uri;\n }\n }\n if (!/^ (https?|wss?):\\/\\//.test(uri)) {\n if (\"undefined\" !== typeof loc ) {\n uri = loc.protocol + \"//\" + uri;\n }\n else {\n uri = \"https://\" + uri;\n }\n }\ n // parse\n obj = parse(uri);\n }\n // make sure we treat ` localhost:80` and `localhost` equally\n if (!obj.port) {\n if (/^(http |ws)$/.test(obj.protocol)) {\n obj.port = \"80\";\n }\n else if (/^(http|ws)s$/.test(obj.protocol)) {\n obj.port = \"443\";\ n }\n }\n obj.path = obj.path || \"/\";\n const ipv6 = obj.host. indexOf(\":\") !== -1;\n const host = ipv6 ? \"[\" + obj.host + \"]\" : obj.h ost;\n // define unique id\n obj.id = obj.protocol + \"://\" + host + \":\ " + obj.port + path;\n // define href\n obj.href =\n obj.protocol + \n \"://\" +\n host +\n (loc && loc.port === ob j.port ? \"\" : \":\" + obj.port);\n return obj;\n}\n","const withNativeArray Buffer = typeof ArrayBuffer === \"function\";\nconst isView = (obj) => {\n re turn typeof ArrayBuffer.isView === \"function\"\n ? ArrayBuffer.isView(ob j)\n : obj.buffer instanceof ArrayBuffer;\n};\nconst toString = Object.pr ototype.toString;\nconst withNativeBlob = typeof Blob === \"function\" ||\n ( typeof Blob !== \"undefined\" &&\n toString.call(Blob) === \"[object Blob Constructor]\");\nconst withNativeFile = typeof File === \"function\" ||\n (t ypeof File !== \"undefined\" &&\n toString.call(File) === \"[object FileC onstructor]\");\n/**\n * Returns true if obj is a Buffer, an ArrayBuffer, a Blob or a File.\n *\n * @private\n */\nexport function isBinary(obj) {\n return ( (withNativeArrayBuffer && (obj instanceof ArrayBuffer || isView(obj))) ||\n (withNativeBlob && obj instanceof Blob) ||\n (withNativeFile && obj in stanceof File));\n}\nexport function hasBinary(obj, toJSON) {\n if (!obj || t ypeof obj !== \"object\") {\n return false;\n }\n if (Array.isArray (obj)) {\n for (let i = 0, l = obj.length; i < l; i++) {\n if (hasBinary(obj[i])) {\n return true;\n }\n }\n return false;\n }\n if (isBinary(obj)) {\n return true;\n }\n if (obj.toJSON &&\n typeof obj.toJSON === \"function\" &&\n arguments.length === 1) {\n return hasBinary(obj.toJSON(), true);\n }\n for (const key in obj) {\n if (Object.prototype.hasOwnProperty.cal l(obj, key) && hasBinary(obj[key])) {\n return true;\n }\n }\n return false;\n}\n","import { isBinary } from \"./is-binary.js\";\n/**\n * Replaces every Buffer | ArrayBuffer | Blob | File in packet with a numbered pl aceholder.\n *\n * @param {Object} packet - socket.io event packet\n * @return { Object} with deconstructed packet and list of buffers\n * @public\n */\nexport f unction deconstructPacket(packet) {\n const buffers = [];\n const packetDa ta = packet.data;\n const pack = packet;\n pack.data = _deconstructPacket( packetData, buffers);\n pack.attachments = buffers.length; // number of binar y 'attachments'\n return { packet: pack, buffers: buffers };\n}\nfunction _de constructPacket(data, buffers) {\n if (!data)\n return data;\n if ( isBinary(data)) {\n const placeholder = { _placeholder: true, num: buffer s.length };\n buffers.push(data);\n return placeholder;\n }\n else if (Array.isArray(data)) {\n const newData = new Array(data.length );\n for (let i = 0; i < data.length; i++) {\n newData[i] = _d econstructPacket(data[i], buffers);\n }\n return newData;\n }\n else if (typeof data === \"object\" && !(data instanceof Date)) {\n c onst newData = {};\n for (const key in data) {\n if (Object.pr ototype.hasOwnProperty.call(data, key)) {\n newData[key] = _decon structPacket(data[key], buffers);\n }\n }\n return newD ata;\n }\n return data;\n}\n/**\n * Reconstructs a binary packet from its placeholder packet and buffers\n *\n * @param {Object} packet - event packet wit h placeholders\n * @param {Array} buffers - binary buffers to put in placeholder positions\n * @return {Object} reconstructed packet\n * @public\n */\nexport fu nction reconstructPacket(packet, buffers) {\n packet.data = _reconstructPacke t(packet.data, buffers);\n packet.attachments = undefined; // no longer usefu l\n return packet;\n}\nfunction _reconstructPacket(data, buffers) {\n if ( !data)\n return data;\n if (data && data._placeholder) {\n retu rn buffers[data.num]; // appropriate buffer (should be natural order anyway)\n }\n else if (Array.isArray(data)) {\n for (let i = 0; i < data.lengt h; i++) {\n data[i] = _reconstructPacket(data[i], buffers);\n }\n }\n else if (typeof data === \"object\") {\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n data[key] = _reconstructPacket(data[key], buffers);\n }\ n }\n }\n return data;\n}\n","import { Emitter } from \"@socket.io/ component-emitter\";\nimport { deconstructPacket, reconstructPacket } from \"./b inary.js\";\nimport { isBinary, hasBinary } from \"./is-binary.js\";\n/**\n * Pr otocol version.\n *\n * @public\n */\nexport const protocol = 5;\nexport var Pac ketType;\n(function (PacketType) {\n PacketType[PacketType[\"CONNECT\"] = 0] = \"CONNECT\";\n PacketType[PacketType[\"DISCONNECT\"] = 1] = \"DISCONNECT\"; \n PacketType[PacketType[\"EVENT\"] = 2] = \"EVENT\";\n PacketType[PacketT ype[\"ACK\"] = 3] = \"ACK\";\n PacketType[PacketType[\"CONNECT_ERROR\"] = 4] = \"CONNECT_ERROR\";\n PacketType[PacketType[\"BINARY_EVENT\"] = 5] = \"BINAR Y_EVENT\";\n PacketType[PacketType[\"BINARY_ACK\"] = 6] = \"BINARY_ACK\";\n}) (PacketType || (PacketType = {}));\n/**\n * A socket.io Encoder instance\n */\ne xport class Encoder {\n /**\n * Encoder constructor\n *\n * @para m {function} replacer - custom replacer to pass down to JSON.parse\n */\n constructor(replacer) {\n this.replacer = replacer;\n }\n /**\n * Encode a packet as a single string if non-binary, or as a\n * buffer seq uence, depending on packet type.\n *\n * @param {Object} obj - packet ob ject\n */\n encode(obj) {\n if (obj.type === PacketType.EVENT || o bj.type === PacketType.ACK) {\n if (hasBinary(obj)) {\n obj.type =\n obj.type === PacketType.EVENT\n ? PacketType.BINARY_EVENT\n : PacketType.BINARY_ ACK;\n return this.encodeAsBinary(obj);\n }\n } \n return [this.encodeAsString(obj)];\n }\n /**\n * Encode pack et as string.\n */\n encodeAsString(obj) {\n // first is type\n let str = \"\" + obj.type;\n // attachments if we have them\n if (obj.type === PacketType.BINARY_EVENT ||\n obj.type === PacketTyp e.BINARY_ACK) {\n str += obj.attachments + \"-\";\n }\n // if we have a namespace other than `/`\n // we append it followed by a comma `,`\n if (obj.nsp && \"/\" !== obj.nsp) {\n str += obj. nsp + \",\";\n }\n // immediately followed by the id\n if ( null != obj.id) {\n str += obj.id;\n }\n // json data\n if (null != obj.data) {\n str += JSON.stringify(obj.data, thi s.replacer);\n }\n return str;\n }\n /**\n * Encode pack et as 'buffer sequence' by removing blobs, and\n * deconstructing packet int o object with placeholders and\n * a list of buffers.\n */\n encodeAs Binary(obj) {\n const deconstruction = deconstructPacket(obj);\n c onst pack = this.encodeAsString(deconstruction.packet);\n const buffers = deconstruction.buffers;\n buffers.unshift(pack); // add packet info to b eginning of data list\n return buffers; // write all the buffers\n }\n }\n/**\n * A socket.io Decoder instance\n *\n * @return {Object} decoder\n */\ne xport class Decoder extends Emitter {\n /**\n * Decoder constructor\n *\n * @param {function} reviver - custom reviver to pass down to JSON.strin gify\n */\n constructor(reviver) {\n super();\n this.revive r = reviver;\n }\n /**\n * Decodes an encoded packet string into packe t JSON.\n *\n * @param {String} obj - encoded packet\n */\n add(o bj) {\n let packet;\n if (typeof obj === \"string\") {\n packet = this.decodeString(obj);\n if (packet.type === PacketType.B INARY_EVENT ||\n packet.type === PacketType.BINARY_ACK) {\n // binary packet's json\n this.reconstructor = new Bina ryReconstructor(packet);\n // no attachments, labeled binary but no binary data to follow\n if (packet.attachments === 0) {\n super.emitReserved(\"decoded\", packet);\n }\n }\n else {\n // non-binary full packet\n super.emitReserved(\"decoded\", packet);\n }\n }\n else if (isBinary(obj) || obj.base64) {\n // raw binary data\n if (!this.reconstructor) {\n throw new Error(\"got bin ary data when not reconstructing a packet\");\n }\n else { \n packet = this.reconstructor.takeBinaryData(obj);\n if (packet) {\n // received final buffer\n this.reconstructor = null;\n super.emitReserved(\"decode d\", packet);\n }\n }\n }\n else {\n throw new Error(\"Unknown type: \" + obj);\n }\n }\n /**\n * Decode a packet String (JSON data)\n *\n * @param {String} str\n * @return {Object} packet\n */\n decodeString(str) {\n let i = 0;\n // look up type\n const p = {\n type: Number(str.c harAt(0)),\n };\n if (PacketType[p.type] === undefined) {\n throw new Error(\"unknown packet type \" + p.type);\n }\n // look up attachments if type binary\n if (p.type === PacketType.BINARY_EVE NT ||\n p.type === PacketType.BINARY_ACK) {\n const start = i + 1;\n while (str.charAt(++i) !== \"-\" && i != str.length) { }\n const buf = str.substring(start, i);\n if (buf != Number( buf) || str.charAt(i) !== \"-\") {\n throw new Error(\"Illegal at tachments\");\n }\n p.attachments = Number(buf);\n }\n // look up namespace (if any)\n if (\"/\" === str.charAt(i + 1 )) {\n const start = i + 1;\n while (++i) {\n const c = str.charAt(i);\n if (\",\" === c)\n break;\n if (i === str.length)\n break;\n }\n p.nsp = str.substring(start, i);\n }\n el se {\n p.nsp = \"/\";\n }\n // look up id\n cons t next = str.charAt(i + 1);\n if (\"\" !== next && Number(next) == next) {\n const start = i + 1;\n while (++i) {\n const c = str.charAt(i);\n if (null == c || Number(c) != c) {\n --i;\n break;\n }\n if (i === str.length)\n break;\n }\n p.id = Number(str.substring(start, i + 1));\n }\n // look up json data\n if (str.charAt(++i)) {\n const payload = this.tryP arse(str.substr(i));\n if (Decoder.isPayloadValid(p.type, payload)) { \n p.data = payload;\n }\n else {\n throw new Error(\"invalid payload\");\n }\n }\n return p;\n }\n tryParse(str) {\n try {\n return JSON.p arse(str, this.reviver);\n }\n catch (e) {\n return fal se;\n }\n }\n static isPayloadValid(type, payload) {\n switc h (type) {\n case PacketType.CONNECT:\n return typeof payload === \"object\";\n case PacketType.DISCONNECT:\n return payload === undefined;\n case PacketType.CONNECT_ERROR:\n return typeof payload === \"string\" || typeof payload === \"object \";\n case PacketType.EVENT:\n case PacketType.BINARY_EVEN T:\n return Array.isArray(payload) && payload.length > 0;\n case PacketType.ACK:\n case PacketType.BINARY_ACK:\n return Array.isArray(payload);\n }\n }\n /**\n * Deallocat es a parser's resources\n */\n destroy() {\n if (this.reconstructo r) {\n this.reconstructor.finishedReconstruction();\n }\n } \n}\n/**\n * A manager of a binary event's 'buffer sequence'. Should\n * be cons tructed whenever a packet of type BINARY_EVENT is\n * decoded.\n *\n * @param {O bject} packet\n * @return {BinaryReconstructor} initialized reconstructor\n */\n class BinaryReconstructor {\n constructor(packet) {\n this.packet = pa cket;\n this.buffers = [];\n this.reconPack = packet;\n }\n /**\n * Method to be called when binary data received from connection\n * after a BINARY_EVENT packet.\n *\n * @param {Buffer | ArrayBuffer} bin Data - the raw binary data received\n * @return {null | Object} returns null if more binary data is expected or\n * a reconstructed packet object if a ll buffers have been received.\n */\n takeBinaryData(binData) {\n this.buffers.push(binData);\n if (this.buffers.length === this.reconPack. attachments) {\n // done with buffer list\n const packet = reconstructPacket(this.reconPack, this.buffers);\n this.finishedReco nstruction();\n return packet;\n }\n return null;\n }\n /**\n * Cleans up binary packet reconstruction variables.\n */\n finishedReconstruction() {\n this.reconPack = null;\n this.buff ers = [];\n }\n}\n","export function on(obj, ev, fn) {\n obj.on(ev, fn);\n return function subDestroy() {\n obj.off(ev, fn);\n };\n}\n","impo rt { PacketType } from \"socket.io-parser\";\nimport { on } from \"./on.js\";\ni mport { Emitter, } from \"@socket.io/component-emitter\";\n/**\n * Internal even ts.\n * These events can't be emitted by the user.\n */\nconst RESERVED_EVENTS = Object.freeze({\n connect: 1,\n connect_error: 1,\n disconnect: 1,\n disconnecting: 1,\n // EventEmitter reserved events: https://nodejs.org/api /events.html#events_event_newlistener\n newListener: 1,\n removeListener: 1,\n});\nexport class Socket extends Emitter {\n /**\n * `Socket` constru ctor.\n *\n * @public\n */\n constructor(io, nsp, opts) {\n super();\n this.connected = false;\n this.receiveBuffer = [];\n this.sendBuffer = [];\n this.ids = 0;\n this.acks = {};\n this.flags = {};\n this.io = io;\n this.nsp = nsp;\n if (opts && opts.auth) {\n this.auth = opts.auth;\n }\n if (this.io._autoConnect)\n this.open();\n }\n /**\n * Whe ther the socket is currently disconnected\n */\n get disconnected() {\n return !this.connected;\n }\n /**\n * Subscribe to open, close a nd packet events\n *\n * @private\n */\n subEvents() {\n i f (this.subs)\n return;\n const io = this.io;\n this.su bs = [\n on(io, \"open\", this.onopen.bind(this)),\n on(io , \"packet\", this.onpacket.bind(this)),\n on(io, \"error\", this.one rror.bind(this)),\n on(io, \"close\", this.onclose.bind(this)),\n ];\n }\n /**\n * Whether the Socket will try to reconnect when its Manager connects or reconnects\n */\n get active() {\n return !!t his.subs;\n }\n /**\n * \"Opens\" the socket.\n *\n * @public\ n */\n connect() {\n if (this.connected)\n return this; \n this.subEvents();\n if (!this.io[\"_reconnecting\"])\n this.io.open(); // ensure open\n if (\"open\" === this.io._readyState) \n this.onopen();\n return this;\n }\n /**\n * Alias for connect()\n */\n open() {\n return this.connect();\n }\n /**\n * Sends a `message` event.\n *\n * @return self\n * @pub lic\n */\n send(...args) {\n args.unshift(\"message\");\n t his.emit.apply(this, args);\n return this;\n }\n /**\n * Overri de `emit`.\n * If the event is in `events`, it's emitted normally.\n *\n * @return self\n * @public\n */\n emit(ev, ...args) {\n i f (RESERVED_EVENTS.hasOwnProperty(ev)) {\n throw new Error('\"' + ev + '\" is a reserved event name');\n }\n args.unshift(ev);\n const packet = {\n type: PacketType.EVENT,\n data: args,\ n };\n packet.options = {};\n packet.options.compress = thi s.flags.compress !== false;\n // event ack callback\n if (\"functi on\" === typeof args[args.length - 1]) {\n const id = this.ids++;\n const ack = args.pop();\n this._registerAckCallback(id, ack );\n packet.id = id;\n }\n const isTransportWritable = this.io.engine &&\n this.io.engine.transport &&\n this.io. engine.transport.writable;\n const discardPacket = this.flags.volatile && (!isTransportWritable || !this.connected);\n if (discardPacket) {\n }\n else if (this.connected) {\n this.notifyOutgoingListene rs(packet);\n this.packet(packet);\n }\n else {\n this.sendBuffer.push(packet);\n }\n this.flags = {};\n return this;\n }\n /**\n * @private\n */\n _registerAckCallba ck(id, ack) {\n const timeout = this.flags.timeout;\n if (timeout === undefined) {\n this.acks[id] = ack;\n return;\n }\n // @ts-ignore\n const timer = this.io.setTimeoutFn(() => {\n delete this.acks[id];\n for (let i = 0; i < this.sendBuffe r.length; i++) {\n if (this.sendBuffer[i].id === id) {\n this.sendBuffer.splice(i, 1);\n }\n }\n ack.call(this, new Error(\"operation has timed out\"));\n }, time out);\n this.acks[id] = (...args) => {\n // @ts-ignore\n this.io.clearTimeoutFn(timer);\n ack.apply(this, [null, ...args ]);\n };\n }\n /**\n * Sends a packet.\n *\n * @param p acket\n * @private\n */\n packet(packet) {\n packet.nsp = this .nsp;\n this.io._packet(packet);\n }\n /**\n * Called upon engi ne `open`.\n *\n * @private\n */\n onopen() {\n if (typeof this.auth == \"function\") {\n this.auth((data) => {\n this.packet({ type: PacketType.CONNECT, data });\n });\n }\n else {\n this.packet({ type: PacketType.CONNECT, data: this.a uth });\n }\n }\n /**\n * Called upon engine or manager `error` .\n *\n * @param err\n * @private\n */\n onerror(err) {\n if (!this.connected) {\n this.emitReserved(\"connect_error\", err );\n }\n }\n /**\n * Called upon engine `close`.\n *\n * @param reason\n * @param description\n * @private\n */\n onclos e(reason, description) {\n this.connected = false;\n delete this.i d;\n this.emitReserved(\"disconnect\", reason, description);\n }\n /**\n * Called with socket packet.\n *\n * @param packet\n * @pr ivate\n */\n onpacket(packet) {\n const sameNamespace = packet.nsp === this.nsp;\n if (!sameNamespace)\n return;\n switch (packet.type) {\n case PacketType.CONNECT:\n if (pack et.data && packet.data.sid) {\n const id = packet.data.sid;\n this.onconnect(id);\n }\n else {\n this.emitReserved(\"connect_error\", new Error(\"It seem s you are trying to reach a Socket.IO server in v2.x with a v3.x client, but the y are not compatible (more information here: https://socket.io/docs/v3/migrating -from-2-x-to-3-0/)\"));\n }\n break;\n case PacketType.EVENT:\n case PacketType.BINARY_EVENT:\n this.onevent(packet);\n break;\n case PacketType.AC K:\n case PacketType.BINARY_ACK:\n this.onack(packet); \n break;\n case PacketType.DISCONNECT:\n this.ondisconnect();\n break;\n case PacketType.CON NECT_ERROR:\n this.destroy();\n const err = new Er ror(packet.data.message);\n // @ts-ignore\n err.da ta = packet.data.data;\n this.emitReserved(\"connect_error\", err );\n break;\n }\n }\n /**\n * Called upon a serv er event.\n *\n * @param packet\n * @private\n */\n onevent(p acket) {\n const args = packet.data || [];\n if (null != packet.id ) {\n args.push(this.ack(packet.id));\n }\n if (this.co nnected) {\n this.emitEvent(args);\n }\n else {\n this.receiveBuffer.push(Object.freeze(args));\n }\n }\n emitE vent(args) {\n if (this._anyListeners && this._anyListeners.length) {\n const listeners = this._anyListeners.slice();\n for (const listener of listeners) {\n listener.apply(this, args);\n }\n }\n super.emit.apply(this, args);\n }\n /**\n * P roduces an ack callback to emit with an event.\n *\n * @private\n */ \n ack(id) {\n const self = this;\n let sent = false;\n return function (...args) {\n // prevent double callbacks\n if (sent)\n return;\n sent = true;\n self .packet({\n type: PacketType.ACK,\n id: id,\n data: args,\n });\n };\n }\n /**\n * Call ed upon a server acknowlegement.\n *\n * @param packet\n * @private\ n */\n onack(packet) {\n const ack = this.acks[packet.id];\n if (\"function\" === typeof ack) {\n ack.apply(this, packet.data);\ n delete this.acks[packet.id];\n }\n else {\n }\ n }\n /**\n * Called upon server connect.\n *\n * @private\n */\n onconnect(id) {\n this.id = id;\n this.connected = true ;\n this.emitBuffered();\n this.emitReserved(\"connect\");\n }\ n /**\n * Emit buffered events (received and emitted).\n *\n * @p rivate\n */\n emitBuffered() {\n this.receiveBuffer.forEach((args) => this.emitEvent(args));\n this.receiveBuffer = [];\n this.sendB uffer.forEach((packet) => {\n this.notifyOutgoingListeners(packet);\n this.packet(packet);\n });\n this.sendBuffer = [];\n }\n /**\n * Called upon server disconnect.\n *\n * @private\n */\n ondisconnect() {\n this.destroy();\n this.onclose(\"io server disconnect\");\n }\n /**\n * Called upon forced client/server s ide disconnections,\n * this method ensures the manager stops tracking us an d\n * that reconnections don't get triggered for this.\n *\n * @priv ate\n */\n destroy() {\n if (this.subs) {\n // clean su bscriptions to avoid reconnections\n this.subs.forEach((subDestroy) = > subDestroy());\n this.subs = undefined;\n }\n this.io [\"_destroy\"](this);\n }\n /**\n * Disconnects the socket manually.\n *\n * @return self\n * @public\n */\n disconnect() {\n if (this.connected) {\n this.packet({ type: PacketType.DISCONNECT } );\n }\n // remove socket from pool\n this.destroy();\n if (this.connected) {\n // fire events\n this.onclose( \"io client disconnect\");\n }\n return this;\n }\n /**\n * Alias for disconnect()\n *\n * @return self\n * @public\n */ \n close() {\n return this.disconnect();\n }\n /**\n * Sets the compress flag.\n *\n * @param compress - if `true`, compresses the s ending data\n * @return self\n * @public\n */\n compress(compress ) {\n this.flags.compress = compress;\n return this;\n }\n / **\n * Sets a modifier for a subsequent event emission that the event messag e will be dropped when this socket is not\n * ready to send messages.\n *\n * @returns self\n * @public\n */\n get volatile() {\n this.flags.volatile = true;\n return this;\n }\n /**\n * Sets a modifier for a subsequent event emission that the callback will be called with an error when the\n * given number of milliseconds have elapsed without an a cknowledgement from the server:\n *\n * ```\n * socket.timeout(5000) .emit(\"my-event\", (err) => {\n * if (err) {\n * // the server di d not acknowledge the event in the given delay\n * }\n * });\n * ` ``\n *\n * @returns self\n * @public\n */\n timeout(timeout) {\n this.flags.timeout = timeout;\n return this;\n }\n /**\n * Adds a listener that will be fired when any event is emitted. The event n ame is passed as the first argument to the\n * callback.\n *\n * @pa ram listener\n * @public\n */\n onAny(listener) {\n this._anyL isteners = this._anyListeners || [];\n this._anyListeners.push(listener); \n return this;\n }\n /**\n * Adds a listener that will be fire d when any event is emitted. The event name is passed as the first argument to t he\n * callback. The listener is added to the beginning of the listeners arr ay.\n *\n * @param listener\n * @public\n */\n prependAny(lis tener) {\n this._anyListeners = this._anyListeners || [];\n this._ anyListeners.unshift(listener);\n return this;\n }\n /**\n * Re moves the listener that will be fired when any event is emitted.\n *\n * @param listener\n * @public\n */\n offAny(listener) {\n if (! this._anyListeners) {\n return this;\n }\n if (listener ) {\n const listeners = this._anyListeners;\n for (let i = 0; i < listeners.length; i++) {\n if (listener === listeners[i]) {\n listeners.splice(i, 1);\n return this ;\n }\n }\n }\n else {\n this ._anyListeners = [];\n }\n return this;\n }\n /**\n * Re turns an array of listeners that are listening for any event that is specified. This array can be manipulated,\n * e.g. to remove listeners.\n *\n * @public\n */\n listenersAny() {\n return this._anyListeners || [] ;\n }\n /**\n * Adds a listener that will be fired when any event is e mitted. The event name is passed as the first argument to the\n * callback.\ n *\n * @param listener\n *\n * <pre><code>\n *\n * sock et.onAnyOutgoing((event, ...args) => {\n * console.log(event);\n * }); \n *\n * </pre></code>\n *\n * @public\n */\n onAnyOutgoi ng(listener) {\n this._anyOutgoingListeners = this._anyOutgoingListeners || [];\n this._anyOutgoingListeners.push(listener);\n return this; \n }\n /**\n * Adds a listener that will be fired when any event is em itted. The event name is passed as the first argument to the\n * callback. T he listener is added to the beginning of the listeners array.\n *\n * @p aram listener\n *\n * <pre><code>\n *\n * socket.prependAnyOutgo ing((event, ...args) => {\n * console.log(event);\n * });\n *\n * </pre></code>\n *\n * @public\n */\n prependAnyOutgoing(liste ner) {\n this._anyOutgoingListeners = this._anyOutgoingListeners || [];\n this._anyOutgoingListeners.unshift(listener);\n return this;\n }\n /**\n * Removes the listener that will be fired when any event is em itted.\n *\n * @param listener\n *\n * <pre><code>\n *\n * const handler = (event, ...args) => {\n * console.log(event);\n * } \n *\n * socket.onAnyOutgoing(handler);\n *\n * // then later\n * socket.offAnyOutgoing(handler);\n *\n * </pre></code>\n *\n * @public\n */\n offAnyOutgoing(listener) {\n if (!this._anyOutg oingListeners) {\n return this;\n }\n if (listener) {\n const listeners = this._anyOutgoingListeners;\n for (let i = 0; i < listeners.length; i++) {\n if (listener === listeners[ i]) {\n listeners.splice(i, 1);\n return t his;\n }\n }\n }\n else {\n t his._anyOutgoingListeners = [];\n }\n return this;\n }\n /** \n * Returns an array of listeners that are listening for any event that is specified. This array can be manipulated,\n * e.g. to remove listeners.\n *\n * @public\n */\n listenersAnyOutgoing() {\n return this. _anyOutgoingListeners || [];\n }\n /**\n * Notify the listeners for ea ch packet sent\n *\n * @param packet\n *\n * @private\n */\n notifyOutgoingListeners(packet) {\n if (this._anyOutgoingListeners && this._anyOutgoingListeners.length) {\n const listeners = this._anyOu tgoingListeners.slice();\n for (const listener of listeners) {\n listener.apply(this, packet.data);\n }\n }\n }\n }\n","/**\n * Initialize backoff timer with `opts`.\n *\n * - `min` initial time out in milliseconds [100]\n * - `max` max timeout [10000]\n * - `jitter` [0]\n * - `factor` [2]\n *\n * @param {Object} opts\n * @api public\n */\nexport functi on Backoff(opts) {\n opts = opts || {};\n this.ms = opts.min || 100;\n this.max = opts.max || 10000;\n this.factor = opts.factor || 2;\n this.jit ter = opts.jitter > 0 && opts.jitter <= 1 ? opts.jitter : 0;\n this.attempts = 0;\n}\n/**\n * Return the backoff duration.\n *\n * @return {Number}\n * @api public\n */\nBackoff.prototype.duration = function () {\n var ms = this.ms * Math.pow(this.factor, this.attempts++);\n if (this.jitter) {\n var ran d = Math.random();\n var deviation = Math.floor(rand * this.jitter * ms); \n ms = (Math.floor(rand * 10) & 1) == 0 ? ms - deviation : ms + deviatio n;\n }\n return Math.min(ms, this.max) | 0;\n};\n/**\n * Reset the number of attempts.\n *\n * @api public\n */\nBackoff.prototype.reset = function () {\n this.attempts = 0;\n};\n/**\n * Set the minimum duration\n *\n * @api public \n */\nBackoff.prototype.setMin = function (min) {\n this.ms = min;\n};\n/**\ n * Set the maximum duration\n *\n * @api public\n */\nBackoff.prototype.setMax = function (max) {\n this.max = max;\n};\n/**\n * Set the jitter\n *\n * @api public\n */\nBackoff.prototype.setJitter = function (jitter) {\n this.jitter = jitter;\n};\n","import { Socket as Engine, installTimerFunctions, } from \"en gine.io-client\";\nimport { Socket } from \"./socket.js\";\nimport * as parser f rom \"socket.io-parser\";\nimport { on } from \"./on.js\";\nimport { Backoff } f rom \"./contrib/backo2.js\";\nimport { Emitter, } from \"@socket.io/component-em itter\";\nexport class Manager extends Emitter {\n constructor(uri, opts) {\n var _a;\n super();\n this.nsps = {};\n this.subs = [];\n if (uri && \"object\" === typeof uri) {\n opts = uri;\n uri = undefined;\n }\n opts = opts || {};\n opts .path = opts.path || \"/socket.io\";\n this.opts = opts;\n install TimerFunctions(this, opts);\n this.reconnection(opts.reconnection !== fal se);\n this.reconnectionAttempts(opts.reconnectionAttempts || Infinity);\ n this.reconnectionDelay(opts.reconnectionDelay || 1000);\n this.r econnectionDelayMax(opts.reconnectionDelayMax || 5000);\n this.randomizat ionFactor((_a = opts.randomizationFactor) !== null && _a !== void 0 ? _a : 0.5); \n this.backoff = new Backoff({\n min: this.reconnectionDelay( ),\n max: this.reconnectionDelayMax(),\n jitter: this.rand omizationFactor(),\n });\n this.timeout(null == opts.timeout ? 200 00 : opts.timeout);\n this._readyState = \"closed\";\n this.uri = uri;\n const _parser = opts.parser || parser;\n this.encoder = new _parser.Encoder();\n this.decoder = new _parser.Decoder();\n this ._autoConnect = opts.autoConnect !== false;\n if (this._autoConnect)\n this.open();\n }\n reconnection(v) {\n if (!arguments.leng th)\n return this._reconnection;\n this._reconnection = !!v;\n return this;\n }\n reconnectionAttempts(v) {\n if (v === un defined)\n return this._reconnectionAttempts;\n this._reconnec tionAttempts = v;\n return this;\n }\n reconnectionDelay(v) {\n var _a;\n if (v === undefined)\n return this._reconnection Delay;\n this._reconnectionDelay = v;\n (_a = this.backoff) === nu ll || _a === void 0 ? void 0 : _a.setMin(v);\n return this;\n }\n r andomizationFactor(v) {\n var _a;\n if (v === undefined)\n return this._randomizationFactor;\n this._randomizationFactor = v;\n (_a = this.backoff) === null || _a === void 0 ? void 0 : _a.setJitter(v); \n return this;\n }\n reconnectionDelayMax(v) {\n var _a;\n if (v === undefined)\n return this._reconnectionDelayMax;\n this._reconnectionDelayMax = v;\n (_a = this.backoff) === null || _a === void 0 ? void 0 : _a.setMax(v);\n return this;\n }\n timeout(v ) {\n if (!arguments.length)\n return this._timeout;\n this._timeout = v;\n return this;\n }\n /**\n * Starts trying t o reconnect if reconnection is enabled and we have not\n * started reconnect ing yet\n *\n * @private\n */\n maybeReconnectOnOpen() {\n // Only try to reconnect if it's the first time we're connecting\n if (! this._reconnecting &&\n this._reconnection &&\n this.backo ff.attempts === 0) {\n // keeps reconnection from firing twice for th e same reconnection loop\n this.reconnect();\n }\n }\n / **\n * Sets the current transport `socket`.\n *\n * @param {Function } fn - optional, callback\n * @return self\n * @public\n */\n ope n(fn) {\n if (~this._readyState.indexOf(\"open\"))\n return th is;\n this.engine = new Engine(this.uri, this.opts);\n const socke t = this.engine;\n const self = this;\n this._readyState = \"openi ng\";\n this.skipReconnect = false;\n // emit `open`\n cons t openSubDestroy = on(socket, \"open\", function () {\n self.onopen() ;\n fn && fn();\n });\n // emit `error`\n const errorSub = on(socket, \"error\", (err) => {\n self.cleanup();\n self._readyState = \"closed\";\n this.emitReserved(\"error\", e rr);\n if (fn) {\n fn(err);\n }\n else {\n // Only do this if there is no fn to handle the error\ n self.maybeReconnectOnOpen();\n }\n });\n if (false !== this._timeout) {\n const timeout = this._timeout;\n if (timeout === 0) {\n openSubDestroy(); // prevents a race condition with the 'open' event\n }\n // set timer\n const timer = this.setTimeoutFn(() => {\n openSubDest roy();\n socket.close();\n // @ts-ignore\n socket.emit(\"error\", new Error(\"timeout\"));\n }, timeout) ;\n if (this.opts.autoUnref) {\n timer.unref();\n }\n this.subs.push(function subDestroy() {\n cl earTimeout(timer);\n });\n }\n this.subs.push(openSubDe stroy);\n this.subs.push(errorSub);\n return this;\n }\n /** \n * Alias for open()\n *\n * @return self\n * @public\n */\ n connect(fn) {\n return this.open(fn);\n }\n /**\n * Called upon transport open.\n *\n * @private\n */\n onopen() {\n // clear old subs\n this.cleanup();\n // mark as open\n th is._readyState = \"open\";\n this.emitReserved(\"open\");\n // add new subs\n const socket = this.engine;\n this.subs.push(on(socket , \"ping\", this.onping.bind(this)), on(socket, \"data\", this.ondata.bind(this) ), on(socket, \"error\", this.onerror.bind(this)), on(socket, \"close\", this.on close.bind(this)), on(this.decoder, \"decoded\", this.ondecoded.bind(this)));\n }\n /**\n * Called upon a ping.\n *\n * @private\n */\n onping() {\n this.emitReserved(\"ping\");\n }\n /**\n * Called with data.\n *\n * @private\n */\n ondata(data) {\n this. decoder.add(data);\n }\n /**\n * Called when parser fully decodes a pa cket.\n *\n * @private\n */\n ondecoded(packet) {\n this.e mitReserved(\"packet\", packet);\n }\n /**\n * Called upon socket erro r.\n *\n * @private\n */\n onerror(err) {\n this.emitReser ved(\"error\", err);\n }\n /**\n * Creates a new socket for the given `nsp`.\n *\n * @return {Socket}\n * @public\n */\n socket(nsp , opts) {\n let socket = this.nsps[nsp];\n if (!socket) {\n socket = new Socket(this, nsp, opts);\n this.nsps[nsp] = socket; \n }\n return socket;\n }\n /**\n * Called upon a socket close.\n *\n * @param socket\n * @private\n */\n _destroy(so cket) {\n const nsps = Object.keys(this.nsps);\n for (const nsp of nsps) {\n const socket = this.nsps[nsp];\n if (socket.act ive) {\n return;\n }\n }\n this._close() ;\n }\n /**\n * Writes a packet.\n *\n * @param packet\n * @private\n */\n _packet(packet) {\n const encodedPackets = this.e ncoder.encode(packet);\n for (let i = 0; i < encodedPackets.length; i++) {\n this.engine.write(encodedPackets[i], packet.options);\n }\ n }\n /**\n * Clean up transport subscriptions and packet buffer.\n *\n * @private\n */\n cleanup() {\n this.subs.forEach((subDe stroy) => subDestroy());\n this.subs.length = 0;\n this.decoder.de stroy();\n }\n /**\n * Close the current socket.\n *\n * @priv ate\n */\n _close() {\n this.skipReconnect = true;\n this._ reconnecting = false;\n this.onclose(\"forced close\");\n if (this .engine)\n this.engine.close();\n }\n /**\n * Alias for clo se()\n *\n * @private\n */\n disconnect() {\n return this. _close();\n }\n /**\n * Called upon engine close.\n *\n * @pri vate\n */\n onclose(reason, description) {\n this.cleanup();\n this.backoff.reset();\n this._readyState = \"closed\";\n this. emitReserved(\"close\", reason, description);\n if (this._reconnection && !this.skipReconnect) {\n this.reconnect();\n }\n }\n /* *\n * Attempt a reconnection.\n *\n * @private\n */\n reconne ct() {\n if (this._reconnecting || this.skipReconnect)\n retur n this;\n const self = this;\n if (this.backoff.attempts >= this._ reconnectionAttempts) {\n this.backoff.reset();\n this.emi tReserved(\"reconnect_failed\");\n this._reconnecting = false;\n }\n else {\n const delay = this.backoff.duration();\n this._reconnecting = true;\n const timer = this.setTimeoutFn(() => {\n if (self.skipReconnect)\n return;\n this.emitReserved(\"reconnect_attempt\", self.backoff.attempts);\n // check again for the case socket closed in above events\n if (self.skipReconnect)\n return;\n self.open((err) => {\n if (err) {\n se lf._reconnecting = false;\n self.reconnect();\n this.emitReserved(\"reconnect_error\", err);\n }\n else {\n self.onreconnect();\n }\n });\n }, delay);\n if ( this.opts.autoUnref) {\n timer.unref();\n }\n this.subs.push(function subDestroy() {\n clearTimeout(timer);\ n });\n }\n }\n /**\n * Called upon successful recon nect.\n *\n * @private\n */\n onreconnect() {\n const atte mpt = this.backoff.attempts;\n this._reconnecting = false;\n this. backoff.reset();\n this.emitReserved(\"reconnect\", attempt);\n }\n}\n ","import { url } from \"./url.js\";\nimport { Manager } from \"./manager.js\";\ nimport { Socket } from \"./socket.js\";\n/**\n * Managers cache.\n */\nconst ca che = {};\nfunction lookup(uri, opts) {\n if (typeof uri === \"object\") {\n opts = uri;\n uri = undefined;\n }\n opts = opts || {};\n const parsed = url(uri, opts.path || \"/socket.io\");\n const source = parse d.source;\n const id = parsed.id;\n const path = parsed.path;\n const s ameNamespace = cache[id] && path in cache[id][\"nsps\"];\n const newConnectio n = opts.forceNew ||\n opts[\"force new connection\"] ||\n false = == opts.multiplex ||\n sameNamespace;\n let io;\n if (newConnection ) {\n io = new Manager(source, opts);\n }\n else {\n if (!ca che[id]) {\n cache[id] = new Manager(source, opts);\n }\n io = cache[id];\n }\n if (parsed.query && !opts.query) {\n opts. query = parsed.queryKey;\n }\n return io.socket(parsed.path, opts);\n}\n// so that \"lookup\" can be used both as a function (e.g. `io(...)`) and as a\n// namespace (e.g. `io.connect(...)`), for backward compatibility\nObject.assign(l ookup, {\n Manager,\n Socket,\n io: lookup,\n connect: lookup,\n});\ n/**\n * Protocol version.\n *\n * @public\n */\nexport { protocol } from \"sock et.io-parser\";\n/**\n * Expose constructors for standalone build.\n *\n * @publ ic\n */\nexport { Manager, Socket, lookup as io, lookup as connect, lookup as de fault, };\n"],"names":["PACKET_TYPES","Object","create","PACKET_TYPES_REVERSE"," keys","forEach","key","ERROR_PACKET","type","data","withNativeBlob","Blob","prot otype","toString","call","withNativeArrayBuffer","ArrayBuffer","isView","obj","b uffer","encodePacket","supportsBinary","callback","encodeBlobAsBase64","fileRead er","FileReader","onload","content","result","split","readAsDataURL","lookup","i ","decode","decodePacket","encodedPacket","binaryType","mapBinary","charAt","dec odeBase64Packet","substring","packetType","length","decoded","base64","SEPARATOR ","String","fromCharCode","encodePayload","packets","encodedPackets","Array","co unt","packet","join","decodePayload","encodedPayload","decodedPacket","push","pr otocol","Emitter","mixin","on","addEventListener","event","fn","_callbacks","onc e","off","apply","arguments","removeListener","removeAllListeners","removeEventL istener","callbacks","cb","splice","emit","args","slice","len","emitReserved","l isteners","hasListeners","self","window","Function","pick","attr","reduce","acc" ,"k","hasOwnProperty","NATIVE_SET_TIMEOUT","setTimeout","NATIVE_CLEAR_TIMEOUT"," clearTimeout","installTimerFunctions","opts","useNativeTimers","setTimeoutFn","b ind","globalThis","clearTimeoutFn","BASE64_OVERHEAD","byteLength","utf8Length"," Math","ceil","size","str","c","l","charCodeAt","TransportError","reason","descri ption","context","Error","Transport","writable","query","readyState","socket","d oOpen","doClose","onClose","write","onPacket","details","alphabet","map","seed", "prev","encode","num","encoded","floor","yeast","now","Date","encodeURIComponent ","qs","qry","pairs","pair","decodeURIComponent","value","XMLHttpRequest","err", "hasCORS","xdomain","e","concat","empty","hasXHR2","xhr","responseType","Polling ","polling","location","isSSL","port","xd","hostname","xs","secure","forceBase64 ","poll","onPause","pause","total","doPoll","onOpen","close","doWrite","schema", "timestampRequests","timestampParam","sid","b64","Number","encodedQuery","ipv6", "indexOf","path","Request","uri","req","request","method","xhrStatus","onError", "onData","pollXhr","async","undefined","xscheme","open","extraHeaders","setDisab leHeaderCheck","setRequestHeader","withCredentials","requestTimeout","timeout"," onreadystatechange","status","onLoad","send","document","index","requestsCount", "requests","cleanup","fromError","abort","responseText","attachEvent","unloadHan dler","terminationEvent","nextTick","isPromiseAvailable","Promise","resolve","th en","WebSocket","MozWebSocket","usingBrowserWebSocket","defaultBinaryType","isRe actNative","navigator","product","toLowerCase","WS","check","protocols","headers ","ws","addEventListeners","onopen","autoUnref","_socket","unref","onclose","clo seEvent","onmessage","ev","onerror","lastPacket","name","transports","websocket" ,"re","parts","parse","src","b","replace","m","exec","source","host","authority" ,"ipv6uri","pathNames","queryKey","regx","names","substr","$0","$1","$2","Socket ","writeBuffer","prevBufferLen","agent","upgrade","rememberUpgrade","rejectUnaut horized","perMessageDeflate","threshold","transportOptions","closeOnBeforeunload ","id","upgrades","pingInterval","pingTimeout","pingTimeoutTimer","transport","o fflineEventListener","EIO","priorWebsocketSuccess","createTransport","shift","se tTransport","onDrain","failed","onTransportOpen","msg","upgrading","flush","free zeTransport","error","onTransportClose","onupgrade","to","probe","onHandshake"," JSON","resetPingTimeout","sendPacket","code","filterUpgrades","maxPayload","getW ritablePackets","shouldCheckPayloadSize","payloadSize","options","compress","cle anupAndClose","waitForUpgrade","filteredUpgrades","j","url","loc","test","href", "withNativeFile","File","isBinary","hasBinary","toJSON","isArray","deconstructPa cket","buffers","packetData","pack","_deconstructPacket","attachments","placehol der","_placeholder","newData","reconstructPacket","_reconstructPacket","PacketTy pe","Encoder","replacer","EVENT","ACK","BINARY_EVENT","BINARY_ACK","encodeAsBina ry","encodeAsString","nsp","stringify","deconstruction","unshift","Decoder","rev iver","decodeString","reconstructor","BinaryReconstructor","takeBinaryData","p", "start","buf","next","payload","tryParse","isPayloadValid","finishedReconstructi on","CONNECT","DISCONNECT","CONNECT_ERROR","reconPack","binData","subDestroy","R ESERVED_EVENTS","freeze","connect","connect_error","disconnect","disconnecting", "newListener","io","connected","receiveBuffer","sendBuffer","ids","acks","flags" ,"auth","_autoConnect","subs","onpacket","subEvents","_readyState","ack","pop"," _registerAckCallback","isTransportWritable","engine","discardPacket","notifyOutg oingListeners","timer","_packet","sameNamespace","onconnect","onevent","onack"," ondisconnect","destroy","message","emitEvent","_anyListeners","listener","sent", "emitBuffered","_anyOutgoingListeners","Backoff","ms","min","max","factor","jitt er","attempts","duration","pow","rand","random","deviation","reset","setMin","se tMax","setJitter","Manager","_a","nsps","reconnection","reconnectionAttempts","I nfinity","reconnectionDelay","reconnectionDelayMax","randomizationFactor","backo ff","_parser","parser","encoder","decoder","autoConnect","v","_reconnection","_r econnectionAttempts","_reconnectionDelay","_randomizationFactor","_reconnectionD elayMax","_timeout","_reconnecting","reconnect","Engine","skipReconnect","openSu bDestroy","errorSub","maybeReconnectOnOpen","onping","ondata","ondecoded","add", "active","_close","delay","onreconnect","attempt","cache","parsed","newConnectio n","forceNew","multiplex"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;EAAA,IAAMA,YAAY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K,MAAZ, EAAoBlK,IAApB,CAAZ;EACH;;EACD8R,IAAAA,EAAE,GAAGyF,KAAK,CAAC9L,EAAD,CAAV;EACH;;EA CD,MAAI+L,MAAM,CAACjW,KAAP,IAAgB,CAACvB,IAAI,CAACuB,KAA1B,EAAiC;EAC7BvB,IAAAA,IA AI,CAACuB,KAAL,GAAaiW,MAAM,CAACjN,QAApB;EACH;;EACD,SAAOuH,EAAE,CAACrQ,MAAH,CAAU+ V,MAAM,CAACjS,IAAjB,EAAuBvF,IAAvB,CAAP;EACH;EAED;;;EACA,SAAcnE,MAAd,EAAsB;EAClBo Z,EAAAA,OAAO,EAAPA,OADkB;EAElBnK,EAAAA,MAAM,EAANA,MAFkB;EAGlBgH,EAAAA,EAAE,EAAEj W,MAHc;EAIlB4V,EAAAA,OAAO,EAAE5V;EAJS,CAAtB;;;;;;;;"} {"version":3,"file":"socket.io.js","sources":["../node_modules/engine.io-parser/ build/esm/commons.js","../node_modules/engine.io-parser/build/esm/encodePacket.b rowser.js","../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffe r.js","../node_modules/engine.io-parser/build/esm/decodePacket.browser.js","../n ode_modules/engine.io-parser/build/esm/index.js","../node_modules/@socket.io/com ponent-emitter/index.mjs","../node_modules/engine.io-client/build/esm/globalThis .browser.js","../node_modules/engine.io-client/build/esm/util.js","../node_modul es/engine.io-client/build/esm/transport.js","../node_modules/engine.io-client/bu ild/esm/contrib/yeast.js","../node_modules/engine.io-client/build/esm/contrib/pa rseqs.js","../node_modules/engine.io-client/build/esm/contrib/has-cors.js","../n ode_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js",".. /node_modules/engine.io-client/build/esm/transports/polling.js","../node_modules /engine.io-client/build/esm/transports/websocket-constructor.browser.js","../nod e_modules/engine.io-client/build/esm/transports/websocket.js","../node_modules/e ngine.io-client/build/esm/transports/index.js","../node_modules/engine.io-client /build/esm/contrib/parseuri.js","../node_modules/engine.io-client/build/esm/sock et.js","../node_modules/engine.io-client/build/esm/index.js","../build/esm/url.j s","../node_modules/socket.io-parser/build/esm/is-binary.js","../node_modules/so cket.io-parser/build/esm/binary.js","../node_modules/socket.io-parser/build/esm/ index.js","../build/esm/on.js","../build/esm/socket.js","../build/esm/contrib/ba cko2.js","../build/esm/manager.js","../build/esm/index.js"],"sourcesContent":["c onst PACKET_TYPES = Object.create(null); // no Map = no polyfill\nPACKET_TYPES[\ "open\"] = \"0\";\nPACKET_TYPES[\"close\"] = \"1\";\nPACKET_TYPES[\"ping\"] = \" 2\";\nPACKET_TYPES[\"pong\"] = \"3\";\nPACKET_TYPES[\"message\"] = \"4\";\nPACKE T_TYPES[\"upgrade\"] = \"5\";\nPACKET_TYPES[\"noop\"] = \"6\";\nconst PACKET_TYP ES_REVERSE = Object.create(null);\nObject.keys(PACKET_TYPES).forEach(key => {\n PACKET_TYPES_REVERSE[PACKET_TYPES[key]] = key;\n});\nconst ERROR_PACKET = { t ype: \"error\", data: \"parser error\" };\nexport { PACKET_TYPES, PACKET_TYPES_R EVERSE, ERROR_PACKET };\n","import { PACKET_TYPES } from \"./commons.js\";\ncons t withNativeBlob = typeof Blob === \"function\" ||\n (typeof Blob !== \"undef ined\" &&\n Object.prototype.toString.call(Blob) === \"[object BlobConstr uctor]\");\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\n // ArrayBuffer.isView method is not defined in IE10\nconst isView = obj => {\n return typeof ArrayBuffer.isView === \"function\"\n ? ArrayBuffer.isVie w(obj)\n : obj && obj.buffer instanceof ArrayBuffer;\n};\nconst encodePac ket = ({ type, data }, supportsBinary, callback) => {\n if (withNativeBlob && data instanceof Blob) {\n if (supportsBinary) {\n return call back(data);\n }\n else {\n return encodeBlobAsBase64(da ta, callback);\n }\n }\n else if (withNativeArrayBuffer &&\n (data instanceof ArrayBuffer || isView(data))) {\n if (supportsBinary) { \n return callback(data);\n }\n else {\n ret urn encodeBlobAsBase64(new Blob([data]), callback);\n }\n }\n // pl ain string\n return callback(PACKET_TYPES[type] + (data || \"\"));\n};\nconst encodeBlobAsBase64 = (data, callback) => {\n const fileReader = new FileRead er();\n fileReader.onload = function () {\n const content = fileReader .result.split(\",\")[1];\n callback(\"b\" + content);\n };\n return fileReader.readAsDataURL(data);\n};\nexport default encodePacket;\n","const cha rs = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n// Use a lookup table to find the index.\nconst lookup = typeof Uint8Array === 'undefi ned' ? [] : new Uint8Array(256);\nfor (let i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n}\nexport const encode = (arraybuffer) => {\n let bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';\ n for (i = 0; i < len; i += 3) {\n base64 += chars[bytes[i] >> 2];\n base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];\n bas e64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];\n base64 += chars[bytes[i + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + '=';\n }\n else if (len % 3 === 1 ) {\n base64 = base64.substring(0, base64.length - 2) + '==';\n }\n return base64;\n};\nexport const decode = (base64) => {\n let bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encode d3, encoded4;\n if (base64[base64.length - 1] === '=') {\n bufferLengt h--;\n if (base64[base64.length - 2] === '=') {\n bufferLength --;\n }\n }\n const arraybuffer = new ArrayBuffer(bufferLength), by tes = new Uint8Array(arraybuffer);\n for (i = 0; i < len; i += 4) {\n encoded1 = lookup[base64.charCodeAt(i)];\n encoded2 = lookup[base64.charC odeAt(i + 1)];\n encoded3 = lookup[base64.charCodeAt(i + 2)];\n en coded4 = lookup[base64.charCodeAt(i + 3)];\n bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);\n bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);\n bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);\n }\n r eturn arraybuffer;\n};\n","import { ERROR_PACKET, PACKET_TYPES_REVERSE } from \" ./commons.js\";\nimport { decode } from \"./contrib/base64-arraybuffer.js\";\nco nst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\nconst decodePa cket = (encodedPacket, binaryType) => {\n if (typeof encodedPacket !== \"stri ng\") {\n return {\n type: \"message\",\n data: map Binary(encodedPacket, binaryType)\n };\n }\n const type = encodedPa cket.charAt(0);\n if (type === \"b\") {\n return {\n type: \"message\",\n data: decodeBase64Packet(encodedPacket.substring(1), b inaryType)\n };\n }\n const packetType = PACKET_TYPES_REVERSE[type] ;\n if (!packetType) {\n return ERROR_PACKET;\n }\n return encod edPacket.length > 1\n ? {\n type: PACKET_TYPES_REVERSE[type],\ n data: encodedPacket.substring(1)\n }\n : {\n type: PACKET_TYPES_REVERSE[type]\n };\n};\nconst decodeBase64Packet = (data, binaryType) => {\n if (withNativeArrayBuffer) {\n const decoded = decode(data);\n return mapBinary(decoded, binaryType);\n }\n els e {\n return { base64: true, data }; // fallback for old browsers\n }\ n};\nconst mapBinary = (data, binaryType) => {\n switch (binaryType) {\n case \"blob\":\n return data instanceof ArrayBuffer ? new Blob([da ta]) : data;\n case \"arraybuffer\":\n default:\n retur n data; // assuming the data is already an ArrayBuffer\n }\n};\nexport defaul t decodePacket;\n","import encodePacket from \"./encodePacket.js\";\nimport deco dePacket from \"./decodePacket.js\";\nconst SEPARATOR = String.fromCharCode(30); // see https://en.wikipedia.org/wiki/Delimiter#ASCII_delimited_text\nconst enco dePayload = (packets, callback) => {\n // some packets may be added to the ar ray while encoding, so the initial length must be saved\n const length = pack ets.length;\n const encodedPackets = new Array(length);\n let count = 0;\n packets.forEach((packet, i) => {\n // force base64 encoding for binar y packets\n encodePacket(packet, false, encodedPacket => {\n e ncodedPackets[i] = encodedPacket;\n if (++count === length) {\n callback(encodedPackets.join(SEPARATOR));\n }\n });\ n });\n};\nconst decodePayload = (encodedPayload, binaryType) => {\n const encodedPackets = encodedPayload.split(SEPARATOR);\n const packets = [];\n for (let i = 0; i < encodedPackets.length; i++) {\n const decodedPacket = decodePacket(encodedPackets[i], binaryType);\n packets.push(decodedPack et);\n if (decodedPacket.type === \"error\") {\n break;\n }\n }\n return packets;\n};\nexport const protocol = 4;\nexport { encod ePacket, encodePayload, decodePacket, decodePayload };\n","/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nexport function Emitter(obj) {\n if (obj) return mixin(obj);\n}\n\n/**\n * Mixin the emitter properties.\n *\n * @pa ram {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(ob j) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[k ey];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @ api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callb acks['$' + event] = this._callbacks['$' + event] || [])\n .push(fn);\n retur n this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Fun ction} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n function on() {\n this.off(event, on);\n fn.apply (this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\ n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callb acks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitte r}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeList ener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventLis tener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this ;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments .length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n call backs.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arra ys for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param { String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.proto type.emit = function(event){\n this._callbacks = this._callbacks || {};\n\n va r args = new Array(arguments.length - 1)\n , callbacks = this._callbacks['$' + event];\n\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = a rguments[i];\n }\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].ap ply(this, args);\n }\n }\n\n return this;\n};\n\n// alias used for reserved events (protected method)\nEmitter.prototype.emitReserved = Emitter.prototype.e mit;\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} e vent\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = f unction(event){\n this._callbacks = this._callbacks || {};\n return this._call backs['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handl ers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\ nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(e vent).length;\n};\n","export const globalThisShim = (() => {\n if (typeof sel f !== \"undefined\") {\n return self;\n }\n else if (typeof window !== \"undefined\") {\n return window;\n }\n else {\n return Function(\"return this\")();\n }\n})();\n","import { globalThisShim as global This } from \"./globalThis.js\";\nexport function pick(obj, ...attr) {\n retu rn attr.reduce((acc, k) => {\n if (obj.hasOwnProperty(k)) {\n acc[k] = obj[k];\n }\n return acc;\n }, {});\n}\n// Keep a refe rence to the real timeout functions so they can be used when overridden\nconst N ATIVE_SET_TIMEOUT = setTimeout;\nconst NATIVE_CLEAR_TIMEOUT = clearTimeout;\nexp ort function installTimerFunctions(obj, opts) {\n if (opts.useNativeTimers) { \n obj.setTimeoutFn = NATIVE_SET_TIMEOUT.bind(globalThis);\n obj.c learTimeoutFn = NATIVE_CLEAR_TIMEOUT.bind(globalThis);\n }\n else {\n obj.setTimeoutFn = setTimeout.bind(globalThis);\n obj.clearTimeoutFn = clearTimeout.bind(globalThis);\n }\n}\n// base64 encoded buffers are about 3 3% bigger (https://en.wikipedia.org/wiki/Base64)\nconst BASE64_OVERHEAD = 1.33;\ n// we could also have used `new Blob([obj]).size`, but it isn't supported in IE 9\nexport function byteLength(obj) {\n if (typeof obj === \"string\") {\n return utf8Length(obj);\n }\n // arraybuffer or blob\n return Math. ceil((obj.byteLength || obj.size) * BASE64_OVERHEAD);\n}\nfunction utf8Length(st r) {\n let c = 0, length = 0;\n for (let i = 0, l = str.length; i < l; i++ ) {\n c = str.charCodeAt(i);\n if (c < 0x80) {\n length += 1;\n }\n else if (c < 0x800) {\n length += 2;\n }\n else if (c < 0xd800 || c >= 0xe000) {\n length += 3;\n }\n else {\n i++;\n length += 4;\n } \n }\n return length;\n}\n","import { decodePacket } from \"engine.io-pars er\";\nimport { Emitter } from \"@socket.io/component-emitter\";\nimport { insta llTimerFunctions } from \"./util.js\";\nclass TransportError extends Error {\n constructor(reason, description, context) {\n super(reason);\n t his.description = description;\n this.context = context;\n this.ty pe = \"TransportError\";\n }\n}\nexport class Transport extends Emitter {\n /**\n * Transport abstract constructor.\n *\n * @param {Object} op tions.\n * @api private\n */\n constructor(opts) {\n super();\ n this.writable = false;\n installTimerFunctions(this, opts);\n this.opts = opts;\n this.query = opts.query;\n this.readyStat e = \"\";\n this.socket = opts.socket;\n }\n /**\n * Emits an e rror.\n *\n * @param {String} reason\n * @param description\n * @param context - the error context\n * @return {Transport} for chaining\n * @api protected\n */\n onError(reason, description, context) {\n super.emitReserved(\"error\", new TransportError(reason, description, context) );\n return this;\n }\n /**\n * Opens the transport.\n *\n * @api public\n */\n open() {\n if (\"closed\" === this.readyS tate || \"\" === this.readyState) {\n this.readyState = \"opening\";\ n this.doOpen();\n }\n return this;\n }\n /**\n * Closes the transport.\n *\n * @api public\n */\n close() {\n if (\"opening\" === this.readyState || \"open\" === this.readyState) {\n this.doClose();\n this.onClose();\n }\n ret urn this;\n }\n /**\n * Sends multiple packets.\n *\n * @param {Array} packets\n * @api public\n */\n send(packets) {\n if ( \"open\" === this.readyState) {\n this.write(packets);\n }\n else {\n // this might happen if the transport was silently clo sed in the beforeunload event handler\n }\n }\n /**\n * Called upon open\n *\n * @api protected\n */\n onOpen() {\n this. readyState = \"open\";\n this.writable = true;\n super.emitReserve d(\"open\");\n }\n /**\n * Called with data.\n *\n * @param {S tring} data\n * @api protected\n */\n onData(data) {\n const p acket = decodePacket(data, this.socket.binaryType);\n this.onPacket(packe t);\n }\n /**\n * Called with a decoded packet.\n *\n * @api p rotected\n */\n onPacket(packet) {\n super.emitReserved(\"packet\" , packet);\n }\n /**\n * Called upon close.\n *\n * @api prote cted\n */\n onClose(details) {\n this.readyState = \"closed\";\n super.emitReserved(\"close\", details);\n }\n}\n","// imported from htt ps://github.com/unshiftio/yeast\n'use strict';\nconst alphabet = '0123456789ABCD EFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'.split(''), length = 64, map = {};\nlet seed = 0, i = 0, prev;\n/**\n * Return a string representing the spec ified number.\n *\n * @param {Number} num The number to convert.\n * @returns {S tring} The string representation of the number.\n * @api public\n */\nexport fun ction encode(num) {\n let encoded = '';\n do {\n encoded = alphabet [num % length] + encoded;\n num = Math.floor(num / length);\n } while (num > 0);\n return encoded;\n}\n/**\n * Return the integer value specified b y the given string.\n *\n * @param {String} str The string to convert.\n * @retu rns {Number} The integer value represented by the string.\n * @api public\n */\n export function decode(str) {\n let decoded = 0;\n for (i = 0; i < str.len gth; i++) {\n decoded = decoded * length + map[str.charAt(i)];\n }\n return decoded;\n}\n/**\n * Yeast: A tiny growing id generator.\n *\n * @retur ns {String} A unique id.\n * @api public\n */\nexport function yeast() {\n co nst now = encode(+new Date());\n if (now !== prev)\n return seed = 0, prev = now;\n return now + '.' + encode(seed++);\n}\n//\n// Map each characte r to its index.\n//\nfor (; i < length; i++)\n map[alphabet[i]] = i;\n","// i mported from https://github.com/galkn/querystring\n/**\n * Compiles a querystrin g\n * Returns string representation of the object\n *\n * @param {Object}\n * @a pi private\n */\nexport function encode(obj) {\n let str = '';\n for (let i in obj) {\n if (obj.hasOwnProperty(i)) {\n if (str.length)\n str += '&';\n str += encodeURIComponent(i) + '=' + en codeURIComponent(obj[i]);\n }\n }\n return str;\n}\n/**\n * Parses a simple querystring into an object\n *\n * @param {String} qs\n * @api private\ n */\nexport function decode(qs) {\n let qry = {};\n let pairs = qs.split( '&');\n for (let i = 0, l = pairs.length; i < l; i++) {\n let pair = p airs[i].split('=');\n qry[decodeURIComponent(pair[0])] = decodeURICompone nt(pair[1]);\n }\n return qry;\n}\n","// imported from https://github.com/ component/has-cors\nlet value = false;\ntry {\n value = typeof XMLHttpRequest !== 'undefined' &&\n 'withCredentials' in new XMLHttpRequest();\n}\ncatc h (err) {\n // if XMLHttp support is disabled in IE then it will throw\n / / when trying to create\n}\nexport const hasCORS = value;\n","// browser shim fo r xmlhttprequest module\nimport { hasCORS } from \"../contrib/has-cors.js\";\nim port { globalThisShim as globalThis } from \"../globalThis.js\";\nexport functio n XHR(opts) {\n const xdomain = opts.xdomain;\n // XMLHttpRequest can be d isabled on IE\n try {\n if (\"undefined\" !== typeof XMLHttpRequest && (!xdomain || hasCORS)) {\n return new XMLHttpRequest();\n }\n }\n catch (e) { }\n if (!xdomain) {\n try {\n return new globalThis[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP \");\n }\n catch (e) { }\n }\n}\n","import { Transport } from \ "../transport.js\";\nimport { yeast } from \"../contrib/yeast.js\";\nimport { en code } from \"../contrib/parseqs.js\";\nimport { encodePayload, decodePayload } from \"engine.io-parser\";\nimport { XHR as XMLHttpRequest } from \"./xmlhttpreq uest.js\";\nimport { Emitter } from \"@socket.io/component-emitter\";\nimport { installTimerFunctions, pick } from \"../util.js\";\nimport { globalThisShim as g lobalThis } from \"../globalThis.js\";\nfunction empty() { }\nconst hasXHR2 = (f unction () {\n const xhr = new XMLHttpRequest({\n xdomain: false\n });\n return null != xhr.responseType;\n})();\nexport class Polling extends T ransport {\n /**\n * XHR Polling constructor.\n *\n * @param {Obj ect} opts\n * @api public\n */\n constructor(opts) {\n super(o pts);\n this.polling = false;\n if (typeof location !== \"undefine d\") {\n const isSSL = \"https:\" === location.protocol;\n let port = location.port;\n // some user agents have empty `location .port`\n if (!port) {\n port = isSSL ? \"443\" : \"80\ ";\n }\n this.xd =\n (typeof location !== \ "undefined\" &&\n opts.hostname !== location.hostname) ||\n port !== opts.port;\n this.xs = opts.secure !== isS SL;\n }\n /**\n * XHR supports binary\n */\n const forceBase64 = opts && opts.forceBase64;\n this.supportsBinary = h asXHR2 && !forceBase64;\n }\n /**\n * Transport name.\n */\n ge t name() {\n return \"polling\";\n }\n /**\n * Opens the socket (triggers polling). We write a PING message to determine\n * when the trans port is open.\n *\n * @api private\n */\n doOpen() {\n thi s.poll();\n }\n /**\n * Pauses polling.\n *\n * @param {Functi on} callback upon buffers are flushed and transport is paused\n * @api priva te\n */\n pause(onPause) {\n this.readyState = \"pausing\";\n const pause = () => {\n this.readyState = \"paused\";\n onPause();\n };\n if (this.polling || !this.writable) {\n let total = 0;\n if (this.polling) {\n total++;\n this.once(\"pollComplete\", function () {\n -- total || pause();\n });\n }\n if (!this.wri table) {\n total++;\n this.once(\"drain\", functio n () {\n --total || pause();\n });\n }\n }\n else {\n pause();\n }\n }\n /**\ n * Starts polling cycle.\n *\n * @api public\n */\n poll() { \n this.polling = true;\n this.doPoll();\n this.emitReserve d(\"poll\");\n }\n /**\n * Overloads onData to detect payloads.\n *\n * @api private\n */\n onData(data) {\n const callback = pa cket => {\n // if its the first message we consider the transport ope n\n if (\"opening\" === this.readyState && packet.type === \"open\") {\n this.onOpen();\n }\n // if its a close packet, we close the ongoing requests\n if (\"close\" === packet.type ) {\n this.onClose({ description: \"transport closed by the serve r\" });\n return false;\n }\n // otherwise bypass onData and handle the message\n this.onPacket(packet);\n };\n // decode payload\n decodePayload(data, this.socket.binaryT ype).forEach(callback);\n // if an event did not trigger closing\n if (\"closed\" !== this.readyState) {\n // if we got data we're not polling\n this.polling = false;\n this.emitReserved(\"poll Complete\");\n if (\"open\" === this.readyState) {\n t his.poll();\n }\n else {\n }\n }\n }\ n /**\n * For polling, send a close packet.\n *\n * @api private\ n */\n doClose() {\n const close = () => {\n this.write ([{ type: \"close\" }]);\n };\n if (\"open\" === this.readyState) {\n close();\n }\n else {\n // in case we're trying to close while\n // handshaking is in progress (GH-164)\n this.once(\"open\", close);\n }\n }\n /**\n * Writes a packets payload.\n *\n * @param {Array} data packets\n * @param {Fun ction} drain callback\n * @api private\n */\n write(packets) {\n this.writable = false;\n encodePayload(packets, data => {\n this.doWrite(data, () => {\n this.writable = true;\n this.emitReserved(\"drain\");\n });\n });\n }\n /**\ n * Generates uri for connection.\n *\n * @api private\n */\n uri() {\n let query = this.query || {};\n const schema = this.opt s.secure ? \"https\" : \"http\";\n let port = \"\";\n // cache bus ting is forced\n if (false !== this.opts.timestampRequests) {\n query[this.opts.timestampParam] = yeast();\n }\n if (!this.suppo rtsBinary && !query.sid) {\n query.b64 = 1;\n }\n // av oid port if default for schema\n if (this.opts.port &&\n ((\"h ttps\" === schema && Number(this.opts.port) !== 443) ||\n (\"http \" === schema && Number(this.opts.port) !== 80))) {\n port = \":\" + this.opts.port;\n }\n const encodedQuery = encode(query);\n const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n return (schema +\n \"://\" +\n (ipv6 ? \"[\" + this.opts.hostname + \"]\" : this.opts.hostname) +\n port +\n this.opts.path +\n (encodedQuery.length ? \"?\" + encodedQuery : \"\"));\n }\n /**\n * Creates a request.\n *\n * @param {String} method\n * @api pri vate\n */\n request(opts = {}) {\n Object.assign(opts, { xd: this. xd, xs: this.xs }, this.opts);\n return new Request(this.uri(), opts);\n }\n /**\n * Sends data.\n *\n * @param {String} data to send.\ n * @param {Function} called upon flush.\n * @api private\n */\n doWrite(data, fn) {\n const req = this.request({\n method: \"P OST\",\n data: data\n });\n req.on(\"success\", fn);\n req.on(\"error\", (xhrStatus, context) => {\n this.onError(\"x hr post error\", xhrStatus, context);\n });\n }\n /**\n * Start s a poll cycle.\n *\n * @api private\n */\n doPoll() {\n c onst req = this.request();\n req.on(\"data\", this.onData.bind(this));\n req.on(\"error\", (xhrStatus, context) => {\n this.onError(\"x hr poll error\", xhrStatus, context);\n });\n this.pollXhr = req;\ n }\n}\nexport class Request extends Emitter {\n /**\n * Request const ructor\n *\n * @param {Object} options\n * @api public\n */\n constructor(uri, opts) {\n super();\n installTimerFunctions(this, opts);\n this.opts = opts;\n this.method = opts.method || \"GET\" ;\n this.uri = uri;\n this.async = false !== opts.async;\n this.data = undefined !== opts.data ? opts.data : null;\n this.create();\ n }\n /**\n * Creates the XHR object and sends the request.\n *\n * @api private\n */\n create() {\n const opts = pick(this.opts , \"agent\", \"pfx\", \"key\", \"passphrase\", \"cert\", \"ca\", \"ciphers\", \" rejectUnauthorized\", \"autoUnref\");\n opts.xdomain = !!this.opts.xd;\n opts.xscheme = !!this.opts.xs;\n const xhr = (this.xhr = new XMLHt tpRequest(opts));\n try {\n xhr.open(this.method, this.uri, th is.async);\n try {\n if (this.opts.extraHeaders) {\n xhr.setDisableHeaderCheck && xhr.setDisableHeaderCheck(true);\ n for (let i in this.opts.extraHeaders) {\n if (this.opts.extraHeaders.hasOwnProperty(i)) {\n xhr.setRequestHeader(i, this.opts.extraHeaders[i]);\n }\n }\n }\n }\n catch (e ) { }\n if (\"POST\" === this.method) {\n try {\n xhr.setRequestHeader(\"Content-type\", \"text/plain;charset=UTF-8 \");\n }\n catch (e) { }\n }\n try {\n xhr.setRequestHeader(\"Accept\", \"*/*\");\n }\n catch (e) { }\n // ie6 check\n if (\"with Credentials\" in xhr) {\n xhr.withCredentials = this.opts.withCre dentials;\n }\n if (this.opts.requestTimeout) {\n xhr.timeout = this.opts.requestTimeout;\n }\n xhr.o nreadystatechange = () => {\n if (4 !== xhr.readyState)\n return;\n if (200 === xhr.status || 1223 === xhr.stat us) {\n this.onLoad();\n }\n el se {\n // make sure the `error` event handler that's user-set \n // does not throw in the same tick and gets caught here\n this.setTimeoutFn(() => {\n this.onErr or(typeof xhr.status === \"number\" ? xhr.status : 0);\n }, 0 );\n }\n };\n xhr.send(this.data);\n }\n catch (e) {\n // Need to defer since .create() is called directly from the constructor\n // and thus the 'error' event can onl y be only bound *after* this exception\n // occurs. Therefore, also, we cannot throw here at all.\n this.setTimeoutFn(() => {\n this.onError(e);\n }, 0);\n return;\n }\n if (typeof document !== \"undefined\") {\n this.index = Request.r equestsCount++;\n Request.requests[this.index] = this;\n }\n }\n /**\n * Called upon error.\n *\n * @api private\n */\n onError(err) {\n this.emitReserved(\"error\", err, this.xhr);\n this.cleanup(true);\n }\n /**\n * Cleans up house.\n *\n * @a pi private\n */\n cleanup(fromError) {\n if (\"undefined\" === typ eof this.xhr || null === this.xhr) {\n return;\n }\n th is.xhr.onreadystatechange = empty;\n if (fromError) {\n try {\ n this.xhr.abort();\n }\n catch (e) { }\n }\n if (typeof document !== \"undefined\") {\n delete Re quest.requests[this.index];\n }\n this.xhr = null;\n }\n /** \n * Called upon load.\n *\n * @api private\n */\n onLoad() { \n const data = this.xhr.responseText;\n if (data !== null) {\n this.emitReserved(\"data\", data);\n this.emitReserved(\"suc cess\");\n this.cleanup();\n }\n }\n /**\n * Aborts the request.\n *\n * @api public\n */\n abort() {\n this.c leanup();\n }\n}\nRequest.requestsCount = 0;\nRequest.requests = {};\n/**\n * Aborts pending requests when unloading the window. This is needed to prevent\n * memory leaks (e.g. when using IE) and to ensure that no spurious error is\n * emitted.\n */\nif (typeof document !== \"undefined\") {\n // @ts-ignore\n if (typeof attachEvent === \"function\") {\n // @ts-ignore\n attac hEvent(\"onunload\", unloadHandler);\n }\n else if (typeof addEventListene r === \"function\") {\n const terminationEvent = \"onpagehide\" in global This ? \"pagehide\" : \"unload\";\n addEventListener(terminationEvent, un loadHandler, false);\n }\n}\nfunction unloadHandler() {\n for (let i in Re quest.requests) {\n if (Request.requests.hasOwnProperty(i)) {\n Request.requests[i].abort();\n }\n }\n}\n","import { globalThisShim as globalThis } from \"../globalThis.js\";\nexport const nextTick = (() => {\n const isPromiseAvailable = typeof Promise === \"function\" && typeof Promise.r esolve === \"function\";\n if (isPromiseAvailable) {\n return cb => Pr omise.resolve().then(cb);\n }\n else {\n return (cb, setTimeoutFn) => setTimeoutFn(cb, 0);\n }\n})();\nexport const WebSocket = globalThis.WebSo cket || globalThis.MozWebSocket;\nexport const usingBrowserWebSocket = true;\nex port const defaultBinaryType = \"arraybuffer\";\n","import { Transport } from \" ../transport.js\";\nimport { encode } from \"../contrib/parseqs.js\";\nimport { yeast } from \"../contrib/yeast.js\";\nimport { pick } from \"../util.js\";\nimp ort { defaultBinaryType, nextTick, usingBrowserWebSocket, WebSocket } from \"./w ebsocket-constructor.js\";\nimport { encodePacket } from \"engine.io-parser\";\n // detect ReactNative environment\nconst isReactNative = typeof navigator !== \" undefined\" &&\n typeof navigator.product === \"string\" &&\n navigator.pr oduct.toLowerCase() === \"reactnative\";\nexport class WS extends Transport {\n /**\n * WebSocket transport constructor.\n *\n * @api {Object} co nnection options\n * @api public\n */\n constructor(opts) {\n super(opts);\n this.supportsBinary = !opts.forceBase64;\n }\n /**\n * Transport name.\n *\n * @api public\n */\n get name() {\n return \"websocket\";\n }\n /**\n * Opens socket.\n *\n * @api private\n */\n doOpen() {\n if (!this.check()) {\n // let probe timeout\n return;\n }\n const uri = th is.uri();\n const protocols = this.opts.protocols;\n // React Nati ve only supports the 'headers' option, and will print a warning if anything else is passed\n const opts = isReactNative\n ? {}\n : pick(this.opts, \"agent\", \"perMessageDeflate\", \"pfx\", \"key\", \"passphrase \", \"cert\", \"ca\", \"ciphers\", \"rejectUnauthorized\", \"localAddress\", \"p rotocolVersion\", \"origin\", \"maxPayload\", \"family\", \"checkServerIdentity\ ");\n if (this.opts.extraHeaders) {\n opts.headers = this.opts .extraHeaders;\n }\n try {\n this.ws =\n usingBrowserWebSocket && !isReactNative\n ? protocols\n ? new WebSocket(uri, protocols)\n : ne w WebSocket(uri)\n : new WebSocket(uri, protocols, opts);\n }\n catch (err) {\n return this.emitReserved(\"error\", err);\n }\n this.ws.binaryType = this.socket.binaryType || default BinaryType;\n this.addEventListeners();\n }\n /**\n * Adds even t listeners to the socket\n *\n * @api private\n */\n addEventLis teners() {\n this.ws.onopen = () => {\n if (this.opts.autoUnre f) {\n this.ws._socket.unref();\n }\n this. onOpen();\n };\n this.ws.onclose = closeEvent => this.onClose({\n description: \"websocket connection closed\",\n context: c loseEvent\n });\n this.ws.onmessage = ev => this.onData(ev.data);\ n this.ws.onerror = e => this.onError(\"websocket error\", e);\n }\n /**\n * Writes data to socket.\n *\n * @param {Array} array of pac kets.\n * @api private\n */\n write(packets) {\n this.writable = false;\n // encodePacket efficient as it uses WS framing\n // n o need for encodePayload\n for (let i = 0; i < packets.length; i++) {\n const packet = packets[i];\n const lastPacket = i === packe ts.length - 1;\n encodePacket(packet, this.supportsBinary, data => {\ n // always create a new object (GH-437)\n const o pts = {};\n if (!usingBrowserWebSocket) {\n if (packet.options) {\n opts.compress = packet.options.comp ress;\n }\n if (this.opts.perMessageDeflat e) {\n const len = \n // @ts-ignor e\n \"string\" === typeof data ? Buffer.byteLength(data) : data.length;\n if (len < this.opts.perMessageDeflate.th reshold) {\n opts.compress = false;\n }\n }\n }\n // Sometime s the websocket has already been closed but the browser didn't\n // have a chance of informing us about it yet, in that case send will\n // throw an error\n try {\n if (usingBr owserWebSocket) {\n // TypeError is thrown when passing t he second argument on Safari\n this.ws.send(data);\n }\n else {\n this.ws.se nd(data, opts);\n }\n }\n catch (e) {\n }\n if (lastPacket) {\n // fake drain\n // defer to next tick to allow Socket to cl ear writeBuffer\n nextTick(() => {\n t his.writable = true;\n this.emitReserved(\"drain\");\n }, this.setTimeoutFn);\n }\n });\n }\n }\n /**\n * Closes socket.\n *\n * @api private\n */\n doClose() {\n if (typeof this.ws !== \"undefined\") {\n this.ws.close();\n this.ws = null;\n }\n }\n /**\n * Generates uri for connection.\n *\n * @api private\n */\n uri () {\n let query = this.query || {};\n const schema = this.opts.se cure ? \"wss\" : \"ws\";\n let port = \"\";\n // avoid port if def ault for schema\n if (this.opts.port &&\n ((\"wss\" === schema && Number(this.opts.port) !== 443) ||\n (\"ws\" === schema && Nu mber(this.opts.port) !== 80))) {\n port = \":\" + this.opts.port;\n }\n // append timestamp to URI\n if (this.opts.timestampRequ ests) {\n query[this.opts.timestampParam] = yeast();\n }\n // communicate binary support capabilities\n if (!this.supportsBinary ) {\n query.b64 = 1;\n }\n const encodedQuery = encode( query);\n const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n return (schema +\n \"://\" +\n (ipv6 ? \"[\" + this.opts. hostname + \"]\" : this.opts.hostname) +\n port +\n this.o pts.path +\n (encodedQuery.length ? \"?\" + encodedQuery : \"\"));\n }\n /**\n * Feature detection for WebSocket.\n *\n * @return { Boolean} whether this transport is available.\n * @api public\n */\n check() {\n return !!WebSocket;\n }\n}\n","import { Polling } from \". /polling.js\";\nimport { WS } from \"./websocket.js\";\nexport const transports = {\n websocket: WS,\n polling: Polling\n};\n","// imported from https://g ithub.com/galkn/parseuri\n/**\n * Parses an URI\n *\n * @author Steven Levithan <stevenlevithan.com> (MIT license)\n * @api private\n */\nconst re = /^(?:(?![^: @]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[ a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\ /]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/;\ncon st parts = [\n 'source', 'protocol', 'authority', 'userInfo', 'user', 'passwo rd', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'anchor'\ n];\nexport function parse(str) {\n const src = str, b = str.indexOf('['), e = str.indexOf(']');\n if (b != -1 && e != -1) {\n str = str.substring( 0, b) + str.substring(b, e).replace(/:/g, ';') + str.substring(e, str.length);\n }\n let m = re.exec(str || ''), uri = {}, i = 14;\n while (i--) {\n uri[parts[i]] = m[i] || '';\n }\n if (b != -1 && e != -1) {\n uri.source = src;\n uri.host = uri.host.substring(1, uri.host.length - 1) .replace(/;/g, ':');\n uri.authority = uri.authority.replace('[', '').rep lace(']', '').replace(/;/g, ':');\n uri.ipv6uri = true;\n }\n uri.p athNames = pathNames(uri, uri['path']);\n uri.queryKey = queryKey(uri, uri['q uery']);\n return uri;\n}\nfunction pathNames(obj, path) {\n const regx = /\\/{2,9}/g, names = path.replace(regx, \"/\").split(\"/\");\n if (path.subst r(0, 1) == '/' || path.length === 0) {\n names.splice(0, 1);\n }\n if (path.substr(path.length - 1, 1) == '/') {\n names.splice(names.length - 1, 1);\n }\n return names;\n}\nfunction queryKey(uri, query) {\n con st data = {};\n query.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function ($0, $1, $2) {\n if ($1) {\n data[$1] = $2;\n }\n });\n re turn data;\n}\n","import { transports } from \"./transports/index.js\";\nimport { installTimerFunctions, byteLength } from \"./util.js\";\nimport { decode } fro m \"./contrib/parseqs.js\";\nimport { parse } from \"./contrib/parseuri.js\";\ni mport { Emitter } from \"@socket.io/component-emitter\";\nimport { protocol } fr om \"engine.io-parser\";\nexport class Socket extends Emitter {\n /**\n * Socket constructor.\n *\n * @param {String|Object} uri or options\n * @param {Object} opts - options\n * @api public\n */\n constructor( uri, opts = {}) {\n super();\n if (uri && \"object\" === typeof ur i) {\n opts = uri;\n uri = null;\n }\n if (u ri) {\n uri = parse(uri);\n opts.hostname = uri.host;\n opts.secure = uri.protocol === \"https\" || uri.protocol === \"wss\";\n opts.port = uri.port;\n if (uri.query)\n o pts.query = uri.query;\n }\n else if (opts.host) {\n op ts.hostname = parse(opts.host).host;\n }\n installTimerFunctions(t his, opts);\n this.secure =\n null != opts.secure\n ? opts.secure\n : typeof location !== \"undefined\" && \"htt ps:\" === location.protocol;\n if (opts.hostname && !opts.port) {\n // if no port is specified manually, use the protocol default\n opts.port = this.secure ? \"443\" : \"80\";\n }\n this.hostname = \n opts.hostname ||\n (typeof location !== \"undefined \" ? location.hostname : \"localhost\");\n this.port =\n opts. port ||\n (typeof location !== \"undefined\" && location.port\n ? location.port\n : this.secure\n ? \"443\"\n : \"80\");\n this.transp orts = opts.transports || [\"polling\", \"websocket\"];\n this.readyState = \"\";\n this.writeBuffer = [];\n this.prevBufferLen = 0;\n this.opts = Object.assign({\n path: \"/engine.io\",\n a gent: false,\n withCredentials: false,\n upgrade: true,\n timestampParam: \"t\",\n rememberUpgrade: false,\n rejectUnauthorized: true,\n perMessageDeflate: {\n threshold: 1024\n },\n transportOptions: {},\n closeOnBeforeunload: true\n }, opts);\n this.opts.path = this.opt s.path.replace(/\\/$/, \"\") + \"/\";\n if (typeof this.opts.query === \" string\") {\n this.opts.query = decode(this.opts.query);\n }\n // set on handshake\n this.id = null;\n this.upgrades = nu ll;\n this.pingInterval = null;\n this.pingTimeout = null;\n // set on heartbeat\n this.pingTimeoutTimer = null;\n if (typeof addEventListener === \"function\") {\n if (this.opts.closeOnBeforeun load) {\n // Firefox closes the connection when the \"beforeunloa d\" event is emitted but not Chrome. This event listener\n // ens ures every browser behaves the same (no \"disconnect\" event at the Socket.IO le vel when the page is\n // closed/reloaded)\n addEv entListener(\"beforeunload\", () => {\n if (this.transport) { \n // silently close the transport\n this.transport.removeAllListeners();\n this.transport. close();\n }\n }, false);\n }\n if (this.hostname !== \"localhost\") {\n this.offlineEven tListener = () => {\n this.onClose(\"transport close\", {\n description: \"network connection lost\"\n });\n };\n addEventListener(\"offline\", this. offlineEventListener, false);\n }\n }\n this.open();\n }\n /**\n * Creates transport of the given type.\n *\n * @para m {String} transport name\n * @return {Transport}\n * @api private\n */\n createTransport(name) {\n const query = Object.assign({}, this.o pts.query);\n // append engine.io protocol identifier\n query.EIO = protocol;\n // transport name\n query.transport = name;\n // session id if we already have one\n if (this.id)\n query.s id = this.id;\n const opts = Object.assign({}, this.opts.transportOptions [name], this.opts, {\n query,\n socket: this,\n hostname: this.hostname,\n secure: this.secure,\n port: t his.port\n });\n return new transports[name](opts);\n }\n /* *\n * Initializes transport to use and starts probe.\n *\n * @api pr ivate\n */\n open() {\n let transport;\n if (this.opts.reme mberUpgrade &&\n Socket.priorWebsocketSuccess &&\n this.tr ansports.indexOf(\"websocket\") !== -1) {\n transport = \"websocket\" ;\n }\n else if (0 === this.transports.length) {\n // E mit error on next tick so it can be listened to\n this.setTimeoutFn(( ) => {\n this.emitReserved(\"error\", \"No transports available\" );\n }, 0);\n return;\n }\n else {\n transport = this.transports[0];\n }\n this.readyState = \"open ing\";\n // Retry with the next transport if the transport is disabled (j sonp: false)\n try {\n transport = this.createTransport(transp ort);\n }\n catch (e) {\n this.transports.shift();\n this.open();\n return;\n }\n transport.open(); \n this.setTransport(transport);\n }\n /**\n * Sets the current transport. Disables the existing one (if any).\n *\n * @api private\n */\n setTransport(transport) {\n if (this.transport) {\n this.transport.removeAllListeners();\n }\n // set up transport\n this.transport = transport;\n // set up transport listeners\n transport\n .on(\"drain\", this.onDrain.bind(this))\n . on(\"packet\", this.onPacket.bind(this))\n .on(\"error\", this.onErro r.bind(this))\n .on(\"close\", reason => this.onClose(\"transport clo se\", reason));\n }\n /**\n * Probes a transport.\n *\n * @par am {String} transport name\n * @api private\n */\n probe(name) {\n let transport = this.createTransport(name);\n let failed = false;\n Socket.priorWebsocketSuccess = false;\n const onTransportOpen = () => {\n if (failed)\n return;\n transport.s end([{ type: \"ping\", data: \"probe\" }]);\n transport.once(\"packet \", msg => {\n if (failed)\n return;\n if (\"pong\" === msg.type && \"probe\" === msg.data) {\n this.upgrading = true;\n this.emitReserved(\"upgrading\", transport);\n if (!transport)\n retur n;\n Socket.priorWebsocketSuccess = \"websocket\" === transpo rt.name;\n this.transport.pause(() => {\n if (failed)\n return;\n if (\"closed\" === this.readyState)\n return;\n cleanup();\n this.setTransport(transport) ;\n transport.send([{ type: \"upgrade\" }]);\n this.emitReserved(\"upgrade\", transport);\n transport = null;\n this.upgrading = false;\n this.flush();\n });\n }\n else {\n const err = new Error(\"probe error\");\n // @ts-ignore\n err.transport = transport.na me;\n this.emitReserved(\"upgradeError\", err);\n }\n });\n };\n function freezeTransport() {\n if (failed)\n return;\n // Any callback called b y transport should be ignored since now\n failed = true;\n cleanup();\n transport.close();\n transport = null;\n }\n // Handle any error that happens while probing\n const one rror = err => {\n const error = new Error(\"probe error: \" + err);\n // @ts-ignore\n error.transport = transport.name;\n freezeTransport();\n this.emitReserved(\"upgradeError\", error) ;\n };\n function onTransportClose() {\n onerror(\"tran sport closed\");\n }\n // When the socket is closed while we're pr obing\n function onclose() {\n onerror(\"socket closed\");\n }\n // When the socket is upgraded while we're probing\n fun ction onupgrade(to) {\n if (transport && to.name !== transport.name) {\n freezeTransport();\n }\n }\n // Remo ve all listeners on the transport and on self\n const cleanup = () => {\n transport.removeListener(\"open\", onTransportOpen);\n tr ansport.removeListener(\"error\", onerror);\n transport.removeListene r(\"close\", onTransportClose);\n this.off(\"close\", onclose);\n this.off(\"upgrading\", onupgrade);\n };\n transport.once( \"open\", onTransportOpen);\n transport.once(\"error\", onerror);\n transport.once(\"close\", onTransportClose);\n this.once(\"close\", onc lose);\n this.once(\"upgrading\", onupgrade);\n transport.open();\ n }\n /**\n * Called when connection is deemed open.\n *\n * @ api private\n */\n onOpen() {\n this.readyState = \"open\";\n Socket.priorWebsocketSuccess = \"websocket\" === this.transport.name;\n this.emitReserved(\"open\");\n this.flush();\n // we check for ` readyState` in case an `open`\n // listener already closed the socket\n if (\"open\" === this.readyState &&\n this.opts.upgrade &&\n this.transport.pause) {\n let i = 0;\n const l = this.upgrades.length;\n for (; i < l; i++) {\n this.pr obe(this.upgrades[i]);\n }\n }\n }\n /**\n * Handles a packet.\n *\n * @api private\n */\n onPacket(packet) {\n if (\"opening\" === this.readyState ||\n \"open\" === this.readySta te ||\n \"closing\" === this.readyState) {\n this.emitRese rved(\"packet\", packet);\n // Socket is live - any packet counts\n this.emitReserved(\"heartbeat\");\n switch (packet.type) {\ n case \"open\":\n this.onHandshake(JSON.parse (packet.data));\n break;\n case \"ping\":\n this.resetPingTimeout();\n this.sendPacket(\ "pong\");\n this.emitReserved(\"ping\");\n this.emitReserved(\"pong\");\n break;\n case \"error\":\n const err = new Error(\"server error\");\n // @ts-ignore\n err.code = packet.data;\n this.onError(err);\n break;\n ca se \"message\":\n this.emitReserved(\"data\", packet.data);\n this.emitReserved(\"message\", packet.data);\n break;\n }\n }\n else {\n }\n }\n /* *\n * Called upon handshake completion.\n *\n * @param {Object} data - handshake obj\n * @api private\n */\n onHandshake(data) {\n this.emitReserved(\"handshake\", data);\n this.id = data.sid;\n t his.transport.query.sid = data.sid;\n this.upgrades = this.filterUpgrades (data.upgrades);\n this.pingInterval = data.pingInterval;\n this.p ingTimeout = data.pingTimeout;\n this.maxPayload = data.maxPayload;\n this.onOpen();\n // In case open handler closes socket\n if (\ "closed\" === this.readyState)\n return;\n this.resetPingTimeo ut();\n }\n /**\n * Sets and resets ping timeout timer based on server pings.\n *\n * @api private\n */\n resetPingTimeout() {\n this.clearTimeoutFn(this.pingTimeoutTimer);\n this.pingTimeoutTimer = th is.setTimeoutFn(() => {\n this.onClose(\"ping timeout\");\n }, this.pingInterval + this.pingTimeout);\n if (this.opts.autoUnref) {\n this.pingTimeoutTimer.unref();\n }\n }\n /**\n * Calle d on `drain` event\n *\n * @api private\n */\n onDrain() {\n this.writeBuffer.splice(0, this.prevBufferLen);\n // setting prevBuffe rLen = 0 is very important\n // for example, when upgrading, upgrade pack et is sent over,\n // and a nonzero prevBufferLen could cause problems on `drain`\n this.prevBufferLen = 0;\n if (0 === this.writeBuffer.le ngth) {\n this.emitReserved(\"drain\");\n }\n else {\n this.flush();\n }\n }\n /**\n * Flush write buffers. \n *\n * @api private\n */\n flush() {\n if (\"closed\" != = this.readyState &&\n this.transport.writable &&\n !this. upgrading &&\n this.writeBuffer.length) {\n const packets = this.getWritablePackets();\n this.transport.send(packets);\n // keep track of current length of writeBuffer\n // splice write Buffer and callbackBuffer on `drain`\n this.prevBufferLen = packets.l ength;\n this.emitReserved(\"flush\");\n }\n }\n /**\n * Ensure the encoded size of the writeBuffer is below the maxPayload value se nt by the server (only for HTTP\n * long-polling)\n *\n * @private\n */\n getWritablePackets() {\n const shouldCheckPayloadSize = this .maxPayload &&\n this.transport.name === \"polling\" &&\n this.writeBuffer.length > 1;\n if (!shouldCheckPayloadSize) {\n return this.writeBuffer;\n }\n let payloadSize = 1; // first pac ket type\n for (let i = 0; i < this.writeBuffer.length; i++) {\n const data = this.writeBuffer[i].data;\n if (data) {\n payloadSize += byteLength(data);\n }\n if (i > 0 && pa yloadSize > this.maxPayload) {\n return this.writeBuffer.slice(0, i);\n }\n payloadSize += 2; // separator + packet type\n }\n return this.writeBuffer;\n }\n /**\n * Sends a messa ge.\n *\n * @param {String} message.\n * @param {Function} callback function.\n * @param {Object} options.\n * @return {Socket} for chaining .\n * @api public\n */\n write(msg, options, fn) {\n this.send Packet(\"message\", msg, options, fn);\n return this;\n }\n send(ms g, options, fn) {\n this.sendPacket(\"message\", msg, options, fn);\n return this;\n }\n /**\n * Sends a packet.\n *\n * @param {String} packet type.\n * @param {String} data.\n * @param {Object} opti ons.\n * @param {Function} callback function.\n * @api private\n */\ n sendPacket(type, data, options, fn) {\n if (\"function\" === typeof data) {\n fn = data;\n data = undefined;\n }\n if (\"function\" === typeof options) {\n fn = options;\n options = null;\n }\n if (\"closing\" === this.readyState || \"c losed\" === this.readyState) {\n return;\n }\n options = options || {};\n options.compress = false !== options.compress;\n const packet = {\n type: type,\n data: data,\n options: options\n };\n this.emitReserved(\"packetCreate\", pack et);\n this.writeBuffer.push(packet);\n if (fn)\n this. once(\"flush\", fn);\n this.flush();\n }\n /**\n * Closes the c onnection.\n *\n * @api public\n */\n close() {\n const cl ose = () => {\n this.onClose(\"forced close\");\n this.tra nsport.close();\n };\n const cleanupAndClose = () => {\n this.off(\"upgrade\", cleanupAndClose);\n this.off(\"upgradeError\" , cleanupAndClose);\n close();\n };\n const waitForUpgr ade = () => {\n // wait for upgrade to finish since we can't send pac kets while pausing a transport\n this.once(\"upgrade\", cleanupAndClo se);\n this.once(\"upgradeError\", cleanupAndClose);\n };\n if (\"opening\" === this.readyState || \"open\" === this.readyState) {\n this.readyState = \"closing\";\n if (this.writeBuffer.length ) {\n this.once(\"drain\", () => {\n if (this. upgrading) {\n waitForUpgrade();\n }\n else {\n close();\n }\n });\n }\n else if (this.upgrading) {\ n waitForUpgrade();\n }\n else {\n close();\n }\n }\n return this;\n }\n /**\ n * Called upon transport error\n *\n * @api private\n */\n o nError(err) {\n Socket.priorWebsocketSuccess = false;\n this.emitR eserved(\"error\", err);\n this.onClose(\"transport error\", err);\n } \n /**\n * Called upon transport close.\n *\n * @api private\n */\n onClose(reason, description) {\n if (\"opening\" === this.ready State ||\n \"open\" === this.readyState ||\n \"closing\" = == this.readyState) {\n // clear timers\n this.clearTimeou tFn(this.pingTimeoutTimer);\n // stop event from firing again for tra nsport\n this.transport.removeAllListeners(\"close\");\n / / ensure transport won't stay open\n this.transport.close();\n // ignore further transport communication\n this.transport.remov eAllListeners();\n if (typeof removeEventListener === \"function\") { \n removeEventListener(\"offline\", this.offlineEventListener, fa lse);\n }\n // set ready state\n this.readyStat e = \"closed\";\n // clear session id\n this.id = null;\n // emit close event\n this.emitReserved(\"close\", reason, description);\n // clean buffers after, so users can still\n // grab the buffers on `close` event\n this.writeBuffer = [];\n this.prevBufferLen = 0;\n }\n }\n /**\n * Filters upg rades, returning only those matching client transports.\n *\n * @param { Array} server upgrades\n * @api private\n *\n */\n filterUpgrades (upgrades) {\n const filteredUpgrades = [];\n let i = 0;\n const j = upgrades.length;\n for (; i < j; i++) {\n if (~this. transports.indexOf(upgrades[i]))\n filteredUpgrades.push(upgrades [i]);\n }\n return filteredUpgrades;\n }\n}\nSocket.protocol = protocol;\n","import { Socket } from \"./socket.js\";\nexport { Socket };\nexpor t const protocol = Socket.protocol;\nexport { Transport } from \"./transport.js\ ";\nexport { transports } from \"./transports/index.js\";\nexport { installTimer Functions } from \"./util.js\";\nexport { parse } from \"./contrib/parseuri.js\" ;\n","import { parse } from \"engine.io-client\";\n/**\n * URL parser.\n *\n * @ param uri - url\n * @param path - the request path of the connection\n * @param loc - An object meant to mimic window.location.\n * Defaults to window.lo cation.\n * @public\n */\nexport function url(uri, path = \"\", loc) {\n let obj = uri;\n // default to window.location\n loc = loc || (typeof location !== \"undefined\" && location);\n if (null == uri)\n uri = loc.protoc ol + \"//\" + loc.host;\n // relative path support\n if (typeof uri === \" string\") {\n if (\"/\" === uri.charAt(0)) {\n if (\"/\" === u ri.charAt(1)) {\n uri = loc.protocol + uri;\n }\n else {\n uri = loc.host + uri;\n }\n }\n if (!/^(https?|wss?):\\/\\//.test(uri)) {\n if (\"undefined\" !== typeof loc) {\n uri = loc.protocol + \"//\" + uri;\n }\n else {\n uri = \"https://\" + uri;\n }\n }\n // parse\n obj = parse(uri);\n }\n // make sure we treat `localhost:80` and `localhost` equally\n if (!obj.port) {\n if (/^(http|ws)$/.test(obj.protocol)) {\n obj.port = \"80\";\n }\n else if (/^(http|ws)s$/.test(obj.protocol)) {\n obj.p ort = \"443\";\n }\n }\n obj.path = obj.path || \"/\";\n const i pv6 = obj.host.indexOf(\":\") !== -1;\n const host = ipv6 ? \"[\" + obj.host + \"]\" : obj.host;\n // define unique id\n obj.id = obj.protocol + \"://\ " + host + \":\" + obj.port + path;\n // define href\n obj.href =\n obj.protocol +\n \"://\" +\n host +\n (loc && loc.port === obj.port ? \"\" : \":\" + obj.port);\n return obj;\n}\n","const withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\nconst isView = (ob j) => {\n return typeof ArrayBuffer.isView === \"function\"\n ? ArrayB uffer.isView(obj)\n : obj.buffer instanceof ArrayBuffer;\n};\nconst toStr ing = Object.prototype.toString;\nconst withNativeBlob = typeof Blob === \"funct ion\" ||\n (typeof Blob !== \"undefined\" &&\n toString.call(Blob) === \"[object BlobConstructor]\");\nconst withNativeFile = typeof File === \"functi on\" ||\n (typeof File !== \"undefined\" &&\n toString.call(File) === \"[object FileConstructor]\");\n/**\n * Returns true if obj is a Buffer, an Arra yBuffer, a Blob or a File.\n *\n * @private\n */\nexport function isBinary(obj) {\n return ((withNativeArrayBuffer && (obj instanceof ArrayBuffer || isView(o bj))) ||\n (withNativeBlob && obj instanceof Blob) ||\n (withNativ eFile && obj instanceof File));\n}\nexport function hasBinary(obj, toJSON) {\n if (!obj || typeof obj !== \"object\") {\n return false;\n }\n if (Array.isArray(obj)) {\n for (let i = 0, l = obj.length; i < l; i++) {\n if (hasBinary(obj[i])) {\n return true;\n }\n }\n return false;\n }\n if (isBinary(obj)) {\n re turn true;\n }\n if (obj.toJSON &&\n typeof obj.toJSON === \"functi on\" &&\n arguments.length === 1) {\n return hasBinary(obj.toJSON( ), true);\n }\n for (const key in obj) {\n if (Object.prototype.has OwnProperty.call(obj, key) && hasBinary(obj[key])) {\n return true;\n }\n }\n return false;\n}\n","import { isBinary } from \"./is-binar y.js\";\n/**\n * Replaces every Buffer | ArrayBuffer | Blob | File in packet wit h a numbered placeholder.\n *\n * @param {Object} packet - socket.io event packe t\n * @return {Object} with deconstructed packet and list of buffers\n * @public \n */\nexport function deconstructPacket(packet) {\n const buffers = [];\n const packetData = packet.data;\n const pack = packet;\n pack.data = _dec onstructPacket(packetData, buffers);\n pack.attachments = buffers.length; // number of binary 'attachments'\n return { packet: pack, buffers: buffers };\n }\nfunction _deconstructPacket(data, buffers) {\n if (!data)\n return data;\n if (isBinary(data)) {\n const placeholder = { _placeholder: tr ue, num: buffers.length };\n buffers.push(data);\n return placehol der;\n }\n else if (Array.isArray(data)) {\n const newData = new Ar ray(data.length);\n for (let i = 0; i < data.length; i++) {\n newData[i] = _deconstructPacket(data[i], buffers);\n }\n return ne wData;\n }\n else if (typeof data === \"object\" && !(data instanceof Date )) {\n const newData = {};\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n newDat a[key] = _deconstructPacket(data[key], buffers);\n }\n }\n return newData;\n }\n return data;\n}\n/**\n * Reconstructs a binary p acket from its placeholder packet and buffers\n *\n * @param {Object} packet - e vent packet with placeholders\n * @param {Array} buffers - binary buffers to put in placeholder positions\n * @return {Object} reconstructed packet\n * @public\ n */\nexport function reconstructPacket(packet, buffers) {\n packet.data = _r econstructPacket(packet.data, buffers);\n packet.attachments = undefined; // no longer useful\n return packet;\n}\nfunction _reconstructPacket(data, buffe rs) {\n if (!data)\n return data;\n if (data && data._placeholder) {\n return buffers[data.num]; // appropriate buffer (should be natural or der anyway)\n }\n else if (Array.isArray(data)) {\n for (let i = 0; i < data.length; i++) {\n data[i] = _reconstructPacket(data[i], buff ers);\n }\n }\n else if (typeof data === \"object\") {\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(dat a, key)) {\n data[key] = _reconstructPacket(data[key], buffers);\ n }\n }\n }\n return data;\n}\n","import { Emitter } fro m \"@socket.io/component-emitter\";\nimport { deconstructPacket, reconstructPack et } from \"./binary.js\";\nimport { isBinary, hasBinary } from \"./is-binary.js \";\n/**\n * Protocol version.\n *\n * @public\n */\nexport const protocol = 5;\ nexport var PacketType;\n(function (PacketType) {\n PacketType[PacketType[\"C ONNECT\"] = 0] = \"CONNECT\";\n PacketType[PacketType[\"DISCONNECT\"] = 1] = \"DISCONNECT\";\n PacketType[PacketType[\"EVENT\"] = 2] = \"EVENT\";\n Pac ketType[PacketType[\"ACK\"] = 3] = \"ACK\";\n PacketType[PacketType[\"CONNECT _ERROR\"] = 4] = \"CONNECT_ERROR\";\n PacketType[PacketType[\"BINARY_EVENT\"] = 5] = \"BINARY_EVENT\";\n PacketType[PacketType[\"BINARY_ACK\"] = 6] = \"BI NARY_ACK\";\n})(PacketType || (PacketType = {}));\n/**\n * A socket.io Encoder i nstance\n */\nexport class Encoder {\n /**\n * Encoder constructor\n *\n * @param {function} replacer - custom replacer to pass down to JSON.pars e\n */\n constructor(replacer) {\n this.replacer = replacer;\n }\n /**\n * Encode a packet as a single string if non-binary, or as a\n * buffer sequence, depending on packet type.\n *\n * @param {Object} obj - packet object\n */\n encode(obj) {\n if (obj.type === Packet Type.EVENT || obj.type === PacketType.ACK) {\n if (hasBinary(obj)) {\ n obj.type =\n obj.type === PacketType.EVENT\n ? PacketType.BINARY_EVENT\n : Pac ketType.BINARY_ACK;\n return this.encodeAsBinary(obj);\n }\n }\n return [this.encodeAsString(obj)];\n }\n /**\n * Encode packet as string.\n */\n encodeAsString(obj) {\n // fir st is type\n let str = \"\" + obj.type;\n // attachments if we hav e them\n if (obj.type === PacketType.BINARY_EVENT ||\n obj.typ e === PacketType.BINARY_ACK) {\n str += obj.attachments + \"-\";\n }\n // if we have a namespace other than `/`\n // we append i t followed by a comma `,`\n if (obj.nsp && \"/\" !== obj.nsp) {\n str += obj.nsp + \",\";\n }\n // immediately followed by the i d\n if (null != obj.id) {\n str += obj.id;\n }\n // json data\n if (null != obj.data) {\n str += JSON.stringif y(obj.data, this.replacer);\n }\n return str;\n }\n /**\n * Encode packet as 'buffer sequence' by removing blobs, and\n * deconstruc ting packet into object with placeholders and\n * a list of buffers.\n * /\n encodeAsBinary(obj) {\n const deconstruction = deconstructPacket(o bj);\n const pack = this.encodeAsString(deconstruction.packet);\n const buffers = deconstruction.buffers;\n buffers.unshift(pack); // add p acket info to beginning of data list\n return buffers; // write all the b uffers\n }\n}\n/**\n * A socket.io Decoder instance\n *\n * @return {Object} decoder\n */\nexport class Decoder extends Emitter {\n /**\n * Decoder co nstructor\n *\n * @param {function} reviver - custom reviver to pass dow n to JSON.stringify\n */\n constructor(reviver) {\n super();\n this.reviver = reviver;\n }\n /**\n * Decodes an encoded packet st ring into packet JSON.\n *\n * @param {String} obj - encoded packet\n */\n add(obj) {\n let packet;\n if (typeof obj === \"string\" ) {\n packet = this.decodeString(obj);\n if (packet.type = == PacketType.BINARY_EVENT ||\n packet.type === PacketType.BINARY _ACK) {\n // binary packet's json\n this.reconstru ctor = new BinaryReconstructor(packet);\n // no attachments, labe led binary but no binary data to follow\n if (packet.attachments === 0) {\n super.emitReserved(\"decoded\", packet);\n }\n }\n else {\n // non-binary full packet\n super.emitReserved(\"decoded\", packet);\n } \n }\n else if (isBinary(obj) || obj.base64) {\n // raw binary data\n if (!this.reconstructor) {\n throw new Error(\"got binary data when not reconstructing a packet\");\n }\n else {\n packet = this.reconstructor.takeBinaryData(obj) ;\n if (packet) {\n // received final buffer\n this.reconstructor = null;\n super.emitRe served(\"decoded\", packet);\n }\n }\n }\n else {\n throw new Error(\"Unknown type: \" + obj);\n }\n }\n /**\n * Decode a packet String (JSON data)\n *\n * @param { String} str\n * @return {Object} packet\n */\n decodeString(str) {\n let i = 0;\n // look up type\n const p = {\n typ e: Number(str.charAt(0)),\n };\n if (PacketType[p.type] === undefi ned) {\n throw new Error(\"unknown packet type \" + p.type);\n }\n // look up attachments if type binary\n if (p.type === Packet Type.BINARY_EVENT ||\n p.type === PacketType.BINARY_ACK) {\n const start = i + 1;\n while (str.charAt(++i) !== \"-\" && i != st r.length) { }\n const buf = str.substring(start, i);\n if (buf != Number(buf) || str.charAt(i) !== \"-\") {\n throw new Err or(\"Illegal attachments\");\n }\n p.attachments = Number( buf);\n }\n // look up namespace (if any)\n if (\"/\" === s tr.charAt(i + 1)) {\n const start = i + 1;\n while (++i) { \n const c = str.charAt(i);\n if (\",\" === c)\n break;\n if (i === str.length)\n break;\n }\n p.nsp = str.substring(start, i);\n }\n else {\n p.nsp = \"/\";\n }\n // look up i d\n const next = str.charAt(i + 1);\n if (\"\" !== next && Number( next) == next) {\n const start = i + 1;\n while (++i) {\n const c = str.charAt(i);\n if (null == c || Number (c) != c) {\n --i;\n break;\n }\n if (i === str.length)\n break;\n }\n p.id = Number(str.substring(start, i + 1));\n }\n // look up json data\n if (str.charAt(++i)) {\n const payl oad = this.tryParse(str.substr(i));\n if (Decoder.isPayloadValid(p.ty pe, payload)) {\n p.data = payload;\n }\n e lse {\n throw new Error(\"invalid payload\");\n }\n }\n return p;\n }\n tryParse(str) {\n try {\n return JSON.parse(str, this.reviver);\n }\n catch (e) {\n return false;\n }\n }\n static isPayloadValid(type, payload) { \n switch (type) {\n case PacketType.CONNECT:\n return typeof payload === \"object\";\n case PacketType.DISCONNECT:\ n return payload === undefined;\n case PacketType.CONN ECT_ERROR:\n return typeof payload === \"string\" || typeof paylo ad === \"object\";\n case PacketType.EVENT:\n case PacketT ype.BINARY_EVENT:\n return Array.isArray(payload) && payload.leng th > 0;\n case PacketType.ACK:\n case PacketType.BINARY_AC K:\n return Array.isArray(payload);\n }\n }\n /**\n * Deallocates a parser's resources\n */\n destroy() {\n if (th is.reconstructor) {\n this.reconstructor.finishedReconstruction();\n }\n }\n}\n/**\n * A manager of a binary event's 'buffer sequence'. Sho uld\n * be constructed whenever a packet of type BINARY_EVENT is\n * decoded.\n *\n * @param {Object} packet\n * @return {BinaryReconstructor} initialized recon structor\n */\nclass BinaryReconstructor {\n constructor(packet) {\n t his.packet = packet;\n this.buffers = [];\n this.reconPack = packe t;\n }\n /**\n * Method to be called when binary data received from co nnection\n * after a BINARY_EVENT packet.\n *\n * @param {Buffer | A rrayBuffer} binData - the raw binary data received\n * @return {null | Objec t} returns null if more binary data is expected or\n * a reconstructed pac ket object if all buffers have been received.\n */\n takeBinaryData(binDa ta) {\n this.buffers.push(binData);\n if (this.buffers.length === this.reconPack.attachments) {\n // done with buffer list\n const packet = reconstructPacket(this.reconPack, this.buffers);\n th is.finishedReconstruction();\n return packet;\n }\n ret urn null;\n }\n /**\n * Cleans up binary packet reconstruction variabl es.\n */\n finishedReconstruction() {\n this.reconPack = null;\n this.buffers = [];\n }\n}\n","export function on(obj, ev, fn) {\n ob j.on(ev, fn);\n return function subDestroy() {\n obj.off(ev, fn);\n };\n}\n","import { PacketType } from \"socket.io-parser\";\nimport { on } from \"./on.js\";\nimport { Emitter, } from \"@socket.io/component-emitter\";\n/**\n * Internal events.\n * These events can't be emitted by the user.\n */\nconst RE SERVED_EVENTS = Object.freeze({\n connect: 1,\n connect_error: 1,\n dis connect: 1,\n disconnecting: 1,\n // EventEmitter reserved events: https:/ /nodejs.org/api/events.html#events_event_newlistener\n newListener: 1,\n r emoveListener: 1,\n});\nexport class Socket extends Emitter {\n /**\n * ` Socket` constructor.\n *\n * @public\n */\n constructor(io, nsp, opts) {\n super();\n this.connected = false;\n this.receive Buffer = [];\n this.sendBuffer = [];\n this.ids = 0;\n this .acks = {};\n this.flags = {};\n this.io = io;\n this.nsp = nsp;\n if (opts && opts.auth) {\n this.auth = opts.auth;\n }\n if (this.io._autoConnect)\n this.open();\n }\n /**\n * Whether the socket is currently disconnected\n */\n get disco nnected() {\n return !this.connected;\n }\n /**\n * Subscribe t o open, close and packet events\n *\n * @private\n */\n subEvents () {\n if (this.subs)\n return;\n const io = this.io;\n this.subs = [\n on(io, \"open\", this.onopen.bind(this)),\n on(io, \"packet\", this.onpacket.bind(this)),\n on(io, \"er ror\", this.onerror.bind(this)),\n on(io, \"close\", this.onclose.bin d(this)),\n ];\n }\n /**\n * Whether the Socket will try to rec onnect when its Manager connects or reconnects\n */\n get active() {\n return !!this.subs;\n }\n /**\n * \"Opens\" the socket.\n *\n * @public\n */\n connect() {\n if (this.connected)\n return this;\n this.subEvents();\n if (!this.io[\"_reconnecting \"])\n this.io.open(); // ensure open\n if (\"open\" === this. io._readyState)\n this.onopen();\n return this;\n }\n /* *\n * Alias for connect()\n */\n open() {\n return this.connec t();\n }\n /**\n * Sends a `message` event.\n *\n * @return se lf\n * @public\n */\n send(...args) {\n args.unshift(\"message \");\n this.emit.apply(this, args);\n return this;\n }\n /** \n * Override `emit`.\n * If the event is in `events`, it's emitted norm ally.\n *\n * @return self\n * @public\n */\n emit(ev, ...arg s) {\n if (RESERVED_EVENTS.hasOwnProperty(ev)) {\n throw new E rror('\"' + ev.toString() + '\" is a reserved event name');\n }\n args.unshift(ev);\n const packet = {\n type: PacketType.EVENT, \n data: args,\n };\n packet.options = {};\n pac ket.options.compress = this.flags.compress !== false;\n // event ack call back\n if (\"function\" === typeof args[args.length - 1]) {\n const id = this.ids++;\n const ack = args.pop();\n this._r egisterAckCallback(id, ack);\n packet.id = id;\n }\n co nst isTransportWritable = this.io.engine &&\n this.io.engine.transpor t &&\n this.io.engine.transport.writable;\n const discardPacke t = this.flags.volatile && (!isTransportWritable || !this.connected);\n i f (discardPacket) {\n }\n else if (this.connected) {\n this.notifyOutgoingListeners(packet);\n this.packet(packet);\n }\n else {\n this.sendBuffer.push(packet);\n }\n this.flags = {};\n return this;\n }\n /**\n * @private\n */\n _registerAckCallback(id, ack) {\n const timeout = this.flags.time out;\n if (timeout === undefined) {\n this.acks[id] = ack;\n return;\n }\n // @ts-ignore\n const timer = this. io.setTimeoutFn(() => {\n delete this.acks[id];\n for (let i = 0; i < this.sendBuffer.length; i++) {\n if (this.sendBuffer[ i].id === id) {\n this.sendBuffer.splice(i, 1);\n }\n }\n ack.call(this, new Error(\"operation has timed out\"));\n }, timeout);\n this.acks[id] = (...args) => {\n // @ts-ignore\n this.io.clearTimeoutFn(timer);\n ack. apply(this, [null, ...args]);\n };\n }\n /**\n * Sends a packet .\n *\n * @param packet\n * @private\n */\n packet(packet) {\ n packet.nsp = this.nsp;\n this.io._packet(packet);\n }\n /* *\n * Called upon engine `open`.\n *\n * @private\n */\n onop en() {\n if (typeof this.auth == \"function\") {\n this.auth(( data) => {\n this.packet({ type: PacketType.CONNECT, data });\n });\n }\n else {\n this.packet({ type: Packet Type.CONNECT, data: this.auth });\n }\n }\n /**\n * Called upon engine or manager `error`.\n *\n * @param err\n * @private\n */ \n onerror(err) {\n if (!this.connected) {\n this.emitReser ved(\"connect_error\", err);\n }\n }\n /**\n * Called upon engi ne `close`.\n *\n * @param reason\n * @param description\n * @pr ivate\n */\n onclose(reason, description) {\n this.connected = fal se;\n delete this.id;\n this.emitReserved(\"disconnect\", reason, description);\n }\n /**\n * Called with socket packet.\n *\n * @param packet\n * @private\n */\n onpacket(packet) {\n const sameNamespace = packet.nsp === this.nsp;\n if (!sameNamespace)\n return;\n switch (packet.type) {\n case PacketType.CONNECT: \n if (packet.data && packet.data.sid) {\n con st id = packet.data.sid;\n this.onconnect(id);\n }\n else {\n this.emitReserved(\"connect_er ror\", new Error(\"It seems you are trying to reach a Socket.IO server in v2.x w ith a v3.x client, but they are not compatible (more information here: https://s ocket.io/docs/v3/migrating-from-2-x-to-3-0/)\"));\n }\n break;\n case PacketType.EVENT:\n case PacketType.BI NARY_EVENT:\n this.onevent(packet);\n break;\n case PacketType.ACK:\n case PacketType.BINARY_ACK:\n this.onack(packet);\n break;\n case PacketType. DISCONNECT:\n this.ondisconnect();\n break;\n case PacketType.CONNECT_ERROR:\n this.destroy();\n const err = new Error(packet.data.message);\n // @ts-igno re\n err.data = packet.data.data;\n this.emitReser ved(\"connect_error\", err);\n break;\n }\n }\n /**\ n * Called upon a server event.\n *\n * @param packet\n * @priva te\n */\n onevent(packet) {\n const args = packet.data || [];\n if (null != packet.id) {\n args.push(this.ack(packet.id));\n }\n if (this.connected) {\n this.emitEvent(args);\n }\n else {\n this.receiveBuffer.push(Object.freeze(args));\n }\n }\n emitEvent(args) {\n if (this._anyListeners && this._ anyListeners.length) {\n const listeners = this._anyListeners.slice() ;\n for (const listener of listeners) {\n listener.app ly(this, args);\n }\n }\n super.emit.apply(this, args); \n }\n /**\n * Produces an ack callback to emit with an event.\n * \n * @private\n */\n ack(id) {\n const self = this;\n l et sent = false;\n return function (...args) {\n // prevent do uble callbacks\n if (sent)\n return;\n sent = true;\n self.packet({\n type: PacketType.ACK,\n id: id,\n data: args,\n });\n };\n }\n /**\n * Called upon a server acknowlegement.\n *\n * @para m packet\n * @private\n */\n onack(packet) {\n const ack = thi s.acks[packet.id];\n if (\"function\" === typeof ack) {\n ack. apply(this, packet.data);\n delete this.acks[packet.id];\n }\n else {\n }\n }\n /**\n * Called upon server connect.\n *\n * @private\n */\n onconnect(id) {\n this.id = id;\n this.connected = true;\n this.emitBuffered();\n this.emitRese rved(\"connect\");\n }\n /**\n * Emit buffered events (received and em itted).\n *\n * @private\n */\n emitBuffered() {\n this.re ceiveBuffer.forEach((args) => this.emitEvent(args));\n this.receiveBuffer = [];\n this.sendBuffer.forEach((packet) => {\n this.notifyOu tgoingListeners(packet);\n this.packet(packet);\n });\n this.sendBuffer = [];\n }\n /**\n * Called upon server disconnect.\n *\n * @private\n */\n ondisconnect() {\n this.destroy();\n this.onclose(\"io server disconnect\");\n }\n /**\n * Called u pon forced client/server side disconnections,\n * this method ensures the ma nager stops tracking us and\n * that reconnections don't get triggered for t his.\n *\n * @private\n */\n destroy() {\n if (this.subs) {\n // clean subscriptions to avoid reconnections\n this.s ubs.forEach((subDestroy) => subDestroy());\n this.subs = undefined;\n }\n this.io[\"_destroy\"](this);\n }\n /**\n * Disconne cts the socket manually.\n *\n * @return self\n * @public\n */\n disconnect() {\n if (this.connected) {\n this.packet({ typ e: PacketType.DISCONNECT });\n }\n // remove socket from pool\n this.destroy();\n if (this.connected) {\n // fire events\ n this.onclose(\"io client disconnect\");\n }\n return this;\n }\n /**\n * Alias for disconnect()\n *\n * @return sel f\n * @public\n */\n close() {\n return this.disconnect();\n }\n /**\n * Sets the compress flag.\n *\n * @param compress - i f `true`, compresses the sending data\n * @return self\n * @public\n */\n compress(compress) {\n this.flags.compress = compress;\n return this;\n }\n /**\n * Sets a modifier for a subsequent event emis sion that the event message will be dropped when this socket is not\n * read y to send messages.\n *\n * @returns self\n * @public\n */\n get volatile() {\n this.flags.volatile = true;\n return this;\n }\n /**\n * Sets a modifier for a subsequent event emission that the cal lback will be called with an error when the\n * given number of milliseconds have elapsed without an acknowledgement from the server:\n *\n * ```\n * socket.timeout(5000).emit(\"my-event\", (err) => {\n * if (err) {\n * // the server did not acknowledge the event in the given delay\n * }\n * });\n * ```\n *\n * @returns self\n * @public\n */\n timeout(timeout) {\n this.flags.timeout = timeout;\n retu rn this;\n }\n /**\n * Adds a listener that will be fired when any eve nt is emitted. The event name is passed as the first argument to the\n * cal lback.\n *\n * @param listener\n * @public\n */\n onAny(liste ner) {\n this._anyListeners = this._anyListeners || [];\n this._an yListeners.push(listener);\n return this;\n }\n /**\n * Adds a listener that will be fired when any event is emitted. The event name is passed as the first argument to the\n * callback. The listener is added to the begi nning of the listeners array.\n *\n * @param listener\n * @public\n */\n prependAny(listener) {\n this._anyListeners = this._anyListen ers || [];\n this._anyListeners.unshift(listener);\n return this;\ n }\n /**\n * Removes the listener that will be fired when any event i s emitted.\n *\n * @param listener\n * @public\n */\n offAny( listener) {\n if (!this._anyListeners) {\n return this;\n }\n if (listener) {\n const listeners = this._anyListeners; \n for (let i = 0; i < listeners.length; i++) {\n if ( listener === listeners[i]) {\n listeners.splice(i, 1);\n return this;\n }\n }\n }\n else {\n this._anyListeners = [];\n }\n return this;\ n }\n /**\n * Returns an array of listeners that are listening for any event that is specified. This array can be manipulated,\n * e.g. to remove listeners.\n *\n * @public\n */\n listenersAny() {\n retur n this._anyListeners || [];\n }\n /**\n * Adds a listener that will be fired when any event is emitted. The event name is passed as the first argument to the\n * callback.\n *\n * @param listener\n *\n * <pre>< code>\n *\n * socket.onAnyOutgoing((event, ...args) => {\n * conso le.log(event);\n * });\n *\n * </pre></code>\n *\n * @public \n */\n onAnyOutgoing(listener) {\n this._anyOutgoingListeners = t his._anyOutgoingListeners || [];\n this._anyOutgoingListeners.push(listen er);\n return this;\n }\n /**\n * Adds a listener that will be fired when any event is emitted. The event name is passed as the first argument to the\n * callback. The listener is added to the beginning of the listeners array.\n *\n * @param listener\n *\n * <pre><code>\n *\n * socket.prependAnyOutgoing((event, ...args) => {\n * console.log(event) ;\n * });\n *\n * </pre></code>\n *\n * @public\n */\n prependAnyOutgoing(listener) {\n this._anyOutgoingListeners = this._any OutgoingListeners || [];\n this._anyOutgoingListeners.unshift(listener);\ n return this;\n }\n /**\n * Removes the listener that will be fired when any event is emitted.\n *\n * @param listener\n *\n * <pre><code>\n *\n * const handler = (event, ...args) => {\n * con sole.log(event);\n * }\n *\n * socket.onAnyOutgoing(handler);\n *\n * // then later\n * socket.offAnyOutgoing(handler);\n *\n * </pre></code>\n *\n * @public\n */\n offAnyOutgoing(listener) {\n if (!this._anyOutgoingListeners) {\n return this;\n }\ n if (listener) {\n const listeners = this._anyOutgoingListene rs;\n for (let i = 0; i < listeners.length; i++) {\n i f (listener === listeners[i]) {\n listeners.splice(i, 1);\n return this;\n }\n }\n }\n else {\n this._anyOutgoingListeners = [];\n }\n re turn this;\n }\n /**\n * Returns an array of listeners that are listen ing for any event that is specified. This array can be manipulated,\n * e.g. to remove listeners.\n *\n * @public\n */\n listenersAnyOutgoing () {\n return this._anyOutgoingListeners || [];\n }\n /**\n * N otify the listeners for each packet sent\n *\n * @param packet\n *\n * @private\n */\n notifyOutgoingListeners(packet) {\n if (thi s._anyOutgoingListeners && this._anyOutgoingListeners.length) {\n con st listeners = this._anyOutgoingListeners.slice();\n for (const liste ner of listeners) {\n listener.apply(this, packet.data);\n }\n }\n }\n}\n","/**\n * Initialize backoff timer with `opts`.\n *\n * - `min` initial timeout in milliseconds [100]\n * - `max` max timeout [100 00]\n * - `jitter` [0]\n * - `factor` [2]\n *\n * @param {Object} opts\n * @api public\n */\nexport function Backoff(opts) {\n opts = opts || {};\n this.m s = opts.min || 100;\n this.max = opts.max || 10000;\n this.factor = opts. factor || 2;\n this.jitter = opts.jitter > 0 && opts.jitter <= 1 ? opts.jitte r : 0;\n this.attempts = 0;\n}\n/**\n * Return the backoff duration.\n *\n * @return {Number}\n * @api public\n */\nBackoff.prototype.duration = function () {\n var ms = this.ms * Math.pow(this.factor, this.attempts++);\n if (this. jitter) {\n var rand = Math.random();\n var deviation = Math.floor (rand * this.jitter * ms);\n ms = (Math.floor(rand * 10) & 1) == 0 ? ms - deviation : ms + deviation;\n }\n return Math.min(ms, this.max) | 0;\n};\ n/**\n * Reset the number of attempts.\n *\n * @api public\n */\nBackoff.prototy pe.reset = function () {\n this.attempts = 0;\n};\n/**\n * Set the minimum du ration\n *\n * @api public\n */\nBackoff.prototype.setMin = function (min) {\n this.ms = min;\n};\n/**\n * Set the maximum duration\n *\n * @api public\n */\ nBackoff.prototype.setMax = function (max) {\n this.max = max;\n};\n/**\n * S et the jitter\n *\n * @api public\n */\nBackoff.prototype.setJitter = function ( jitter) {\n this.jitter = jitter;\n};\n","import { Socket as Engine, installT imerFunctions, } from \"engine.io-client\";\nimport { Socket } from \"./socket.j s\";\nimport * as parser from \"socket.io-parser\";\nimport { on } from \"./on.j s\";\nimport { Backoff } from \"./contrib/backo2.js\";\nimport { Emitter, } from \"@socket.io/component-emitter\";\nexport class Manager extends Emitter {\n constructor(uri, opts) {\n var _a;\n super();\n this.nsps = {};\n this.subs = [];\n if (uri && \"object\" === typeof uri) {\n opts = uri;\n uri = undefined;\n }\n opts = opts || {};\n opts.path = opts.path || \"/socket.io\";\n this.opt s = opts;\n installTimerFunctions(this, opts);\n this.reconnection (opts.reconnection !== false);\n this.reconnectionAttempts(opts.reconnect ionAttempts || Infinity);\n this.reconnectionDelay(opts.reconnectionDelay || 1000);\n this.reconnectionDelayMax(opts.reconnectionDelayMax || 5000) ;\n this.randomizationFactor((_a = opts.randomizationFactor) !== null && _a !== void 0 ? _a : 0.5);\n this.backoff = new Backoff({\n mi n: this.reconnectionDelay(),\n max: this.reconnectionDelayMax(),\n jitter: this.randomizationFactor(),\n });\n this.timeout( null == opts.timeout ? 20000 : opts.timeout);\n this._readyState = \"clos ed\";\n this.uri = uri;\n const _parser = opts.parser || parser;\n this.encoder = new _parser.Encoder();\n this.decoder = new _parse r.Decoder();\n this._autoConnect = opts.autoConnect !== false;\n i f (this._autoConnect)\n this.open();\n }\n reconnection(v) {\n if (!arguments.length)\n return this._reconnection;\n t his._reconnection = !!v;\n return this;\n }\n reconnectionAttempts( v) {\n if (v === undefined)\n return this._reconnectionAttempt s;\n this._reconnectionAttempts = v;\n return this;\n }\n re connectionDelay(v) {\n var _a;\n if (v === undefined)\n return this._reconnectionDelay;\n this._reconnectionDelay = v;\n (_a = this.backoff) === null || _a === void 0 ? void 0 : _a.setMin(v);\n return this;\n }\n randomizationFactor(v) {\n var _a;\n if ( v === undefined)\n return this._randomizationFactor;\n this._r andomizationFactor = v;\n (_a = this.backoff) === null || _a === void 0 ? void 0 : _a.setJitter(v);\n return this;\n }\n reconnectionDelayMa x(v) {\n var _a;\n if (v === undefined)\n return this._ reconnectionDelayMax;\n this._reconnectionDelayMax = v;\n (_a = th is.backoff) === null || _a === void 0 ? void 0 : _a.setMax(v);\n return t his;\n }\n timeout(v) {\n if (!arguments.length)\n retur n this._timeout;\n this._timeout = v;\n return this;\n }\n / **\n * Starts trying to reconnect if reconnection is enabled and we have not \n * started reconnecting yet\n *\n * @private\n */\n maybeRe connectOnOpen() {\n // Only try to reconnect if it's the first time we're connecting\n if (!this._reconnecting &&\n this._reconnection &&\n this.backoff.attempts === 0) {\n // keeps reconnectio n from firing twice for the same reconnection loop\n this.reconnect() ;\n }\n }\n /**\n * Sets the current transport `socket`.\n *\n * @param {Function} fn - optional, callback\n * @return self\n * @public\n */\n open(fn) {\n if (~this._readyState.indexOf(\"open\ "))\n return this;\n this.engine = new Engine(this.uri, this.o pts);\n const socket = this.engine;\n const self = this;\n this._readyState = \"opening\";\n this.skipReconnect = false;\n // emit `open`\n const openSubDestroy = on(socket, \"open\", function () {\ n self.onopen();\n fn && fn();\n });\n // em it `error`\n const errorSub = on(socket, \"error\", (err) => {\n self.cleanup();\n self._readyState = \"closed\";\n this .emitReserved(\"error\", err);\n if (fn) {\n fn(err);\ n }\n else {\n // Only do this if there is no fn to handle the error\n self.maybeReconnectOnOpen();\n }\n });\n if (false !== this._timeout) {\n const t imeout = this._timeout;\n if (timeout === 0) {\n openS ubDestroy(); // prevents a race condition with the 'open' event\n }\n // set timer\n const timer = this.setTimeoutFn(() => {\n openSubDestroy();\n socket.close();\n // @ts-ignore\n socket.emit(\"error\", new Error(\"timeout\")) ;\n }, timeout);\n if (this.opts.autoUnref) {\n timer.unref();\n }\n this.subs.push(function subDestr oy() {\n clearTimeout(timer);\n });\n }\n this.subs.push(openSubDestroy);\n this.subs.push(errorSub);\n re turn this;\n }\n /**\n * Alias for open()\n *\n * @return self \n * @public\n */\n connect(fn) {\n return this.open(fn);\n }\n /**\n * Called upon transport open.\n *\n * @private\n * /\n onopen() {\n // clear old subs\n this.cleanup();\n / / mark as open\n this._readyState = \"open\";\n this.emitReserved( \"open\");\n // add new subs\n const socket = this.engine;\n this.subs.push(on(socket, \"ping\", this.onping.bind(this)), on(socket, \"data \", this.ondata.bind(this)), on(socket, \"error\", this.onerror.bind(this)), on( socket, \"close\", this.onclose.bind(this)), on(this.decoder, \"decoded\", this. ondecoded.bind(this)));\n }\n /**\n * Called upon a ping.\n *\n * @private\n */\n onping() {\n this.emitReserved(\"ping\");\n }\n /**\n * Called with data.\n *\n * @private\n */\n ond ata(data) {\n try {\n this.decoder.add(data);\n }\n catch (e) {\n this.onclose(\"parse error\");\n }\n }\n /**\n * Called when parser fully decodes a packet.\n *\n * @priva te\n */\n ondecoded(packet) {\n this.emitReserved(\"packet\", pack et);\n }\n /**\n * Called upon socket error.\n *\n * @private\ n */\n onerror(err) {\n this.emitReserved(\"error\", err);\n }\ n /**\n * Creates a new socket for the given `nsp`.\n *\n * @retu rn {Socket}\n * @public\n */\n socket(nsp, opts) {\n let socke t = this.nsps[nsp];\n if (!socket) {\n socket = new Socket(thi s, nsp, opts);\n this.nsps[nsp] = socket;\n }\n return socket;\n }\n /**\n * Called upon a socket close.\n *\n * @par am socket\n * @private\n */\n _destroy(socket) {\n const nsps = Object.keys(this.nsps);\n for (const nsp of nsps) {\n const socket = this.nsps[nsp];\n if (socket.active) {\n retu rn;\n }\n }\n this._close();\n }\n /**\n * Wr ites a packet.\n *\n * @param packet\n * @private\n */\n _pac ket(packet) {\n const encodedPackets = this.encoder.encode(packet);\n for (let i = 0; i < encodedPackets.length; i++) {\n this.engine.w rite(encodedPackets[i], packet.options);\n }\n }\n /**\n * Clea n up transport subscriptions and packet buffer.\n *\n * @private\n * /\n cleanup() {\n this.subs.forEach((subDestroy) => subDestroy());\n this.subs.length = 0;\n this.decoder.destroy();\n }\n /**\n * Close the current socket.\n *\n * @private\n */\n _close() { \n this.skipReconnect = true;\n this._reconnecting = false;\n this.onclose(\"forced close\");\n if (this.engine)\n this.e ngine.close();\n }\n /**\n * Alias for close()\n *\n * @privat e\n */\n disconnect() {\n return this._close();\n }\n /**\n * Called upon engine close.\n *\n * @private\n */\n onclose(r eason, description) {\n this.cleanup();\n this.backoff.reset();\n this._readyState = \"closed\";\n this.emitReserved(\"close\", reas on, description);\n if (this._reconnection && !this.skipReconnect) {\n this.reconnect();\n }\n }\n /**\n * Attempt a reconnec tion.\n *\n * @private\n */\n reconnect() {\n if (this._re connecting || this.skipReconnect)\n return this;\n const self = this;\n if (this.backoff.attempts >= this._reconnectionAttempts) {\n this.backoff.reset();\n this.emitReserved(\"reconnect_failed \");\n this._reconnecting = false;\n }\n else {\n const delay = this.backoff.duration();\n this._reconnecting = t rue;\n const timer = this.setTimeoutFn(() => {\n if (s elf.skipReconnect)\n return;\n this.emitReserv ed(\"reconnect_attempt\", self.backoff.attempts);\n // check agai n for the case socket closed in above events\n if (self.skipRecon nect)\n return;\n self.open((err) => {\n if (err) {\n self._reconnecting = false;\n self.reconnect();\n this.emitReser ved(\"reconnect_error\", err);\n }\n else {\n self.onreconnect();\n }\n });\n }, delay);\n if (this.opts.autoUnref) {\n timer.unref();\n }\n this.subs.push(function s ubDestroy() {\n clearTimeout(timer);\n });\n }\ n }\n /**\n * Called upon successful reconnect.\n *\n * @priva te\n */\n onreconnect() {\n const attempt = this.backoff.attempts; \n this._reconnecting = false;\n this.backoff.reset();\n th is.emitReserved(\"reconnect\", attempt);\n }\n}\n","import { url } from \"./u rl.js\";\nimport { Manager } from \"./manager.js\";\nimport { Socket } from \"./ socket.js\";\n/**\n * Managers cache.\n */\nconst cache = {};\nfunction lookup(u ri, opts) {\n if (typeof uri === \"object\") {\n opts = uri;\n uri = undefined;\n }\n opts = opts || {};\n const parsed = url(uri, opt s.path || \"/socket.io\");\n const source = parsed.source;\n const id = pa rsed.id;\n const path = parsed.path;\n const sameNamespace = cache[id] && path in cache[id][\"nsps\"];\n const newConnection = opts.forceNew ||\n opts[\"force new connection\"] ||\n false === opts.multiplex ||\n sameNamespace;\n let io;\n if (newConnection) {\n io = new Manage r(source, opts);\n }\n else {\n if (!cache[id]) {\n cach e[id] = new Manager(source, opts);\n }\n io = cache[id];\n }\n if (parsed.query && !opts.query) {\n opts.query = parsed.queryKey;\n }\n return io.socket(parsed.path, opts);\n}\n// so that \"lookup\" can be u sed both as a function (e.g. `io(...)`) and as a\n// namespace (e.g. `io.connect (...)`), for backward compatibility\nObject.assign(lookup, {\n Manager,\n Socket,\n io: lookup,\n connect: lookup,\n});\n/**\n * Protocol version.\n *\n * @public\n */\nexport { protocol } from \"socket.io-parser\";\n/**\n * Exp ose constructors for standalone build.\n *\n * @public\n */\nexport { Manager, S ocket, lookup as io, lookup as connect, lookup as default, };\n"],"names":["PACK ET_TYPES","Object","create","PACKET_TYPES_REVERSE","keys","forEach","key","ERROR _PACKET","type","data","withNativeBlob","Blob","prototype","toString","call","wi thNativeArrayBuffer","ArrayBuffer","isView","obj","buffer","encodePacket","suppo rtsBinary","callback","encodeBlobAsBase64","fileReader","FileReader","onload","c ontent","result","split","readAsDataURL","chars","lookup","Uint8Array","i","leng th","charCodeAt","decode","base64","bufferLength","len","p","encoded1","encoded2 ","encoded3","encoded4","arraybuffer","bytes","decodePacket","encodedPacket","bi naryType","mapBinary","charAt","decodeBase64Packet","substring","packetType","de coded","SEPARATOR","String","fromCharCode","encodePayload","packets","encodedPac kets","Array","count","packet","join","decodePayload","encodedPayload","decodedP acket","push","protocol","Emitter","mixin","on","addEventListener","event","fn", "_callbacks","once","off","apply","arguments","removeListener","removeAllListene rs","removeEventListener","callbacks","cb","splice","emit","args","slice","emitR eserved","listeners","hasListeners","globalThisShim","self","window","Function", "pick","attr","reduce","acc","k","hasOwnProperty","NATIVE_SET_TIMEOUT","setTimeo ut","NATIVE_CLEAR_TIMEOUT","clearTimeout","installTimerFunctions","opts","useNat iveTimers","setTimeoutFn","bind","globalThis","clearTimeoutFn","BASE64_OVERHEAD" ,"byteLength","utf8Length","Math","ceil","size","str","c","l","TransportError"," reason","description","context","Error","Transport","writable","query","readySta te","socket","doOpen","doClose","onClose","write","onPacket","details","alphabet ","map","seed","prev","encode","num","encoded","floor","yeast","now","Date","enc odeURIComponent","qs","qry","pairs","pair","decodeURIComponent","value","XMLHttp Request","err","hasCORS","XHR","xdomain","e","concat","empty","hasXHR2","xhr","r esponseType","Polling","polling","location","isSSL","port","xd","hostname","xs", "secure","forceBase64","poll","onPause","pause","total","doPoll","onOpen","close ","doWrite","schema","timestampRequests","timestampParam","sid","b64","Number"," encodedQuery","ipv6","indexOf","path","Request","uri","req","request","method"," xhrStatus","onError","onData","pollXhr","async","undefined","xscheme","open","ex traHeaders","setDisableHeaderCheck","setRequestHeader","withCredentials","reques tTimeout","timeout","onreadystatechange","status","onLoad","send","document","in dex","requestsCount","requests","cleanup","fromError","abort","responseText","at tachEvent","unloadHandler","terminationEvent","nextTick","isPromiseAvailable","P romise","resolve","then","WebSocket","MozWebSocket","usingBrowserWebSocket","def aultBinaryType","isReactNative","navigator","product","toLowerCase","WS","check" ,"protocols","headers","ws","addEventListeners","onopen","autoUnref","_socket"," unref","onclose","closeEvent","onmessage","ev","onerror","lastPacket","transport s","websocket","re","parts","parse","src","b","replace","m","exec","source","hos t","authority","ipv6uri","pathNames","queryKey","regx","names","substr","$0","$1 ","$2","Socket","writeBuffer","prevBufferLen","agent","upgrade","rememberUpgrade ","rejectUnauthorized","perMessageDeflate","threshold","transportOptions","close OnBeforeunload","id","upgrades","pingInterval","pingTimeout","pingTimeoutTimer", "transport","offlineEventListener","name","EIO","priorWebsocketSuccess","createT ransport","shift","setTransport","onDrain","failed","onTransportOpen","msg","upg rading","flush","freezeTransport","error","onTransportClose","onupgrade","to","p robe","onHandshake","JSON","resetPingTimeout","sendPacket","code","filterUpgrade s","maxPayload","getWritablePackets","shouldCheckPayloadSize","payloadSize","opt ions","compress","cleanupAndClose","waitForUpgrade","filteredUpgrades","j","url" ,"loc","test","href","withNativeFile","File","isBinary","hasBinary","toJSON","is Array","deconstructPacket","buffers","packetData","pack","_deconstructPacket","a ttachments","placeholder","_placeholder","newData","reconstructPacket","_reconst ructPacket","PacketType","Encoder","replacer","EVENT","ACK","BINARY_EVENT","BINA RY_ACK","encodeAsBinary","encodeAsString","nsp","stringify","deconstruction","un shift","Decoder","reviver","decodeString","reconstructor","BinaryReconstructor", "takeBinaryData","start","buf","next","payload","tryParse","isPayloadValid","fin ishedReconstruction","CONNECT","DISCONNECT","CONNECT_ERROR","reconPack","binData ","subDestroy","RESERVED_EVENTS","freeze","connect","connect_error","disconnect" ,"disconnecting","newListener","io","connected","receiveBuffer","sendBuffer","id s","acks","flags","auth","_autoConnect","subs","onpacket","subEvents","_readySta te","ack","pop","_registerAckCallback","isTransportWritable","engine","discardPa cket","notifyOutgoingListeners","timer","_packet","sameNamespace","onconnect","o nevent","onack","ondisconnect","destroy","message","emitEvent","_anyListeners"," listener","sent","emitBuffered","_anyOutgoingListeners","Backoff","ms","min","ma x","factor","jitter","attempts","duration","pow","rand","random","deviation","re set","setMin","setMax","setJitter","Manager","_a","nsps","reconnection","reconne ctionAttempts","Infinity","reconnectionDelay","reconnectionDelayMax","randomizat ionFactor","backoff","_parser","parser","encoder","decoder","autoConnect","v","_ reconnection","_reconnectionAttempts","_reconnectionDelay","_randomizationFactor ","_reconnectionDelayMax","_timeout","_reconnecting","reconnect","Engine","skipR econnect","openSubDestroy","errorSub","maybeReconnectOnOpen","onping","ondata"," ondecoded","add","active","_close","delay","onrecon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,IAAvB,CAAP,CAAA;EACH;EAED;;;EACA,QAAA,CAAc9E,MAAd,EAAsB;EAClB 8Z,EAAAA,OAAO,EAAPA,OADkB;EAElBnK,EAAAA,MAAM,EAANA,MAFkB;EAGlBgH,EAAAA,EAAE,EAAE 3W,MAHc;EAIlBsW,EAAAA,OAAO,EAAEtW,MAAAA;EAJS,CAAtB,CAAA;;;;;;;;"}
 End of changes. 1 change blocks. 
lines changed or deleted lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)