@automattic/vip 4.1.4 → 4.1.6

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.
Files changed (1612) hide show
  1. package/assets/dev-env.lando.template.yml.ejs +6 -2
  2. package/config/config.local.json +6 -0
  3. package/dist/bin/vip-config-software-get.js +9 -0
  4. package/dist/bin/vip-wp.js +128 -39
  5. package/dist/lib/client-file-uploader.js +34 -5
  6. package/dist/lib/config/software.js +42 -2
  7. package/dist/lib/dev-environment/dev-environment-cli.js +8 -5
  8. package/dist/lib/dev-environment/dev-environment-core.js +1 -1
  9. package/helpers/generate-docs.js +9 -3
  10. package/node_modules/@apollo/client/CHANGELOG.md +38 -0
  11. package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs +1 -1
  12. package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs.map +1 -1
  13. package/node_modules/@apollo/client/__cjs/cache/core/cache.d.cts +4 -1
  14. package/node_modules/@apollo/client/__cjs/cache/core/types/Cache.d.cts +5 -0
  15. package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.cjs +4 -4
  16. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs +15 -5
  17. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
  18. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.d.cts +3 -1
  19. package/node_modules/@apollo/client/__cjs/cache/inmemory/key-extractor.cjs +1 -1
  20. package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs +5 -5
  21. package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs +28 -10
  22. package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
  23. package/node_modules/@apollo/client/__cjs/cache/inmemory/types.d.cts +7 -2
  24. package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs +29 -14
  25. package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
  26. package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.d.cts +5 -2
  27. package/node_modules/@apollo/client/__cjs/core/ApolloClient.cjs +14 -14
  28. package/node_modules/@apollo/client/__cjs/core/ObservableQuery.cjs +8 -8
  29. package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs +13 -32
  30. package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs.map +1 -1
  31. package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs +12 -12
  32. package/node_modules/@apollo/client/__cjs/core/RefetchEventManager.cjs +3 -3
  33. package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs +15 -2
  34. package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs.map +1 -1
  35. package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.d.cts +5 -1
  36. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs +58 -14
  37. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -1
  38. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.d.cts +23 -12
  39. package/node_modules/@apollo/client/__cjs/incremental/handlers/notImplemented.cjs +1 -1
  40. package/node_modules/@apollo/client/__cjs/incremental/types.d.cts +19 -1
  41. package/node_modules/@apollo/client/__cjs/invariantErrorCodes.cjs +64 -58
  42. package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
  43. package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -1
  44. package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.cjs +27 -1
  45. package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
  46. package/node_modules/@apollo/client/__cjs/utilities/internal/index.cjs.map +1 -1
  47. package/node_modules/@apollo/client/__cjs/utilities/internal/index.d.cts +0 -1
  48. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs +24 -26
  49. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs.map +1 -1
  50. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.d.cts +1 -1
  51. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs +24 -20
  52. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs.map +1 -1
  53. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.d.cts +1 -1
  54. package/node_modules/@apollo/client/__cjs/version.cjs +1 -1
  55. package/node_modules/@apollo/client/cache/core/cache.d.ts +4 -1
  56. package/node_modules/@apollo/client/cache/core/cache.js +1 -1
  57. package/node_modules/@apollo/client/cache/core/cache.js.map +1 -1
  58. package/node_modules/@apollo/client/cache/core/types/Cache.d.ts +5 -0
  59. package/node_modules/@apollo/client/cache/core/types/Cache.js.map +1 -1
  60. package/node_modules/@apollo/client/cache/inmemory/entityStore.js +4 -4
  61. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.d.ts +3 -1
  62. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js +15 -5
  63. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js.map +1 -1
  64. package/node_modules/@apollo/client/cache/inmemory/key-extractor.js +1 -1
  65. package/node_modules/@apollo/client/cache/inmemory/policies.js +5 -5
  66. package/node_modules/@apollo/client/cache/inmemory/readFromStore.js +28 -10
  67. package/node_modules/@apollo/client/cache/inmemory/readFromStore.js.map +1 -1
  68. package/node_modules/@apollo/client/cache/inmemory/types.d.ts +7 -2
  69. package/node_modules/@apollo/client/cache/inmemory/types.js.map +1 -1
  70. package/node_modules/@apollo/client/cache/inmemory/writeToStore.d.ts +5 -2
  71. package/node_modules/@apollo/client/cache/inmemory/writeToStore.js +30 -15
  72. package/node_modules/@apollo/client/cache/inmemory/writeToStore.js.map +1 -1
  73. package/node_modules/@apollo/client/core/ApolloClient.js +14 -14
  74. package/node_modules/@apollo/client/core/ObservableQuery.js +8 -8
  75. package/node_modules/@apollo/client/core/QueryInfo.js +14 -33
  76. package/node_modules/@apollo/client/core/QueryInfo.js.map +1 -1
  77. package/node_modules/@apollo/client/core/QueryManager.js +12 -12
  78. package/node_modules/@apollo/client/core/RefetchEventManager.js +3 -3
  79. package/node_modules/@apollo/client/incremental/handlers/defer20220824.d.ts +5 -1
  80. package/node_modules/@apollo/client/incremental/handlers/defer20220824.js +15 -2
  81. package/node_modules/@apollo/client/incremental/handlers/defer20220824.js.map +1 -1
  82. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.d.ts +23 -12
  83. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js +58 -14
  84. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js.map +1 -1
  85. package/node_modules/@apollo/client/incremental/handlers/notImplemented.js +1 -1
  86. package/node_modules/@apollo/client/incremental/types.d.ts +19 -1
  87. package/node_modules/@apollo/client/incremental/types.js.map +1 -1
  88. package/node_modules/@apollo/client/invariantErrorCodes.js +64 -58
  89. package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js +1 -1
  90. package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js.map +1 -1
  91. package/node_modules/@apollo/client/package.json +1 -1
  92. package/node_modules/@apollo/client/react/hooks/useLazyQuery.js +27 -1
  93. package/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -1
  94. package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.js +27 -1
  95. package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.js.map +1 -1
  96. package/node_modules/@apollo/client/utilities/internal/index.d.ts +0 -1
  97. package/node_modules/@apollo/client/utilities/internal/index.js.map +1 -1
  98. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.d.ts +1 -1
  99. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js +23 -25
  100. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js.map +1 -1
  101. package/node_modules/@apollo/client/utilities/internal/isStreamField.d.ts +1 -1
  102. package/node_modules/@apollo/client/utilities/internal/isStreamField.js +23 -19
  103. package/node_modules/@apollo/client/utilities/internal/isStreamField.js.map +1 -1
  104. package/node_modules/@apollo/client/version.js +1 -1
  105. package/node_modules/@types/node/README.md +2 -2
  106. package/node_modules/@types/node/child_process.d.ts +1 -1
  107. package/node_modules/@types/node/crypto.d.ts +22 -10
  108. package/node_modules/@types/node/dgram.d.ts +1 -1
  109. package/node_modules/@types/node/ffi.d.ts +14 -0
  110. package/node_modules/@types/node/http2.d.ts +3 -2
  111. package/node_modules/@types/node/net.d.ts +16 -4
  112. package/node_modules/@types/node/package.json +2 -17
  113. package/node_modules/@types/node/process.d.ts +1 -0
  114. package/node_modules/@types/node/quic.d.ts +39 -1
  115. package/node_modules/@types/node/stream/iter.d.ts +9 -12
  116. package/node_modules/@types/node/test/reporters.d.ts +1 -0
  117. package/node_modules/@types/node/test.d.ts +72 -0
  118. package/node_modules/@types/node/tls.d.ts +14 -10
  119. package/node_modules/@types/node/util.d.ts +6 -3
  120. package/node_modules/@types/node/vm.d.ts +2 -1
  121. package/node_modules/@types/node/worker_threads.d.ts +4 -1
  122. package/node_modules/@types/node/zlib.d.ts +6 -0
  123. package/node_modules/axios/CHANGELOG.md +62 -0
  124. package/node_modules/axios/README.md +297 -5
  125. package/node_modules/axios/dist/axios.js +728 -170
  126. package/node_modules/axios/dist/axios.min.js +3 -3
  127. package/node_modules/axios/dist/axios.min.js.map +1 -1
  128. package/node_modules/axios/dist/browser/axios.cjs +871 -188
  129. package/node_modules/axios/dist/esm/axios.js +871 -188
  130. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  131. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  132. package/node_modules/axios/dist/node/axios.cjs +1037 -225
  133. package/node_modules/axios/index.d.cts +102 -74
  134. package/node_modules/axios/index.d.ts +100 -68
  135. package/node_modules/axios/lib/adapters/fetch.js +64 -11
  136. package/node_modules/axios/lib/adapters/http.js +140 -67
  137. package/node_modules/axios/lib/adapters/xhr.js +52 -3
  138. package/node_modules/axios/lib/core/Axios.js +43 -20
  139. package/node_modules/axios/lib/core/AxiosError.js +33 -2
  140. package/node_modules/axios/lib/core/AxiosHeaders.js +124 -1
  141. package/node_modules/axios/lib/core/InterceptorManager.js +107 -8
  142. package/node_modules/axios/lib/core/buildFullPath.js +41 -15
  143. package/node_modules/axios/lib/core/dispatchRequest.js +8 -2
  144. package/node_modules/axios/lib/core/mergeConfig.js +19 -4
  145. package/node_modules/axios/lib/core/methodList.js +17 -0
  146. package/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
  147. package/node_modules/axios/lib/defaults/index.js +2 -1
  148. package/node_modules/axios/lib/env/data.js +1 -1
  149. package/node_modules/axios/lib/helpers/Http2Sessions.js +2 -0
  150. package/node_modules/axios/lib/helpers/HttpStatusCode.js +12 -1
  151. package/node_modules/axios/lib/helpers/combineURLs.js +11 -3
  152. package/node_modules/axios/lib/helpers/composeSignals.js +12 -1
  153. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +115 -54
  154. package/node_modules/axios/lib/helpers/formDataToJSON.js +11 -5
  155. package/node_modules/axios/lib/helpers/fromDataURI.js +5 -4
  156. package/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  157. package/node_modules/axios/lib/helpers/parseHeaders.js +5 -3
  158. package/node_modules/axios/lib/helpers/progressEventReducer.js +4 -4
  159. package/node_modules/axios/lib/helpers/resolveConfig.js +5 -17
  160. package/node_modules/axios/lib/helpers/shouldBypassProxy.js +300 -5
  161. package/node_modules/axios/lib/helpers/throttle.js +3 -2
  162. package/node_modules/axios/lib/helpers/toFormData.js +17 -23
  163. package/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
  164. package/node_modules/axios/lib/utils.js +151 -18
  165. package/node_modules/axios/package.json +21 -19
  166. package/node_modules/chalk/package.json +1 -1
  167. package/node_modules/chalk/source/index.js +2 -1
  168. package/node_modules/cpu-features/build/config.gypi +2 -2
  169. package/node_modules/ejs/README.md +64 -28
  170. package/node_modules/ejs/bin/cli.js +220 -158
  171. package/node_modules/ejs/ejs.js +64 -94
  172. package/node_modules/ejs/ejs.min.js +1 -1
  173. package/node_modules/ejs/jakefile.js +44 -0
  174. package/node_modules/ejs/lib/cjs/ejs.js +64 -63
  175. package/node_modules/ejs/lib/cjs/parseargs.js +129 -77
  176. package/node_modules/ejs/lib/cjs/utils.js +0 -31
  177. package/node_modules/ejs/lib/esm/ejs.js +66 -65
  178. package/node_modules/ejs/lib/esm/parseargs.js +136 -82
  179. package/node_modules/ejs/lib/esm/utils.js +0 -32
  180. package/node_modules/ejs/package.json +3 -2
  181. package/node_modules/ejs/usage.txt +9 -9
  182. package/node_modules/follow-redirects/index.js +10 -1
  183. package/node_modules/follow-redirects/package.json +1 -1
  184. package/node_modules/graphql-ws/dist/client.cjs +28 -13
  185. package/node_modules/graphql-ws/dist/client.js +28 -13
  186. package/node_modules/graphql-ws/dist/index.cjs +1 -1
  187. package/node_modules/graphql-ws/dist/index.d.cts +1 -1
  188. package/node_modules/graphql-ws/dist/index.d.ts +1 -1
  189. package/node_modules/graphql-ws/dist/index.js +1 -1
  190. package/node_modules/graphql-ws/dist/{server-B8ZBs9OC.d.ts → server-BzBeHlSW.d.ts} +26 -1
  191. package/node_modules/graphql-ws/dist/{server-DN5-9C2B.cjs → server-Ce-Z86Ys.cjs} +10 -4
  192. package/node_modules/graphql-ws/dist/{server-ChpuX357.d.cts → server-u6zrlwzL.d.cts} +26 -1
  193. package/node_modules/graphql-ws/dist/{server-DHPI7HHW.js → server-zBhvXJ_Z.js} +10 -4
  194. package/node_modules/graphql-ws/dist/use/@fastify/websocket.cjs +2 -2
  195. package/node_modules/graphql-ws/dist/use/@fastify/websocket.d.cts +8 -2
  196. package/node_modules/graphql-ws/dist/use/@fastify/websocket.d.ts +8 -2
  197. package/node_modules/graphql-ws/dist/use/@fastify/websocket.js +2 -2
  198. package/node_modules/graphql-ws/dist/use/bun.cjs +1 -1
  199. package/node_modules/graphql-ws/dist/use/bun.d.cts +2 -2
  200. package/node_modules/graphql-ws/dist/use/bun.d.ts +2 -2
  201. package/node_modules/graphql-ws/dist/use/bun.js +2 -2
  202. package/node_modules/graphql-ws/dist/use/crossws.cjs +16 -4
  203. package/node_modules/graphql-ws/dist/use/crossws.d.cts +6 -1
  204. package/node_modules/graphql-ws/dist/use/crossws.d.ts +6 -1
  205. package/node_modules/graphql-ws/dist/use/crossws.js +16 -4
  206. package/node_modules/graphql-ws/dist/use/deno.d.ts +1 -1
  207. package/node_modules/graphql-ws/dist/use/deno.js +1 -1
  208. package/node_modules/graphql-ws/dist/use/uWebSockets.cjs +2 -2
  209. package/node_modules/graphql-ws/dist/use/uWebSockets.d.cts +8 -2
  210. package/node_modules/graphql-ws/dist/use/uWebSockets.d.ts +8 -2
  211. package/node_modules/graphql-ws/dist/use/uWebSockets.js +2 -2
  212. package/node_modules/graphql-ws/dist/use/ws.cjs +2 -2
  213. package/node_modules/graphql-ws/dist/use/ws.d.cts +8 -2
  214. package/node_modules/graphql-ws/dist/use/ws.d.ts +8 -2
  215. package/node_modules/graphql-ws/dist/use/ws.js +2 -2
  216. package/node_modules/graphql-ws/package.json +3 -3
  217. package/node_modules/graphql-ws/umd/graphql-ws.js +28 -13
  218. package/node_modules/graphql-ws/umd/graphql-ws.min.js +1 -1
  219. package/node_modules/graphql-ws/umd/graphql-ws.min.js.gz +0 -0
  220. package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs +522 -495
  221. package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs.map +1 -1
  222. package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js +24 -24
  223. package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js.map +1 -1
  224. package/node_modules/js-yaml/dist/js-yaml.cjs.js +135 -78
  225. package/node_modules/js-yaml/dist/js-yaml.cjs.js.map +1 -1
  226. package/node_modules/js-yaml/dist/js-yaml.mjs +129 -72
  227. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  228. package/node_modules/js-yaml/node_modules/argparse/LICENSE +47 -0
  229. package/node_modules/js-yaml/node_modules/argparse/README.md +89 -0
  230. package/node_modules/js-yaml/node_modules/argparse/lib/_colorize.js +72 -0
  231. package/node_modules/js-yaml/node_modules/argparse/lib/argparse.d.ts +292 -0
  232. package/node_modules/{argparse → js-yaml/node_modules/argparse/lib}/argparse.js +1142 -1029
  233. package/node_modules/js-yaml/node_modules/argparse/lib/difflib.js +190 -0
  234. package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/sub.js +4 -4
  235. package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/textwrap.js +28 -28
  236. package/node_modules/js-yaml/node_modules/argparse/package.json +38 -0
  237. package/node_modules/js-yaml/package.json +12 -12
  238. package/node_modules/lando/.github/dependabot.yml +4 -0
  239. package/node_modules/lando/.github/workflows/build-util-images.yml +1 -1
  240. package/node_modules/lando/.github/workflows/pr-core-tests.yml +4 -2
  241. package/node_modules/lando/.github/workflows/pr-db-tools-tests.yml +4 -2
  242. package/node_modules/lando/.github/workflows/pr-django-tests.yml +4 -2
  243. package/node_modules/lando/.github/workflows/pr-linter.yml +2 -2
  244. package/node_modules/lando/.github/workflows/pr-unit-tests.yml +2 -2
  245. package/node_modules/lando/.node-version +1 -1
  246. package/node_modules/lando/bin/lando.js +3 -83
  247. package/node_modules/lando/config.yml +0 -1
  248. package/node_modules/lando/eslint.config.mjs +4 -0
  249. package/node_modules/lando/examples/django/.lando.yml +1 -1
  250. package/node_modules/lando/examples/django/README.md +1 -1
  251. package/node_modules/lando/examples/django/requirements.txt +1 -1
  252. package/node_modules/lando/examples/sql-export/README.md +5 -0
  253. package/node_modules/lando/lib/app.js +78 -84
  254. package/node_modules/lando/lib/art.js +86 -30
  255. package/node_modules/lando/lib/bootstrap.js +148 -45
  256. package/node_modules/lando/lib/cache.js +14 -15
  257. package/node_modules/lando/lib/cli.js +67 -63
  258. package/node_modules/lando/lib/compose.js +76 -45
  259. package/node_modules/lando/lib/config.js +51 -33
  260. package/node_modules/lando/lib/daemon.js +27 -10
  261. package/node_modules/lando/lib/docker.js +46 -19
  262. package/node_modules/lando/lib/engine.js +131 -144
  263. package/node_modules/lando/lib/env.js +25 -46
  264. package/node_modules/lando/lib/error.js +15 -6
  265. package/node_modules/lando/lib/esm/package.json +3 -0
  266. package/node_modules/lando/lib/esm/string-argv.js +2 -0
  267. package/node_modules/lando/lib/esm/yargs.js +2 -0
  268. package/node_modules/lando/lib/events.js +15 -15
  269. package/node_modules/lando/lib/factory.js +43 -14
  270. package/node_modules/lando/lib/formatters.js +19 -31
  271. package/node_modules/lando/lib/lando.js +59 -48
  272. package/node_modules/lando/lib/logger.js +12 -24
  273. package/node_modules/lando/lib/plugins.js +27 -15
  274. package/node_modules/lando/lib/promise.js +17 -17
  275. package/node_modules/lando/lib/router.js +75 -21
  276. package/node_modules/lando/lib/scan.js +29 -12
  277. package/node_modules/lando/lib/shell.js +44 -20
  278. package/node_modules/lando/lib/user.js +14 -20
  279. package/node_modules/lando/lib/utils.js +87 -44
  280. package/node_modules/lando/lib/yaml.js +11 -9
  281. package/node_modules/lando/node_modules/ansi-regex/index.d.ts +33 -0
  282. package/node_modules/lando/node_modules/ansi-regex/index.js +15 -0
  283. package/node_modules/lando/node_modules/ansi-regex/package.json +61 -0
  284. package/node_modules/lando/node_modules/ansi-regex/readme.md +66 -0
  285. package/node_modules/lando/node_modules/cliui/README.md +26 -6
  286. package/node_modules/lando/node_modules/cliui/build/lib/index.js +2 -2
  287. package/node_modules/lando/node_modules/cliui/build/tsconfig.tsbuildinfo +1 -0
  288. package/node_modules/lando/node_modules/cliui/index.mjs +7 -5
  289. package/node_modules/lando/node_modules/cliui/node_modules/string-width/index.d.ts +39 -0
  290. package/node_modules/lando/node_modules/cliui/node_modules/string-width/index.js +82 -0
  291. package/node_modules/lando/node_modules/cliui/node_modules/string-width/license +9 -0
  292. package/node_modules/lando/node_modules/cliui/node_modules/string-width/package.json +64 -0
  293. package/node_modules/lando/node_modules/cliui/node_modules/string-width/readme.md +66 -0
  294. package/node_modules/lando/node_modules/cliui/package.json +21 -32
  295. package/node_modules/lando/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  296. package/node_modules/lando/node_modules/emoji-regex/README.md +107 -0
  297. package/node_modules/lando/node_modules/emoji-regex/index.d.ts +3 -0
  298. package/node_modules/lando/node_modules/emoji-regex/index.js +4 -0
  299. package/node_modules/lando/node_modules/emoji-regex/index.mjs +4 -0
  300. package/node_modules/lando/node_modules/emoji-regex/package.json +45 -0
  301. package/node_modules/lando/node_modules/string-width/index.d.ts +39 -0
  302. package/node_modules/lando/node_modules/string-width/index.js +203 -0
  303. package/node_modules/lando/node_modules/string-width/license +9 -0
  304. package/node_modules/lando/node_modules/string-width/package.json +65 -0
  305. package/node_modules/lando/node_modules/string-width/readme.md +66 -0
  306. package/node_modules/lando/node_modules/strip-ansi/index.d.ts +15 -0
  307. package/node_modules/lando/node_modules/strip-ansi/index.js +19 -0
  308. package/node_modules/lando/node_modules/strip-ansi/license +9 -0
  309. package/node_modules/lando/node_modules/strip-ansi/package.json +59 -0
  310. package/node_modules/lando/node_modules/strip-ansi/readme.md +37 -0
  311. package/node_modules/lando/node_modules/yargs/README.md +16 -36
  312. package/node_modules/lando/node_modules/yargs/browser.d.ts +5 -0
  313. package/node_modules/lando/node_modules/yargs/browser.mjs +2 -2
  314. package/node_modules/lando/node_modules/yargs/build/lib/command.js +308 -211
  315. package/node_modules/lando/node_modules/yargs/build/lib/completion-templates.js +28 -9
  316. package/node_modules/lando/node_modules/yargs/build/lib/completion.js +233 -91
  317. package/node_modules/lando/node_modules/yargs/build/lib/middleware.js +51 -16
  318. package/node_modules/lando/node_modules/yargs/build/lib/usage.js +88 -52
  319. package/node_modules/lando/node_modules/yargs/build/lib/utils/apply-extends.js +4 -2
  320. package/node_modules/lando/node_modules/yargs/build/lib/utils/levenshtein.js +9 -1
  321. package/node_modules/lando/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
  322. package/node_modules/lando/node_modules/yargs/build/lib/validation.js +51 -54
  323. package/node_modules/lando/node_modules/yargs/build/lib/yargs-factory.js +1261 -887
  324. package/node_modules/lando/node_modules/yargs/build/lib/yerror.js +3 -1
  325. package/node_modules/lando/node_modules/yargs/index.mjs +4 -2
  326. package/node_modules/lando/node_modules/yargs/lib/platform-shims/browser.mjs +9 -2
  327. package/node_modules/lando/node_modules/yargs/lib/platform-shims/esm.mjs +22 -22
  328. package/node_modules/lando/node_modules/yargs/locales/cs.json +51 -0
  329. package/node_modules/lando/node_modules/yargs/locales/de.json +1 -1
  330. package/node_modules/lando/node_modules/yargs/locales/en.json +4 -0
  331. package/node_modules/lando/node_modules/yargs/locales/fi.json +1 -1
  332. package/node_modules/lando/node_modules/yargs/locales/he.json +55 -0
  333. package/node_modules/lando/node_modules/yargs/locales/ka.json +55 -0
  334. package/node_modules/lando/node_modules/yargs/locales/ko.json +25 -25
  335. package/node_modules/lando/node_modules/yargs/locales/ru.json +6 -1
  336. package/node_modules/lando/node_modules/yargs/locales/uk_UA.json +51 -0
  337. package/node_modules/lando/node_modules/yargs/locales/uz.json +52 -0
  338. package/node_modules/lando/node_modules/yargs/locales/zh_TW.json +50 -46
  339. package/node_modules/lando/node_modules/yargs/package.json +41 -60
  340. package/node_modules/lando/node_modules/yargs-parser/build/lib/index.js +13 -8
  341. package/node_modules/lando/node_modules/yargs-parser/build/lib/yargs-parser.js +21 -12
  342. package/node_modules/lando/node_modules/yargs-parser/package.json +31 -40
  343. package/node_modules/lando/package.json +59 -22
  344. package/node_modules/lando/plugins/lando-compose/index.js +4 -0
  345. package/node_modules/lando/plugins/lando-compose/lib/utils.js +16 -7
  346. package/node_modules/lando/plugins/lando-core/index.js +1 -2
  347. package/node_modules/lando/plugins/lando-core/lib/utils.js +35 -15
  348. package/node_modules/lando/plugins/lando-core/lib/warnings.js +27 -0
  349. package/node_modules/lando/plugins/lando-core/tasks/destroy.js +1 -1
  350. package/node_modules/lando/plugins/lando-core/tasks/rebuild.js +1 -1
  351. package/node_modules/lando/plugins/lando-events/index.js +4 -0
  352. package/node_modules/lando/plugins/lando-events/lib/utils.js +27 -6
  353. package/node_modules/lando/plugins/lando-networking/app.js +2 -2
  354. package/node_modules/lando/plugins/lando-networking/index.js +9 -2
  355. package/node_modules/lando/plugins/lando-networking/test/app.spec.js +87 -0
  356. package/node_modules/lando/plugins/lando-proxy/index.js +6 -1
  357. package/node_modules/lando/plugins/lando-proxy/lib/utils.js +63 -28
  358. package/node_modules/lando/plugins/lando-proxy/lib/warnings.js +10 -0
  359. package/node_modules/lando/plugins/lando-recipes/index.js +4 -0
  360. package/node_modules/lando/plugins/lando-recipes/lib/build.js +22 -4
  361. package/node_modules/lando/plugins/lando-recipes/lib/options.js +42 -66
  362. package/node_modules/lando/plugins/lando-recipes/lib/utils.js +30 -13
  363. package/node_modules/lando/plugins/lando-recipes/lib/warnings.js +5 -0
  364. package/node_modules/lando/plugins/lando-recipes/sources/remote.js +0 -26
  365. package/node_modules/lando/plugins/lando-recipes/tasks/init.js +1 -1
  366. package/node_modules/lando/plugins/lando-services/index.js +4 -0
  367. package/node_modules/lando/plugins/lando-services/lib/utils.js +38 -15
  368. package/node_modules/lando/plugins/lando-sharing/index.js +4 -0
  369. package/node_modules/lando/plugins/lando-sharing/lib/utils.js +28 -5
  370. package/node_modules/lando/plugins/lando-tooling/index.js +5 -0
  371. package/node_modules/lando/plugins/lando-tooling/lib/build.js +5 -2
  372. package/node_modules/lando/plugins/lando-tooling/lib/utils.js +83 -47
  373. package/node_modules/lando/test/cli.spec.js +59 -21
  374. package/node_modules/lando/test/docker.spec.js +24 -28
  375. package/node_modules/lando/test/env.spec.js +8 -0
  376. package/node_modules/lando/test/error.spec.js +1 -1
  377. package/node_modules/lando/test/events.spec.js +6 -7
  378. package/node_modules/lando/test/lando.spec.js +1 -1
  379. package/node_modules/lando/test/plugins.spec.js +2 -3
  380. package/node_modules/lando/test/promise.spec.js +1 -1
  381. package/node_modules/lando/test/scan.spec.js +1 -1
  382. package/node_modules/lando/test/shell.spec.js +19 -2
  383. package/node_modules/lando/test/utils.spec.js +52 -0
  384. package/node_modules/open/index.js +3 -5
  385. package/node_modules/open/package.json +1 -1
  386. package/node_modules/socket.io-client/README.md +1 -0
  387. package/node_modules/socket.io-client/build/cjs/index.d.ts +3 -3
  388. package/node_modules/socket.io-client/build/cjs/manager.d.ts +1 -2
  389. package/node_modules/socket.io-client/build/cjs/manager.js +17 -7
  390. package/node_modules/socket.io-client/build/cjs/socket.d.ts +5 -2
  391. package/node_modules/socket.io-client/build/cjs/socket.js +0 -1
  392. package/node_modules/socket.io-client/build/esm/index.d.ts +3 -3
  393. package/node_modules/socket.io-client/build/esm/index.js +1 -1
  394. package/node_modules/socket.io-client/build/esm/manager.d.ts +1 -2
  395. package/node_modules/socket.io-client/build/esm/package.json +1 -1
  396. package/node_modules/socket.io-client/build/esm/socket.d.ts +5 -2
  397. package/node_modules/socket.io-client/build/esm/socket.js +0 -1
  398. package/node_modules/socket.io-client/build/esm-debug/index.d.ts +3 -3
  399. package/node_modules/socket.io-client/build/esm-debug/index.js +1 -1
  400. package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +1 -2
  401. package/node_modules/socket.io-client/build/esm-debug/package.json +1 -1
  402. package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +5 -2
  403. package/node_modules/socket.io-client/build/esm-debug/socket.js +0 -1
  404. package/node_modules/socket.io-client/dist/socket.io.esm.min.js +3 -3
  405. package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -1
  406. package/node_modules/socket.io-client/dist/socket.io.js +174 -242
  407. package/node_modules/socket.io-client/dist/socket.io.js.map +1 -1
  408. package/node_modules/socket.io-client/dist/socket.io.min.js +3 -3
  409. package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -1
  410. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +3 -3
  411. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -1
  412. package/node_modules/socket.io-client/package.json +2 -2
  413. package/node_modules/string-argv/CHANGELOG.md +38 -0
  414. package/node_modules/string-argv/README.md +96 -50
  415. package/node_modules/string-argv/index.d.ts +2 -0
  416. package/node_modules/string-argv/index.js +55 -35
  417. package/node_modules/string-argv/package.json +50 -40
  418. package/node_modules/undici/README.md +35 -4
  419. package/node_modules/undici/docs/docs/api/Agent.md +8 -8
  420. package/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
  421. package/node_modules/undici/docs/docs/api/Client.md +11 -6
  422. package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
  423. package/node_modules/undici/docs/docs/api/Dispatcher.md +12 -0
  424. package/node_modules/undici/docs/docs/api/Errors.md +101 -1
  425. package/node_modules/undici/docs/docs/api/Fetch.md +10 -0
  426. package/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
  427. package/node_modules/undici/docs/docs/api/Interceptors.md +17 -9
  428. package/node_modules/undici/docs/docs/api/Pool.md +5 -6
  429. package/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
  430. package/node_modules/undici/docs/docs/index.md +22 -13
  431. package/node_modules/undici/docs/docs/type-map.json +66 -66
  432. package/node_modules/undici/lib/api/readable.js +1 -2
  433. package/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
  434. package/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
  435. package/node_modules/undici/lib/core/connect.js +10 -4
  436. package/node_modules/undici/lib/core/constants.js +12 -1
  437. package/node_modules/undici/lib/core/errors.js +38 -1
  438. package/node_modules/undici/lib/core/request.js +39 -3
  439. package/node_modules/undici/lib/core/symbols.js +2 -0
  440. package/node_modules/undici/lib/core/util.js +26 -40
  441. package/node_modules/undici/lib/dispatcher/agent.js +6 -2
  442. package/node_modules/undici/lib/dispatcher/client-h1.js +127 -84
  443. package/node_modules/undici/lib/dispatcher/client-h2.js +97 -21
  444. package/node_modules/undici/lib/dispatcher/client.js +10 -2
  445. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
  446. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
  447. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +21 -6
  448. package/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
  449. package/node_modules/undici/lib/dispatcher/pool-base.js +117 -19
  450. package/node_modules/undici/lib/dispatcher/pool.js +99 -13
  451. package/node_modules/undici/lib/dispatcher/proxy-agent.js +34 -11
  452. package/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
  453. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
  454. package/node_modules/undici/lib/handler/cache-handler.js +153 -15
  455. package/node_modules/undici/lib/handler/deduplication-handler.js +126 -52
  456. package/node_modules/undici/lib/handler/redirect-handler.js +31 -6
  457. package/node_modules/undici/lib/handler/retry-handler.js +116 -24
  458. package/node_modules/undici/lib/interceptor/cache.js +15 -4
  459. package/node_modules/undici/lib/interceptor/decompress.js +253 -73
  460. package/node_modules/undici/lib/interceptor/dns.js +11 -0
  461. package/node_modules/undici/lib/interceptor/response-error.js +72 -28
  462. package/node_modules/undici/lib/milo/LICENSE.md +7 -0
  463. package/node_modules/undici/lib/milo/no-simd.js +1002 -0
  464. package/node_modules/undici/lib/milo/simd.js +1002 -0
  465. package/node_modules/undici/lib/mock/mock-agent.js +11 -0
  466. package/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
  467. package/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
  468. package/node_modules/undici/lib/util/cache.js +11 -5
  469. package/node_modules/undici/lib/web/cache/cache.js +17 -8
  470. package/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
  471. package/node_modules/undici/lib/web/cookies/index.js +19 -7
  472. package/node_modules/undici/lib/web/cookies/util.js +21 -2
  473. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
  474. package/node_modules/undici/lib/web/eventsource/eventsource.js +50 -3
  475. package/node_modules/undici/lib/web/fetch/body.js +69 -53
  476. package/node_modules/undici/lib/web/fetch/data-url.js +6 -6
  477. package/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
  478. package/node_modules/undici/lib/web/fetch/formdata.js +30 -36
  479. package/node_modules/undici/lib/web/fetch/headers.js +36 -33
  480. package/node_modules/undici/lib/web/fetch/index.js +54 -29
  481. package/node_modules/undici/lib/web/fetch/request.js +74 -79
  482. package/node_modules/undici/lib/web/fetch/response.js +43 -44
  483. package/node_modules/undici/lib/web/fetch/util.js +7 -7
  484. package/node_modules/undici/lib/web/infra/index.js +16 -1
  485. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  486. package/node_modules/undici/lib/web/webidl/index.js +2 -14
  487. package/node_modules/undici/lib/web/websocket/connection.js +33 -12
  488. package/node_modules/undici/lib/web/websocket/events.js +43 -26
  489. package/node_modules/undici/lib/web/websocket/receiver.js +27 -4
  490. package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
  491. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +19 -4
  492. package/node_modules/undici/lib/web/websocket/websocket.js +44 -41
  493. package/node_modules/undici/package.json +7 -5
  494. package/node_modules/undici/types/cache-interceptor.d.ts +10 -0
  495. package/node_modules/undici/types/client.d.ts +10 -4
  496. package/node_modules/undici/types/diagnostics-channel.d.ts +2 -1
  497. package/node_modules/undici/types/errors.d.ts +16 -1
  498. package/node_modules/undici/types/h2c-client.d.ts +1 -1
  499. package/node_modules/undici/types/interceptors.d.ts +7 -2
  500. package/node_modules/undici/types/webidl.d.ts +13 -7
  501. package/node_modules/{lando/node_modules/js-yaml → unicode-segmenter}/LICENSE +6 -6
  502. package/node_modules/unicode-segmenter/README.md +324 -0
  503. package/node_modules/unicode-segmenter/_emoji_data.cjs +24 -0
  504. package/node_modules/unicode-segmenter/_emoji_data.d.cts +1 -0
  505. package/node_modules/unicode-segmenter/_emoji_data.d.ts +12 -0
  506. package/node_modules/unicode-segmenter/_emoji_data.js +26 -0
  507. package/node_modules/unicode-segmenter/_general_data.cjs +30 -0
  508. package/node_modules/unicode-segmenter/_general_data.d.cts +1 -0
  509. package/node_modules/unicode-segmenter/_general_data.d.ts +16 -0
  510. package/node_modules/unicode-segmenter/_general_data.js +34 -0
  511. package/node_modules/unicode-segmenter/_grapheme_data.cjs +125 -0
  512. package/node_modules/unicode-segmenter/_grapheme_data.d.cts +1 -0
  513. package/node_modules/unicode-segmenter/_grapheme_data.d.ts +112 -0
  514. package/node_modules/unicode-segmenter/_grapheme_data.js +123 -0
  515. package/node_modules/unicode-segmenter/core.cjs +135 -0
  516. package/node_modules/unicode-segmenter/core.d.cts +1 -0
  517. package/node_modules/unicode-segmenter/core.d.ts +118 -0
  518. package/node_modules/unicode-segmenter/core.js +129 -0
  519. package/node_modules/unicode-segmenter/emoji.cjs +43 -0
  520. package/node_modules/unicode-segmenter/emoji.d.cts +1 -0
  521. package/node_modules/unicode-segmenter/emoji.d.ts +23 -0
  522. package/node_modules/unicode-segmenter/emoji.js +42 -0
  523. package/node_modules/unicode-segmenter/general.cjs +51 -0
  524. package/node_modules/unicode-segmenter/general.d.cts +1 -0
  525. package/node_modules/unicode-segmenter/general.d.ts +26 -0
  526. package/node_modules/unicode-segmenter/general.js +50 -0
  527. package/node_modules/unicode-segmenter/grapheme.cjs +405 -0
  528. package/node_modules/unicode-segmenter/grapheme.d.cts +1 -0
  529. package/node_modules/unicode-segmenter/grapheme.d.ts +64 -0
  530. package/node_modules/unicode-segmenter/grapheme.js +438 -0
  531. package/node_modules/unicode-segmenter/index.cjs +26 -0
  532. package/node_modules/unicode-segmenter/index.d.cts +1 -0
  533. package/node_modules/unicode-segmenter/index.d.ts +4 -0
  534. package/node_modules/unicode-segmenter/index.js +6 -0
  535. package/node_modules/unicode-segmenter/intl-adapter.cjs +124 -0
  536. package/node_modules/unicode-segmenter/intl-adapter.d.cts +1 -0
  537. package/node_modules/unicode-segmenter/intl-adapter.d.ts +62 -0
  538. package/node_modules/unicode-segmenter/intl-adapter.js +113 -0
  539. package/node_modules/unicode-segmenter/intl-polyfill.cjs +17 -0
  540. package/node_modules/unicode-segmenter/intl-polyfill.d.cts +1 -0
  541. package/node_modules/unicode-segmenter/intl-polyfill.d.ts +1 -0
  542. package/node_modules/unicode-segmenter/intl-polyfill.js +16 -0
  543. package/node_modules/unicode-segmenter/package.json +165 -0
  544. package/node_modules/unicode-segmenter/utils.cjs +99 -0
  545. package/node_modules/unicode-segmenter/utils.d.cts +1 -0
  546. package/node_modules/unicode-segmenter/utils.d.ts +64 -0
  547. package/node_modules/unicode-segmenter/utils.js +89 -0
  548. package/package.json +6 -6
  549. package/.buildkite/build-linux.sh +0 -68
  550. package/.buildkite/build-macos-installer.sh +0 -34
  551. package/.buildkite/build-macos.sh +0 -67
  552. package/.buildkite/build-windows-installer.ps1 +0 -65
  553. package/.buildkite/build-windows.ps1 +0 -59
  554. package/.buildkite/fetch-search-replace.sh +0 -65
  555. package/.buildkite/pack-release.sh +0 -26
  556. package/.buildkite/pipeline.yml +0 -81
  557. package/.buildkite/shared-pipeline-vars +0 -16
  558. package/.buildkite/sign-windows.ps1 +0 -21
  559. package/.buildkite/test-windows-installer-download.ps1 +0 -54
  560. package/.buildkite/test_pipeline.py +0 -69
  561. package/.bundle/config +0 -4
  562. package/.editorconfig +0 -11
  563. package/.prettierignore +0 -13
  564. package/.ruby-version +0 -1
  565. package/.sonarcloud.properties +0 -2
  566. package/.xcode-version +0 -1
  567. package/AGENTS.md +0 -101
  568. package/CLAUDE.md +0 -4
  569. package/Gemfile +0 -8
  570. package/Gemfile.lock +0 -377
  571. package/Makefile +0 -293
  572. package/cmd/installer-payload/main.go +0 -19
  573. package/cmd/installer-version/main.go +0 -22
  574. package/cmd/stamp-version/main.go +0 -25
  575. package/cmd/vip-next/auth_bootstrap.go +0 -139
  576. package/cmd/vip-next/auth_bootstrap_test.go +0 -379
  577. package/cmd/vip-next/auth_bypass_wiring_test.go +0 -162
  578. package/cmd/vip-next/cli_error_hook_test.go +0 -91
  579. package/cmd/vip-next/commands/app.go +0 -23
  580. package/cmd/vip-next/commands/app_debug_test.go +0 -89
  581. package/cmd/vip-next/commands/app_deploy.go +0 -217
  582. package/cmd/vip-next/commands/app_deploy_test.go +0 -297
  583. package/cmd/vip-next/commands/app_deploy_validate.go +0 -58
  584. package/cmd/vip-next/commands/app_get.go +0 -293
  585. package/cmd/vip-next/commands/app_get_test.go +0 -226
  586. package/cmd/vip-next/commands/app_list.go +0 -93
  587. package/cmd/vip-next/commands/app_list_test.go +0 -95
  588. package/cmd/vip-next/commands/backup.go +0 -16
  589. package/cmd/vip-next/commands/backup_db.go +0 -137
  590. package/cmd/vip-next/commands/backup_db_test.go +0 -187
  591. package/cmd/vip-next/commands/cache.go +0 -16
  592. package/cmd/vip-next/commands/cache_purge_url.go +0 -90
  593. package/cmd/vip-next/commands/cache_purge_url_test.go +0 -154
  594. package/cmd/vip-next/commands/config.go +0 -17
  595. package/cmd/vip-next/commands/config_debug_test.go +0 -137
  596. package/cmd/vip-next/commands/config_envvar.go +0 -16
  597. package/cmd/vip-next/commands/config_envvar_delete.go +0 -135
  598. package/cmd/vip-next/commands/config_envvar_delete_test.go +0 -140
  599. package/cmd/vip-next/commands/config_envvar_get.go +0 -72
  600. package/cmd/vip-next/commands/config_envvar_get_all.go +0 -58
  601. package/cmd/vip-next/commands/config_envvar_get_all_test.go +0 -83
  602. package/cmd/vip-next/commands/config_envvar_get_test.go +0 -79
  603. package/cmd/vip-next/commands/config_envvar_list.go +0 -70
  604. package/cmd/vip-next/commands/config_envvar_list_test.go +0 -134
  605. package/cmd/vip-next/commands/config_envvar_set.go +0 -162
  606. package/cmd/vip-next/commands/config_envvar_set_test.go +0 -251
  607. package/cmd/vip-next/commands/config_software.go +0 -229
  608. package/cmd/vip-next/commands/config_software_test.go +0 -161
  609. package/cmd/vip-next/commands/config_software_update.go +0 -270
  610. package/cmd/vip-next/commands/config_software_update_test.go +0 -334
  611. package/cmd/vip-next/commands/db.go +0 -16
  612. package/cmd/vip-next/commands/db_phpmyadmin.go +0 -122
  613. package/cmd/vip-next/commands/db_phpmyadmin_test.go +0 -277
  614. package/cmd/vip-next/commands/defensive_mode.go +0 -106
  615. package/cmd/vip-next/commands/defensive_mode_configure.go +0 -150
  616. package/cmd/vip-next/commands/defensive_mode_disable.go +0 -62
  617. package/cmd/vip-next/commands/defensive_mode_enable.go +0 -62
  618. package/cmd/vip-next/commands/defensive_mode_test.go +0 -389
  619. package/cmd/vip-next/commands/devenv.go +0 -48
  620. package/cmd/vip-next/commands/devenv_create_appinfo.go +0 -158
  621. package/cmd/vip-next/commands/devenv_create_appinfo_test.go +0 -29
  622. package/cmd/vip-next/commands/devenv_create_test.go +0 -269
  623. package/cmd/vip-next/commands/devenv_data.go +0 -86
  624. package/cmd/vip-next/commands/devenv_data_confirm_test.go +0 -49
  625. package/cmd/vip-next/commands/devenv_debug_test.go +0 -34
  626. package/cmd/vip-next/commands/devenv_e2e_gate_test.go +0 -17
  627. package/cmd/vip-next/commands/devenv_e2e_test.go +0 -34
  628. package/cmd/vip-next/commands/devenv_envvar.go +0 -180
  629. package/cmd/vip-next/commands/devenv_envvar_test.go +0 -183
  630. package/cmd/vip-next/commands/devenv_exec.go +0 -75
  631. package/cmd/vip-next/commands/devenv_exec_test.go +0 -39
  632. package/cmd/vip-next/commands/devenv_flag_grammar_test.go +0 -241
  633. package/cmd/vip-next/commands/devenv_lifecycle.go +0 -778
  634. package/cmd/vip-next/commands/devenv_logs.go +0 -29
  635. package/cmd/vip-next/commands/devenv_resolve.go +0 -106
  636. package/cmd/vip-next/commands/devenv_resolve_test.go +0 -221
  637. package/cmd/vip-next/commands/devenv_sync.go +0 -256
  638. package/cmd/vip-next/commands/devenv_sync_sites.go +0 -116
  639. package/cmd/vip-next/commands/devenv_sync_sites_test.go +0 -151
  640. package/cmd/vip-next/commands/devenv_sync_test.go +0 -63
  641. package/cmd/vip-next/commands/devenv_test.go +0 -60
  642. package/cmd/vip-next/commands/devenv_update.go +0 -207
  643. package/cmd/vip-next/commands/devenv_update_test.go +0 -109
  644. package/cmd/vip-next/commands/devenv_versions_proxy_test.go +0 -133
  645. package/cmd/vip-next/commands/edge_workers.go +0 -197
  646. package/cmd/vip-next/commands/edge_workers_flags.go +0 -56
  647. package/cmd/vip-next/commands/edge_workers_local.go +0 -127
  648. package/cmd/vip-next/commands/edge_workers_mutation.go +0 -130
  649. package/cmd/vip-next/commands/edge_workers_read.go +0 -103
  650. package/cmd/vip-next/commands/edge_workers_test.go +0 -272
  651. package/cmd/vip-next/commands/export.go +0 -16
  652. package/cmd/vip-next/commands/export_sql.go +0 -333
  653. package/cmd/vip-next/commands/export_sql_test.go +0 -321
  654. package/cmd/vip-next/commands/format_env.go +0 -17
  655. package/cmd/vip-next/commands/import.go +0 -19
  656. package/cmd/vip-next/commands/import_debug_test.go +0 -110
  657. package/cmd/vip-next/commands/import_media.go +0 -433
  658. package/cmd/vip-next/commands/import_media_abort.go +0 -76
  659. package/cmd/vip-next/commands/import_media_confirm.go +0 -83
  660. package/cmd/vip-next/commands/import_media_confirm_test.go +0 -249
  661. package/cmd/vip-next/commands/import_media_fetch_test.go +0 -98
  662. package/cmd/vip-next/commands/import_media_status.go +0 -58
  663. package/cmd/vip-next/commands/import_media_test.go +0 -370
  664. package/cmd/vip-next/commands/import_sql.go +0 -1161
  665. package/cmd/vip-next/commands/import_sql_status.go +0 -67
  666. package/cmd/vip-next/commands/import_sql_test.go +0 -746
  667. package/cmd/vip-next/commands/import_validate_files.go +0 -157
  668. package/cmd/vip-next/commands/import_validate_files_test.go +0 -157
  669. package/cmd/vip-next/commands/import_validate_sql.go +0 -207
  670. package/cmd/vip-next/commands/import_validate_sql_test.go +0 -293
  671. package/cmd/vip-next/commands/login.go +0 -53
  672. package/cmd/vip-next/commands/login_test.go +0 -25
  673. package/cmd/vip-next/commands/logout.go +0 -43
  674. package/cmd/vip-next/commands/logout_test.go +0 -158
  675. package/cmd/vip-next/commands/logs.go +0 -169
  676. package/cmd/vip-next/commands/logs_test.go +0 -174
  677. package/cmd/vip-next/commands/nodeflag_aliases.go +0 -59
  678. package/cmd/vip-next/commands/progress_renderer.go +0 -118
  679. package/cmd/vip-next/commands/progress_renderer_test.go +0 -28
  680. package/cmd/vip-next/commands/searchreplace.go +0 -75
  681. package/cmd/vip-next/commands/searchreplace_debug_test.go +0 -82
  682. package/cmd/vip-next/commands/searchreplace_test.go +0 -155
  683. package/cmd/vip-next/commands/slowlogs.go +0 -167
  684. package/cmd/vip-next/commands/slowlogs_test.go +0 -159
  685. package/cmd/vip-next/commands/sqlreport.go +0 -183
  686. package/cmd/vip-next/commands/sqlreport_test.go +0 -66
  687. package/cmd/vip-next/commands/sync.go +0 -189
  688. package/cmd/vip-next/commands/sync_confirm.go +0 -121
  689. package/cmd/vip-next/commands/sync_confirm_test.go +0 -202
  690. package/cmd/vip-next/commands/sync_render.go +0 -207
  691. package/cmd/vip-next/commands/sync_render_test.go +0 -101
  692. package/cmd/vip-next/commands/sync_test.go +0 -148
  693. package/cmd/vip-next/commands/update.go +0 -85
  694. package/cmd/vip-next/commands/update_test.go +0 -49
  695. package/cmd/vip-next/commands/whoami.go +0 -161
  696. package/cmd/vip-next/commands/whoami_debug_test.go +0 -79
  697. package/cmd/vip-next/commands/whoami_test.go +0 -85
  698. package/cmd/vip-next/commands/wp.go +0 -376
  699. package/cmd/vip-next/commands/wp_debug_test.go +0 -32
  700. package/cmd/vip-next/commands/wp_test.go +0 -276
  701. package/cmd/vip-next/debug_args.go +0 -63
  702. package/cmd/vip-next/debug_test.go +0 -122
  703. package/cmd/vip-next/edge_workers_test.go +0 -108
  704. package/cmd/vip-next/flags_node_parity_test.go +0 -434
  705. package/cmd/vip-next/main.go +0 -391
  706. package/cmd/vip-next/main_test.go +0 -202
  707. package/cmd/vip-next/pendo_wiring_test.go +0 -148
  708. package/cmd/vip-next/root.go +0 -211
  709. package/cmd/vip-next/update_bootstrap.go +0 -94
  710. package/cmd/vip-next/update_bootstrap_test.go +0 -85
  711. package/cmd/vip-next/update_integration_test.go +0 -137
  712. package/cmd/vip-next-prerelease/main.go +0 -108
  713. package/cmd/vip-next-prerelease/main_test.go +0 -46
  714. package/docs/ARCHITECTURE.md +0 -95
  715. package/docs/BUILD-SIGNING.md +0 -501
  716. package/docs/CHANGELOG.md +0 -1844
  717. package/docs/COMMANDER-MIGRATION.md +0 -45
  718. package/docs/CONTRIBUTING.md +0 -29
  719. package/docs/CUTOVER-BREAKING-CHANGES.md +0 -261
  720. package/docs/DEBUGGING.md +0 -94
  721. package/docs/EDGE-WORKERS.md +0 -256
  722. package/docs/GO-UPDATES.md +0 -97
  723. package/docs/NPM-RELEASE-RECOVERY.md +0 -47
  724. package/docs/RELEASING.md +0 -211
  725. package/docs/SECURITY.md +0 -9
  726. package/docs/SETUP.md +0 -154
  727. package/docs/TESTING.md +0 -67
  728. package/docs/decisions/0001-operation-scoped-elevated-token-reuse.md +0 -87
  729. package/docs/dev-env-windows-wsl-testing.md +0 -191
  730. package/docs/vip-next-vip-command-reference.md +0 -257
  731. package/docs/vip-wp-line-parse-dfa.dot +0 -31
  732. package/eslint.config.js +0 -35
  733. package/fastlane/Fastfile +0 -204
  734. package/fastlane/example.env +0 -8
  735. package/fastlane/test_signing.rb +0 -83
  736. package/go.mod +0 -39
  737. package/go.sum +0 -127
  738. package/internal/appctx/app_resolver.go +0 -202
  739. package/internal/appctx/app_resolver_test.go +0 -187
  740. package/internal/appctx/confirm.go +0 -180
  741. package/internal/appctx/confirm_payload_test.go +0 -201
  742. package/internal/appctx/confirm_test.go +0 -120
  743. package/internal/appctx/context.go +0 -94
  744. package/internal/appctx/context_test.go +0 -56
  745. package/internal/appctx/env_resolver.go +0 -110
  746. package/internal/appctx/env_resolver_test.go +0 -215
  747. package/internal/appctx/format.go +0 -72
  748. package/internal/appctx/format_test.go +0 -75
  749. package/internal/appctx/interactive.go +0 -50
  750. package/internal/appctx/interactive_test.go +0 -134
  751. package/internal/appctx/middleware.go +0 -56
  752. package/internal/appctx/middleware_test.go +0 -88
  753. package/internal/appctx/prompts.go +0 -70
  754. package/internal/appctx/prompts_test.go +0 -97
  755. package/internal/appctx/required_args.go +0 -24
  756. package/internal/appctx/required_args_test.go +0 -38
  757. package/internal/appctx/telemetry.go +0 -22
  758. package/internal/appctx/telemetry_test.go +0 -42
  759. package/internal/appctx/wildcard.go +0 -29
  760. package/internal/appctx/wildcard_test.go +0 -53
  761. package/internal/auth/bypass.go +0 -84
  762. package/internal/auth/bypass_test.go +0 -97
  763. package/internal/auth/login.go +0 -156
  764. package/internal/auth/login_test.go +0 -184
  765. package/internal/auth/logout.go +0 -44
  766. package/internal/auth/logout_test.go +0 -78
  767. package/internal/auth/store.go +0 -130
  768. package/internal/auth/store_test.go +0 -339
  769. package/internal/auth/token.go +0 -117
  770. package/internal/auth/token_test.go +0 -90
  771. package/internal/backup/backup.go +0 -194
  772. package/internal/backup/backup_test.go +0 -228
  773. package/internal/cachepurge/cachepurge.go +0 -38
  774. package/internal/cachepurge/cachepurge_test.go +0 -92
  775. package/internal/customdeploy/archive.go +0 -205
  776. package/internal/customdeploy/archive_test.go +0 -174
  777. package/internal/customdeploy/customdeploy.go +0 -91
  778. package/internal/customdeploy/customdeploy_test.go +0 -82
  779. package/internal/debuglog/debuglog.go +0 -85
  780. package/internal/debuglog/debuglog_test.go +0 -44
  781. package/internal/defensivemode/api.go +0 -89
  782. package/internal/defensivemode/api_test.go +0 -122
  783. package/internal/devenv/adapters.go +0 -168
  784. package/internal/devenv/adapters_test.go +0 -44
  785. package/internal/devenv/adopt.go +0 -20
  786. package/internal/devenv/adopt_setup_test.go +0 -30
  787. package/internal/devenv/compose/labels.go +0 -90
  788. package/internal/devenv/compose/labels_test.go +0 -136
  789. package/internal/devenv/compose/project.go +0 -88
  790. package/internal/devenv/compose/project_test.go +0 -148
  791. package/internal/devenv/compose/render.go +0 -54
  792. package/internal/devenv/compose/render_test.go +0 -90
  793. package/internal/devenv/compose/services.go +0 -337
  794. package/internal/devenv/compose/services_test.go +0 -258
  795. package/internal/devenv/compose/testdata/full.golden.yml +0 -265
  796. package/internal/devenv/compose/types.go +0 -97
  797. package/internal/devenv/compose/types_test.go +0 -61
  798. package/internal/devenv/compose/view.go +0 -205
  799. package/internal/devenv/compose/view_test.go +0 -120
  800. package/internal/devenv/configfile.go +0 -300
  801. package/internal/devenv/configfile_test.go +0 -246
  802. package/internal/devenv/create.go +0 -130
  803. package/internal/devenv/create_test.go +0 -98
  804. package/internal/devenv/debug.go +0 -4
  805. package/internal/devenv/debug_test.go +0 -103
  806. package/internal/devenv/devenv.go +0 -434
  807. package/internal/devenv/devenv_test.go +0 -77
  808. package/internal/devenv/devexec.go +0 -140
  809. package/internal/devenv/devexec_test.go +0 -91
  810. package/internal/devenv/devlog/devlog.go +0 -219
  811. package/internal/devenv/devlog/devlog_test.go +0 -112
  812. package/internal/devenv/devterm/devterm.go +0 -65
  813. package/internal/devenv/devterm/devterm_pty.go +0 -58
  814. package/internal/devenv/devterm/devterm_stub.go +0 -20
  815. package/internal/devenv/devterm/devterm_test.go +0 -78
  816. package/internal/devenv/dockercli/capture.go +0 -84
  817. package/internal/devenv/dockercli/capture_test.go +0 -33
  818. package/internal/devenv/dockercli/compose.go +0 -30
  819. package/internal/devenv/dockercli/compose_test.go +0 -35
  820. package/internal/devenv/dockercli/runner.go +0 -214
  821. package/internal/devenv/dockercli/runner_test.go +0 -157
  822. package/internal/devenv/dockercli/socket.go +0 -56
  823. package/internal/devenv/dockercli/socket_test.go +0 -52
  824. package/internal/devenv/e2e_gate_test.go +0 -17
  825. package/internal/devenv/e2e_test.go +0 -499
  826. package/internal/devenv/e2esafety/gate_wiring_test.go +0 -90
  827. package/internal/devenv/e2esafety/safety.go +0 -52
  828. package/internal/devenv/e2esafety/safety_test.go +0 -71
  829. package/internal/devenv/eachenv_test.go +0 -132
  830. package/internal/devenv/editor.go +0 -82
  831. package/internal/devenv/editor_test.go +0 -60
  832. package/internal/devenv/envfile.go +0 -287
  833. package/internal/devenv/envvar.go +0 -165
  834. package/internal/devenv/envvar_test.go +0 -178
  835. package/internal/devenv/hostops/context.go +0 -38
  836. package/internal/devenv/hostops/context_test.go +0 -24
  837. package/internal/devenv/hostops/e2e_gate_test.go +0 -17
  838. package/internal/devenv/hostops/e2e_test.go +0 -429
  839. package/internal/devenv/hostops/elevate.go +0 -248
  840. package/internal/devenv/hostops/elevate_message_test.go +0 -35
  841. package/internal/devenv/hostops/elevate_test.go +0 -111
  842. package/internal/devenv/hostops/hosts.go +0 -255
  843. package/internal/devenv/hostops/hosts_test.go +0 -178
  844. package/internal/devenv/hostops/thumbprint_test.go +0 -57
  845. package/internal/devenv/hostops/trust.go +0 -115
  846. package/internal/devenv/hostops/trust_test.go +0 -90
  847. package/internal/devenv/hostrefresh.go +0 -127
  848. package/internal/devenv/hostrefresh_test.go +0 -123
  849. package/internal/devenv/importdata.go +0 -491
  850. package/internal/devenv/importdata_test.go +0 -142
  851. package/internal/devenv/importdecompress_test.go +0 -90
  852. package/internal/devenv/importgate_test.go +0 -166
  853. package/internal/devenv/importvalidate.go +0 -437
  854. package/internal/devenv/importvalidate_test.go +0 -293
  855. package/internal/devenv/info_table.go +0 -165
  856. package/internal/devenv/info_table_test.go +0 -111
  857. package/internal/devenv/instancedata/instancedata.go +0 -239
  858. package/internal/devenv/instancedata/instancedata_test.go +0 -281
  859. package/internal/devenv/instancedata/testdata/legacy_keys.json +0 -16
  860. package/internal/devenv/instancedata/testdata/unknown_keys.json +0 -19
  861. package/internal/devenv/lifecycle/adopt.go +0 -24
  862. package/internal/devenv/lifecycle/adopt_test.go +0 -43
  863. package/internal/devenv/lifecycle/health.go +0 -28
  864. package/internal/devenv/lifecycle/health_test.go +0 -34
  865. package/internal/devenv/lifecycle/hosts.go +0 -42
  866. package/internal/devenv/lifecycle/hosts_test.go +0 -41
  867. package/internal/devenv/lifecycle/migrate.go +0 -44
  868. package/internal/devenv/lifecycle/migrate_test.go +0 -78
  869. package/internal/devenv/lifecycle/pull.go +0 -19
  870. package/internal/devenv/lifecycle/pull_test.go +0 -29
  871. package/internal/devenv/lifecycle/setup.go +0 -35
  872. package/internal/devenv/lifecycle/setup_test.go +0 -46
  873. package/internal/devenv/lifecycle/start.go +0 -132
  874. package/internal/devenv/lifecycle/start_test.go +0 -350
  875. package/internal/devenv/lifecycle/teardown.go +0 -32
  876. package/internal/devenv/lifecycle/teardown_test.go +0 -83
  877. package/internal/devenv/lifecycle/types.go +0 -86
  878. package/internal/devenv/lifecycle/waiter.go +0 -49
  879. package/internal/devenv/lifecycle/waiter_test.go +0 -98
  880. package/internal/devenv/list.go +0 -49
  881. package/internal/devenv/list_test.go +0 -24
  882. package/internal/devenv/logs.go +0 -43
  883. package/internal/devenv/logs_test.go +0 -28
  884. package/internal/devenv/materialize.go +0 -44
  885. package/internal/devenv/materialize_test.go +0 -112
  886. package/internal/devenv/paths/paths.go +0 -42
  887. package/internal/devenv/paths/paths_test.go +0 -39
  888. package/internal/devenv/postimport.go +0 -134
  889. package/internal/devenv/postimport_test.go +0 -389
  890. package/internal/devenv/proxy/ca.go +0 -110
  891. package/internal/devenv/proxy/ca_test.go +0 -111
  892. package/internal/devenv/proxy/network.go +0 -28
  893. package/internal/devenv/proxy/network_test.go +0 -68
  894. package/internal/devenv/proxy/ports.go +0 -104
  895. package/internal/devenv/proxy/ports_test.go +0 -76
  896. package/internal/devenv/proxy/proxy.go +0 -143
  897. package/internal/devenv/proxy/proxy_test.go +0 -149
  898. package/internal/devenv/proxy/scripts/gen-certs.sh +0 -73
  899. package/internal/devenv/proxy/spec.go +0 -60
  900. package/internal/devenv/proxy/spec_test.go +0 -44
  901. package/internal/devenv/proxy/testhelpers_test.go +0 -7
  902. package/internal/devenv/proxy_policy_test.go +0 -155
  903. package/internal/devenv/syncplan.go +0 -573
  904. package/internal/devenv/syncplan_test.go +0 -256
  905. package/internal/devenv/syncsql.go +0 -247
  906. package/internal/devenv/syncsql_repair.go +0 -169
  907. package/internal/devenv/syncsql_repair_test.go +0 -150
  908. package/internal/devenv/syncsql_test.go +0 -220
  909. package/internal/devenv/update.go +0 -87
  910. package/internal/devenv/update_test.go +0 -47
  911. package/internal/edgeworkers/api.go +0 -173
  912. package/internal/edgeworkers/api_test.go +0 -256
  913. package/internal/edgeworkers/build.go +0 -188
  914. package/internal/edgeworkers/build_test.go +0 -175
  915. package/internal/edgeworkers/confirmation.go +0 -72
  916. package/internal/edgeworkers/deployment.go +0 -156
  917. package/internal/edgeworkers/deployment_test.go +0 -165
  918. package/internal/edgeworkers/output.go +0 -131
  919. package/internal/edgeworkers/output_test.go +0 -98
  920. package/internal/edgeworkers/project.go +0 -264
  921. package/internal/edgeworkers/project_test.go +0 -167
  922. package/internal/edgeworkers/scaffold.go +0 -88
  923. package/internal/edgeworkers/templates/README.md +0 -25
  924. package/internal/edgeworkers/templates/edge-workers.json +0 -4
  925. package/internal/edgeworkers/templates/gitignore +0 -2
  926. package/internal/edgeworkers/templates/package.json +0 -16
  927. package/internal/edgeworkers/templates/tsconfig.json +0 -6
  928. package/internal/edgeworkers/templates/worker.ts +0 -19
  929. package/internal/edgeworkers/types.go +0 -37
  930. package/internal/edgeworkers/validation.go +0 -177
  931. package/internal/envalias/envalias.go +0 -50
  932. package/internal/envalias/envalias_test.go +0 -147
  933. package/internal/envvar/envvar.go +0 -253
  934. package/internal/envvar/envvar_test.go +0 -274
  935. package/internal/envvar/reload_manifest.go +0 -99
  936. package/internal/envvar/reload_manifest_test.go +0 -44
  937. package/internal/envvar/value_confirm.go +0 -26
  938. package/internal/envvar/value_confirm_test.go +0 -22
  939. package/internal/exit/exit.go +0 -94
  940. package/internal/exit/exit_test.go +0 -119
  941. package/internal/gql/SCHEMA.md +0 -21
  942. package/internal/gql/client.go +0 -54
  943. package/internal/gql/client_test.go +0 -71
  944. package/internal/gql/debug_test.go +0 -79
  945. package/internal/gql/decoder_compat_helpers_test.go +0 -35
  946. package/internal/gql/decoder_compat_test.go +0 -78
  947. package/internal/gql/doc.go +0 -13
  948. package/internal/gql/edgeworkerinput/input.go +0 -58
  949. package/internal/gql/edgeworkerinput/input_test.go +0 -52
  950. package/internal/gql/error.go +0 -163
  951. package/internal/gql/error_test.go +0 -203
  952. package/internal/gql/generated.go +0 -10425
  953. package/internal/gql/genqlient.yaml +0 -26
  954. package/internal/gql/import_sql_marshal_test.go +0 -69
  955. package/internal/gql/operation.go +0 -67
  956. package/internal/gql/operation_test.go +0 -60
  957. package/internal/gql/operations/app_get.graphql +0 -43
  958. package/internal/gql/operations/app_list.graphql +0 -9
  959. package/internal/gql/operations/app_resolve.graphql +0 -37
  960. package/internal/gql/operations/backup_export_deploy.graphql +0 -123
  961. package/internal/gql/operations/cachepurge.graphql +0 -6
  962. package/internal/gql/operations/defensive_mode.graphql +0 -13
  963. package/internal/gql/operations/dev_env_create.graphql +0 -38
  964. package/internal/gql/operations/dev_env_sync.graphql +0 -15
  965. package/internal/gql/operations/edge_workers.graphql +0 -53
  966. package/internal/gql/operations/envvar.graphql +0 -52
  967. package/internal/gql/operations/fragments.graphql +0 -5
  968. package/internal/gql/operations/import_media.graphql +0 -61
  969. package/internal/gql/operations/import_sql.graphql +0 -135
  970. package/internal/gql/operations/logs.graphql +0 -22
  971. package/internal/gql/operations/me.graphql +0 -13
  972. package/internal/gql/operations/phpmyadmin.graphql +0 -21
  973. package/internal/gql/operations/slowlogs.graphql +0 -25
  974. package/internal/gql/operations/software.graphql +0 -53
  975. package/internal/gql/operations/sync.graphql +0 -51
  976. package/internal/gql/operations/wp.graphql +0 -37
  977. package/internal/gql/proxy_test.go +0 -62
  978. package/internal/gql/rechallenge.go +0 -218
  979. package/internal/gql/rechallenge_test.go +0 -471
  980. package/internal/gql/retry.go +0 -130
  981. package/internal/gql/retry_test.go +0 -230
  982. package/internal/gql/schema.gql +0 -9337
  983. package/internal/gql/transport.go +0 -65
  984. package/internal/gql/transport_helper.go +0 -24
  985. package/internal/httpproxy/callers_test.go +0 -211
  986. package/internal/httpproxy/debug_test.go +0 -32
  987. package/internal/httpproxy/httpproxy.go +0 -315
  988. package/internal/httpproxy/httpproxy_test.go +0 -435
  989. package/internal/installer/version.go +0 -41
  990. package/internal/installer/version_test.go +0 -33
  991. package/internal/keychain/fallback.go +0 -93
  992. package/internal/keychain/keychain.go +0 -197
  993. package/internal/keychain/keychain_select_test.go +0 -34
  994. package/internal/keychain/keychain_test.go +0 -112
  995. package/internal/logsapi/logsapi.go +0 -165
  996. package/internal/logsapi/logsapi_test.go +0 -82
  997. package/internal/mediaimport/mediaimport.go +0 -26
  998. package/internal/mediaimport/mediaimport_test.go +0 -46
  999. package/internal/mediaimport/status.go +0 -162
  1000. package/internal/mediaimport/status_test.go +0 -159
  1001. package/internal/mediaimport/tracker.go +0 -116
  1002. package/internal/mediaimport/tracker_test.go +0 -62
  1003. package/internal/nodeflags/nodeflags.go +0 -130
  1004. package/internal/nodeflags/nodeflags_test.go +0 -138
  1005. package/internal/nodeflags/optionalvalue.go +0 -123
  1006. package/internal/nodeflags/optionalvalue_test.go +0 -158
  1007. package/internal/output/csv.go +0 -178
  1008. package/internal/output/fields.go +0 -22
  1009. package/internal/output/fields_test.go +0 -21
  1010. package/internal/output/ids.go +0 -26
  1011. package/internal/output/ids_test.go +0 -32
  1012. package/internal/output/json.go +0 -113
  1013. package/internal/output/keyvalue.go +0 -35
  1014. package/internal/output/keyvalue_block.go +0 -77
  1015. package/internal/output/keyvalue_block_test.go +0 -95
  1016. package/internal/output/keyvalue_test.go +0 -35
  1017. package/internal/output/ordered.go +0 -44
  1018. package/internal/output/ordered_test.go +0 -42
  1019. package/internal/output/output.go +0 -62
  1020. package/internal/output/output_test.go +0 -400
  1021. package/internal/output/table.go +0 -231
  1022. package/internal/output/table_layout.go +0 -472
  1023. package/internal/output/table_layout_test.go +0 -107
  1024. package/internal/output/table_layout_tty_test.go +0 -63
  1025. package/internal/output/text.go +0 -24
  1026. package/internal/output/text_test.go +0 -31
  1027. package/internal/output/typename.go +0 -35
  1028. package/internal/output/typename_test.go +0 -48
  1029. package/internal/parity/backup_export_deploy_scenario_test.go +0 -285
  1030. package/internal/parity/cache_scenario_test.go +0 -173
  1031. package/internal/parity/command_surface_scenario_test.go +0 -530
  1032. package/internal/parity/defensive_mode_scenario_test.go +0 -133
  1033. package/internal/parity/diff.go +0 -128
  1034. package/internal/parity/diff_test.go +0 -155
  1035. package/internal/parity/differential_test.go +0 -166
  1036. package/internal/parity/edge_workers_build_smoke_test.go +0 -69
  1037. package/internal/parity/edge_workers_cases_test.go +0 -77
  1038. package/internal/parity/edge_workers_debug_test.go +0 -87
  1039. package/internal/parity/edge_workers_differential_test.go +0 -483
  1040. package/internal/parity/edge_workers_prompt_test.go +0 -151
  1041. package/internal/parity/env.go +0 -176
  1042. package/internal/parity/env_test.go +0 -211
  1043. package/internal/parity/envvar_mutation_scenario_test.go +0 -188
  1044. package/internal/parity/harness.go +0 -28
  1045. package/internal/parity/harness_test.go +0 -62
  1046. package/internal/parity/import_media_scenario_test.go +0 -207
  1047. package/internal/parity/import_sql_scenario_test.go +0 -198
  1048. package/internal/parity/import_validate_sql_scenario_test.go +0 -68
  1049. package/internal/parity/keychain.go +0 -538
  1050. package/internal/parity/keychain_test.go +0 -201
  1051. package/internal/parity/m5_differential_test.go +0 -185
  1052. package/internal/parity/m5_scenarios_test.go +0 -225
  1053. package/internal/parity/nodebin.go +0 -120
  1054. package/internal/parity/nodebin_test.go +0 -148
  1055. package/internal/parity/parker.go +0 -491
  1056. package/internal/parity/parker_discovery.go +0 -373
  1057. package/internal/parity/parker_discovery_test.go +0 -267
  1058. package/internal/parity/parker_live_test.go +0 -164
  1059. package/internal/parity/parker_test.go +0 -480
  1060. package/internal/parity/pendo_test.go +0 -122
  1061. package/internal/parity/phpmyadmin_scenario_test.go +0 -214
  1062. package/internal/parity/runner.go +0 -56
  1063. package/internal/parity/runner_test.go +0 -67
  1064. package/internal/parity/scenario.go +0 -82
  1065. package/internal/parity/scenario_test.go +0 -52
  1066. package/internal/parity/surface_differential_test.go +0 -494
  1067. package/internal/parity/sync_scenario_test.go +0 -172
  1068. package/internal/parity/vendored_src_test.go +0 -84
  1069. package/internal/parity/whoami_scenario_test.go +0 -69
  1070. package/internal/parity/wp_scenario_test.go +0 -428
  1071. package/internal/phpmyadmin/client.go +0 -221
  1072. package/internal/phpmyadmin/client_test.go +0 -418
  1073. package/internal/poll/poll.go +0 -85
  1074. package/internal/poll/poll_test.go +0 -136
  1075. package/internal/polling/polling.go +0 -97
  1076. package/internal/polling/polling_test.go +0 -59
  1077. package/internal/rechallenge/browser.go +0 -16
  1078. package/internal/rechallenge/client.go +0 -198
  1079. package/internal/rechallenge/client_test.go +0 -169
  1080. package/internal/rechallenge/errors.go +0 -137
  1081. package/internal/rechallenge/errors_test.go +0 -81
  1082. package/internal/rechallenge/flow.go +0 -232
  1083. package/internal/rechallenge/flow_noninteractive_test.go +0 -285
  1084. package/internal/rechallenge/flow_test.go +0 -217
  1085. package/internal/rechallenge/interactive.go +0 -90
  1086. package/internal/rechallenge/interactive_test.go +0 -106
  1087. package/internal/rechallenge/redact.go +0 -36
  1088. package/internal/rechallenge/redact_test.go +0 -142
  1089. package/internal/rechallenge/tokencache.go +0 -148
  1090. package/internal/rechallenge/tokencache_test.go +0 -139
  1091. package/internal/rechallenge/types.go +0 -100
  1092. package/internal/rechallenge/types_test.go +0 -56
  1093. package/internal/redact/redact.go +0 -99
  1094. package/internal/redact/redact_test.go +0 -80
  1095. package/internal/releasepromotion/buildkite.go +0 -233
  1096. package/internal/releasepromotion/buildkite_test.go +0 -284
  1097. package/internal/releasepromotion/contract.go +0 -165
  1098. package/internal/releasepromotion/contract_test.go +0 -211
  1099. package/internal/releasepromotion/github.go +0 -378
  1100. package/internal/releasepromotion/github_test.go +0 -399
  1101. package/internal/releasepromotion/optional_installers_test.go +0 -87
  1102. package/internal/releasepromotion/promoter.go +0 -134
  1103. package/internal/releasepromotion/promoter_test.go +0 -147
  1104. package/internal/releasepromotion/verify.go +0 -239
  1105. package/internal/releasepromotion/verify_test.go +0 -296
  1106. package/internal/searchreplace/debug_test.go +0 -71
  1107. package/internal/searchreplace/dumpdetails.go +0 -104
  1108. package/internal/searchreplace/dumpdetails_test.go +0 -86
  1109. package/internal/searchreplace/searchreplace.go +0 -261
  1110. package/internal/searchreplace/searchreplace_test.go +0 -250
  1111. package/internal/siteimport/debug_test.go +0 -34
  1112. package/internal/siteimport/siteimport.go +0 -18
  1113. package/internal/siteimport/siteimport_test.go +0 -19
  1114. package/internal/siteimport/sitetype.go +0 -74
  1115. package/internal/siteimport/sitetype_test.go +0 -62
  1116. package/internal/siteimport/status.go +0 -282
  1117. package/internal/siteimport/status_test.go +0 -234
  1118. package/internal/slowlogsapi/slowlogsapi.go +0 -176
  1119. package/internal/slowlogsapi/slowlogsapi_test.go +0 -93
  1120. package/internal/softwaresettings/format.go +0 -192
  1121. package/internal/softwaresettings/format_test.go +0 -123
  1122. package/internal/sqlexport/diskspace.go +0 -36
  1123. package/internal/sqlexport/diskspace_unix.go +0 -24
  1124. package/internal/sqlexport/diskspace_windows.go +0 -26
  1125. package/internal/sqlexport/download.go +0 -75
  1126. package/internal/sqlexport/download_test.go +0 -103
  1127. package/internal/sqlexport/export.go +0 -321
  1128. package/internal/sqlexport/export_test.go +0 -313
  1129. package/internal/sqlexport/format.go +0 -44
  1130. package/internal/sqlexport/livecopy.go +0 -150
  1131. package/internal/sqlexport/livecopy_test.go +0 -273
  1132. package/internal/sqlvalidation/devenv_checks_test.go +0 -134
  1133. package/internal/sqlvalidation/filename.go +0 -30
  1134. package/internal/sqlvalidation/line_by_line.go +0 -91
  1135. package/internal/sqlvalidation/line_by_line_test.go +0 -165
  1136. package/internal/sqlvalidation/multisite.go +0 -31
  1137. package/internal/sqlvalidation/multisite_test.go +0 -34
  1138. package/internal/sqlvalidation/sql.go +0 -510
  1139. package/internal/sqlvalidation/sql_test.go +0 -206
  1140. package/internal/sync/sync.go +0 -246
  1141. package/internal/sync/sync_test.go +0 -253
  1142. package/internal/telemetry/config.go +0 -34
  1143. package/internal/telemetry/default.go +0 -67
  1144. package/internal/telemetry/default_endpoint_test.go +0 -111
  1145. package/internal/telemetry/pendo.go +0 -185
  1146. package/internal/telemetry/pendo_auth_test.go +0 -92
  1147. package/internal/telemetry/pendo_test.go +0 -252
  1148. package/internal/telemetry/scrub.go +0 -90
  1149. package/internal/telemetry/scrub_test.go +0 -131
  1150. package/internal/telemetry/tracker.go +0 -102
  1151. package/internal/telemetry/tracker_test.go +0 -76
  1152. package/internal/telemetry/tracks.go +0 -82
  1153. package/internal/telemetry/tracks_test.go +0 -129
  1154. package/internal/telemetry/uuid.go +0 -50
  1155. package/internal/telemetry/uuid_test.go +0 -90
  1156. package/internal/tui/progress.go +0 -153
  1157. package/internal/tui/progress_test.go +0 -89
  1158. package/internal/tui/progress_tracker.go +0 -299
  1159. package/internal/tui/progress_tracker_test.go +0 -155
  1160. package/internal/update/archive.go +0 -134
  1161. package/internal/update/archive_test.go +0 -132
  1162. package/internal/update/download.go +0 -138
  1163. package/internal/update/download_test.go +0 -32
  1164. package/internal/update/github.go +0 -121
  1165. package/internal/update/install.go +0 -265
  1166. package/internal/update/install_test.go +0 -151
  1167. package/internal/update/lock_unix.go +0 -23
  1168. package/internal/update/lock_windows.go +0 -22
  1169. package/internal/update/native_test.go +0 -70
  1170. package/internal/update/notify.go +0 -91
  1171. package/internal/update/ownership.go +0 -117
  1172. package/internal/update/ownership_test.go +0 -102
  1173. package/internal/update/release.go +0 -120
  1174. package/internal/update/release_test.go +0 -168
  1175. package/internal/update/service.go +0 -197
  1176. package/internal/update/service_test.go +0 -118
  1177. package/internal/update/state.go +0 -116
  1178. package/internal/update/state_test.go +0 -132
  1179. package/internal/upload/debug_test.go +0 -76
  1180. package/internal/upload/filemeta.go +0 -112
  1181. package/internal/upload/filemeta_test.go +0 -94
  1182. package/internal/upload/multipart.go +0 -215
  1183. package/internal/upload/multipart_test.go +0 -210
  1184. package/internal/upload/orchestrate.go +0 -81
  1185. package/internal/upload/parts.go +0 -39
  1186. package/internal/upload/parts_test.go +0 -39
  1187. package/internal/upload/presign.go +0 -103
  1188. package/internal/upload/presign_test.go +0 -128
  1189. package/internal/upload/proxy_test.go +0 -55
  1190. package/internal/upload/putobject.go +0 -92
  1191. package/internal/upload/putobject_test.go +0 -79
  1192. package/internal/upload/retry.go +0 -45
  1193. package/internal/upload/upload.go +0 -22
  1194. package/internal/upload/xmlerror.go +0 -28
  1195. package/internal/validatefiles/files.go +0 -105
  1196. package/internal/validatefiles/files_test.go +0 -143
  1197. package/internal/validatefiles/report.go +0 -172
  1198. package/internal/validatefiles/validatefiles.go +0 -271
  1199. package/internal/validatefiles/validatefiles_test.go +0 -127
  1200. package/internal/version/stamp.go +0 -15
  1201. package/internal/version/stamp_test.go +0 -25
  1202. package/internal/version/version.go +0 -14
  1203. package/internal/version/version_test.go +0 -25
  1204. package/internal/wpshell/parser.go +0 -68
  1205. package/internal/wpshell/parser_test.go +0 -58
  1206. package/internal/wpshell/repl.go +0 -81
  1207. package/internal/wpshell/repl_test.go +0 -71
  1208. package/internal/wpshell/requote.go +0 -13
  1209. package/internal/wpshell/requote_test.go +0 -15
  1210. package/internal/wpssh/debug_test.go +0 -67
  1211. package/internal/wpssh/wpssh.go +0 -124
  1212. package/internal/wpssh/wpssh_test.go +0 -203
  1213. package/internal/wpstream/debug_test.go +0 -116
  1214. package/internal/wpstream/e2e_test.go +0 -178
  1215. package/internal/wpstream/engineio.go +0 -291
  1216. package/internal/wpstream/engineio_test.go +0 -82
  1217. package/internal/wpstream/iostream.go +0 -391
  1218. package/internal/wpstream/iostream_test.go +0 -138
  1219. package/internal/wpstream/run.go +0 -364
  1220. package/internal/wpstream/run_test.go +0 -184
  1221. package/internal/wpstream/socketio.go +0 -435
  1222. package/internal/wpstream/socketio_test.go +0 -402
  1223. package/internal/wpstream/testdata/fixture-server.js +0 -54
  1224. package/make.ps1 +0 -155
  1225. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs +0 -3
  1226. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs.map +0 -1
  1227. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.d.cts +0 -10
  1228. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.d.ts +0 -10
  1229. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js +0 -2
  1230. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js.map +0 -1
  1231. package/node_modules/argparse/LICENSE +0 -254
  1232. package/node_modules/argparse/README.md +0 -84
  1233. package/node_modules/argparse/package.json +0 -31
  1234. package/node_modules/lando/node_modules/cliui/build/index.cjs +0 -302
  1235. package/node_modules/lando/node_modules/cliui/build/lib/string-utils.js +0 -27
  1236. package/node_modules/lando/node_modules/js-yaml/README.md +0 -233
  1237. package/node_modules/lando/node_modules/js-yaml/bin/js-yaml.js +0 -117
  1238. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js +0 -3022
  1239. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js.map +0 -1
  1240. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
  1241. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js.map +0 -1
  1242. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs +0 -3082
  1243. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs.map +0 -1
  1244. package/node_modules/lando/node_modules/js-yaml/index.js +0 -44
  1245. package/node_modules/lando/node_modules/js-yaml/lib/common.js +0 -50
  1246. package/node_modules/lando/node_modules/js-yaml/lib/dumper.js +0 -937
  1247. package/node_modules/lando/node_modules/js-yaml/lib/exception.js +0 -51
  1248. package/node_modules/lando/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs +0 -37
  1249. package/node_modules/lando/node_modules/js-yaml/lib/loader.js +0 -1803
  1250. package/node_modules/lando/node_modules/js-yaml/lib/schema/core.js +0 -9
  1251. package/node_modules/lando/node_modules/js-yaml/lib/schema/default.js +0 -20
  1252. package/node_modules/lando/node_modules/js-yaml/lib/schema/failsafe.js +0 -14
  1253. package/node_modules/lando/node_modules/js-yaml/lib/schema/json.js +0 -17
  1254. package/node_modules/lando/node_modules/js-yaml/lib/schema.js +0 -109
  1255. package/node_modules/lando/node_modules/js-yaml/lib/snippet.js +0 -96
  1256. package/node_modules/lando/node_modules/js-yaml/lib/type/binary.js +0 -122
  1257. package/node_modules/lando/node_modules/js-yaml/lib/type/bool.js +0 -35
  1258. package/node_modules/lando/node_modules/js-yaml/lib/type/float.js +0 -99
  1259. package/node_modules/lando/node_modules/js-yaml/lib/type/int.js +0 -142
  1260. package/node_modules/lando/node_modules/js-yaml/lib/type/map.js +0 -8
  1261. package/node_modules/lando/node_modules/js-yaml/lib/type/merge.js +0 -12
  1262. package/node_modules/lando/node_modules/js-yaml/lib/type/null.js +0 -35
  1263. package/node_modules/lando/node_modules/js-yaml/lib/type/omap.js +0 -45
  1264. package/node_modules/lando/node_modules/js-yaml/lib/type/pairs.js +0 -50
  1265. package/node_modules/lando/node_modules/js-yaml/lib/type/seq.js +0 -8
  1266. package/node_modules/lando/node_modules/js-yaml/lib/type/set.js +0 -29
  1267. package/node_modules/lando/node_modules/js-yaml/lib/type/str.js +0 -8
  1268. package/node_modules/lando/node_modules/js-yaml/lib/type/timestamp.js +0 -88
  1269. package/node_modules/lando/node_modules/js-yaml/lib/type.js +0 -66
  1270. package/node_modules/lando/node_modules/js-yaml/package.json +0 -83
  1271. package/node_modules/lando/node_modules/wrap-ansi/index.js +0 -216
  1272. package/node_modules/lando/node_modules/wrap-ansi/package.json +0 -62
  1273. package/node_modules/lando/node_modules/wrap-ansi/readme.md +0 -91
  1274. package/node_modules/lando/node_modules/yargs/build/index.cjs +0 -2920
  1275. package/node_modules/lando/node_modules/yargs/helpers/index.js +0 -14
  1276. package/node_modules/lando/node_modules/yargs/index.cjs +0 -39
  1277. package/node_modules/lando/node_modules/yargs/yargs +0 -9
  1278. package/node_modules/lando/node_modules/yargs-parser/build/index.cjs +0 -1042
  1279. package/node_modules/lando/plugins/lando-test/index.js +0 -3
  1280. package/node_modules/lando/plugins/lando-test/plugin.yml +0 -2
  1281. package/packaging/macos/build-pkg.sh +0 -53
  1282. package/packaging/macos/preinstall +0 -33
  1283. package/packaging/macos/test-install.sh +0 -51
  1284. package/packaging/macos/test_package.py +0 -74
  1285. package/packaging/macos/uninstall.sh +0 -24
  1286. package/packaging/macos/verify-pkg.py +0 -61
  1287. package/packaging/windows/build-msi.ps1 +0 -153
  1288. package/packaging/windows/test-msi.ps1 +0 -225
  1289. package/packaging/windows/verify-msi.ps1 +0 -74
  1290. package/packaging/windows/vip-next.wxs +0 -79
  1291. package/scripts/catalog_script_test.go +0 -123
  1292. package/scripts/vip-next-command-catalog.sh +0 -506
  1293. package/test-utils/undici-mock.js +0 -25
  1294. package/testdata/installer-fixture/main.go +0 -40
  1295. package/testdata/parity/app-deploy-completed.yaml +0 -14
  1296. package/testdata/parity/app-deploy-missing-token.yaml +0 -21
  1297. package/testdata/parity/app-deploy-validate-clean.yaml +0 -11
  1298. package/testdata/parity/app-deploy-validate-missing-themes.yaml +0 -21
  1299. package/testdata/parity/app-get-baseline.yaml +0 -14
  1300. package/testdata/parity/app-get-custom-deploy.yaml +0 -14
  1301. package/testdata/parity/app-get-json.yaml +0 -14
  1302. package/testdata/parity/app-get-not-found.yaml +0 -13
  1303. package/testdata/parity/app-list-baseline.yaml +0 -14
  1304. package/testdata/parity/app-list-csv.yaml +0 -13
  1305. package/testdata/parity/app-list-empty.yaml +0 -13
  1306. package/testdata/parity/app-list-ids.yaml +0 -26
  1307. package/testdata/parity/app-list-json.yaml +0 -13
  1308. package/testdata/parity/app-list-unknown-format.yaml +0 -29
  1309. package/testdata/parity/backup-db-already-in-progress.yaml +0 -15
  1310. package/testdata/parity/backup-db-completed.yaml +0 -14
  1311. package/testdata/parity/backup-db-help.yaml +0 -10
  1312. package/testdata/parity/cache-purge-url-empty.yaml +0 -26
  1313. package/testdata/parity/cache-purge-url-from-file.yaml +0 -21
  1314. package/testdata/parity/cache-purge-url-multi.yaml +0 -19
  1315. package/testdata/parity/cache-purge-url-single.yaml +0 -18
  1316. package/testdata/parity/defensive-mode-enable-with-rechallenge.yaml +0 -20
  1317. package/testdata/parity/edge-workers-artifact-symlink.yaml +0 -8
  1318. package/testdata/parity/edge-workers-bare-location.yaml +0 -8
  1319. package/testdata/parity/edge-workers-bare-path.yaml +0 -8
  1320. package/testdata/parity/edge-workers-bare-type.yaml +0 -8
  1321. package/testdata/parity/edge-workers-build-all.yaml +0 -8
  1322. package/testdata/parity/edge-workers-build-compiler-error.yaml +0 -8
  1323. package/testdata/parity/edge-workers-build-empty.yaml +0 -8
  1324. package/testdata/parity/edge-workers-build-missing-compiler.yaml +0 -8
  1325. package/testdata/parity/edge-workers-build-name-all.yaml +0 -8
  1326. package/testdata/parity/edge-workers-build-one.yaml +0 -8
  1327. package/testdata/parity/edge-workers-delete-force.yaml +0 -8
  1328. package/testdata/parity/edge-workers-delete-rejected.yaml +0 -8
  1329. package/testdata/parity/edge-workers-deploy-active-update-enable.yaml +0 -8
  1330. package/testdata/parity/edge-workers-deploy-active-update.yaml +0 -8
  1331. package/testdata/parity/edge-workers-deploy-all-preparation-failure.yaml +0 -8
  1332. package/testdata/parity/edge-workers-deploy-create-enable.yaml +0 -8
  1333. package/testdata/parity/edge-workers-deploy-create.yaml +0 -8
  1334. package/testdata/parity/edge-workers-deploy-enable-failure.yaml +0 -8
  1335. package/testdata/parity/edge-workers-deploy-inactive-update-enable.yaml +0 -8
  1336. package/testdata/parity/edge-workers-deploy-inactive-update.yaml +0 -8
  1337. package/testdata/parity/edge-workers-deploy-location-clear.yaml +0 -8
  1338. package/testdata/parity/edge-workers-deploy-location-preserve.yaml +0 -8
  1339. package/testdata/parity/edge-workers-deploy-location-replace.yaml +0 -8
  1340. package/testdata/parity/edge-workers-deploy-name-all.yaml +0 -8
  1341. package/testdata/parity/edge-workers-deploy-production-refused.yaml +0 -8
  1342. package/testdata/parity/edge-workers-deploy-production-skip.yaml +0 -8
  1343. package/testdata/parity/edge-workers-deploy-skip-source-create.yaml +0 -8
  1344. package/testdata/parity/edge-workers-deploy-skip-source.yaml +0 -8
  1345. package/testdata/parity/edge-workers-deploy-skip-validate.yaml +0 -8
  1346. package/testdata/parity/edge-workers-deploy-source-empty.yaml +0 -8
  1347. package/testdata/parity/edge-workers-deploy-upload-failure.yaml +0 -8
  1348. package/testdata/parity/edge-workers-disable.yaml +0 -8
  1349. package/testdata/parity/edge-workers-double-dash.yaml +0 -8
  1350. package/testdata/parity/edge-workers-duplicate-names.yaml +0 -8
  1351. package/testdata/parity/edge-workers-enable-production-refused.yaml +0 -8
  1352. package/testdata/parity/edge-workers-enable.yaml +0 -8
  1353. package/testdata/parity/edge-workers-entry-escape.yaml +0 -8
  1354. package/testdata/parity/edge-workers-get-empty-source.yaml +0 -8
  1355. package/testdata/parity/edge-workers-get-missing.yaml +0 -8
  1356. package/testdata/parity/edge-workers-get-no-source.yaml +0 -8
  1357. package/testdata/parity/edge-workers-get-source.yaml +0 -8
  1358. package/testdata/parity/edge-workers-get.yaml +0 -8
  1359. package/testdata/parity/edge-workers-init-invalid-type.yaml +0 -8
  1360. package/testdata/parity/edge-workers-init-nonempty.yaml +0 -8
  1361. package/testdata/parity/edge-workers-init.yaml +0 -8
  1362. package/testdata/parity/edge-workers-json-control-name.yaml +0 -8
  1363. package/testdata/parity/edge-workers-list-csv.yaml +0 -8
  1364. package/testdata/parity/edge-workers-list-empty-json.yaml +0 -8
  1365. package/testdata/parity/edge-workers-list-empty.yaml +0 -8
  1366. package/testdata/parity/edge-workers-list-json.yaml +0 -8
  1367. package/testdata/parity/edge-workers-list-table.yaml +0 -8
  1368. package/testdata/parity/edge-workers-mutation-graphql-error.yaml +0 -8
  1369. package/testdata/parity/edge-workers-mutation-null.yaml +0 -8
  1370. package/testdata/parity/edge-workers-new-invalid-location.yaml +0 -8
  1371. package/testdata/parity/edge-workers-new-invalid-name.yaml +0 -8
  1372. package/testdata/parity/edge-workers-new-location.yaml +0 -8
  1373. package/testdata/parity/edge-workers-new.yaml +0 -8
  1374. package/testdata/parity/edge-workers-read-null.yaml +0 -8
  1375. package/testdata/parity/edge-workers-repeated-path.yaml +0 -8
  1376. package/testdata/parity/edge-workers-repeated-type.yaml +0 -8
  1377. package/testdata/parity/edge-workers-short-equals.yaml +0 -8
  1378. package/testdata/parity/edge-workers-table-control-name.yaml +0 -8
  1379. package/testdata/parity/edge-workers-unicode-order.yaml +0 -8
  1380. package/testdata/parity/edge-workers-validate-all.yaml +0 -8
  1381. package/testdata/parity/edge-workers-validate-invalid.yaml +0 -8
  1382. package/testdata/parity/edge-workers-validate-name-all.yaml +0 -8
  1383. package/testdata/parity/edge-workers-validate-no-artifact.yaml +0 -8
  1384. package/testdata/parity/edge-workers-validate-no-name.yaml +0 -8
  1385. package/testdata/parity/edge-workers-validate-null.yaml +0 -8
  1386. package/testdata/parity/edge-workers-validate.yaml +0 -8
  1387. package/testdata/parity/envvar-delete-baseline.yaml +0 -19
  1388. package/testdata/parity/envvar-delete-prod-cancel.yaml +0 -41
  1389. package/testdata/parity/envvar-delete-typed-mismatch.yaml +0 -44
  1390. package/testdata/parity/envvar-get-baseline.yaml +0 -14
  1391. package/testdata/parity/envvar-get-lowercase-input.yaml +0 -14
  1392. package/testdata/parity/envvar-get-named-help.yaml +0 -24
  1393. package/testdata/parity/envvar-get-not-found.yaml +0 -17
  1394. package/testdata/parity/envvar-getall-baseline.yaml +0 -14
  1395. package/testdata/parity/envvar-getall-empty.yaml +0 -15
  1396. package/testdata/parity/envvar-getall-keyvalue.yaml +0 -22
  1397. package/testdata/parity/envvar-list-baseline.yaml +0 -15
  1398. package/testdata/parity/envvar-list-empty.yaml +0 -15
  1399. package/testdata/parity/envvar-list-ids.yaml +0 -14
  1400. package/testdata/parity/envvar-list-json.yaml +0 -14
  1401. package/testdata/parity/envvar-list-keyvalue.yaml +0 -22
  1402. package/testdata/parity/envvar-set-baseline.yaml +0 -21
  1403. package/testdata/parity/envvar-set-invalid-name.yaml +0 -20
  1404. package/testdata/parity/envvar-set-newrelic-blocked.yaml +0 -21
  1405. package/testdata/parity/envvar-set-prod-cancel.yaml +0 -42
  1406. package/testdata/parity/envvar-set-prod-confirm-skipped.yaml +0 -20
  1407. package/testdata/parity/export-sql-completed.yaml +0 -14
  1408. package/testdata/parity/export-sql-config-conflict.yaml +0 -21
  1409. package/testdata/parity/export-sql-help.yaml +0 -11
  1410. package/testdata/parity/import-media-abort-noninteractive.yaml +0 -19
  1411. package/testdata/parity/import-media-help.yaml +0 -12
  1412. package/testdata/parity/import-media-invalid-archive.yaml +0 -18
  1413. package/testdata/parity/import-media-status-completed.yaml +0 -19
  1414. package/testdata/parity/import-media-status-failed.yaml +0 -18
  1415. package/testdata/parity/import-media-url-completed.yaml +0 -18
  1416. package/testdata/parity/import-sql-bad-extension.yaml +0 -26
  1417. package/testdata/parity/import-sql-help.yaml +0 -12
  1418. package/testdata/parity/import-sql-in-progress.yaml +0 -26
  1419. package/testdata/parity/import-sql-invalid-md5.yaml +0 -27
  1420. package/testdata/parity/import-sql-noninteractive-abort.yaml +0 -20
  1421. package/testdata/parity/import-sql-status-completed.yaml +0 -17
  1422. package/testdata/parity/import-sql-status-no-job.yaml +0 -17
  1423. package/testdata/parity/import-sql-validation-failure.yaml +0 -18
  1424. package/testdata/parity/import-validate-files-clean.yaml +0 -18
  1425. package/testdata/parity/import-validate-files-not-dir.yaml +0 -16
  1426. package/testdata/parity/import-validate-sql-clean.yaml +0 -23
  1427. package/testdata/parity/import-validate-sql-dangerous-stmt.yaml +0 -27
  1428. package/testdata/parity/import-validate-sql-multisite-warn.yaml +0 -23
  1429. package/testdata/parity/logs-baseline.yaml +0 -24
  1430. package/testdata/parity/logs-batch.yaml +0 -24
  1431. package/testdata/parity/logs-empty.yaml +0 -15
  1432. package/testdata/parity/logs-format-json.yaml +0 -15
  1433. package/testdata/parity/logs-limit-100.yaml +0 -24
  1434. package/testdata/parity/phpmyadmin-error.yaml +0 -24
  1435. package/testdata/parity/phpmyadmin-print.yaml +0 -22
  1436. package/testdata/parity/phpmyadmin-silent.yaml +0 -16
  1437. package/testdata/parity/recordings/app-get-baseline/app.json +0 -11
  1438. package/testdata/parity/recordings/app-get-custom-deploy/app.json +0 -8
  1439. package/testdata/parity/recordings/app-get-json/app.json +0 -11
  1440. package/testdata/parity/recordings/app-get-not-found/app.json +0 -1
  1441. package/testdata/parity/recordings/app-list-baseline/apps.json +0 -1
  1442. package/testdata/parity/recordings/app-list-csv/apps.json +0 -1
  1443. package/testdata/parity/recordings/app-list-empty/apps.json +0 -1
  1444. package/testdata/parity/recordings/app-list-json/apps.json +0 -1
  1445. package/testdata/parity/recordings/backup-db-already-in-progress/backup-status-1.json +0 -1
  1446. package/testdata/parity/recordings/backup-db-already-in-progress/backup-status-2.json +0 -1
  1447. package/testdata/parity/recordings/backup-db-completed/backup-status-1.json +0 -1
  1448. package/testdata/parity/recordings/backup-db-completed/backup-status-2.json +0 -1
  1449. package/testdata/parity/recordings/backup-db-completed/backup-status-3.json +0 -1
  1450. package/testdata/parity/recordings/cache-purge-url-empty/resolve-app.json +0 -1
  1451. package/testdata/parity/recordings/cache-purge-url-from-file/purge.json +0 -1
  1452. package/testdata/parity/recordings/cache-purge-url-from-file/resolve-app.json +0 -1
  1453. package/testdata/parity/recordings/cache-purge-url-from-file/urls.txt +0 -2
  1454. package/testdata/parity/recordings/cache-purge-url-multi/purge.json +0 -1
  1455. package/testdata/parity/recordings/cache-purge-url-multi/resolve-app.json +0 -1
  1456. package/testdata/parity/recordings/cache-purge-url-single/purge.json +0 -1
  1457. package/testdata/parity/recordings/cache-purge-url-single/resolve-app.json +0 -1
  1458. package/testdata/parity/recordings/config-software-get/resolve-app.json +0 -1
  1459. package/testdata/parity/recordings/config-software-update/resolve-app.json +0 -1
  1460. package/testdata/parity/recordings/defensive-mode-enable-rechallenge/mutation-elevated.json +0 -1
  1461. package/testdata/parity/recordings/defensive-mode-enable-rechallenge/mutation-success.json +0 -1
  1462. package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-create-session.json +0 -1
  1463. package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-exchange.json +0 -1
  1464. package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-status-verified.json +0 -1
  1465. package/testdata/parity/recordings/envvar-delete-baseline/delete.json +0 -1
  1466. package/testdata/parity/recordings/envvar-delete-baseline/resolve-app.json +0 -1
  1467. package/testdata/parity/recordings/envvar-delete-prod-cancel/resolve-app.json +0 -1
  1468. package/testdata/parity/recordings/envvar-delete-typed-mismatch/resolve-app.json +0 -1
  1469. package/testdata/parity/recordings/envvar-get-baseline/envvars.json +0 -1
  1470. package/testdata/parity/recordings/envvar-get-baseline/resolve-app.json +0 -1
  1471. package/testdata/parity/recordings/envvar-get-lowercase-input/envvars.json +0 -1
  1472. package/testdata/parity/recordings/envvar-get-lowercase-input/resolve-app.json +0 -1
  1473. package/testdata/parity/recordings/envvar-get-named-help/envvars.json +0 -1
  1474. package/testdata/parity/recordings/envvar-get-named-help/resolve-app.json +0 -1
  1475. package/testdata/parity/recordings/envvar-get-not-found/envvars.json +0 -1
  1476. package/testdata/parity/recordings/envvar-get-not-found/resolve-app.json +0 -1
  1477. package/testdata/parity/recordings/envvar-getall-baseline/envvars.json +0 -1
  1478. package/testdata/parity/recordings/envvar-getall-baseline/resolve-app.json +0 -1
  1479. package/testdata/parity/recordings/envvar-getall-empty/envvars.json +0 -1
  1480. package/testdata/parity/recordings/envvar-getall-empty/resolve-app.json +0 -1
  1481. package/testdata/parity/recordings/envvar-getall-keyvalue/envvars.json +0 -1
  1482. package/testdata/parity/recordings/envvar-getall-keyvalue/resolve-app.json +0 -1
  1483. package/testdata/parity/recordings/envvar-list-baseline/envvars.json +0 -1
  1484. package/testdata/parity/recordings/envvar-list-baseline/resolve-app.json +0 -1
  1485. package/testdata/parity/recordings/envvar-list-empty/envvars.json +0 -1
  1486. package/testdata/parity/recordings/envvar-list-empty/resolve-app.json +0 -1
  1487. package/testdata/parity/recordings/envvar-list-ids/envvars.json +0 -1
  1488. package/testdata/parity/recordings/envvar-list-ids/resolve-app.json +0 -1
  1489. package/testdata/parity/recordings/envvar-list-json/envvars.json +0 -1
  1490. package/testdata/parity/recordings/envvar-list-json/resolve-app.json +0 -1
  1491. package/testdata/parity/recordings/envvar-list-keyvalue/envvars.json +0 -1
  1492. package/testdata/parity/recordings/envvar-list-keyvalue/resolve-app.json +0 -1
  1493. package/testdata/parity/recordings/envvar-set-baseline/add.json +0 -1
  1494. package/testdata/parity/recordings/envvar-set-baseline/resolve-app.json +0 -1
  1495. package/testdata/parity/recordings/envvar-set-baseline/value.txt +0 -1
  1496. package/testdata/parity/recordings/envvar-set-invalid-name/resolve-app.json +0 -1
  1497. package/testdata/parity/recordings/envvar-set-invalid-name/value.txt +0 -1
  1498. package/testdata/parity/recordings/envvar-set-newrelic-blocked/resolve-app.json +0 -1
  1499. package/testdata/parity/recordings/envvar-set-newrelic-blocked/value.txt +0 -1
  1500. package/testdata/parity/recordings/envvar-set-prod-cancel/resolve-app.json +0 -1
  1501. package/testdata/parity/recordings/envvar-set-prod-cancel/value.txt +0 -1
  1502. package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/add.json +0 -1
  1503. package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/resolve-app.json +0 -1
  1504. package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/value.txt +0 -1
  1505. package/testdata/parity/recordings/export-sql-completed/export-status-1.json +0 -1
  1506. package/testdata/parity/recordings/export-sql-completed/export-status-2.json +0 -1
  1507. package/testdata/parity/recordings/import-media-invalid-archive/file.sql +0 -1
  1508. package/testdata/parity/recordings/import-media-shared/abort-media-import.json +0 -1
  1509. package/testdata/parity/recordings/import-media-shared/env-info.json +0 -1
  1510. package/testdata/parity/recordings/import-media-shared/resolve-app.json +0 -1
  1511. package/testdata/parity/recordings/import-media-shared/start-media-import.json +0 -1
  1512. package/testdata/parity/recordings/import-media-status-completed/progress.json +0 -1
  1513. package/testdata/parity/recordings/import-media-status-failed/progress.json +0 -1
  1514. package/testdata/parity/recordings/import-media-url-completed/progress.json +0 -1
  1515. package/testdata/parity/recordings/import-sql-bad-extension/file.txt +0 -1
  1516. package/testdata/parity/recordings/import-sql-in-progress/env-info.json +0 -1
  1517. package/testdata/parity/recordings/import-sql-in-progress/resolve-app.json +0 -1
  1518. package/testdata/parity/recordings/import-sql-noninteractive-abort/clean.sql +0 -5
  1519. package/testdata/parity/recordings/import-sql-shared/env-info.json +0 -1
  1520. package/testdata/parity/recordings/import-sql-shared/multisite.json +0 -1
  1521. package/testdata/parity/recordings/import-sql-shared/resolve-app.json +0 -1
  1522. package/testdata/parity/recordings/import-sql-status-completed/progress.json +0 -1
  1523. package/testdata/parity/recordings/import-sql-status-no-job/progress.json +0 -1
  1524. package/testdata/parity/recordings/import-sql-validation-failure/dirty.sql +0 -6
  1525. package/testdata/parity/recordings/import-validate-files-clean/config.json +0 -1
  1526. package/testdata/parity/recordings/import-validate-files-clean/uploads/2020/06/a.jpg +0 -1
  1527. package/testdata/parity/recordings/import-validate-files-clean/uploads/2020/06/b.png +0 -1
  1528. package/testdata/parity/recordings/import-validate-sql-clean/clean.sql +0 -17
  1529. package/testdata/parity/recordings/import-validate-sql-dangerous-stmt/dangerous.sql +0 -11
  1530. package/testdata/parity/recordings/import-validate-sql-multisite-warn/multisite.sql +0 -12
  1531. package/testdata/parity/recordings/logs-baseline/logs.json +0 -1
  1532. package/testdata/parity/recordings/logs-baseline/resolve-app.json +0 -1
  1533. package/testdata/parity/recordings/logs-batch/logs.json +0 -1
  1534. package/testdata/parity/recordings/logs-batch/resolve-app.json +0 -1
  1535. package/testdata/parity/recordings/logs-empty/logs.json +0 -1
  1536. package/testdata/parity/recordings/logs-empty/resolve-app.json +0 -1
  1537. package/testdata/parity/recordings/logs-format-json/logs.json +0 -1
  1538. package/testdata/parity/recordings/logs-format-json/resolve-app.json +0 -1
  1539. package/testdata/parity/recordings/logs-limit-100/logs.json +0 -1
  1540. package/testdata/parity/recordings/logs-limit-100/resolve-app.json +0 -1
  1541. package/testdata/parity/recordings/m7c-shared/resolve-app.json +0 -1
  1542. package/testdata/parity/recordings/phpmyadmin-error/enable.json +0 -1
  1543. package/testdata/parity/recordings/phpmyadmin-error/resolve-app.json +0 -1
  1544. package/testdata/parity/recordings/phpmyadmin-print/enable.json +0 -1
  1545. package/testdata/parity/recordings/phpmyadmin-print/generate.json +0 -1
  1546. package/testdata/parity/recordings/phpmyadmin-print/resolve-app.json +0 -1
  1547. package/testdata/parity/recordings/phpmyadmin-print/status.json +0 -1
  1548. package/testdata/parity/recordings/phpmyadmin-silent/enable.json +0 -1
  1549. package/testdata/parity/recordings/phpmyadmin-silent/generate.json +0 -1
  1550. package/testdata/parity/recordings/phpmyadmin-silent/resolve-app.json +0 -1
  1551. package/testdata/parity/recordings/phpmyadmin-silent/status.json +0 -1
  1552. package/testdata/parity/recordings/slowlogs-baseline/resolve-app.json +0 -1
  1553. package/testdata/parity/recordings/slowlogs-baseline/slowlogs.json +0 -1
  1554. package/testdata/parity/recordings/slowlogs-csv/resolve-app.json +0 -1
  1555. package/testdata/parity/recordings/slowlogs-csv/slowlogs.json +0 -1
  1556. package/testdata/parity/recordings/slowlogs-empty/resolve-app.json +0 -1
  1557. package/testdata/parity/recordings/slowlogs-empty/slowlogs.json +0 -1
  1558. package/testdata/parity/recordings/slowlogs-limit-50/resolve-app.json +0 -1
  1559. package/testdata/parity/recordings/slowlogs-limit-50/slowlogs.json +0 -1
  1560. package/testdata/parity/recordings/sync-already-syncing/resolve-app.json +0 -1
  1561. package/testdata/parity/recordings/sync-already-syncing/sync-start.json +0 -1
  1562. package/testdata/parity/recordings/sync-already-syncing/sync-status-1.json +0 -1
  1563. package/testdata/parity/recordings/sync-already-syncing/sync-status-2.json +0 -1
  1564. package/testdata/parity/recordings/sync-baseline/resolve-app.json +0 -1
  1565. package/testdata/parity/recordings/sync-baseline/sync-start.json +0 -1
  1566. package/testdata/parity/recordings/sync-baseline/sync-status-1.json +0 -1
  1567. package/testdata/parity/recordings/sync-baseline/sync-status-2.json +0 -1
  1568. package/testdata/parity/recordings/whoami-baseline/me-response.json +0 -1
  1569. package/testdata/parity/recordings/wp-nodejs-rejected/resolve-app.json +0 -1
  1570. package/testdata/parity/recordings/wp-production-confirm-decline/resolve-app.json +0 -1
  1571. package/testdata/parity/recordings/wp-ssh-happy/resolve-app.json +0 -1
  1572. package/testdata/parity/recordings/wp-websocket-redirect/resolve-app.json +0 -1
  1573. package/testdata/parity/slowlogs-baseline.yaml +0 -18
  1574. package/testdata/parity/slowlogs-csv.yaml +0 -16
  1575. package/testdata/parity/slowlogs-empty.yaml +0 -17
  1576. package/testdata/parity/slowlogs-limit-50.yaml +0 -16
  1577. package/testdata/parity/sync-already-syncing.yaml +0 -20
  1578. package/testdata/parity/sync-baseline.yaml +0 -19
  1579. package/testdata/parity/version-smoke.yaml +0 -14
  1580. package/testdata/parity/whoami-baseline.yaml +0 -14
  1581. package/testdata/parity/wp-help.yaml +0 -12
  1582. package/testdata/parity/wp-nodejs-rejected.yaml +0 -13
  1583. package/testdata/parity/wp-production-confirm-decline.yaml +0 -14
  1584. package/testdata/parity/wp-ssh-happy.yaml +0 -15
  1585. package/testdata/parity/wp-websocket-redirect.yaml +0 -14
  1586. package/testdata/parity-local/app-get-csv.yaml +0 -8
  1587. package/testdata/parity-local/app-get-json.yaml +0 -8
  1588. package/testdata/parity-local/app-get-table.yaml +0 -8
  1589. package/testdata/parity-local/app-list-csv.yaml +0 -8
  1590. package/testdata/parity-local/app-list-json.yaml +0 -8
  1591. package/testdata/parity-local/app-list-table.yaml +0 -8
  1592. package/testdata/parity-local/edge-workers/basic/edge-workers.json +0 -1
  1593. package/testdata/parity-local/edge-workers/basic/workers/headers/assembly/index.ts +0 -1
  1594. package/testdata/parity-local/edge-workers/basic/workers/headers/worker.json +0 -1
  1595. package/testdata/parity-local/edge-workers/two-workers/edge-workers.json +0 -1
  1596. package/testdata/parity-local/edge-workers/two-workers/workers/a/assembly/index.ts +0 -1
  1597. package/testdata/parity-local/edge-workers/two-workers/workers/a/worker.json +0 -1
  1598. package/testdata/parity-local/edge-workers/two-workers/workers/b/assembly/index.ts +0 -1
  1599. package/testdata/parity-local/edge-workers/two-workers/workers/b/worker.json +0 -1
  1600. package/testdata/parity-local/envvar-list-csv.yaml +0 -8
  1601. package/testdata/parity-local/envvar-list-ids.yaml +0 -8
  1602. package/testdata/parity-local/envvar-list-json.yaml +0 -8
  1603. package/testdata/parity-local/envvar-list-keyvalue.yaml +0 -8
  1604. package/testdata/parity-local/envvar-list-table.yaml +0 -8
  1605. package/testdata/parity-local/software-get-csv.yaml +0 -8
  1606. package/testdata/parity-local/software-get-json.yaml +0 -8
  1607. package/testdata/parity-local/software-get-table.yaml +0 -8
  1608. package/testdata/parity-local/whoami.yaml +0 -8
  1609. package/testdata/update-fixture/main.go +0 -62
  1610. package/third_party/go-search-replace/MANIFEST +0 -33
  1611. package/tsconfig.json +0 -25
  1612. /package/node_modules/lando/node_modules/{wrap-ansi → ansi-regex}/license +0 -0
@@ -112,11 +112,9 @@ const baseOpen = async options => {
112
112
  browser = await defaultBrowser();
113
113
  }
114
114
 
115
- if (Object.hasOwn(ids, browser.id)) {
116
- const browserName = ids[browser.id.toLowerCase()];
117
- if (browserName === undefined) {
118
- throw new Error(`${browser.name} is not supported as a default browser`);
119
- }
115
+ const browserId = browser.id?.toLowerCase();
116
+ if (Object.hasOwn(ids, browserId)) {
117
+ const browserName = ids[browserId];
120
118
 
121
119
  if (app === 'browserPrivate') {
122
120
  // Safari doesn't support private mode via command line
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open",
3
- "version": "11.0.3",
3
+ "version": "11.0.4",
4
4
  "description": "Open stuff like URLs, files, executables. Cross-platform.",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/open",
@@ -1,4 +1,5 @@
1
1
 
2
+
2
3
  # socket.io-client
3
4
 
4
5
  [![Build Status](https://github.com/socketio/socket.io-client/workflows/CI/badge.svg?branch=main)](https://github.com/socketio/socket.io-client/actions)
@@ -1,5 +1,5 @@
1
- import { Manager, ManagerOptions } from "./manager.js";
2
- import { DisconnectDescription, Socket, SocketOptions } from "./socket.js";
1
+ import { Manager, ManagerOptions, ManagerReservedEvents } from "./manager.js";
2
+ import { DisconnectDescription, ExtendedError, Socket, SocketOptions, SocketReservedEvents } from "./socket.js";
3
3
  /**
4
4
  * Looks up an existing `Manager` for multiplexing.
5
5
  * If the user summons:
@@ -25,5 +25,5 @@ export { protocol } from "socket.io-parser";
25
25
  *
26
26
  * @public
27
27
  */
28
- export { DisconnectDescription, Manager, ManagerOptions, Socket, SocketOptions, lookup as io, lookup as connect, lookup as default, };
28
+ export { DisconnectDescription, ExtendedError, Manager, ManagerOptions, ManagerReservedEvents, Socket, SocketOptions, SocketReservedEvents, lookup as io, lookup as connect, lookup as default, };
29
29
  export { Fetch, NodeXHR, XHR, NodeWebSocket, WebSocket, WebTransport, } from "engine.io-client";
@@ -59,7 +59,7 @@ export interface ManagerOptions extends EngineOptions {
59
59
  */
60
60
  parser: any;
61
61
  }
62
- interface ManagerReservedEvents {
62
+ export interface ManagerReservedEvents {
63
63
  open: () => void;
64
64
  error: (err: Error) => void;
65
65
  ping: () => void;
@@ -292,4 +292,3 @@ export declare class Manager<ListenEvents extends EventsMap = DefaultEventsMap,
292
292
  */
293
293
  private onreconnect;
294
294
  }
295
- export {};
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -52,9 +52,12 @@ export type DisconnectDescription = Error | {
52
52
  description: string;
53
53
  context?: unknown;
54
54
  };
55
- interface SocketReservedEvents {
55
+ export interface ExtendedError extends Error {
56
+ data?: any;
57
+ }
58
+ export interface SocketReservedEvents {
56
59
  connect: () => void;
57
- connect_error: (err: Error) => void;
60
+ connect_error: (err: ExtendedError) => void;
58
61
  disconnect: (reason: Socket.DisconnectReason, description?: DisconnectDescription) => void;
59
62
  }
60
63
  /**
@@ -522,7 +522,6 @@ class Socket extends component_emitter_1.Emitter {
522
522
  case socket_io_parser_1.PacketType.CONNECT_ERROR:
523
523
  this.destroy();
524
524
  const err = new Error(packet.data.message);
525
- // @ts-ignore
526
525
  err.data = packet.data.data;
527
526
  this.emitReserved("connect_error", err);
528
527
  break;
@@ -1,5 +1,5 @@
1
- import { Manager, ManagerOptions } from "./manager.js";
2
- import { DisconnectDescription, Socket, SocketOptions } from "./socket.js";
1
+ import { Manager, ManagerOptions, ManagerReservedEvents } from "./manager.js";
2
+ import { DisconnectDescription, ExtendedError, Socket, SocketOptions, SocketReservedEvents } from "./socket.js";
3
3
  /**
4
4
  * Looks up an existing `Manager` for multiplexing.
5
5
  * If the user summons:
@@ -25,5 +25,5 @@ export { protocol } from "socket.io-parser";
25
25
  *
26
26
  * @public
27
27
  */
28
- export { DisconnectDescription, Manager, ManagerOptions, Socket, SocketOptions, lookup as io, lookup as connect, lookup as default, };
28
+ export { DisconnectDescription, ExtendedError, Manager, ManagerOptions, ManagerReservedEvents, Socket, SocketOptions, SocketReservedEvents, lookup as io, lookup as connect, lookup as default, };
29
29
  export { Fetch, NodeXHR, XHR, NodeWebSocket, WebSocket, WebTransport, } from "engine.io-client";
@@ -1,6 +1,6 @@
1
1
  import { url } from "./url.js";
2
2
  import { Manager } from "./manager.js";
3
- import { Socket } from "./socket.js";
3
+ import { Socket, } from "./socket.js";
4
4
  /**
5
5
  * Managers cache.
6
6
  */
@@ -59,7 +59,7 @@ export interface ManagerOptions extends EngineOptions {
59
59
  */
60
60
  parser: any;
61
61
  }
62
- interface ManagerReservedEvents {
62
+ export interface ManagerReservedEvents {
63
63
  open: () => void;
64
64
  error: (err: Error) => void;
65
65
  ping: () => void;
@@ -292,4 +292,3 @@ export declare class Manager<ListenEvents extends EventsMap = DefaultEventsMap,
292
292
  */
293
293
  private onreconnect;
294
294
  }
295
- export {};
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "socket.io-client",
3
- "version": "4.8.3",
3
+ "version": "4.8.4",
4
4
  "type": "module"
5
5
  }
@@ -52,9 +52,12 @@ export type DisconnectDescription = Error | {
52
52
  description: string;
53
53
  context?: unknown;
54
54
  };
55
- interface SocketReservedEvents {
55
+ export interface ExtendedError extends Error {
56
+ data?: any;
57
+ }
58
+ export interface SocketReservedEvents {
56
59
  connect: () => void;
57
- connect_error: (err: Error) => void;
60
+ connect_error: (err: ExtendedError) => void;
58
61
  disconnect: (reason: Socket.DisconnectReason, description?: DisconnectDescription) => void;
59
62
  }
60
63
  /**
@@ -502,7 +502,6 @@ export class Socket extends Emitter {
502
502
  case PacketType.CONNECT_ERROR:
503
503
  this.destroy();
504
504
  const err = new Error(packet.data.message);
505
- // @ts-ignore
506
505
  err.data = packet.data.data;
507
506
  this.emitReserved("connect_error", err);
508
507
  break;
@@ -1,5 +1,5 @@
1
- import { Manager, ManagerOptions } from "./manager.js";
2
- import { DisconnectDescription, Socket, SocketOptions } from "./socket.js";
1
+ import { Manager, ManagerOptions, ManagerReservedEvents } from "./manager.js";
2
+ import { DisconnectDescription, ExtendedError, Socket, SocketOptions, SocketReservedEvents } from "./socket.js";
3
3
  /**
4
4
  * Looks up an existing `Manager` for multiplexing.
5
5
  * If the user summons:
@@ -25,5 +25,5 @@ export { protocol } from "socket.io-parser";
25
25
  *
26
26
  * @public
27
27
  */
28
- export { DisconnectDescription, Manager, ManagerOptions, Socket, SocketOptions, lookup as io, lookup as connect, lookup as default, };
28
+ export { DisconnectDescription, ExtendedError, Manager, ManagerOptions, ManagerReservedEvents, Socket, SocketOptions, SocketReservedEvents, lookup as io, lookup as connect, lookup as default, };
29
29
  export { Fetch, NodeXHR, XHR, NodeWebSocket, WebSocket, WebTransport, } from "engine.io-client";
@@ -1,6 +1,6 @@
1
1
  import { url } from "./url.js";
2
2
  import { Manager } from "./manager.js";
3
- import { Socket } from "./socket.js";
3
+ import { Socket, } from "./socket.js";
4
4
  import debugModule from "debug"; // debug()
5
5
  const debug = debugModule("socket.io-client"); // debug()
6
6
  /**
@@ -59,7 +59,7 @@ export interface ManagerOptions extends EngineOptions {
59
59
  */
60
60
  parser: any;
61
61
  }
62
- interface ManagerReservedEvents {
62
+ export interface ManagerReservedEvents {
63
63
  open: () => void;
64
64
  error: (err: Error) => void;
65
65
  ping: () => void;
@@ -292,4 +292,3 @@ export declare class Manager<ListenEvents extends EventsMap = DefaultEventsMap,
292
292
  */
293
293
  private onreconnect;
294
294
  }
295
- export {};
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "socket.io-client",
3
- "version": "4.8.3",
3
+ "version": "4.8.4",
4
4
  "type": "module"
5
5
  }
@@ -52,9 +52,12 @@ export type DisconnectDescription = Error | {
52
52
  description: string;
53
53
  context?: unknown;
54
54
  };
55
- interface SocketReservedEvents {
55
+ export interface ExtendedError extends Error {
56
+ data?: any;
57
+ }
58
+ export interface SocketReservedEvents {
56
59
  connect: () => void;
57
- connect_error: (err: Error) => void;
60
+ connect_error: (err: ExtendedError) => void;
58
61
  disconnect: (reason: Socket.DisconnectReason, description?: DisconnectDescription) => void;
59
62
  }
60
63
  /**
@@ -516,7 +516,6 @@ export class Socket extends Emitter {
516
516
  case PacketType.CONNECT_ERROR:
517
517
  this.destroy();
518
518
  const err = new Error(packet.data.message);
519
- // @ts-ignore
520
519
  err.data = packet.data.data;
521
520
  this.emitReserved("connect_error", err);
522
521
  break;
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * Socket.IO v4.8.3
3
- * (c) 2014-2025 Guillermo Rauch
2
+ * Socket.IO v4.8.4
3
+ * (c) 2014-2026 Guillermo Rauch
4
4
  * Released under the MIT License.
5
5
  */
6
- const t=Object.create(null);t.open="0",t.close="1",t.ping="2",t.pong="3",t.message="4",t.upgrade="5",t.noop="6";const s=Object.create(null);Object.keys(t).forEach((i=>{s[t[i]]=i}));const i={type:"error",data:"parser error"},e="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),n="function"==typeof ArrayBuffer,r=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,o=({type:s,data:i},o,c)=>e&&i instanceof Blob?o?c(i):h(i,c):n&&(i instanceof ArrayBuffer||r(i))?o?c(i):h(new Blob([i]),c):c(t[s]+(i||"")),h=(t,s)=>{const i=new FileReader;return i.onload=function(){const t=i.result.split(",")[1];s("b"+(t||""))},i.readAsDataURL(t)};function c(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let a;const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t<64;t++)f[u.charCodeAt(t)]=t;const l="function"==typeof ArrayBuffer,d=(t,e)=>{if("string"!=typeof t)return{type:"message",data:y(t,e)};const n=t.charAt(0);if("b"===n)return{type:"message",data:p(t.substring(1),e)};return s[n]?t.length>1?{type:s[n],data:t.substring(1)}:{type:s[n]}:i},p=(t,s)=>{if(l){const i=(t=>{let s,i,e,n,r,o=.75*t.length,h=t.length,c=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);const a=new ArrayBuffer(o),u=new Uint8Array(a);for(s=0;s<h;s+=4)i=f[t.charCodeAt(s)],e=f[t.charCodeAt(s+1)],n=f[t.charCodeAt(s+2)],r=f[t.charCodeAt(s+3)],u[c++]=i<<2|e>>4,u[c++]=(15&e)<<4|n>>2,u[c++]=(3&n)<<6|63&r;return a})(t);return y(i,s)}return{base64:!0,data:t}},y=(t,s)=>"blob"===s?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer,b=String.fromCharCode(30);function g(){return new TransformStream({transform(t,s){!function(t,s){e&&t.data instanceof Blob?t.data.arrayBuffer().then(c).then(s):n&&(t.data instanceof ArrayBuffer||r(t.data))?s(c(t.data)):o(t,!1,(t=>{a||(a=new TextEncoder),s(a.encode(t))}))}(t,(i=>{const e=i.length;let n;if(e<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,e);else if(e<65536){n=new Uint8Array(3);const t=new DataView(n.buffer);t.setUint8(0,126),t.setUint16(1,e)}else{n=new Uint8Array(9);const t=new DataView(n.buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(e))}t.data&&"string"!=typeof t.data&&(n[0]|=128),s.enqueue(n),s.enqueue(i)}))}})}let w;function v(t){return t.reduce(((t,s)=>t+s.length),0)}function m(t,s){if(t[0].length===s)return t.shift();const i=new Uint8Array(s);let e=0;for(let n=0;n<s;n++)i[n]=t[0][e++],e===t[0].length&&(t.shift(),e=0);return t.length&&e<t[0].length&&(t[0]=t[0].slice(e)),i}function k(t){if(t)return function(t){for(var s in k.prototype)t[s]=k.prototype[s];return t}(t)}k.prototype.on=k.prototype.addEventListener=function(t,s){return this.t=this.t||{},(this.t["$"+t]=this.t["$"+t]||[]).push(s),this},k.prototype.once=function(t,s){function i(){this.off(t,i),s.apply(this,arguments)}return i.fn=s,this.on(t,i),this},k.prototype.off=k.prototype.removeListener=k.prototype.removeAllListeners=k.prototype.removeEventListener=function(t,s){if(this.t=this.t||{},0==arguments.length)return this.t={},this;var i,e=this.t["$"+t];if(!e)return this;if(1==arguments.length)return delete this.t["$"+t],this;for(var n=0;n<e.length;n++)if((i=e[n])===s||i.fn===s){e.splice(n,1);break}return 0===e.length&&delete this.t["$"+t],this},k.prototype.emit=function(t){this.t=this.t||{};for(var s=new Array(arguments.length-1),i=this.t["$"+t],e=1;e<arguments.length;e++)s[e-1]=arguments[e];if(i){e=0;for(var n=(i=i.slice(0)).length;e<n;++e)i[e].apply(this,s)}return this},k.prototype.emitReserved=k.prototype.emit,k.prototype.listeners=function(t){return this.t=this.t||{},this.t["$"+t]||[]},k.prototype.hasListeners=function(t){return!!this.listeners(t).length};const A="function"==typeof Promise&&"function"==typeof Promise.resolve?t=>Promise.resolve().then(t):(t,s)=>s(t,0),E="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function O(t,...s){return s.reduce(((s,i)=>(t.hasOwnProperty(i)&&(s[i]=t[i]),s)),{})}const _=E.setTimeout,j=E.clearTimeout;function x(t,s){s.useNativeTimers?(t.setTimeoutFn=_.bind(E),t.clearTimeoutFn=j.bind(E)):(t.setTimeoutFn=E.setTimeout.bind(E),t.clearTimeoutFn=E.clearTimeout.bind(E))}function B(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class C extends Error{constructor(t,s,i){super(t),this.description=s,this.context=i,this.type="TransportError"}}class T extends k{constructor(t){super(),this.writable=!1,x(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,s,i){return super.emitReserved("error",new C(t,s,i)),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 s=d(t,this.socket.binaryType);this.onPacket(s)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,s={}){return t+"://"+this.i()+this.o()+this.opts.path+this.h(s)}i(){const t=this.opts.hostname;return-1===t.indexOf(":")?t:"["+t+"]"}o(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}h(t){const s=function(t){let s="";for(let i in t)t.hasOwnProperty(i)&&(s.length&&(s+="&"),s+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return s}(t);return s.length?"?"+s:""}}class N extends T{constructor(){super(...arguments),this.u=!1}get name(){return"polling"}doOpen(){this.l()}pause(t){this.readyState="pausing";const s=()=>{this.readyState="paused",t()};if(this.u||!this.writable){let t=0;this.u&&(t++,this.once("pollComplete",(function(){--t||s()}))),this.writable||(t++,this.once("drain",(function(){--t||s()})))}else s()}l(){this.u=!0,this.doPoll(),this.emitReserved("poll")}onData(t){((t,s)=>{const i=t.split(b),e=[];for(let t=0;t<i.length;t++){const n=d(i[t],s);if(e.push(n),"error"===n.type)break}return e})(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.u=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.l())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,((t,s)=>{const i=t.length,e=new Array(i);let n=0;t.forEach(((t,r)=>{o(t,!1,(t=>{e[r]=t,++n===i&&s(e.join(b))}))}))})(t,(t=>{this.doWrite(t,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const t=this.opts.secure?"https":"http",s=this.query||{};return!1!==this.opts.timestampRequests&&(s[this.opts.timestampParam]=B()),this.supportsBinary||s.sid||(s.b64=1),this.createUri(t,s)}}let U=!1;try{U="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}const P=U;function D(){}class M extends N{constructor(t){if(super(t),"undefined"!=typeof location){const s="https:"===location.protocol;let i=location.port;i||(i=s?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||i!==t.port}}doWrite(t,s){const i=this.request({method:"POST",data:t});i.on("success",s),i.on("error",((t,s)=>{this.onError("xhr post error",t,s)}))}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",((t,s)=>{this.onError("xhr poll error",t,s)})),this.pollXhr=t}}class S extends k{constructor(t,s,i){super(),this.createRequest=t,x(this,i),this.p=i,this.v=i.method||"GET",this.m=s,this.k=void 0!==i.data?i.data:null,this.A()}A(){var t;const s=O(this.p,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this.p.xd;const i=this.O=this.createRequest(s);try{i.open(this.v,this.m,!0);try{if(this.p.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let t in this.p.extraHeaders)this.p.extraHeaders.hasOwnProperty(t)&&i.setRequestHeader(t,this.p.extraHeaders[t])}}catch(t){}if("POST"===this.v)try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{i.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this.p.cookieJar)||void 0===t||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this.p.withCredentials),this.p.requestTimeout&&(i.timeout=this.p.requestTimeout),i.onreadystatechange=()=>{var t;3===i.readyState&&(null===(t=this.p.cookieJar)||void 0===t||t.parseCookies(i.getResponseHeader("set-cookie"))),4===i.readyState&&(200===i.status||1223===i.status?this._():this.setTimeoutFn((()=>{this.j("number"==typeof i.status?i.status:0)}),0))},i.send(this.k)}catch(t){return void this.setTimeoutFn((()=>{this.j(t)}),0)}"undefined"!=typeof document&&(this.B=S.requestsCount++,S.requests[this.B]=this)}j(t){this.emitReserved("error",t,this.O),this.C(!0)}C(t){if(void 0!==this.O&&null!==this.O){if(this.O.onreadystatechange=D,t)try{this.O.abort()}catch(t){}"undefined"!=typeof document&&delete S.requests[this.B],this.O=null}}_(){const t=this.O.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.C())}abort(){this.C()}}if(S.requestsCount=0,S.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",L);else if("function"==typeof addEventListener){addEventListener("onpagehide"in E?"pagehide":"unload",L,!1)}function L(){for(let t in S.requests)S.requests.hasOwnProperty(t)&&S.requests[t].abort()}const R=function(){const t=F({xdomain:!1});return t&&null!==t.responseType}();class I extends M{constructor(t){super(t);const s=t&&t.forceBase64;this.supportsBinary=R&&!s}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new S(F,this.uri(),t)}}function F(t){const s=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!s||P))return new XMLHttpRequest}catch(t){}if(!s)try{return new(E[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}const $="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class V extends T{get name(){return"websocket"}doOpen(){const t=this.uri(),s=this.opts.protocols,i=$?{}:O(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,s,i)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws.T.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 s=0;s<t.length;s++){const i=t[s],e=s===t.length-1;o(i,this.supportsBinary,(t=>{try{this.doWrite(i,t)}catch(t){}e&&A((()=>{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",s=this.query||{};return this.opts.timestampRequests&&(s[this.opts.timestampParam]=B()),this.supportsBinary||(s.b64=1),this.createUri(t,s)}}const H=E.WebSocket||E.MozWebSocket;class W extends V{createSocket(t,s,i){return $?new H(t,s,i):s?new H(t,s):new H(t)}doWrite(t,s){this.ws.send(s)}}class q extends T{get name(){return"webtransport"}doOpen(){try{this.N=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this.N.closed.then((()=>{this.onClose()})).catch((t=>{this.onError("webtransport error",t)})),this.N.ready.then((()=>{this.N.createBidirectionalStream().then((t=>{const s=function(t,s){w||(w=new TextDecoder);const e=[];let n=0,r=-1,o=!1;return new TransformStream({transform(h,c){for(e.push(h);;){if(0===n){if(v(e)<1)break;const t=m(e,1);o=!(128&~t[0]),r=127&t[0],n=r<126?3:126===r?1:2}else if(1===n){if(v(e)<2)break;const t=m(e,2);r=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),n=3}else if(2===n){if(v(e)<8)break;const t=m(e,8),s=new DataView(t.buffer,t.byteOffset,t.length),o=s.getUint32(0);if(o>Math.pow(2,21)-1){c.enqueue(i);break}r=o*Math.pow(2,32)+s.getUint32(4),n=3}else{if(v(e)<r)break;const t=m(e,r);c.enqueue(d(o?t:w.decode(t),s)),n=0}if(0===r||r>t){c.enqueue(i);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),e=t.readable.pipeThrough(s).getReader(),n=g();n.readable.pipeTo(t.writable),this.U=n.writable.getWriter();const r=()=>{e.read().then((({done:t,value:s})=>{t||(this.onPacket(s),r())})).catch((t=>{}))};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.U.write(o).then((()=>this.onOpen()))}))}))}write(t){this.writable=!1;for(let s=0;s<t.length;s++){const i=t[s],e=s===t.length-1;this.U.write(i).then((()=>{e&&A((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var t;null===(t=this.N)||void 0===t||t.close()}}const X={websocket:W,webtransport:q,polling:I},z=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,J=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Q(t){if(t.length>8e3)throw"URI too long";const s=t,i=t.indexOf("["),e=t.indexOf("]");-1!=i&&-1!=e&&(t=t.substring(0,i)+t.substring(i,e).replace(/:/g,";")+t.substring(e,t.length));let n=z.exec(t||""),r={},o=14;for(;o--;)r[J[o]]=n[o]||"";return-1!=i&&-1!=e&&(r.source=s,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=function(t,s){const i=/\/{2,9}/g,e=s.replace(i,"/").split("/");"/"!=s.slice(0,1)&&0!==s.length||e.splice(0,1);"/"==s.slice(-1)&&e.splice(e.length-1,1);return e}(0,r.path),r.queryKey=function(t,s){const i={};return s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,s,e){s&&(i[s]=e)})),i}(0,r.query),r}const G="function"==typeof addEventListener&&"function"==typeof removeEventListener,K=[];G&&addEventListener("offline",(()=>{K.forEach((t=>t()))}),!1);class Y extends k{constructor(t,s){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this.P=0,this.D=-1,this.M=-1,this.S=-1,this.L=1/0,t&&"object"==typeof t&&(s=t,t=null),t){const i=Q(t);s.hostname=i.host,s.secure="https"===i.protocol||"wss"===i.protocol,s.port=i.port,i.query&&(s.query=i.query)}else s.host&&(s.hostname=Q(s.host).host);x(this,s),this.secure=null!=s.secure?s.secure:"undefined"!=typeof location&&"https:"===location.protocol,s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=s.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this.R={},s.transports.forEach((t=>{const s=t.prototype.name;this.transports.push(s),this.R[s]=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},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(t){let s={},i=t.split("&");for(let t=0,e=i.length;t<e;t++){let e=i[t].split("=");s[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return s}(this.opts.query)),G&&(this.opts.closeOnBeforeunload&&(this.I=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.I,!1)),"localhost"!==this.hostname&&(this.F=()=>{this.$("transport close",{description:"network connection lost"})},K.push(this.F))),this.opts.withCredentials&&(this.V=void 0),this.H()}createTransport(t){const s=Object.assign({},this.opts.query);s.EIO=4,s.transport=t,this.id&&(s.sid=this.id);const i=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this.R[t](i)}H(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const t=this.opts.rememberUpgrade&&Y.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const s=this.createTransport(t);s.open(),this.setTransport(s)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.W.bind(this)).on("packet",this.q.bind(this)).on("error",this.j.bind(this)).on("close",(t=>this.$("transport close",t)))}onOpen(){this.readyState="open",Y.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}q(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.X("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this.J();break;case"error":const s=new Error("server error");s.code=t.data,this.j(s);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.D=t.pingInterval,this.M=t.pingTimeout,this.S=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.J()}J(){this.clearTimeoutFn(this.G);const t=this.D+this.M;this.L=Date.now()+t,this.G=this.setTimeoutFn((()=>{this.$("ping timeout")}),t),this.opts.autoUnref&&this.G.unref()}W(){this.writeBuffer.splice(0,this.P),this.P=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.K();this.transport.send(t),this.P=t.length,this.emitReserved("flush")}}K(){if(!(this.S&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let i=0;i<this.writeBuffer.length;i++){const e=this.writeBuffer[i].data;if(e&&(t+="string"==typeof(s=e)?function(t){let s=0,i=0;for(let e=0,n=t.length;e<n;e++)s=t.charCodeAt(e),s<128?i+=1:s<2048?i+=2:s<55296||s>=57344?i+=3:(e++,i+=4);return i}(s):Math.ceil(1.33*(s.byteLength||s.size))),i>0&&t>this.S)return this.writeBuffer.slice(0,i);t+=2}var s;return this.writeBuffer}Y(){if(!this.L)return!0;const t=Date.now()>this.L;return t&&(this.L=0,A((()=>{this.$("ping timeout")}),this.setTimeoutFn)),t}write(t,s,i){return this.X("message",t,s,i),this}send(t,s,i){return this.X("message",t,s,i),this}X(t,s,i,e){if("function"==typeof s&&(e=s,s=void 0),"function"==typeof i&&(e=i,i=null),"closing"===this.readyState||"closed"===this.readyState)return;(i=i||{}).compress=!1!==i.compress;const n={type:t,data:s,options:i};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),e&&this.once("flush",e),this.flush()}close(){const t=()=>{this.$("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),t()},i=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?i():t()})):this.upgrading?i():t()),this}j(t){if(Y.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this.H();this.emitReserved("error",t),this.$("transport error",t)}$(t,s){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this.G),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),G&&(this.I&&removeEventListener("beforeunload",this.I,!1),this.F)){const t=K.indexOf(this.F);-1!==t&&K.splice(t,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,s),this.writeBuffer=[],this.P=0}}}Y.protocol=4;class Z extends Y{constructor(){super(...arguments),this.Z=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let t=0;t<this.Z.length;t++)this.tt(this.Z[t])}tt(t){let s=this.createTransport(t),i=!1;Y.priorWebsocketSuccess=!1;const e=()=>{i||(s.send([{type:"ping",data:"probe"}]),s.once("packet",(t=>{if(!i)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",s),!s)return;Y.priorWebsocketSuccess="websocket"===s.name,this.transport.pause((()=>{i||"closed"!==this.readyState&&(a(),this.setTransport(s),s.send([{type:"upgrade"}]),this.emitReserved("upgrade",s),s=null,this.upgrading=!1,this.flush())}))}else{const t=new Error("probe error");t.transport=s.name,this.emitReserved("upgradeError",t)}})))};function n(){i||(i=!0,a(),s.close(),s=null)}const r=t=>{const i=new Error("probe error: "+t);i.transport=s.name,n(),this.emitReserved("upgradeError",i)};function o(){r("transport closed")}function h(){r("socket closed")}function c(t){s&&t.name!==s.name&&n()}const a=()=>{s.removeListener("open",e),s.removeListener("error",r),s.removeListener("close",o),this.off("close",h),this.off("upgrading",c)};s.once("open",e),s.once("error",r),s.once("close",o),this.once("close",h),this.once("upgrading",c),-1!==this.Z.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((()=>{i||s.open()}),200):s.open()}onHandshake(t){this.Z=this.st(t.upgrades),super.onHandshake(t)}st(t){const s=[];for(let i=0;i<t.length;i++)~this.transports.indexOf(t[i])&&s.push(t[i]);return s}}class tt extends Z{constructor(t,s={}){const i="object"==typeof t?t:s;(!i.transports||i.transports&&"string"==typeof i.transports[0])&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map((t=>X[t])).filter((t=>!!t))),super(t,i)}}class st extends N{doPoll(){this.it().then((t=>{if(!t.ok)return this.onError("fetch read error",t.status,t);t.text().then((t=>this.onData(t)))})).catch((t=>{this.onError("fetch read error",t)}))}doWrite(t,s){this.it(t).then((t=>{if(!t.ok)return this.onError("fetch write error",t.status,t);s()})).catch((t=>{this.onError("fetch write error",t)}))}it(t){var s;const i=void 0!==t,e=new Headers(this.opts.extraHeaders);return i&&e.set("content-type","text/plain;charset=UTF-8"),null===(s=this.socket.V)||void 0===s||s.appendCookies(e),fetch(this.uri(),{method:i?"POST":"GET",body:i?t:null,headers:e,credentials:this.opts.withCredentials?"include":"omit"}).then((t=>{var s;return null===(s=this.socket.V)||void 0===s||s.parseCookies(t.headers.getSetCookie()),t}))}}const it="function"==typeof ArrayBuffer,et=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,nt=Object.prototype.toString,rt="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===nt.call(Blob),ot="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===nt.call(File);function ht(t){return it&&(t instanceof ArrayBuffer||et(t))||rt&&t instanceof Blob||ot&&t instanceof File}function ct(t,s){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let s=0,i=t.length;s<i;s++)if(ct(t[s]))return!0;return!1}if(ht(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return ct(t.toJSON(),!0);for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&ct(t[s]))return!0;return!1}function at(t){const s=[],i=t.data,e=t;return e.data=ut(i,s),e.attachments=s.length,{packet:e,buffers:s}}function ut(t,s){if(!t)return t;if(ht(t)){const i={_placeholder:!0,num:s.length};return s.push(t),i}if(Array.isArray(t)){const i=new Array(t.length);for(let e=0;e<t.length;e++)i[e]=ut(t[e],s);return i}if("object"==typeof t&&!(t instanceof Date)){const i={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=ut(t[e],s));return i}return t}function ft(t,s){return t.data=lt(t.data,s),delete t.attachments,t}function lt(t,s){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<s.length)return s[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]=lt(t[i],s);else if("object"==typeof t)for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=lt(t[i],s));return t}const dt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],pt=5;var yt;!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"}(yt||(yt={}));class bt extends k{constructor(t){super(),this.reviver=t}add(t){let s;if("string"==typeof t){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");s=this.decodeString(t);const i=s.type===yt.BINARY_EVENT;i||s.type===yt.BINARY_ACK?(s.type=i?yt.EVENT:yt.ACK,this.reconstructor=new gt(s),0===s.attachments&&super.emitReserved("decoded",s)):super.emitReserved("decoded",s)}else{if(!ht(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");s=this.reconstructor.takeBinaryData(t),s&&(this.reconstructor=null,super.emitReserved("decoded",s))}}decodeString(t){let s=0;const i={type:Number(t.charAt(0))};if(void 0===yt[i.type])throw new Error("unknown packet type "+i.type);if(i.type===yt.BINARY_EVENT||i.type===yt.BINARY_ACK){const e=s+1;for(;"-"!==t.charAt(++s)&&s!=t.length;);const n=t.substring(e,s);if(n!=Number(n)||"-"!==t.charAt(s))throw new Error("Illegal attachments");i.attachments=Number(n)}if("/"===t.charAt(s+1)){const e=s+1;for(;++s;){if(","===t.charAt(s))break;if(s===t.length)break}i.nsp=t.substring(e,s)}else i.nsp="/";const e=t.charAt(s+1);if(""!==e&&Number(e)==e){const e=s+1;for(;++s;){const i=t.charAt(s);if(null==i||Number(i)!=i){--s;break}if(s===t.length)break}i.id=Number(t.substring(e,s+1))}if(t.charAt(++s)){const e=this.tryParse(t.substr(s));if(!bt.isPayloadValid(i.type,e))throw new Error("invalid payload");i.data=e}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(t){return!1}}static isPayloadValid(t,s){switch(t){case yt.CONNECT:return vt(s);case yt.DISCONNECT:return void 0===s;case yt.CONNECT_ERROR:return"string"==typeof s||vt(s);case yt.EVENT:case yt.BINARY_EVENT:return Array.isArray(s)&&("number"==typeof s[0]||"string"==typeof s[0]&&-1===dt.indexOf(s[0]));case yt.ACK:case yt.BINARY_ACK:return Array.isArray(s)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class gt{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=ft(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const wt=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t};function vt(t){return"[object Object]"===Object.prototype.toString.call(t)}var mt=Object.freeze({__proto__:null,protocol:5,get PacketType(){return yt},Encoder:class{constructor(t){this.replacer=t}encode(t){return t.type!==yt.EVENT&&t.type!==yt.ACK||!ct(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===yt.EVENT?yt.BINARY_EVENT:yt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let s=""+t.type;return t.type!==yt.BINARY_EVENT&&t.type!==yt.BINARY_ACK||(s+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(s+=t.nsp+","),null!=t.id&&(s+=t.id),null!=t.data&&(s+=JSON.stringify(t.data,this.replacer)),s}encodeAsBinary(t){const s=at(t),i=this.encodeAsString(s.packet),e=s.buffers;return e.unshift(i),e}},Decoder:bt,isPacketValid:function(t){return"string"==typeof t.nsp&&(void 0===(s=t.id)||wt(s))&&function(t,s){switch(t){case yt.CONNECT:return void 0===s||vt(s);case yt.DISCONNECT:return void 0===s;case yt.EVENT:return Array.isArray(s)&&("number"==typeof s[0]||"string"==typeof s[0]&&-1===dt.indexOf(s[0]));case yt.ACK:return Array.isArray(s);case yt.CONNECT_ERROR:return"string"==typeof s||vt(s);default:return!1}}(t.type,t.data);var s}});function kt(t,s,i){return t.on(s,i),function(){t.off(s,i)}}const At=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Et extends k{constructor(t,s,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this.et=[],this.nt=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=s,i&&i.auth&&(this.auth=i.auth),this.p=Object.assign({},i),this.io.rt&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[kt(t,"open",this.onopen.bind(this)),kt(t,"packet",this.onpacket.bind(this)),kt(t,"error",this.onerror.bind(this)),kt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io.ot||this.io.open(),"open"===this.io.ht&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...s){var i,e,n;if(At.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(s.unshift(t),this.p.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this.ct(s),this;const r={type:yt.EVENT,data:s,options:{}};if(r.options.compress=!1!==this.flags.compress,"function"==typeof s[s.length-1]){const t=this.ids++,i=s.pop();this.ut(t,i),r.id=t}const o=null===(e=null===(i=this.io.engine)||void 0===i?void 0:i.transport)||void 0===e?void 0:e.writable,h=this.connected&&!(null===(n=this.io.engine)||void 0===n?void 0:n.Y());return this.flags.volatile&&!o||(h?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}ut(t,s){var i;const e=null!==(i=this.flags.timeout)&&void 0!==i?i:this.p.ackTimeout;if(void 0===e)return void(this.acks[t]=s);const n=this.io.setTimeoutFn((()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);s.call(this,new Error("operation has timed out"))}),e),r=(...t)=>{this.io.clearTimeoutFn(n),s.apply(this,t)};r.withError=!0,this.acks[t]=r}emitWithAck(t,...s){return new Promise(((i,e)=>{const n=(t,s)=>t?e(t):i(s);n.withError=!0,s.push(n),this.emit(t,...s)}))}ct(t){let s;"function"==typeof t[t.length-1]&&(s=t.pop());const i={id:this.nt++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push(((t,...e)=>{this.et[0];return null!==t?i.tryCount>this.p.retries&&(this.et.shift(),s&&s(t)):(this.et.shift(),s&&s(null,...e)),i.pending=!1,this.ft()})),this.et.push(i),this.ft()}ft(t=!1){if(!this.connected||0===this.et.length)return;const s=this.et[0];s.pending&&!t||(s.pending=!0,s.tryCount++,this.flags=s.flags,this.emit.apply(this,s.args))}packet(t){t.nsp=this.nsp,this.io.lt(t)}onopen(){"function"==typeof this.auth?this.auth((t=>{this.dt(t)})):this.dt(this.auth)}dt(t){this.packet({type:yt.CONNECT,data:this.yt?Object.assign({pid:this.yt,offset:this.bt},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,s){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,s),this.gt()}gt(){Object.keys(this.acks).forEach((t=>{if(!this.sendBuffer.some((s=>String(s.id)===t))){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}}))}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case yt.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 yt.EVENT:case yt.BINARY_EVENT:this.onevent(t);break;case yt.ACK:case yt.BINARY_ACK:this.onack(t);break;case yt.DISCONNECT:this.ondisconnect();break;case yt.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s)}}onevent(t){const s=t.data||[];null!=t.id&&s.push(this.ack(t.id)),this.connected?this.emitEvent(s):this.receiveBuffer.push(Object.freeze(s))}emitEvent(t){if(this.wt&&this.wt.length){const s=this.wt.slice();for(const i of s)i.apply(this,t)}super.emit.apply(this,t),this.yt&&t.length&&"string"==typeof t[t.length-1]&&(this.bt=t[t.length-1])}ack(t){const s=this;let i=!1;return function(...e){i||(i=!0,s.packet({type:yt.ACK,id:t,data:e}))}}onack(t){const s=this.acks[t.id];"function"==typeof s&&(delete this.acks[t.id],s.withError&&t.data.unshift(null),s.apply(this,t.data))}onconnect(t,s){this.id=t,this.recovered=s&&this.yt===s,this.yt=s,this.connected=!0,this.emitBuffered(),this.ft(!0),this.emitReserved("connect")}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.vt(this)}disconnect(){return this.connected&&this.packet({type:yt.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.wt=this.wt||[],this.wt.push(t),this}prependAny(t){return this.wt=this.wt||[],this.wt.unshift(t),this}offAny(t){if(!this.wt)return this;if(t){const s=this.wt;for(let i=0;i<s.length;i++)if(t===s[i])return s.splice(i,1),this}else this.wt=[];return this}listenersAny(){return this.wt||[]}onAnyOutgoing(t){return this.kt=this.kt||[],this.kt.push(t),this}prependAnyOutgoing(t){return this.kt=this.kt||[],this.kt.unshift(t),this}offAnyOutgoing(t){if(!this.kt)return this;if(t){const s=this.kt;for(let i=0;i<s.length;i++)if(t===s[i])return s.splice(i,1),this}else this.kt=[];return this}listenersAnyOutgoing(){return this.kt||[]}notifyOutgoingListeners(t){if(this.kt&&this.kt.length){const s=this.kt.slice();for(const i of s)i.apply(this,t.data)}}}function Ot(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}Ot.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var s=Math.random(),i=Math.floor(s*this.jitter*t);t=1&Math.floor(10*s)?t+i:t-i}return 0|Math.min(t,this.max)},Ot.prototype.reset=function(){this.attempts=0},Ot.prototype.setMin=function(t){this.ms=t},Ot.prototype.setMax=function(t){this.max=t},Ot.prototype.setJitter=function(t){this.jitter=t};class _t extends k{constructor(t,s){var i;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(s=t,t=void 0),(s=s||{}).path=s.path||"/socket.io",this.opts=s,x(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!==(i=s.randomizationFactor)&&void 0!==i?i:.5),this.backoff=new Ot({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==s.timeout?2e4:s.timeout),this.ht="closed",this.uri=t;const e=s.parser||mt;this.encoder=new e.Encoder,this.decoder=new e.Decoder,this.rt=!1!==s.autoConnect,this.rt&&this.open()}reconnection(t){return arguments.length?(this.At=!!t,t||(this.skipReconnect=!0),this):this.At}reconnectionAttempts(t){return void 0===t?this.Et:(this.Et=t,this)}reconnectionDelay(t){var s;return void 0===t?this.Ot:(this.Ot=t,null===(s=this.backoff)||void 0===s||s.setMin(t),this)}randomizationFactor(t){var s;return void 0===t?this._t:(this._t=t,null===(s=this.backoff)||void 0===s||s.setJitter(t),this)}reconnectionDelayMax(t){var s;return void 0===t?this.jt:(this.jt=t,null===(s=this.backoff)||void 0===s||s.setMax(t),this)}timeout(t){return arguments.length?(this.xt=t,this):this.xt}maybeReconnectOnOpen(){!this.ot&&this.At&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this.ht.indexOf("open"))return this;this.engine=new tt(this.uri,this.opts);const s=this.engine,i=this;this.ht="opening",this.skipReconnect=!1;const e=kt(s,"open",(function(){i.onopen(),t&&t()})),n=s=>{this.cleanup(),this.ht="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},r=kt(s,"error",n);if(!1!==this.xt){const t=this.xt,i=this.setTimeoutFn((()=>{e(),n(new Error("timeout")),s.close()}),t);this.opts.autoUnref&&i.unref(),this.subs.push((()=>{this.clearTimeoutFn(i)}))}return this.subs.push(e),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this.ht="open",this.emitReserved("open");const t=this.engine;this.subs.push(kt(t,"ping",this.onping.bind(this)),kt(t,"data",this.ondata.bind(this)),kt(t,"error",this.onerror.bind(this)),kt(t,"close",this.onclose.bind(this)),kt(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){A((()=>{this.emitReserved("packet",t)}),this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,s){let i=this.nsps[t];return i?this.rt&&!i.active&&i.connect():(i=new Et(this,t,s),this.nsps[t]=i),i}vt(t){const s=Object.keys(this.nsps);for(const t of s){if(this.nsps[t].active)return}this.Bt()}lt(t){const s=this.encoder.encode(t);for(let i=0;i<s.length;i++)this.engine.write(s[i],t.options)}cleanup(){this.subs.forEach((t=>t())),this.subs.length=0,this.decoder.destroy()}Bt(){this.skipReconnect=!0,this.ot=!1,this.onclose("forced close")}disconnect(){return this.Bt()}onclose(t,s){var i;this.cleanup(),null===(i=this.engine)||void 0===i||i.close(),this.backoff.reset(),this.ht="closed",this.emitReserved("close",t,s),this.At&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this.ot||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this.Et)this.backoff.reset(),this.emitReserved("reconnect_failed"),this.ot=!1;else{const s=this.backoff.duration();this.ot=!0;const i=this.setTimeoutFn((()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((s=>{s?(t.ot=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()})))}),s);this.opts.autoUnref&&i.unref(),this.subs.push((()=>{this.clearTimeoutFn(i)}))}}onreconnect(){const t=this.backoff.attempts;this.ot=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const jt={};function xt(t,s){"object"==typeof t&&(s=t,t=void 0);const i=function(t,s="",i){let e=t;i=i||"undefined"!=typeof location&&location,null==t&&(t=i.protocol+"//"+i.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?i.protocol+t:i.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==i?i.protocol+"//"+t:"https://"+t),e=Q(t)),e.port||(/^(http|ws)$/.test(e.protocol)?e.port="80":/^(http|ws)s$/.test(e.protocol)&&(e.port="443")),e.path=e.path||"/";const n=-1!==e.host.indexOf(":")?"["+e.host+"]":e.host;return e.id=e.protocol+"://"+n+":"+e.port+s,e.href=e.protocol+"://"+n+(i&&i.port===e.port?"":":"+e.port),e}(t,(s=s||{}).path||"/socket.io"),e=i.source,n=i.id,r=i.path,o=jt[n]&&r in jt[n].nsps;let h;return s.forceNew||s["force new connection"]||!1===s.multiplex||o?h=new _t(e,s):(jt[n]||(jt[n]=new _t(e,s)),h=jt[n]),i.query&&!s.query&&(s.query=i.queryKey),h.socket(i.path,s)}Object.assign(xt,{Manager:_t,Socket:Et,io:xt,connect:xt});export{st as Fetch,_t as Manager,W as NodeWebSocket,I as NodeXHR,Et as Socket,W as WebSocket,q as WebTransport,I as XHR,xt as connect,xt as default,xt as io,pt as protocol};
6
+ const t=Object.create(null);t.open="0",t.close="1",t.ping="2",t.pong="3",t.message="4",t.upgrade="5",t.noop="6";const s=Object.create(null);Object.keys(t).forEach((i=>{s[t[i]]=i}));const i={type:"error",data:"parser error"},e="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),n="function"==typeof ArrayBuffer,r=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,o=({type:s,data:i},o,c)=>e&&i instanceof Blob?o?c(i):h(i,c):n&&(i instanceof ArrayBuffer||r(i))?o?c(i):h(new Blob([i]),c):c(t[s]+(i||"")),h=(t,s)=>{const i=new FileReader;return i.onload=function(){const t=i.result.split(",")[1];s("b"+(t||""))},i.readAsDataURL(t)};function c(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let a;const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t<64;t++)f[u.charCodeAt(t)]=t;const l="function"==typeof ArrayBuffer,d=(t,e)=>{if("string"!=typeof t)return{type:"message",data:y(t,e)};const n=t.charAt(0);if("b"===n)return{type:"message",data:p(t.substring(1),e)};return s[n]?t.length>1?{type:s[n],data:t.substring(1)}:{type:s[n]}:i},p=(t,s)=>{if(l){const i=(t=>{let s,i,e,n,r,o=.75*t.length,h=t.length,c=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);const a=new ArrayBuffer(o),u=new Uint8Array(a);for(s=0;s<h;s+=4)i=f[t.charCodeAt(s)],e=f[t.charCodeAt(s+1)],n=f[t.charCodeAt(s+2)],r=f[t.charCodeAt(s+3)],u[c++]=i<<2|e>>4,u[c++]=(15&e)<<4|n>>2,u[c++]=(3&n)<<6|63&r;return a})(t);return y(i,s)}return{base64:!0,data:t}},y=(t,s)=>"blob"===s?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer,b=String.fromCharCode(30);function w(){return new TransformStream({transform(t,s){!function(t,s){e&&t.data instanceof Blob?t.data.arrayBuffer().then(c).then(s):n&&(t.data instanceof ArrayBuffer||r(t.data))?s(c(t.data)):o(t,!1,(t=>{a||(a=new TextEncoder),s(a.encode(t))}))}(t,(i=>{const e=i.length;let n;if(e<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,e);else if(e<65536){n=new Uint8Array(3);const t=new DataView(n.buffer);t.setUint8(0,126),t.setUint16(1,e)}else{n=new Uint8Array(9);const t=new DataView(n.buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(e))}t.data&&"string"!=typeof t.data&&(n[0]|=128),s.enqueue(n),s.enqueue(i)}))}})}let g;function v(t){return t.reduce(((t,s)=>t+s.length),0)}function m(t,s){if(t[0].length===s)return t.shift();const i=new Uint8Array(s);let e=0;for(let n=0;n<s;n++)i[n]=t[0][e++],e===t[0].length&&(t.shift(),e=0);return t.length&&e<t[0].length&&(t[0]=t[0].slice(e)),i}function k(t){if(t)return function(t){for(var s in k.prototype)t[s]=k.prototype[s];return t}(t)}k.prototype.on=k.prototype.addEventListener=function(t,s){return this.t=this.t||{},(this.t["$"+t]=this.t["$"+t]||[]).push(s),this},k.prototype.once=function(t,s){function i(){this.off(t,i),s.apply(this,arguments)}return i.fn=s,this.on(t,i),this},k.prototype.off=k.prototype.removeListener=k.prototype.removeAllListeners=k.prototype.removeEventListener=function(t,s){if(this.t=this.t||{},0==arguments.length)return this.t={},this;var i,e=this.t["$"+t];if(!e)return this;if(1==arguments.length)return delete this.t["$"+t],this;for(var n=0;n<e.length;n++)if((i=e[n])===s||i.fn===s){e.splice(n,1);break}return 0===e.length&&delete this.t["$"+t],this},k.prototype.emit=function(t){this.t=this.t||{};for(var s=new Array(arguments.length-1),i=this.t["$"+t],e=1;e<arguments.length;e++)s[e-1]=arguments[e];if(i){e=0;for(var n=(i=i.slice(0)).length;e<n;++e)i[e].apply(this,s)}return this},k.prototype.emitReserved=k.prototype.emit,k.prototype.listeners=function(t){return this.t=this.t||{},this.t["$"+t]||[]},k.prototype.hasListeners=function(t){return!!this.listeners(t).length};const A="function"==typeof Promise&&"function"==typeof Promise.resolve?t=>Promise.resolve().then(t):(t,s)=>s(t,0),E="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function O(t,...s){return s.reduce(((s,i)=>(t.hasOwnProperty(i)&&(s[i]=t[i]),s)),{})}const _=E.setTimeout,j=E.clearTimeout;function B(t,s){s.useNativeTimers?(t.setTimeoutFn=_.bind(E),t.clearTimeoutFn=j.bind(E)):(t.setTimeoutFn=E.setTimeout.bind(E),t.clearTimeoutFn=E.clearTimeout.bind(E))}function x(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class C extends Error{constructor(t,s,i){super(t),this.description=s,this.context=i,this.type="TransportError"}}class T extends k{constructor(t){super(),this.writable=!1,B(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,s,i){return super.emitReserved("error",new C(t,s,i)),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 s=d(t,this.socket.binaryType);this.onPacket(s)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,s={}){return t+"://"+this.i()+this.o()+this.opts.path+this.h(s)}i(){const t=this.opts.hostname;return-1===t.indexOf(":")?t:"["+t+"]"}o(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}h(t){const s=function(t){let s="";for(let i in t)t.hasOwnProperty(i)&&(s.length&&(s+="&"),s+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return s}(t);return s.length?"?"+s:""}}class N extends T{constructor(){super(...arguments),this.u=!1}get name(){return"polling"}doOpen(){this.l()}pause(t){this.readyState="pausing";const s=()=>{this.readyState="paused",t()};if(this.u||!this.writable){let t=0;this.u&&(t++,this.once("pollComplete",(function(){--t||s()}))),this.writable||(t++,this.once("drain",(function(){--t||s()})))}else s()}l(){this.u=!0,this.doPoll(),this.emitReserved("poll")}onData(t){((t,s)=>{const i=t.split(b),e=[];for(let t=0;t<i.length;t++){const n=d(i[t],s);if(e.push(n),"error"===n.type)break}return e})(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.u=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.l())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,((t,s)=>{const i=t.length,e=new Array(i);let n=0;t.forEach(((t,r)=>{o(t,!1,(t=>{e[r]=t,++n===i&&s(e.join(b))}))}))})(t,(t=>{this.doWrite(t,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const t=this.opts.secure?"https":"http",s=this.query||{};return!1!==this.opts.timestampRequests&&(s[this.opts.timestampParam]=x()),this.supportsBinary||s.sid||(s.b64=1),this.createUri(t,s)}}let U=!1;try{U="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}const P=U;function D(){}class M extends N{constructor(t){if(super(t),"undefined"!=typeof location){const s="https:"===location.protocol;let i=location.port;i||(i=s?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||i!==t.port}}doWrite(t,s){const i=this.request({method:"POST",data:t});i.on("success",s),i.on("error",((t,s)=>{this.onError("xhr post error",t,s)}))}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",((t,s)=>{this.onError("xhr poll error",t,s)})),this.pollXhr=t}}class S extends k{constructor(t,s,i){super(),this.createRequest=t,B(this,i),this.p=i,this.v=i.method||"GET",this.m=s,this.k=void 0!==i.data?i.data:null,this.A()}A(){var t;const s=O(this.p,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this.p.xd;const i=this.O=this.createRequest(s);try{i.open(this.v,this.m,!0);try{if(this.p.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let t in this.p.extraHeaders)this.p.extraHeaders.hasOwnProperty(t)&&i.setRequestHeader(t,this.p.extraHeaders[t])}}catch(t){}if("POST"===this.v)try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{i.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this.p.cookieJar)||void 0===t||t.addCookies(i),"withCredentials"in i&&(i.withCredentials=this.p.withCredentials),this.p.requestTimeout&&(i.timeout=this.p.requestTimeout),i.onreadystatechange=()=>{var t;3===i.readyState&&(null===(t=this.p.cookieJar)||void 0===t||t.parseCookies(i.getResponseHeader("set-cookie"))),4===i.readyState&&(200===i.status||1223===i.status?this._():this.setTimeoutFn((()=>{this.j("number"==typeof i.status?i.status:0)}),0))},i.send(this.k)}catch(t){return void this.setTimeoutFn((()=>{this.j(t)}),0)}"undefined"!=typeof document&&(this.B=S.requestsCount++,S.requests[this.B]=this)}j(t){this.emitReserved("error",t,this.O),this.C(!0)}C(t){if(void 0!==this.O&&null!==this.O){if(this.O.onreadystatechange=D,t)try{this.O.abort()}catch(t){}"undefined"!=typeof document&&delete S.requests[this.B],this.O=null}}_(){const t=this.O.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.C())}abort(){this.C()}}if(S.requestsCount=0,S.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",L);else if("function"==typeof addEventListener){addEventListener("onpagehide"in E?"pagehide":"unload",L,!1)}function L(){for(let t in S.requests)S.requests.hasOwnProperty(t)&&S.requests[t].abort()}const R=function(){const t=F({xdomain:!1});return t&&null!==t.responseType}();class I extends M{constructor(t){super(t);const s=t&&t.forceBase64;this.supportsBinary=R&&!s}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new S(F,this.uri(),t)}}function F(t){const s=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!s||P))return new XMLHttpRequest}catch(t){}if(!s)try{return new(E[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}const $="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class V extends T{get name(){return"websocket"}doOpen(){const t=this.uri(),s=this.opts.protocols,i=$?{}:O(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,s,i)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws.T.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 s=0;s<t.length;s++){const i=t[s],e=s===t.length-1;o(i,this.supportsBinary,(t=>{try{this.doWrite(i,t)}catch(t){}e&&A((()=>{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",s=this.query||{};return this.opts.timestampRequests&&(s[this.opts.timestampParam]=x()),this.supportsBinary||(s.b64=1),this.createUri(t,s)}}const W=E.WebSocket||E.MozWebSocket;class q extends V{createSocket(t,s,i){return $?new W(t,s,i):s?new W(t,s):new W(t)}doWrite(t,s){this.ws.send(s)}}class H extends T{get name(){return"webtransport"}doOpen(){try{this.N=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this.N.closed.then((()=>{this.onClose()})).catch((t=>{this.onError("webtransport error",t)})),this.N.ready.then((()=>{this.N.createBidirectionalStream().then((t=>{const s=function(t,s){g||(g=new TextDecoder);const e=[];let n=0,r=-1,o=!1;return new TransformStream({transform(h,c){for(e.push(h);;){if(0===n){if(v(e)<1)break;const t=m(e,1);o=!(128&~t[0]),r=127&t[0],n=r<126?3:126===r?1:2}else if(1===n){if(v(e)<2)break;const t=m(e,2);r=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),n=3}else if(2===n){if(v(e)<8)break;const t=m(e,8),s=new DataView(t.buffer,t.byteOffset,t.length),o=s.getUint32(0);if(o>Math.pow(2,21)-1){c.enqueue(i);break}r=o*Math.pow(2,32)+s.getUint32(4),n=3}else{if(v(e)<r)break;const t=m(e,r);c.enqueue(d(o?t:g.decode(t),s)),n=0}if(0===r||r>t){c.enqueue(i);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),e=t.readable.pipeThrough(s).getReader(),n=w();n.readable.pipeTo(t.writable),this.U=n.writable.getWriter();const r=()=>{e.read().then((({done:t,value:s})=>{t||(this.onPacket(s),r())})).catch((t=>{}))};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.U.write(o).then((()=>this.onOpen()))}))}))}write(t){this.writable=!1;for(let s=0;s<t.length;s++){const i=t[s],e=s===t.length-1;this.U.write(i).then((()=>{e&&A((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var t;null===(t=this.N)||void 0===t||t.close()}}const X={websocket:q,webtransport:H,polling:I},z=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,J=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Q(t){if(t.length>8e3)throw"URI too long";const s=t,i=t.indexOf("["),e=t.indexOf("]");-1!=i&&-1!=e&&(t=t.substring(0,i)+t.substring(i,e).replace(/:/g,";")+t.substring(e,t.length));let n=z.exec(t||""),r={},o=14;for(;o--;)r[J[o]]=n[o]||"";return-1!=i&&-1!=e&&(r.source=s,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=function(t,s){const i=/\/{2,9}/g,e=s.replace(i,"/").split("/");"/"!=s.slice(0,1)&&0!==s.length||e.splice(0,1);"/"==s.slice(-1)&&e.splice(e.length-1,1);return e}(0,r.path),r.queryKey=function(t,s){const i={};return s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,s,e){s&&(i[s]=e)})),i}(0,r.query),r}const G="function"==typeof addEventListener&&"function"==typeof removeEventListener,K=[];G&&addEventListener("offline",(()=>{K.forEach((t=>t()))}),!1);class Y extends k{constructor(t,s={}){var i,e;if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this.P=0,this.D=[],this.M=-1,this.S=-1,this.L=-1,this.R=1/0,t&&"object"==typeof t&&(s=t,t=null),t){const i=Q(t);s.hostname=i.host,s.secure="https"===i.protocol||"wss"===i.protocol,s.port=i.port,i.query&&(s.query=i.query)}else s.host&&(s.hostname=Q(s.host).host);if(B(this,s),this.secure=null!=s.secure?s.secure:"undefined"!=typeof location&&"https:"===location.protocol,s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=s.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),s.transportImplementations&&s.transports)throw new Error("specifying both 'transportImplementations' and 'transports' options is not supported");s.transportImplementations||(null===(i=s.transports)||void 0===i?void 0:i.length)&&"function"==typeof s.transports[0]?(this.transports=[],this.I=Object.create(null),(null!==(e=s.transportImplementations)&&void 0!==e?e:s.transports).forEach((t=>{const s=t.prototype.name;this.transports.push(s),this.I[s]=t}))):(this.transports=s.transports?[...s.transports]:["polling","websocket","webtransport"],this.I=X),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},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(t){let s={},i=t.split("&");for(let t=0,e=i.length;t<e;t++){let e=i[t].split("=");s[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return s}(this.opts.query)),G&&(this.opts.closeOnBeforeunload&&(this.F=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.F,!1)),"localhost"!==this.hostname&&(this.$=()=>{this.V("transport close",{description:"network connection lost"})},K.push(this.$))),this.opts.withCredentials&&(this.W=void 0),this.q()}createTransport(t){const s=Object.assign({},this.opts.query);s.EIO=4,s.transport=t,this.id&&(s.sid=this.id);const i=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this.I[t](i)}q(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const t=this.opts.rememberUpgrade&&Y.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const s=this.createTransport(t);s.open(),this.setTransport(s)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.H.bind(this)).on("packet",this.X.bind(this)).on("error",this.j.bind(this)).on("close",(t=>this.V("transport close",t)))}J(t){let s=this.createTransport(t),i=!1;Y.priorWebsocketSuccess=!1;const e=()=>{i||(s.send([{type:"ping",data:"probe"}]),s.once("packet",(t=>{if(!i)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",s),!s)return;Y.priorWebsocketSuccess="websocket"===s.name,this.transport.pause((()=>{i||"closed"!==this.readyState&&(a(),this.setTransport(s),s.send([{type:"upgrade"}]),this.emitReserved("upgrade",s),s=null,this.upgrading=!1,this.flush())}))}else{const t=new Error("probe error");t.transport=s.name,this.emitReserved("upgradeError",t)}})))};function n(){i||(i=!0,a(),s.close(),s=null)}const r=t=>{const i=new Error("probe error: "+t);i.transport=s.name,n(),this.emitReserved("upgradeError",i)};function o(){r("transport closed")}function h(){r("socket closed")}function c(t){s&&t.name!==s.name&&n()}const a=()=>{s.removeListener("open",e),s.removeListener("error",r),s.removeListener("close",o),this.off("close",h),this.off("upgrading",c)};s.once("open",e),s.once("error",r),s.once("close",o),this.once("close",h),this.once("upgrading",c),-1!==this.D.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((()=>{i||s.open()}),200):s.open()}onOpen(){if(this.readyState="open",Y.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade)for(let t=0;t<this.D.length;t++)this.J(this.D[t])}X(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.G("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this.K();break;case"error":const s=new Error("server error");s.code=t.data,this.j(s);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.D=this.Y(t.upgrades),this.M=t.pingInterval,this.S=t.pingTimeout,this.L=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.K()}K(){this.clearTimeoutFn(this.Z);const t=this.M+this.S;this.R=Date.now()+t,this.Z=this.setTimeoutFn((()=>{this.V("ping timeout")}),t),this.opts.autoUnref&&this.Z.unref()}H(){this.writeBuffer.splice(0,this.P),this.P=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.tt();this.transport.send(t),this.P=t.length,this.emitReserved("flush")}}tt(){if(!(this.L&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let i=0;i<this.writeBuffer.length;i++){const e=this.writeBuffer[i].data;if(e&&(t+="string"==typeof(s=e)?function(t){let s=0,i=0;for(let e=0,n=t.length;e<n;e++)s=t.charCodeAt(e),s<128?i+=1:s<2048?i+=2:s<55296||s>=57344?i+=3:(e++,i+=4);return i}(s):Math.ceil(1.33*(s.byteLength||s.size))),i>0&&t>this.L)return this.writeBuffer.slice(0,i);t+=2}var s;return this.writeBuffer}st(){if(!this.R)return!0;const t=Date.now()>this.R;return t&&(this.R=0,A((()=>{this.V("ping timeout")}),this.setTimeoutFn)),t}write(t,s,i){return this.G("message",t,s,i),this}send(t,s,i){return this.G("message",t,s,i),this}G(t,s,i,e){if("function"==typeof s&&(e=s,s=void 0),"function"==typeof i&&(e=i,i=null),"closing"===this.readyState||"closed"===this.readyState)return;(i=i||{}).compress=!1!==i.compress;const n={type:t,data:s,options:i};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),e&&this.once("flush",e),this.flush()}close(){const t=()=>{this.V("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),t()},i=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?i():t()})):this.upgrading?i():t()),this}j(t){if(Y.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this.q();this.emitReserved("error",t),this.V("transport error",t)}V(t,s){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this.Z),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),G&&(this.F&&removeEventListener("beforeunload",this.F,!1),this.$)){const t=K.indexOf(this.$);-1!==t&&K.splice(t,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,s),this.writeBuffer=[],this.P=0}}Y(t){const s=[];for(let i=0;i<t.length;i++)~this.transports.indexOf(t[i])&&s.push(t[i]);return s}}Y.protocol=4;class Z extends N{doPoll(){this.it().then((t=>{if(!t.ok)return this.onError("fetch read error",t.status,t);t.text().then((t=>this.onData(t)))})).catch((t=>{this.onError("fetch read error",t)}))}doWrite(t,s){this.it(t).then((t=>{if(!t.ok)return this.onError("fetch write error",t.status,t);s()})).catch((t=>{this.onError("fetch write error",t)}))}it(t){var s;const i=void 0!==t,e=new Headers(this.opts.extraHeaders);return i&&e.set("content-type","text/plain;charset=UTF-8"),null===(s=this.socket.W)||void 0===s||s.appendCookies(e),fetch(this.uri(),{method:i?"POST":"GET",body:i?t:null,headers:e,credentials:this.opts.withCredentials?"include":"omit"}).then((t=>{var s;return null===(s=this.socket.W)||void 0===s||s.parseCookies(t.headers.getSetCookie()),t}))}}const tt="function"==typeof ArrayBuffer,st=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,it=Object.prototype.toString,et="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===it.call(Blob),nt="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===it.call(File);function rt(t){return tt&&(t instanceof ArrayBuffer||st(t))||et&&t instanceof Blob||nt&&t instanceof File}function ot(t,s){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let s=0,i=t.length;s<i;s++)if(ot(t[s]))return!0;return!1}if(rt(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return ot(t.toJSON(),!0);for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&ot(t[s]))return!0;return!1}function ht(t){const s=[],i=t.data,e=t;return e.data=ct(i,s),e.attachments=s.length,{packet:e,buffers:s}}function ct(t,s,i){if(!t)return t;if(rt(t)){const i={_placeholder:!0,num:s.length};return s.push(t),i}if(Array.isArray(t)){const i=new Array(t.length);for(let e=0;e<t.length;e++)i[e]=ct(t[e],s);return i}if("object"==typeof t&&!(t instanceof Date)){if(t.toJSON&&"function"==typeof t.toJSON&&!i)return ct(t.toJSON(),s,!0);const e={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=ct(t[i],s));return e}return t}function at(t,s){return t.data=ut(t.data,s),delete t.attachments,t}function ut(t,s){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<s.length)return s[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]=ut(t[i],s);else if("object"==typeof t)for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=ut(t[i],s));return t}const ft=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],lt=5;var dt;!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"}(dt||(dt={}));class pt extends k{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof t?{reviver:t}:t)}add(t){let s;if("string"==typeof t){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");s=this.decodeString(t);const i=s.type===dt.BINARY_EVENT;i||s.type===dt.BINARY_ACK?(s.type=i?dt.EVENT:dt.ACK,this.reconstructor=new yt(s)):super.emitReserved("decoded",s)}else{if(!rt(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");s=this.reconstructor.takeBinaryData(t),s&&(this.reconstructor=null,super.emitReserved("decoded",s))}}decodeString(t){let s=0;const i={type:Number(t.charAt(0))};if(void 0===dt[i.type])throw new Error("unknown packet type "+i.type);if(i.type===dt.BINARY_EVENT||i.type===dt.BINARY_ACK){const e=s+1;for(;"-"!==t.charAt(++s)&&s!=t.length;);const n=t.substring(e,s);if(n!=Number(n)||"-"!==t.charAt(s))throw new Error("Illegal attachments");const r=Number(n);if(!bt(r)||r<1)throw new Error("Illegal attachments");if(r>this.opts.maxAttachments)throw new Error("too many attachments");i.attachments=r}if("/"===t.charAt(s+1)){const e=s+1;for(;++s;){if(","===t.charAt(s))break;if(s===t.length)break}i.nsp=t.substring(e,s)}else i.nsp="/";const e=t.charAt(s+1);if(""!==e&&Number(e)==e){const e=s+1;for(;++s;){const i=t.charAt(s);if(null==i||Number(i)!=i){--s;break}if(s===t.length)break}i.id=Number(t.substring(e,s+1))}if(t.charAt(++s)){const e=this.tryParse(t.substr(s));if(!pt.isPayloadValid(i.type,e))throw new Error("invalid payload");i.data=e}return i}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch(t){return!1}}static isPayloadValid(t,s){switch(t){case dt.CONNECT:return wt(s);case dt.DISCONNECT:return void 0===s;case dt.CONNECT_ERROR:return"string"==typeof s||wt(s);case dt.EVENT:case dt.BINARY_EVENT:return Array.isArray(s)&&("number"==typeof s[0]||"string"==typeof s[0]&&-1===ft.indexOf(s[0]));case dt.ACK:case dt.BINARY_ACK:return Array.isArray(s)}}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=[]}}const bt=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t};function wt(t){return"[object Object]"===Object.prototype.toString.call(t)}var gt=Object.freeze({__proto__:null,protocol:5,get PacketType(){return dt},Encoder:class{constructor(t){this.replacer=t}encode(t){return t.type!==dt.EVENT&&t.type!==dt.ACK||!ot(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===dt.EVENT?dt.BINARY_EVENT:dt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let s=""+t.type;return t.type!==dt.BINARY_EVENT&&t.type!==dt.BINARY_ACK||(s+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(s+=t.nsp+","),null!=t.id&&(s+=t.id),null!=t.data&&(s+=JSON.stringify(t.data,this.replacer)),s}encodeAsBinary(t){const s=ht(t),i=this.encodeAsString(s.packet),e=s.buffers;return e.unshift(i),e}},Decoder:pt,isPacketValid:function(t){return"string"==typeof t.nsp&&(void 0===(s=t.id)||bt(s))&&function(t,s){switch(t){case dt.CONNECT:return void 0===s||wt(s);case dt.DISCONNECT:return void 0===s;case dt.EVENT:return Array.isArray(s)&&("number"==typeof s[0]||"string"==typeof s[0]&&-1===ft.indexOf(s[0]));case dt.ACK:return Array.isArray(s);case dt.CONNECT_ERROR:return"string"==typeof s||wt(s);default:return!1}}(t.type,t.data);var s}});function vt(t,s,i){return t.on(s,i),function(){t.off(s,i)}}const mt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class kt extends k{constructor(t,s,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this.et=[],this.nt=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=s,i&&i.auth&&(this.auth=i.auth),this.p=Object.assign({},i),this.io.rt&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[vt(t,"open",this.onopen.bind(this)),vt(t,"packet",this.onpacket.bind(this)),vt(t,"error",this.onerror.bind(this)),vt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io.ot||this.io.open(),"open"===this.io.ht&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...s){var i,e,n;if(mt.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(s.unshift(t),this.p.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this.ct(s),this;const r={type:dt.EVENT,data:s,options:{}};if(r.options.compress=!1!==this.flags.compress,"function"==typeof s[s.length-1]){const t=this.ids++,i=s.pop();this.ut(t,i),r.id=t}const o=null===(e=null===(i=this.io.engine)||void 0===i?void 0:i.transport)||void 0===e?void 0:e.writable,h=this.connected&&!(null===(n=this.io.engine)||void 0===n?void 0:n.st());return this.flags.volatile&&!o||(h?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}ut(t,s){var i;const e=null!==(i=this.flags.timeout)&&void 0!==i?i:this.p.ackTimeout;if(void 0===e)return void(this.acks[t]=s);const n=this.io.setTimeoutFn((()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);s.call(this,new Error("operation has timed out"))}),e),r=(...t)=>{this.io.clearTimeoutFn(n),s.apply(this,t)};r.withError=!0,this.acks[t]=r}emitWithAck(t,...s){return new Promise(((i,e)=>{const n=(t,s)=>t?e(t):i(s);n.withError=!0,s.push(n),this.emit(t,...s)}))}ct(t){let s;"function"==typeof t[t.length-1]&&(s=t.pop());const i={id:this.nt++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push(((t,...e)=>{this.et[0];return null!==t?i.tryCount>this.p.retries&&(this.et.shift(),s&&s(t)):(this.et.shift(),s&&s(null,...e)),i.pending=!1,this.ft()})),this.et.push(i),this.ft()}ft(t=!1){if(!this.connected||0===this.et.length)return;const s=this.et[0];s.pending&&!t||(s.pending=!0,s.tryCount++,this.flags=s.flags,this.emit.apply(this,s.args))}packet(t){t.nsp=this.nsp,this.io.lt(t)}onopen(){"function"==typeof this.auth?this.auth((t=>{this.dt(t)})):this.dt(this.auth)}dt(t){this.packet({type:dt.CONNECT,data:this.yt?Object.assign({pid:this.yt,offset:this.bt},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,s){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,s),this.wt()}wt(){Object.keys(this.acks).forEach((t=>{if(!this.sendBuffer.some((s=>String(s.id)===t))){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}}))}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case dt.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 dt.EVENT:case dt.BINARY_EVENT:this.onevent(t);break;case dt.ACK:case dt.BINARY_ACK:this.onack(t);break;case dt.DISCONNECT:this.ondisconnect();break;case dt.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s)}}onevent(t){const s=t.data||[];null!=t.id&&s.push(this.ack(t.id)),this.connected?this.emitEvent(s):this.receiveBuffer.push(Object.freeze(s))}emitEvent(t){if(this.gt&&this.gt.length){const s=this.gt.slice();for(const i of s)i.apply(this,t)}super.emit.apply(this,t),this.yt&&t.length&&"string"==typeof t[t.length-1]&&(this.bt=t[t.length-1])}ack(t){const s=this;let i=!1;return function(...e){i||(i=!0,s.packet({type:dt.ACK,id:t,data:e}))}}onack(t){const s=this.acks[t.id];"function"==typeof s&&(delete this.acks[t.id],s.withError&&t.data.unshift(null),s.apply(this,t.data))}onconnect(t,s){this.id=t,this.recovered=s&&this.yt===s,this.yt=s,this.connected=!0,this.emitBuffered(),this.ft(!0),this.emitReserved("connect")}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.vt(this)}disconnect(){return this.connected&&this.packet({type:dt.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.gt=this.gt||[],this.gt.push(t),this}prependAny(t){return this.gt=this.gt||[],this.gt.unshift(t),this}offAny(t){if(!this.gt)return this;if(t){const s=this.gt;for(let i=0;i<s.length;i++)if(t===s[i])return s.splice(i,1),this}else this.gt=[];return this}listenersAny(){return this.gt||[]}onAnyOutgoing(t){return this.kt=this.kt||[],this.kt.push(t),this}prependAnyOutgoing(t){return this.kt=this.kt||[],this.kt.unshift(t),this}offAnyOutgoing(t){if(!this.kt)return this;if(t){const s=this.kt;for(let i=0;i<s.length;i++)if(t===s[i])return s.splice(i,1),this}else this.kt=[];return this}listenersAnyOutgoing(){return this.kt||[]}notifyOutgoingListeners(t){if(this.kt&&this.kt.length){const s=this.kt.slice();for(const i of s)i.apply(this,t.data)}}}function At(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}At.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var s=Math.random(),i=Math.floor(s*this.jitter*t);t=1&Math.floor(10*s)?t+i:t-i}return 0|Math.min(t,this.max)},At.prototype.reset=function(){this.attempts=0},At.prototype.setMin=function(t){this.ms=t},At.prototype.setMax=function(t){this.max=t},At.prototype.setJitter=function(t){this.jitter=t};class Et extends k{constructor(t,s){var i;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(s=t,t=void 0),(s=s||{}).path=s.path||"/socket.io",this.opts=s,B(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!==(i=s.randomizationFactor)&&void 0!==i?i:.5),this.backoff=new At({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==s.timeout?2e4:s.timeout),this.ht="closed",this.uri=t;const e=s.parser||gt;this.encoder=new e.Encoder,this.decoder=new e.Decoder,this.rt=!1!==s.autoConnect,this.rt&&this.open()}reconnection(t){return arguments.length?(this.At=!!t,t||(this.skipReconnect=!0),this):this.At}reconnectionAttempts(t){return void 0===t?this.Et:(this.Et=t,this)}reconnectionDelay(t){var s;return void 0===t?this.Ot:(this.Ot=t,null===(s=this.backoff)||void 0===s||s.setMin(t),this)}randomizationFactor(t){var s;return void 0===t?this._t:(this._t=t,null===(s=this.backoff)||void 0===s||s.setJitter(t),this)}reconnectionDelayMax(t){var s;return void 0===t?this.jt:(this.jt=t,null===(s=this.backoff)||void 0===s||s.setMax(t),this)}timeout(t){return arguments.length?(this.Bt=t,this):this.Bt}maybeReconnectOnOpen(){!this.ot&&this.At&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this.ht.indexOf("open"))return this;this.engine=new Y(this.uri,this.opts);const s=this.engine,i=this;this.ht="opening",this.skipReconnect=!1;const e=vt(s,"open",(function(){i.onopen(),t&&t()})),n=s=>{this.cleanup(),this.ht="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},r=vt(s,"error",n);if(!1!==this.Bt){const t=this.Bt,i=this.setTimeoutFn((()=>{e(),n(new Error("timeout")),s.close()}),t);this.opts.autoUnref&&i.unref(),this.subs.push((()=>{this.clearTimeoutFn(i)}))}return this.subs.push(e),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this.ht="open",this.emitReserved("open");const t=this.engine;this.subs.push(vt(t,"ping",this.onping.bind(this)),vt(t,"data",this.ondata.bind(this)),vt(t,"error",this.onerror.bind(this)),vt(t,"close",this.onclose.bind(this)),vt(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){A((()=>{this.emitReserved("packet",t)}),this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,s){let i=this.nsps[t];return i?this.rt&&!i.active&&i.connect():(i=new kt(this,t,s),this.nsps[t]=i),i}vt(t){const s=Object.keys(this.nsps);for(const t of s){if(this.nsps[t].active)return}this.xt()}lt(t){const s=this.encoder.encode(t);for(let i=0;i<s.length;i++)this.engine.write(s[i],t.options)}cleanup(){this.subs.forEach((t=>t())),this.subs.length=0,this.decoder.destroy()}xt(){this.skipReconnect=!0,this.ot=!1,this.onclose("forced close")}disconnect(){return this.xt()}onclose(t,s){var i;this.cleanup(),null===(i=this.engine)||void 0===i||i.close(),this.backoff.reset(),this.ht="closed",this.emitReserved("close",t,s),this.At&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this.ot||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this.Et)this.backoff.reset(),this.emitReserved("reconnect_failed"),this.ot=!1;else{const s=this.backoff.duration();this.ot=!0;const i=this.setTimeoutFn((()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((s=>{s?(t.ot=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()})))}),s);this.opts.autoUnref&&i.unref(),this.subs.push((()=>{this.clearTimeoutFn(i)}))}}onreconnect(){const t=this.backoff.attempts;this.ot=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ot={};function _t(t,s){"object"==typeof t&&(s=t,t=void 0);const i=function(t,s="",i){let e=t;i=i||"undefined"!=typeof location&&location,null==t&&(t=i.protocol+"//"+i.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?i.protocol+t:i.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==i?i.protocol+"//"+t:"https://"+t),e=Q(t)),e.port||(/^(http|ws)$/.test(e.protocol)?e.port="80":/^(http|ws)s$/.test(e.protocol)&&(e.port="443")),e.path=e.path||"/";const n=-1!==e.host.indexOf(":")?"["+e.host+"]":e.host;return e.id=e.protocol+"://"+n+":"+e.port+s,e.href=e.protocol+"://"+n+(i&&i.port===e.port?"":":"+e.port),e}(t,(s=s||{}).path||"/socket.io"),e=i.source,n=i.id,r=i.path,o=Ot[n]&&r in Ot[n].nsps;let h;return s.forceNew||s["force new connection"]||!1===s.multiplex||o?h=new Et(e,s):(Ot[n]||(Ot[n]=new Et(e,s)),h=Ot[n]),i.query&&!s.query&&(s.query=i.queryKey),h.socket(i.path,s)}Object.assign(_t,{Manager:Et,Socket:kt,io:_t,connect:_t});export{Z as Fetch,Et as Manager,q as NodeWebSocket,I as NodeXHR,kt as Socket,q as WebSocket,H as WebTransport,I as XHR,_t as connect,_t as default,_t as io,lt as protocol};
7
7
  //# sourceMappingURL=socket.io.esm.min.js.map