jamespot-react-core 1.3.44 → 1.3.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,22 +12,76 @@ export type ArticlesRootState = {
12
12
  export declare const articleAdapter: import("@reduxjs/toolkit").EntityAdapter<Article, string>;
13
13
  export declare const articleSlice: import("@reduxjs/toolkit").Slice<EntityState<Article, string>, {
14
14
  addOne: {
15
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entity: Article): S;
16
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, action: {
15
+ <S extends EntityState<Article, string> | {
16
+ ids: string[];
17
+ entities: {
18
+ [x: string]: {
19
+ uri: string;
20
+ title: string;
21
+ type: "article";
22
+ };
23
+ };
24
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entity: Article): S;
25
+ <S extends EntityState<Article, string> | {
26
+ ids: string[];
27
+ entities: {
28
+ [x: string]: {
29
+ uri: string;
30
+ title: string;
31
+ type: "article";
32
+ };
33
+ };
34
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, action: {
17
35
  payload: Article;
18
36
  type: string;
19
37
  }): S;
20
38
  };
21
39
  addMany: {
22
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: Record<string, Article> | readonly Article[]): S;
23
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: {
40
+ <S extends EntityState<Article, string> | {
41
+ ids: string[];
42
+ entities: {
43
+ [x: string]: {
44
+ uri: string;
45
+ title: string;
46
+ type: "article";
47
+ };
48
+ };
49
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: Record<string, Article> | readonly Article[]): S;
50
+ <S extends EntityState<Article, string> | {
51
+ ids: string[];
52
+ entities: {
53
+ [x: string]: {
54
+ uri: string;
55
+ title: string;
56
+ type: "article";
57
+ };
58
+ };
59
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: {
24
60
  payload: Record<string, Article> | readonly Article[];
25
61
  type: string;
26
62
  }): S;
27
63
  };
28
64
  setAll: {
29
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: Record<string, Article> | readonly Article[]): S;
30
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: {
65
+ <S extends EntityState<Article, string> | {
66
+ ids: string[];
67
+ entities: {
68
+ [x: string]: {
69
+ uri: string;
70
+ title: string;
71
+ type: "article";
72
+ };
73
+ };
74
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: Record<string, Article> | readonly Article[]): S;
75
+ <S extends EntityState<Article, string> | {
76
+ ids: string[];
77
+ entities: {
78
+ [x: string]: {
79
+ uri: string;
80
+ title: string;
81
+ type: "article";
82
+ };
83
+ };
84
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: {
31
85
  payload: Record<string, Article> | readonly Article[];
32
86
  type: string;
33
87
  }): S;
@@ -37,22 +91,76 @@ export declare const articlesSelector: import("@reduxjs/toolkit").EntitySelector
37
91
  export type ArticleSelectorType = typeof articlesSelector;
38
92
  export declare const articleActions: import("@reduxjs/toolkit").CaseReducerActions<{
39
93
  addOne: {
40
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entity: Article): S;
41
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, action: {
94
+ <S extends EntityState<Article, string> | {
95
+ ids: string[];
96
+ entities: {
97
+ [x: string]: {
98
+ uri: string;
99
+ title: string;
100
+ type: "article";
101
+ };
102
+ };
103
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entity: Article): S;
104
+ <S extends EntityState<Article, string> | {
105
+ ids: string[];
106
+ entities: {
107
+ [x: string]: {
108
+ uri: string;
109
+ title: string;
110
+ type: "article";
111
+ };
112
+ };
113
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, action: {
42
114
  payload: Article;
43
115
  type: string;
44
116
  }): S;
45
117
  };
46
118
  addMany: {
47
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: Record<string, Article> | readonly Article[]): S;
48
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: {
119
+ <S extends EntityState<Article, string> | {
120
+ ids: string[];
121
+ entities: {
122
+ [x: string]: {
123
+ uri: string;
124
+ title: string;
125
+ type: "article";
126
+ };
127
+ };
128
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: Record<string, Article> | readonly Article[]): S;
129
+ <S extends EntityState<Article, string> | {
130
+ ids: string[];
131
+ entities: {
132
+ [x: string]: {
133
+ uri: string;
134
+ title: string;
135
+ type: "article";
136
+ };
137
+ };
138
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: {
49
139
  payload: Record<string, Article> | readonly Article[];
50
140
  type: string;
51
141
  }): S;
52
142
  };
53
143
  setAll: {
54
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: Record<string, Article> | readonly Article[]): S;
55
- <S extends EntityState<Article, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<Article, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: {
144
+ <S extends EntityState<Article, string> | {
145
+ ids: string[];
146
+ entities: {
147
+ [x: string]: {
148
+ uri: string;
149
+ title: string;
150
+ type: "article";
151
+ };
152
+ };
153
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: Record<string, Article> | readonly Article[]): S;
154
+ <S extends EntityState<Article, string> | {
155
+ ids: string[];
156
+ entities: {
157
+ [x: string]: {
158
+ uri: string;
159
+ title: string;
160
+ type: "article";
161
+ };
162
+ };
163
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<Article, string> : S, entities: {
56
164
  payload: Record<string, Article> | readonly Article[];
57
165
  type: string;
58
166
  }): S;
@@ -12,22 +12,76 @@ export type UsersRootState = {
12
12
  export declare const userAdapter: import("@reduxjs/toolkit").EntityAdapter<User, string>;
13
13
  export declare const userSlice: import("@reduxjs/toolkit").Slice<EntityState<User, string>, {
14
14
  addOne: {
15
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entity: User): S;
16
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, action: {
15
+ <S extends EntityState<User, string> | {
16
+ ids: string[];
17
+ entities: {
18
+ [x: string]: {
19
+ uri: string;
20
+ title: string;
21
+ type: "user";
22
+ };
23
+ };
24
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entity: User): S;
25
+ <S extends EntityState<User, string> | {
26
+ ids: string[];
27
+ entities: {
28
+ [x: string]: {
29
+ uri: string;
30
+ title: string;
31
+ type: "user";
32
+ };
33
+ };
34
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, action: {
17
35
  payload: User;
18
36
  type: string;
19
37
  }): S;
20
38
  };
21
39
  addMany: {
22
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: Record<string, User> | readonly User[]): S;
23
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: {
40
+ <S extends EntityState<User, string> | {
41
+ ids: string[];
42
+ entities: {
43
+ [x: string]: {
44
+ uri: string;
45
+ title: string;
46
+ type: "user";
47
+ };
48
+ };
49
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: Record<string, User> | readonly User[]): S;
50
+ <S extends EntityState<User, string> | {
51
+ ids: string[];
52
+ entities: {
53
+ [x: string]: {
54
+ uri: string;
55
+ title: string;
56
+ type: "user";
57
+ };
58
+ };
59
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: {
24
60
  payload: Record<string, User> | readonly User[];
25
61
  type: string;
26
62
  }): S;
27
63
  };
28
64
  setAll: {
29
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: Record<string, User> | readonly User[]): S;
30
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: {
65
+ <S extends EntityState<User, string> | {
66
+ ids: string[];
67
+ entities: {
68
+ [x: string]: {
69
+ uri: string;
70
+ title: string;
71
+ type: "user";
72
+ };
73
+ };
74
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: Record<string, User> | readonly User[]): S;
75
+ <S extends EntityState<User, string> | {
76
+ ids: string[];
77
+ entities: {
78
+ [x: string]: {
79
+ uri: string;
80
+ title: string;
81
+ type: "user";
82
+ };
83
+ };
84
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: {
31
85
  payload: Record<string, User> | readonly User[];
32
86
  type: string;
33
87
  }): S;
@@ -37,22 +91,76 @@ export declare const usersSelector: import("@reduxjs/toolkit").EntitySelectors<U
37
91
  export type UsersSelectorType = typeof usersSelector;
38
92
  export declare const userActions: import("@reduxjs/toolkit").CaseReducerActions<{
39
93
  addOne: {
40
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entity: User): S;
41
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, action: {
94
+ <S extends EntityState<User, string> | {
95
+ ids: string[];
96
+ entities: {
97
+ [x: string]: {
98
+ uri: string;
99
+ title: string;
100
+ type: "user";
101
+ };
102
+ };
103
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entity: User): S;
104
+ <S extends EntityState<User, string> | {
105
+ ids: string[];
106
+ entities: {
107
+ [x: string]: {
108
+ uri: string;
109
+ title: string;
110
+ type: "user";
111
+ };
112
+ };
113
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, action: {
42
114
  payload: User;
43
115
  type: string;
44
116
  }): S;
45
117
  };
46
118
  addMany: {
47
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: Record<string, User> | readonly User[]): S;
48
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: {
119
+ <S extends EntityState<User, string> | {
120
+ ids: string[];
121
+ entities: {
122
+ [x: string]: {
123
+ uri: string;
124
+ title: string;
125
+ type: "user";
126
+ };
127
+ };
128
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: Record<string, User> | readonly User[]): S;
129
+ <S extends EntityState<User, string> | {
130
+ ids: string[];
131
+ entities: {
132
+ [x: string]: {
133
+ uri: string;
134
+ title: string;
135
+ type: "user";
136
+ };
137
+ };
138
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: {
49
139
  payload: Record<string, User> | readonly User[];
50
140
  type: string;
51
141
  }): S;
52
142
  };
53
143
  setAll: {
54
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: Record<string, User> | readonly User[]): S;
55
- <S extends EntityState<User, string> | import("@reduxjs/toolkit").WritableDraft<EntityState<User, string>>>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: {
144
+ <S extends EntityState<User, string> | {
145
+ ids: string[];
146
+ entities: {
147
+ [x: string]: {
148
+ uri: string;
149
+ title: string;
150
+ type: "user";
151
+ };
152
+ };
153
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: Record<string, User> | readonly User[]): S;
154
+ <S extends EntityState<User, string> | {
155
+ ids: string[];
156
+ entities: {
157
+ [x: string]: {
158
+ uri: string;
159
+ title: string;
160
+ type: "user";
161
+ };
162
+ };
163
+ }>(state: boolean extends (S extends never ? true : false) ? EntityState<User, string> : S, entities: {
56
164
  payload: Record<string, User> | readonly User[];
57
165
  type: string;
58
166
  }): S;
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.3.44",
3
+ "version": "1.3.45",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/src/App.d.ts",
7
7
  "type": "module",
8
8
  "peerDependencies": {
9
- "@reduxjs/toolkit": "^2.10.1",
10
- "@types/react": "^19.2.6",
9
+ "@reduxjs/toolkit": "^2.11.2",
10
+ "@types/react": "^19.2.9",
11
11
  "@types/react-dom": "^19.2.3",
12
- "react": "^19.2.0",
12
+ "react": "^19.2.3",
13
13
  "react-dnd": "^14.0.5",
14
14
  "react-dnd-html5-backend": "^14.1.0",
15
- "react-dom": "^19.2.0",
16
- "react-hook-form": "^7.66.1",
15
+ "react-dom": "^19.2.3",
16
+ "react-hook-form": "^7.71.1",
17
17
  "react-intl": "^7.1.14",
18
18
  "react-redux": "^9.2.0",
19
- "react-router-dom": "^6.30.2",
20
- "styled-components": "^6.1.19"
19
+ "react-router-dom": "^6.30.3",
20
+ "styled-components": "^6.3.8"
21
21
  },
22
22
  "devDependencies": {
23
- "@eslint/js": "^9.39.1",
24
- "@reduxjs/toolkit": "^2.10.1",
23
+ "@eslint/js": "^9.39.2",
24
+ "@reduxjs/toolkit": "^2.11.2",
25
25
  "@types/jest": "^30.0.0",
26
- "@types/node": "^24.10.1",
27
- "@types/react": "^19.2.6",
26
+ "@types/node": "^24.10.9",
27
+ "@types/react": "^19.2.9",
28
28
  "@types/react-dom": "^19.2.3",
29
29
  "@types/uuid": "^10.0.0",
30
30
  "copy-webpack-plugin": "^6.4.1",
31
31
  "date-fns": "^4.1.0",
32
- "eslint": "^9.39.1",
32
+ "eslint": "^9.39.2",
33
33
  "eslint-config-prettier": "^10.1.8",
34
34
  "eslint-import-resolver-typescript": "^4.4.4",
35
35
  "eslint-plugin-import": "^2.32.0",
@@ -38,33 +38,33 @@
38
38
  "fork-ts-checker-webpack-plugin": "^9.1.0",
39
39
  "history": "^5.3.0",
40
40
  "husky": "^9.1.7",
41
- "jamespot-front-business": "^1.3.44",
42
- "jamespot-react-components": "^1.3.44",
43
- "jamespot-user-api": "^1.3.44",
41
+ "jamespot-front-business": "^1.3.45",
42
+ "jamespot-react-components": "^1.3.45",
43
+ "jamespot-user-api": "^1.3.45",
44
44
  "jest": "^30.2.0",
45
45
  "jest-environment-jsdom": "^30.2.0",
46
- "knip": "^5.70.0",
47
- "lint-staged": "^16.2.6",
46
+ "knip": "^5.82.1",
47
+ "lint-staged": "^16.2.7",
48
48
  "marked": "^16.4.2",
49
- "prettier": "^3.6.2",
50
- "react": "^19.2.0",
49
+ "prettier": "^3.8.1",
50
+ "react": "^19.2.3",
51
51
  "react-dnd": "^14.0.5",
52
52
  "react-dnd-html5-backend": "^14.1.0",
53
- "react-dom": "^19.2.0",
54
- "react-hook-form": "^7.66.1",
53
+ "react-dom": "^19.2.3",
54
+ "react-hook-form": "^7.71.1",
55
55
  "react-intl": "^7.1.14",
56
56
  "react-redux": "^9.2.0",
57
- "react-router-dom": "^6.30.2",
58
- "socket.io-client": "^4.8.1",
57
+ "react-router-dom": "^6.30.3",
58
+ "socket.io-client": "^4.8.3",
59
59
  "source-map-loader": "^5.0.0",
60
- "styled-components": "^6.1.19",
61
- "ts-jest": "^29.4.5",
60
+ "styled-components": "^6.3.8",
61
+ "ts-jest": "^29.4.6",
62
62
  "ts-loader": "^9.5.4",
63
63
  "ts-node": "^10.9.2",
64
64
  "typescript": "^5.9.3",
65
- "typescript-eslint": "^8.47.0",
65
+ "typescript-eslint": "^8.53.1",
66
66
  "uuid": "^10.0.0",
67
- "webpack": "^5.103.0",
67
+ "webpack": "^5.104.1",
68
68
  "webpack-cli": "^4.10.0",
69
69
  "webpack-dev-server": "^4.15.2",
70
70
  "worker-loader": "^3.0.8"
@@ -82,6 +82,10 @@
82
82
  "node": ">=24.10.0 <25.0.0",
83
83
  "pnpm": ">=10.20.0 <11"
84
84
  },
85
+ "dependencies": {
86
+ "debug": "^4.4.3",
87
+ "tslib": "^2.8.1"
88
+ },
85
89
  "scripts": {
86
90
  "dev": "webpack --env NODE_ENV=development",
87
91
  "local": "webpack s --env NODE_ENV=development",
@@ -1,2 +0,0 @@
1
- (()=>{"use strict";var t={d:(e,s)=>{for(var n in s)t.o(s,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:s[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{Decoder:()=>ft,Encoder:()=>lt,PacketType:()=>ut,protocol:()=>pt});const s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";const n=Object.create(null);Object.keys(s).forEach(t=>{n[s[t]]=t});const r={type:"error",data:"parser error"},i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),o="function"==typeof ArrayBuffer,a=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,c=({type:t,data:e},n,r)=>i&&e instanceof Blob?n?r(e):h(e,r):o&&(e instanceof ArrayBuffer||a(e))?n?r(e):h(new Blob([e]),r):r(s[t]+(e||"")),h=(t,e)=>{const s=new FileReader;return s.onload=function(){const t=s.result.split(",")[1];e("b"+(t||""))},s.readAsDataURL(t)};function p(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let u;const l="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t<64;t++)l["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(t)]=t;const d="function"==typeof ArrayBuffer,f=(t,e)=>{if("string"!=typeof t)return{type:"message",data:g(t,e)};const s=t.charAt(0);return"b"===s?{type:"message",data:y(t.substring(1),e)}:n[s]?t.length>1?{type:n[s],data:t.substring(1)}:{type:n[s]}:r},y=(t,e)=>{if(d){const s=(t=>{let e,s,n,r,i,o=.75*t.length,a=t.length,c=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);const h=new ArrayBuffer(o),p=new Uint8Array(h);for(e=0;e<a;e+=4)s=l[t.charCodeAt(e)],n=l[t.charCodeAt(e+1)],r=l[t.charCodeAt(e+2)],i=l[t.charCodeAt(e+3)],p[c++]=s<<2|n>>4,p[c++]=(15&n)<<4|r>>2,p[c++]=(3&r)<<6|63&i;return h})(t);return g(s,e)}return{base64:!0,data:t}},g=(t,e)=>"blob"===e?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer,m=String.fromCharCode(30);let _;function b(t){return t.reduce((t,e)=>t+e.length,0)}function v(t,e){if(t[0].length===e)return t.shift();const s=new Uint8Array(e);let n=0;for(let r=0;r<e;r++)s[r]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),s}function w(t){if(t)return function(t){for(var e in w.prototype)t[e]=w.prototype[e];return t}(t)}w.prototype.on=w.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},w.prototype.once=function(t,e){function s(){this.off(t,s),e.apply(this,arguments)}return s.fn=e,this.on(t,s),this},w.prototype.off=w.prototype.removeListener=w.prototype.removeAllListeners=w.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r=0;r<n.length;r++)if((s=n[r])===e||s.fn===e){n.splice(r,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},w.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),s=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(s){n=0;for(var r=(s=s.slice(0)).length;n<r;++n)s[n].apply(this,e)}return this},w.prototype.emitReserved=w.prototype.emit,w.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},w.prototype.hasListeners=function(t){return!!this.listeners(t).length};const k="function"==typeof Promise&&"function"==typeof Promise.resolve?t=>Promise.resolve().then(t):(t,e)=>e(t,0),E="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function A(t,...e){return e.reduce((e,s)=>(t.hasOwnProperty(s)&&(e[s]=t[s]),e),{})}const T=E.setTimeout,O=E.clearTimeout;function R(t,e){e.useNativeTimers?(t.setTimeoutFn=T.bind(E),t.clearTimeoutFn=O.bind(E)):(t.setTimeoutFn=E.setTimeout.bind(E),t.clearTimeoutFn=E.clearTimeout.bind(E))}function C(t){return"string"==typeof t?function(t){let e=0,s=0;for(let n=0,r=t.length;n<r;n++)e=t.charCodeAt(n),e<128?s+=1:e<2048?s+=2:e<55296||e>=57344?s+=3:(n++,s+=4);return s}(t):Math.ceil(1.33*(t.byteLength||t.size))}function B(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class S extends Error{constructor(t,e,s){super(t),this.description=e,this.context=s,this.type="TransportError"}}class x extends w{constructor(t){super(),this.writable=!1,R(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,e,s){return super.emitReserved("error",new S(t,e,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const e=f(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){const t=this.opts.hostname;return-1===t.indexOf(":")?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(t){const e=function(t){let e="";for(let s in t)t.hasOwnProperty(s)&&(e.length&&(e+="&"),e+=encodeURIComponent(s)+"="+encodeURIComponent(t[s]));return e}(t);return e.length?"?"+e:""}}class N extends x{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const e=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let t=0;this._polling&&(t++,this.once("pollComplete",function(){--t||e()})),this.writable||(t++,this.once("drain",function(){--t||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){((t,e)=>{const s=t.split(m),n=[];for(let t=0;t<s.length;t++){const r=f(s[t],e);if(n.push(r),"error"===r.type)break}return n})(t,this.socket.binaryType).forEach(t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,((t,e)=>{const s=t.length,n=new Array(s);let r=0;t.forEach((t,i)=>{c(t,!1,t=>{n[i]=t,++r===s&&e(n.join(m))})})})(t,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=B()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}}let L=!1;try{L="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}const q=L;function P(){}class j extends N{constructor(t){if(super(t),"undefined"!=typeof location){const e="https:"===location.protocol;let s=location.port;s||(s=e?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||s!==t.port}}doWrite(t,e){const s=this.request({method:"POST",data:t});s.on("success",e),s.on("error",(t,e)=>{this.onError("xhr post error",t,e)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=t}}class U extends w{constructor(t,e,s){super(),this.createRequest=t,R(this,s),this._opts=s,this._method=s.method||"GET",this._uri=e,this._data=void 0!==s.data?s.data:null,this._create()}_create(){var t;const e=A(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(e);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let t in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(t)&&s.setRequestHeader(t,this._opts.extraHeaders[t])}}catch(t){}if("POST"===this._method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{s.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this._opts.cookieJar)||void 0===t||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var t;3===s.readyState&&(null===(t=this._opts.cookieJar)||void 0===t||t.parseCookies(s.getResponseHeader("set-cookie"))),4===s.readyState&&(200===s.status||1223===s.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof s.status?s.status:0)},0))},s.send(this._data)}catch(t){return void this.setTimeoutFn(()=>{this._onError(t)},0)}"undefined"!=typeof document&&(this._index=U.requestsCount++,U.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=P,t)try{this._xhr.abort()}catch(t){}"undefined"!=typeof document&&delete U.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function D(){for(let t in U.requests)U.requests.hasOwnProperty(t)&&U.requests[t].abort()}U.requestsCount=0,U.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",D):"function"==typeof addEventListener&&addEventListener("onpagehide"in E?"pagehide":"unload",D,!1));const I=function(){const t=F({xdomain:!1});return t&&null!==t.responseType}();function F(t){const e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||q))return new XMLHttpRequest}catch(t){}if(!e)try{return new(E[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}const M="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class V extends x{get name(){return"websocket"}doOpen(){const t=this.uri(),e=this.opts.protocols,s=M?{}:A(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,e,s)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e<t.length;e++){const s=t[e],n=e===t.length-1;c(s,this.supportsBinary,t=>{try{this.doWrite(s,t)}catch(t){}n&&k(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=B()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}}const H=E.WebSocket||E.MozWebSocket,K={websocket:class extends V{createSocket(t,e,s){return M?new H(t,e,s):e?new H(t,e):new H(t)}doWrite(t,e){this.ws.send(e)}},webtransport:class extends x{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const e=function(t,e){_||(_=new TextDecoder);const s=[];let n=0,i=-1,o=!1;return new TransformStream({transform(a,c){for(s.push(a);;){if(0===n){if(b(s)<1)break;const t=v(s,1);o=!(128&~t[0]),i=127&t[0],n=i<126?3:126===i?1:2}else if(1===n){if(b(s)<2)break;const t=v(s,2);i=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),n=3}else if(2===n){if(b(s)<8)break;const t=v(s,8),e=new DataView(t.buffer,t.byteOffset,t.length),o=e.getUint32(0);if(o>Math.pow(2,21)-1){c.enqueue(r);break}i=o*Math.pow(2,32)+e.getUint32(4),n=3}else{if(b(s)<i)break;const t=v(s,i);c.enqueue(f(o?t:_.decode(t),e)),n=0}if(0===i||i>t){c.enqueue(r);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(e).getReader(),n=new TransformStream({transform(t,e){!function(t,e){i&&t.data instanceof Blob?t.data.arrayBuffer().then(p).then(e):o&&(t.data instanceof ArrayBuffer||a(t.data))?e(p(t.data)):c(t,!1,t=>{u||(u=new TextEncoder),e(u.encode(t))})}(t,s=>{const n=s.length;let r;if(n<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,n);else if(n<65536){r=new Uint8Array(3);const t=new DataView(r.buffer);t.setUint8(0,126),t.setUint16(1,n)}else{r=new Uint8Array(9);const t=new DataView(r.buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(n))}t.data&&"string"!=typeof t.data&&(r[0]|=128),e.enqueue(r),e.enqueue(s)})}});n.readable.pipeTo(t.writable),this._writer=n.writable.getWriter();const h=()=>{s.read().then(({done:t,value:e})=>{t||(this.onPacket(e),h())}).catch(t=>{})};h();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let e=0;e<t.length;e++){const s=t[e],n=e===t.length-1;this._writer.write(s).then(()=>{n&&k(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;null===(t=this._transport)||void 0===t||t.close()}},polling:class extends j{constructor(t){super(t);const e=t&&t.forceBase64;this.supportsBinary=I&&!e}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new U(F,this.uri(),t)}}},W=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Y=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function z(t){if(t.length>8e3)throw"URI too long";const e=t,s=t.indexOf("["),n=t.indexOf("]");-1!=s&&-1!=n&&(t=t.substring(0,s)+t.substring(s,n).replace(/:/g,";")+t.substring(n,t.length));let r=W.exec(t||""),i={},o=14;for(;o--;)i[Y[o]]=r[o]||"";return-1!=s&&-1!=n&&(i.source=e,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(t,e){const s=e.replace(/\/{2,9}/g,"/").split("/");return"/"!=e.slice(0,1)&&0!==e.length||s.splice(0,1),"/"==e.slice(-1)&&s.splice(s.length-1,1),s}(0,i.path),i.queryKey=function(t,e){const s={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,e,n){e&&(s[e]=n)}),s}(0,i.query),i}const J="function"==typeof addEventListener&&"function"==typeof removeEventListener,$=[];J&&addEventListener("offline",()=>{$.forEach(t=>t())},!1);class Q extends w{constructor(t,e){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&"object"==typeof t&&(e=t,t=null),t){const s=z(t);e.hostname=s.host,e.secure="https"===s.protocol||"wss"===s.protocol,e.port=s.port,s.query&&(e.query=s.query)}else e.host&&(e.hostname=z(e.host).host);R(this,e),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(t=>{const e=t.prototype.name;this.transports.push(e),this._transportsByName[e]=t}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(t){let e={},s=t.split("&");for(let t=0,n=s.length;t<n;t++){let n=s[t].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}(this.opts.query)),J&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},$.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const e=Object.assign({},this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);const s=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](s)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);const t=this.opts.rememberUpgrade&&Q.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const e=this.createTransport(t);e.open(),this.setTransport(e)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",Q.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const e=new Error("server error");e.code=t.data,this._onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){const s=this.writeBuffer[e].data;if(s&&(t+=C(s)),e>0&&t>this._maxPayload)return this.writeBuffer.slice(0,e);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,k(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,e,s){return this._sendPacket("message",t,e,s),this}send(t,e,s){return this._sendPacket("message",t,e,s),this}_sendPacket(t,e,s,n){if("function"==typeof e&&(n=e,e=void 0),"function"==typeof s&&(n=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;(s=s||{}).compress=!1!==s.compress;const r={type:t,data:e,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),n&&this.once("flush",n),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},s=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():t()}):this.upgrading?s():t()),this}_onError(t){if(Q.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),J&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const t=$.indexOf(this._offlineEventListener);-1!==t&&$.splice(t,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this._prevBufferLen=0}}}Q.protocol=4;class X extends Q{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let e=this.createTransport(t),s=!1;Q.priorWebsocketSuccess=!1;const n=()=>{s||(e.send([{type:"ping",data:"probe"}]),e.once("packet",t=>{if(!s)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;Q.priorWebsocketSuccess="websocket"===e.name,this.transport.pause(()=>{s||"closed"!==this.readyState&&(h(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{const t=new Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}}))};function r(){s||(s=!0,h(),e.close(),e=null)}const i=t=>{const s=new Error("probe error: "+t);s.transport=e.name,r(),this.emitReserved("upgradeError",s)};function o(){i("transport closed")}function a(){i("socket closed")}function c(t){e&&t.name!==e.name&&r()}const h=()=>{e.removeListener("open",n),e.removeListener("error",i),e.removeListener("close",o),this.off("close",a),this.off("upgrading",c)};e.once("open",n),e.once("error",i),e.once("close",o),this.once("close",a),this.once("upgrading",c),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn(()=>{s||e.open()},200):e.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const e=[];for(let s=0;s<t.length;s++)~this.transports.indexOf(t[s])&&e.push(t[s]);return e}}class G extends X{constructor(t,e={}){const s="object"==typeof t?t:e;(!s.transports||s.transports&&"string"==typeof s.transports[0])&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(t=>K[t]).filter(t=>!!t)),super(t,s)}}const Z="function"==typeof ArrayBuffer,tt=Object.prototype.toString,et="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===tt.call(Blob),st="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===tt.call(File);function nt(t){return Z&&(t instanceof ArrayBuffer||(t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer)(t))||et&&t instanceof Blob||st&&t instanceof File}function rt(t,e){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let e=0,s=t.length;e<s;e++)if(rt(t[e]))return!0;return!1}if(nt(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return rt(t.toJSON(),!0);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&rt(t[e]))return!0;return!1}function it(t){const e=[],s=t.data,n=t;return n.data=ot(s,e),n.attachments=e.length,{packet:n,buffers:e}}function ot(t,e){if(!t)return t;if(nt(t)){const s={_placeholder:!0,num:e.length};return e.push(t),s}if(Array.isArray(t)){const s=new Array(t.length);for(let n=0;n<t.length;n++)s[n]=ot(t[n],e);return s}if("object"==typeof t&&!(t instanceof Date)){const s={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(s[n]=ot(t[n],e));return s}return t}function at(t,e){return t.data=ct(t.data,e),delete t.attachments,t}function ct(t,e){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(let s=0;s<t.length;s++)t[s]=ct(t[s],e);else if("object"==typeof t)for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(t[s]=ct(t[s],e));return t}const ht=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],pt=5;var ut;!function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"}(ut||(ut={}));class lt{constructor(t){this.replacer=t}encode(t){return t.type!==ut.EVENT&&t.type!==ut.ACK||!rt(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===ut.EVENT?ut.BINARY_EVENT:ut.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let e=""+t.type;return t.type!==ut.BINARY_EVENT&&t.type!==ut.BINARY_ACK||(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){const e=it(t),s=this.encodeAsString(e.packet),n=e.buffers;return n.unshift(s),n}}function dt(t){return"[object Object]"===Object.prototype.toString.call(t)}class ft extends w{constructor(t){super(),this.reviver=t}add(t){let e;if("string"==typeof t){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(t);const s=e.type===ut.BINARY_EVENT;s||e.type===ut.BINARY_ACK?(e.type=s?ut.EVENT:ut.ACK,this.reconstructor=new yt(e),0===e.attachments&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else{if(!nt(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");e=this.reconstructor.takeBinaryData(t),e&&(this.reconstructor=null,super.emitReserved("decoded",e))}}decodeString(t){let e=0;const s={type:Number(t.charAt(0))};if(void 0===ut[s.type])throw new Error("unknown packet type "+s.type);if(s.type===ut.BINARY_EVENT||s.type===ut.BINARY_ACK){const n=e+1;for(;"-"!==t.charAt(++e)&&e!=t.length;);const r=t.substring(n,e);if(r!=Number(r)||"-"!==t.charAt(e))throw new Error("Illegal attachments");s.attachments=Number(r)}if("/"===t.charAt(e+1)){const n=e+1;for(;++e&&","!==t.charAt(e)&&e!==t.length;);s.nsp=t.substring(n,e)}else s.nsp="/";const n=t.charAt(e+1);if(""!==n&&Number(n)==n){const n=e+1;for(;++e;){const s=t.charAt(e);if(null==s||Number(s)!=s){--e;break}if(e===t.length)break}s.id=Number(t.substring(n,e+1))}if(t.charAt(++e)){const n=this.tryParse(t.substr(e));if(!ft.isPayloadValid(s.type,n))throw new Error("invalid payload");s.data=n}return s}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(t){return!1}}static isPayloadValid(t,e){switch(t){case ut.CONNECT:return dt(e);case ut.DISCONNECT:return void 0===e;case ut.CONNECT_ERROR:return"string"==typeof e||dt(e);case ut.EVENT:case ut.BINARY_EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===ht.indexOf(e[0]));case ut.ACK:case ut.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class yt{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const t=at(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function gt(t,e,s){return t.on(e,s),function(){t.off(e,s)}}const mt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class _t extends w{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[gt(t,"open",this.onopen.bind(this)),gt(t,"packet",this.onpacket.bind(this)),gt(t,"error",this.onerror.bind(this)),gt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var s,n,r;if(mt.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const i={type:ut.EVENT,data:e,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){const t=this.ids++,s=e.pop();this._registerAckCallback(t,s),i.id=t}const o=null===(n=null===(s=this.io.engine)||void 0===s?void 0:s.transport)||void 0===n?void 0:n.writable,a=this.connected&&!(null===(r=this.io.engine)||void 0===r?void 0:r._hasPingExpired());return this.flags.volatile&&!o||(a?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,e){var s;const n=null!==(s=this.flags.timeout)&&void 0!==s?s:this._opts.ackTimeout;if(void 0===n)return void(this.acks[t]=e);const r=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,new Error("operation has timed out"))},n),i=(...t)=>{this.io.clearTimeoutFn(r),e.apply(this,t)};i.withError=!0,this.acks[t]=i}emitWithAck(t,...e){return new Promise((s,n)=>{const r=(t,e)=>t?n(t):s(e);r.withError=!0,e.push(r),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...n)=>{if(s===this._queue[0])return null!==t?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...n)),s.pending=!1,this._drainQueue()}),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:ut.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){const e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case ut.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ut.EVENT:case ut.BINARY_EVENT:this.onevent(t);break;case ut.ACK:case ut.BINARY_ACK:this.onack(t);break;case ut.DISCONNECT:this.ondisconnect();break;case ut.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){const e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...n){s||(s=!0,e.packet({type:ut.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];"function"==typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ut.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const s of e)s.apply(this,t.data)}}}function bt(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}bt.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),s=Math.floor(e*this.jitter*t);t=1&Math.floor(10*e)?t+s:t-s}return 0|Math.min(t,this.max)},bt.prototype.reset=function(){this.attempts=0},bt.prototype.setMin=function(t){this.ms=t},bt.prototype.setMax=function(t){this.max=t},bt.prototype.setJitter=function(t){this.jitter=t};class vt extends w{constructor(t,s){var n;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(s=t,t=void 0),(s=s||{}).path=s.path||"/socket.io",this.opts=s,R(this,s),this.reconnection(!1!==s.reconnection),this.reconnectionAttempts(s.reconnectionAttempts||1/0),this.reconnectionDelay(s.reconnectionDelay||1e3),this.reconnectionDelayMax(s.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=s.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new bt({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==s.timeout?2e4:s.timeout),this._readyState="closed",this.uri=t;const r=s.parser||e;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==s.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new G(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=gt(e,"open",function(){s.onopen(),t&&t()}),r=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},i=gt(e,"error",r);if(!1!==this._timeout){const t=this._timeout,s=this.setTimeoutFn(()=>{n(),r(new Error("timeout")),e.close()},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}return this.subs.push(n),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(gt(t,"ping",this.onping.bind(this)),gt(t,"data",this.ondata.bind(this)),gt(t,"error",this.onerror.bind(this)),gt(t,"close",this.onclose.bind(this)),gt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){k(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new _t(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const t of e)if(this.nsps[t].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),null===(s=this.engine)||void 0===s||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const wt={};function kt(t,e){"object"==typeof t&&(e=t,t=void 0);const s=function(t,e="",s){let n=t;s=s||"undefined"!=typeof location&&location,null==t&&(t=s.protocol+"//"+s.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?s.protocol+t:s.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==s?s.protocol+"//"+t:"https://"+t),n=z(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const r=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+r+":"+n.port+e,n.href=n.protocol+"://"+r+(s&&s.port===n.port?"":":"+n.port),n}(t,(e=e||{}).path||"/socket.io"),n=s.source,r=s.id,i=s.path,o=wt[r]&&i in wt[r].nsps;let a;return e.forceNew||e["force new connection"]||!1===e.multiplex||o?a=new vt(n,e):(wt[r]||(wt[r]=new vt(n,e)),a=wt[r]),s.query&&!e.query&&(e.query=s.queryKey),a.socket(s.path,e)}Object.assign(kt,{Manager:vt,Socket:_t,io:kt,connect:kt});const Et=self,At={user:void 0,cache:{},ports:[],call:(t,e,s)=>{At.ports.forEach(n=>{const r={type:t,event:e,data:s};n.postMessage(r)})}},Tt=kt("wss://"+new URL(self.location.origin).host,{path:"/socket.io4",transports:["websocket"],upgrade:!1});Tt.io.on("error",t=>{At.call("socket","error",t.message)}),Tt.io.on("reconnect_error",t=>{At.call("socket","reconnect_error",t.message)}),Tt.io.on("reconnect_attempt",t=>{At.call("socket","reconnect_attempt",t)}),Tt.on("connect",()=>{At.call("socket","connect")}),Tt.on("disconnect",t=>{At.call("socket","disconnect",t)}),Tt.on("message",t=>{"ws"===t.namespace&&"presence"===t.function&&(At.cache.presence=t),At.call("socket","message",t)}),Et.addEventListener("connect",t=>{const e=t.ports[0];At.ports.push(e),e.onmessage=t=>{const s=t.data;switch(s.type){case"ping":e.postMessage("pong");break;case"presence":void 0!==At.cache.presence&&e.postMessage({type:"socket",event:"message",data:At.cache.presence});break;case"connection":At.user&&At.user.idUser!==s.data.idUser&&(Tt.disconnect(),Tt.connect()),At.user&&At.user?.idUser===s.data.idUser||(At.user=s.data)}},e.start()})})();
2
- //# sourceMappingURL=socket.sharedworker.6e975754295fd9584be6.js.map