antigravity-mobile-proxy 0.1.2 → 0.1.4

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 (616) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +2 -2
  3. package/.next/standalone/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/.next/required-server-files.json +5 -2
  5. package/.next/standalone/.next/server/app/_global-error/page.js +1 -1
  6. package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  8. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
  15. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  16. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/[filename]/route.js +2 -2
  18. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/[filename]/route.js.nft.json +1 -1
  19. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/route.js +2 -2
  20. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/route.js.nft.json +1 -1
  21. package/.next/standalone/.next/server/app/api/v1/artifacts/active/[filename]/route.js +2 -2
  22. package/.next/standalone/.next/server/app/api/v1/artifacts/active/[filename]/route.js.nft.json +1 -1
  23. package/.next/standalone/.next/server/app/api/v1/artifacts/active/route.js +2 -2
  24. package/.next/standalone/.next/server/app/api/v1/artifacts/active/route.js.nft.json +1 -1
  25. package/.next/standalone/.next/server/app/api/v1/artifacts/route.js +2 -2
  26. package/.next/standalone/.next/server/app/api/v1/artifacts/route.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/api/v1/chat/action/route.js +6 -2
  28. package/.next/standalone/.next/server/app/api/v1/chat/action/route.js.nft.json +1 -1
  29. package/.next/standalone/.next/server/app/api/v1/chat/approve/route.js +6 -2
  30. package/.next/standalone/.next/server/app/api/v1/chat/approve/route.js.nft.json +1 -1
  31. package/.next/standalone/.next/server/app/api/v1/chat/history/route.js +6 -2
  32. package/.next/standalone/.next/server/app/api/v1/chat/history/route.js.nft.json +1 -1
  33. package/.next/standalone/.next/server/app/api/v1/chat/mode/route.js +6 -2
  34. package/.next/standalone/.next/server/app/api/v1/chat/mode/route.js.nft.json +1 -1
  35. package/.next/standalone/.next/server/app/api/v1/chat/new/route.js +6 -2
  36. package/.next/standalone/.next/server/app/api/v1/chat/new/route.js.nft.json +1 -1
  37. package/.next/standalone/.next/server/app/api/v1/chat/reject/route.js +6 -2
  38. package/.next/standalone/.next/server/app/api/v1/chat/reject/route.js.nft.json +1 -1
  39. package/.next/standalone/.next/server/app/api/v1/chat/route.js +6 -2
  40. package/.next/standalone/.next/server/app/api/v1/chat/route.js.nft.json +1 -1
  41. package/.next/standalone/.next/server/app/api/v1/chat/state/route.js +6 -2
  42. package/.next/standalone/.next/server/app/api/v1/chat/state/route.js.nft.json +1 -1
  43. package/.next/standalone/.next/server/app/api/v1/chat/stream/route.js +7 -3
  44. package/.next/standalone/.next/server/app/api/v1/chat/stream/route.js.nft.json +1 -1
  45. package/.next/standalone/.next/server/app/api/v1/conversations/active/route.js +2 -2
  46. package/.next/standalone/.next/server/app/api/v1/conversations/active/route.js.nft.json +1 -1
  47. package/.next/standalone/.next/server/app/api/v1/conversations/route.js +7 -3
  48. package/.next/standalone/.next/server/app/api/v1/conversations/route.js.nft.json +1 -1
  49. package/.next/standalone/.next/server/app/api/v1/conversations/select/route.js +6 -2
  50. package/.next/standalone/.next/server/app/api/v1/conversations/select/route.js.nft.json +1 -1
  51. package/.next/standalone/.next/server/app/api/v1/debug/dom/route.js +6 -2
  52. package/.next/standalone/.next/server/app/api/v1/debug/dom/route.js.nft.json +1 -1
  53. package/.next/standalone/.next/server/app/api/v1/debug/scrape/route.js +6 -2
  54. package/.next/standalone/.next/server/app/api/v1/debug/scrape/route.js.nft.json +1 -1
  55. package/.next/standalone/.next/server/app/api/v1/health/route.js +6 -2
  56. package/.next/standalone/.next/server/app/api/v1/health/route.js.nft.json +1 -1
  57. package/.next/standalone/.next/server/app/api/v1/windows/cdp-start/route.js +2 -2
  58. package/.next/standalone/.next/server/app/api/v1/windows/cdp-start/route.js.nft.json +1 -1
  59. package/.next/standalone/.next/server/app/api/v1/windows/cdp-status/route.js +2 -2
  60. package/.next/standalone/.next/server/app/api/v1/windows/cdp-status/route.js.nft.json +1 -1
  61. package/.next/standalone/.next/server/app/api/v1/windows/close/route.js +6 -2
  62. package/.next/standalone/.next/server/app/api/v1/windows/close/route.js.nft.json +1 -1
  63. package/.next/standalone/.next/server/app/api/v1/windows/open/route.js +6 -2
  64. package/.next/standalone/.next/server/app/api/v1/windows/open/route.js.nft.json +1 -1
  65. package/.next/standalone/.next/server/app/api/v1/windows/recent/route.js +2 -2
  66. package/.next/standalone/.next/server/app/api/v1/windows/recent/route.js.nft.json +1 -1
  67. package/.next/standalone/.next/server/app/api/v1/windows/route.js +6 -2
  68. package/.next/standalone/.next/server/app/api/v1/windows/route.js.nft.json +1 -1
  69. package/.next/standalone/.next/server/app/api/v1/windows/select/route.js +6 -2
  70. package/.next/standalone/.next/server/app/api/v1/windows/select/route.js.nft.json +1 -1
  71. package/.next/standalone/.next/server/app/debug/page.js +1 -1
  72. package/.next/standalone/.next/server/app/debug/page.js.nft.json +1 -1
  73. package/.next/standalone/.next/server/app/debug/page_client-reference-manifest.js +1 -1
  74. package/.next/standalone/.next/server/app/favicon.ico/route.js +1 -1
  75. package/.next/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  76. package/.next/standalone/.next/server/app/page.js +1 -1
  77. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  78. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  79. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d31b133._.js +3 -0
  80. package/.next/standalone/.next/server/chunks/[root-of-the-server]__133ac672._.js +3 -0
  81. package/.next/standalone/.next/server/chunks/[root-of-the-server]__151eca3a._.js +3 -0
  82. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1535be2d._.js +3 -0
  83. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1ee7d416._.js +3 -0
  84. package/.next/standalone/.next/server/chunks/[root-of-the-server]__25f5f8ec._.js +3 -0
  85. package/.next/standalone/.next/server/chunks/[root-of-the-server]__26662154._.js +3 -0
  86. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2f4a0b79._.js +3 -0
  87. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__2ec5ba30._.js → [root-of-the-server]__3fe6d12c._.js} +2 -2
  88. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4b17d628._.js +3 -0
  89. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4c540a38._.js +3 -0
  90. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__8d2624da._.js → [root-of-the-server]__4d161104._.js} +2 -2
  91. package/.next/standalone/.next/server/chunks/[root-of-the-server]__53c4f34d._.js +3 -0
  92. package/.next/standalone/.next/server/chunks/[root-of-the-server]__68965284._.js +3 -0
  93. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8f5ebbc3._.js +7 -0
  94. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8f8bd59f._.js +20 -0
  95. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9166d84a._.js +3 -0
  96. package/.next/standalone/.next/server/chunks/[root-of-the-server]__94275f7f._.js +3 -0
  97. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c34d50c8._.js +3 -0
  98. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__8fdd2340._.js → [root-of-the-server]__c696771d._.js} +2 -2
  99. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0bd52b41._.js → [root-of-the-server]__cd7ccfdd._.js} +2 -2
  100. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d5818e20._.js +3 -0
  101. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__360475ac._.js → [root-of-the-server]__db7b3604._.js} +2 -2
  102. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__eeb89c13._.js → [root-of-the-server]__dc1db6cb._.js} +2 -2
  103. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__4effd91a._.js → [root-of-the-server]__e9181374._.js} +2 -2
  104. package/.next/standalone/.next/server/chunks/[root-of-the-server]__eb9ef4db._.js +3 -0
  105. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__4448d3d4._.js → [root-of-the-server]__ec32b318._.js} +2 -2
  106. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__7f18ffd0._.js → [root-of-the-server]__f54bea3d._.js} +2 -2
  107. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fabd57e0._.js +3 -0
  108. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fd0215df._.js +3 -0
  109. package/.next/standalone/.next/server/chunks/lib_cdp_connection_ts_075c799e._.js +41 -0
  110. package/.next/standalone/.next/server/chunks/node_modules_151ca6ae._.js +3 -0
  111. package/.next/standalone/.next/server/chunks/node_modules_1f8a2929._.js +3 -0
  112. package/.next/standalone/.next/server/chunks/node_modules_2d9a2f12._.js +4 -0
  113. package/.next/standalone/.next/server/chunks/node_modules_3b486fee._.js +3 -0
  114. package/.next/standalone/.next/server/chunks/node_modules_64199bef._.js +3 -0
  115. package/.next/standalone/.next/server/chunks/node_modules_@puppeteer_browsers_lib_esm_main_83020de3.js +3 -0
  116. package/.next/standalone/.next/server/chunks/node_modules_f81d3958._.js +3 -0
  117. package/.next/standalone/.next/server/chunks/node_modules_next_1402a1da._.js +2 -2
  118. package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0272adf7.js +5 -0
  119. package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0b1e64d7.js +3 -0
  120. package/.next/standalone/.next/server/chunks/node_modules_yargs_helpers_helpers_mjs_abe15519._.js +3 -0
  121. package/.next/standalone/.next/server/chunks/node_modules_yargs_index_mjs_c4f6f97b._.js +56 -0
  122. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__703e5e24._.js +3 -0
  123. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__edab6069._.js +3 -0
  124. package/.next/standalone/.next/server/chunks/ssr/components_chat-container_tsx_fcbc457f._.js +1 -1
  125. package/.next/standalone/.next/server/chunks/ssr/node_modules_63dba3f8._.js +1 -1
  126. package/.next/standalone/.next/server/pages/500.html +2 -2
  127. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  128. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  129. package/.next/standalone/app/api/v1/chat/stream/route.ts +2 -2
  130. package/.next/standalone/app/api/v1/conversations/route.ts +6 -1
  131. package/.next/standalone/app/globals.css +6 -0
  132. package/.next/standalone/components/agent-message.tsx +4 -5
  133. package/.next/standalone/components/chat-container.tsx +0 -2
  134. package/.next/standalone/components/message-list.tsx +2 -6
  135. package/.next/standalone/diag.js +72 -0
  136. package/.next/standalone/hooks/use-chat.ts +18 -1
  137. package/.next/standalone/lib/scraper/agent-state.ts +43 -17
  138. package/.next/standalone/lib/scraper/chat-history.ts +4 -0
  139. package/.next/standalone/lib/scraper/workspace-filter.ts +209 -0
  140. package/.next/standalone/lib/sse/diff-states.ts +18 -3
  141. package/.next/standalone/next.config.js +19 -0
  142. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
  143. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  144. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
  145. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  146. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
  147. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  148. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  149. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
  150. package/.next/standalone/node_modules/next/dist/build/generate-build-id.js +5 -1
  151. package/.next/standalone/package-lock.json +140 -129
  152. package/.next/standalone/package.json +4 -3
  153. package/.next/standalone/scripts/patch-next.js +69 -0
  154. package/.next/standalone/server.js +1 -1
  155. package/.next/standalone/tsconfig.json +14 -4
  156. package/.next/standalone/tsconfig.tsbuildinfo +1 -1
  157. package/.next/static/chunks/{54866979a976deea.css → 073aeeb732614ba1.css} +1 -1
  158. package/.next/static/chunks/0b8f1079dec6b3ad.js +1 -0
  159. package/package.json +4 -3
  160. package/.next/standalone/.next/server/chunks/[root-of-the-server]__08f06ee9._.js +0 -3
  161. package/.next/standalone/.next/server/chunks/[root-of-the-server]__15c96786._.js +0 -3
  162. package/.next/standalone/.next/server/chunks/[root-of-the-server]__19ee93c1._.js +0 -3
  163. package/.next/standalone/.next/server/chunks/[root-of-the-server]__324dc867._.js +0 -3
  164. package/.next/standalone/.next/server/chunks/[root-of-the-server]__38025e07._.js +0 -3
  165. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a837477._.js +0 -3
  166. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4f9fdc77._.js +0 -3
  167. package/.next/standalone/.next/server/chunks/[root-of-the-server]__556e6cd5._.js +0 -3
  168. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6479a312._.js +0 -3
  169. package/.next/standalone/.next/server/chunks/[root-of-the-server]__693625a1._.js +0 -3
  170. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6ec98c1f._.js +0 -3
  171. package/.next/standalone/.next/server/chunks/[root-of-the-server]__7f696ede._.js +0 -3
  172. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8aa4aa02._.js +0 -3
  173. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9d217c47._.js +0 -7
  174. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e54cdc1._.js +0 -3
  175. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a73e4e4f._.js +0 -3
  176. package/.next/standalone/.next/server/chunks/[root-of-the-server]__cd1b9505._.js +0 -3
  177. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d850c12e._.js +0 -3
  178. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ef121746._.js +0 -3
  179. package/.next/standalone/.next/server/chunks/_7273dcfc._.js +0 -3
  180. package/.next/standalone/.next/server/chunks/_8dd0f398._.js +0 -5
  181. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__4fe85c38._.js +0 -3
  182. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__85930638._.js +0 -3
  183. package/.next/standalone/next.config.ts +0 -10
  184. package/.next/standalone/node_modules/@puppeteer/browsers/package.json +0 -125
  185. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js +0 -53
  186. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js +0 -58
  187. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context.js +0 -691
  188. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js +0 -6
  189. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js +0 -96
  190. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js +0 -58
  191. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js +0 -19
  192. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js +0 -387
  193. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js +0 -71
  194. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/index.js +0 -128
  195. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js +0 -227
  196. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js +0 -41
  197. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js +0 -97
  198. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js +0 -77
  199. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module.js +0 -302
  200. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js +0 -49
  201. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js +0 -300
  202. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js +0 -38
  203. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types.js +0 -58
  204. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js +0 -169
  205. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js +0 -12
  206. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/package.json +0 -60
  207. package/.next/standalone/node_modules/agent-base/dist/helpers.js +0 -66
  208. package/.next/standalone/node_modules/agent-base/dist/index.js +0 -178
  209. package/.next/standalone/node_modules/agent-base/package.json +0 -46
  210. package/.next/standalone/node_modules/ast-types/def/babel-core.js +0 -256
  211. package/.next/standalone/node_modules/ast-types/def/babel.js +0 -11
  212. package/.next/standalone/node_modules/ast-types/def/core.js +0 -298
  213. package/.next/standalone/node_modules/ast-types/def/es-proposals.js +0 -33
  214. package/.next/standalone/node_modules/ast-types/def/es2020.js +0 -16
  215. package/.next/standalone/node_modules/ast-types/def/es6.js +0 -210
  216. package/.next/standalone/node_modules/ast-types/def/es7.js +0 -34
  217. package/.next/standalone/node_modules/ast-types/def/esprima.js +0 -49
  218. package/.next/standalone/node_modules/ast-types/def/flow.js +0 -292
  219. package/.next/standalone/node_modules/ast-types/def/jsx.js +0 -103
  220. package/.next/standalone/node_modules/ast-types/def/type-annotations.js +0 -40
  221. package/.next/standalone/node_modules/ast-types/def/typescript.js +0 -344
  222. package/.next/standalone/node_modules/ast-types/fork.js +0 -52
  223. package/.next/standalone/node_modules/ast-types/gen/namedTypes.js +0 -6
  224. package/.next/standalone/node_modules/ast-types/lib/equiv.js +0 -154
  225. package/.next/standalone/node_modules/ast-types/lib/node-path.js +0 -411
  226. package/.next/standalone/node_modules/ast-types/lib/path-visitor.js +0 -343
  227. package/.next/standalone/node_modules/ast-types/lib/path.js +0 -331
  228. package/.next/standalone/node_modules/ast-types/lib/scope.js +0 -318
  229. package/.next/standalone/node_modules/ast-types/lib/shared.js +0 -47
  230. package/.next/standalone/node_modules/ast-types/lib/types.js +0 -780
  231. package/.next/standalone/node_modules/ast-types/main.js +0 -53
  232. package/.next/standalone/node_modules/ast-types/package.json +0 -65
  233. package/.next/standalone/node_modules/b4a/index.js +0 -188
  234. package/.next/standalone/node_modules/b4a/package.json +0 -49
  235. package/.next/standalone/node_modules/basic-ftp/dist/Client.js +0 -782
  236. package/.next/standalone/node_modules/basic-ftp/dist/FileInfo.js +0 -92
  237. package/.next/standalone/node_modules/basic-ftp/dist/FtpContext.js +0 -365
  238. package/.next/standalone/node_modules/basic-ftp/dist/ProgressTracker.js +0 -72
  239. package/.next/standalone/node_modules/basic-ftp/dist/StringEncoding.js +0 -2
  240. package/.next/standalone/node_modules/basic-ftp/dist/StringWriter.js +0 -23
  241. package/.next/standalone/node_modules/basic-ftp/dist/index.js +0 -28
  242. package/.next/standalone/node_modules/basic-ftp/dist/netUtils.js +0 -66
  243. package/.next/standalone/node_modules/basic-ftp/dist/parseControlResponse.js +0 -66
  244. package/.next/standalone/node_modules/basic-ftp/dist/parseList.js +0 -79
  245. package/.next/standalone/node_modules/basic-ftp/dist/parseListDOS.js +0 -52
  246. package/.next/standalone/node_modules/basic-ftp/dist/parseListMLSD.js +0 -187
  247. package/.next/standalone/node_modules/basic-ftp/dist/parseListUnix.js +0 -155
  248. package/.next/standalone/node_modules/basic-ftp/dist/transfer.js +0 -318
  249. package/.next/standalone/node_modules/basic-ftp/package.json +0 -52
  250. package/.next/standalone/node_modules/buffer-crc32/index.js +0 -111
  251. package/.next/standalone/node_modules/buffer-crc32/package.json +0 -39
  252. package/.next/standalone/node_modules/cliui/build/lib/index.js +0 -287
  253. package/.next/standalone/node_modules/cliui/build/lib/string-utils.js +0 -27
  254. package/.next/standalone/node_modules/cliui/index.mjs +0 -13
  255. package/.next/standalone/node_modules/cliui/package.json +0 -83
  256. package/.next/standalone/node_modules/data-uri-to-buffer/dist/common.js +0 -54
  257. package/.next/standalone/node_modules/data-uri-to-buffer/dist/node.js +0 -26
  258. package/.next/standalone/node_modules/data-uri-to-buffer/package.json +0 -48
  259. package/.next/standalone/node_modules/debug/package.json +0 -64
  260. package/.next/standalone/node_modules/debug/src/browser.js +0 -272
  261. package/.next/standalone/node_modules/debug/src/common.js +0 -292
  262. package/.next/standalone/node_modules/debug/src/index.js +0 -10
  263. package/.next/standalone/node_modules/debug/src/node.js +0 -263
  264. package/.next/standalone/node_modules/degenerator/dist/compile.js +0 -107
  265. package/.next/standalone/node_modules/degenerator/dist/degenerator.js +0 -156
  266. package/.next/standalone/node_modules/degenerator/dist/index.js +0 -19
  267. package/.next/standalone/node_modules/degenerator/package.json +0 -42
  268. package/.next/standalone/node_modules/end-of-stream/index.js +0 -96
  269. package/.next/standalone/node_modules/end-of-stream/package.json +0 -37
  270. package/.next/standalone/node_modules/escalade/package.json +0 -74
  271. package/.next/standalone/node_modules/escodegen/escodegen.js +0 -2667
  272. package/.next/standalone/node_modules/escodegen/package.json +0 -63
  273. package/.next/standalone/node_modules/esprima/dist/esprima.js +0 -6709
  274. package/.next/standalone/node_modules/esprima/package.json +0 -112
  275. package/.next/standalone/node_modules/estraverse/estraverse.js +0 -805
  276. package/.next/standalone/node_modules/estraverse/package.json +0 -40
  277. package/.next/standalone/node_modules/esutils/lib/ast.js +0 -144
  278. package/.next/standalone/node_modules/esutils/lib/code.js +0 -135
  279. package/.next/standalone/node_modules/esutils/lib/keyword.js +0 -165
  280. package/.next/standalone/node_modules/esutils/lib/utils.js +0 -33
  281. package/.next/standalone/node_modules/esutils/package.json +0 -44
  282. package/.next/standalone/node_modules/events-universal/default.js +0 -1
  283. package/.next/standalone/node_modules/events-universal/package.json +0 -39
  284. package/.next/standalone/node_modules/extract-zip/LICENSE +0 -23
  285. package/.next/standalone/node_modules/extract-zip/cli.js +0 -19
  286. package/.next/standalone/node_modules/extract-zip/index.js +0 -173
  287. package/.next/standalone/node_modules/extract-zip/package.json +0 -80
  288. package/.next/standalone/node_modules/extract-zip/readme.md +0 -57
  289. package/.next/standalone/node_modules/fast-fifo/fixed-size.js +0 -39
  290. package/.next/standalone/node_modules/fast-fifo/index.js +0 -48
  291. package/.next/standalone/node_modules/fast-fifo/package.json +0 -28
  292. package/.next/standalone/node_modules/fd-slicer/index.js +0 -296
  293. package/.next/standalone/node_modules/fd-slicer/package.json +0 -36
  294. package/.next/standalone/node_modules/get-stream/buffer-stream.js +0 -52
  295. package/.next/standalone/node_modules/get-stream/index.js +0 -60
  296. package/.next/standalone/node_modules/get-stream/package.json +0 -50
  297. package/.next/standalone/node_modules/get-uri/dist/data.js +0 -43
  298. package/.next/standalone/node_modules/get-uri/dist/file.js +0 -57
  299. package/.next/standalone/node_modules/get-uri/dist/ftp.js +0 -93
  300. package/.next/standalone/node_modules/get-uri/dist/http-error.js +0 -15
  301. package/.next/standalone/node_modules/get-uri/dist/http.js +0 -191
  302. package/.next/standalone/node_modules/get-uri/dist/https.js +0 -16
  303. package/.next/standalone/node_modules/get-uri/dist/index.js +0 -57
  304. package/.next/standalone/node_modules/get-uri/dist/notfound.js +0 -16
  305. package/.next/standalone/node_modules/get-uri/dist/notmodified.js +0 -17
  306. package/.next/standalone/node_modules/get-uri/package.json +0 -58
  307. package/.next/standalone/node_modules/has-flag/index.js +0 -8
  308. package/.next/standalone/node_modules/has-flag/package.json +0 -46
  309. package/.next/standalone/node_modules/http-proxy-agent/dist/index.js +0 -148
  310. package/.next/standalone/node_modules/http-proxy-agent/package.json +0 -47
  311. package/.next/standalone/node_modules/https-proxy-agent/dist/index.js +0 -180
  312. package/.next/standalone/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
  313. package/.next/standalone/node_modules/https-proxy-agent/package.json +0 -50
  314. package/.next/standalone/node_modules/ip-address/dist/address-error.js +0 -12
  315. package/.next/standalone/node_modules/ip-address/dist/common.js +0 -46
  316. package/.next/standalone/node_modules/ip-address/dist/ip-address.js +0 -35
  317. package/.next/standalone/node_modules/ip-address/dist/ipv4.js +0 -360
  318. package/.next/standalone/node_modules/ip-address/dist/ipv6.js +0 -1003
  319. package/.next/standalone/node_modules/ip-address/dist/v4/constants.js +0 -8
  320. package/.next/standalone/node_modules/ip-address/dist/v6/constants.js +0 -76
  321. package/.next/standalone/node_modules/ip-address/dist/v6/helpers.js +0 -45
  322. package/.next/standalone/node_modules/ip-address/dist/v6/regular-expressions.js +0 -95
  323. package/.next/standalone/node_modules/ip-address/package.json +0 -78
  324. package/.next/standalone/node_modules/lru-cache/index.js +0 -1227
  325. package/.next/standalone/node_modules/lru-cache/package.json +0 -96
  326. package/.next/standalone/node_modules/ms/index.js +0 -162
  327. package/.next/standalone/node_modules/ms/package.json +0 -38
  328. package/.next/standalone/node_modules/netmask/lib/netmask.js +0 -208
  329. package/.next/standalone/node_modules/netmask/package.json +0 -36
  330. package/.next/standalone/node_modules/once/once.js +0 -42
  331. package/.next/standalone/node_modules/once/package.json +0 -33
  332. package/.next/standalone/node_modules/pac-proxy-agent/dist/index.js +0 -238
  333. package/.next/standalone/node_modules/pac-proxy-agent/package.json +0 -58
  334. package/.next/standalone/node_modules/pac-resolver/dist/dateRange.js +0 -73
  335. package/.next/standalone/node_modules/pac-resolver/dist/dnsDomainIs.js +0 -30
  336. package/.next/standalone/node_modules/pac-resolver/dist/dnsDomainLevels.js +0 -28
  337. package/.next/standalone/node_modules/pac-resolver/dist/dnsResolve.js +0 -32
  338. package/.next/standalone/node_modules/pac-resolver/dist/index.js +0 -87
  339. package/.next/standalone/node_modules/pac-resolver/dist/ip.js +0 -50
  340. package/.next/standalone/node_modules/pac-resolver/dist/isInNet.js +0 -42
  341. package/.next/standalone/node_modules/pac-resolver/dist/isPlainHostName.js +0 -23
  342. package/.next/standalone/node_modules/pac-resolver/dist/isResolvable.js +0 -23
  343. package/.next/standalone/node_modules/pac-resolver/dist/localHostOrDomainIs.js +0 -40
  344. package/.next/standalone/node_modules/pac-resolver/dist/myIpAddress.js +0 -50
  345. package/.next/standalone/node_modules/pac-resolver/dist/shExpMatch.js +0 -41
  346. package/.next/standalone/node_modules/pac-resolver/dist/timeRange.js +0 -92
  347. package/.next/standalone/node_modules/pac-resolver/dist/util.js +0 -22
  348. package/.next/standalone/node_modules/pac-resolver/dist/weekdayRange.js +0 -91
  349. package/.next/standalone/node_modules/pac-resolver/package.json +0 -47
  350. package/.next/standalone/node_modules/pend/index.js +0 -55
  351. package/.next/standalone/node_modules/pend/package.json +0 -18
  352. package/.next/standalone/node_modules/progress/index.js +0 -1
  353. package/.next/standalone/node_modules/progress/lib/node-progress.js +0 -236
  354. package/.next/standalone/node_modules/progress/package.json +0 -26
  355. package/.next/standalone/node_modules/proxy-agent/dist/index.js +0 -138
  356. package/.next/standalone/node_modules/proxy-agent/package.json +0 -60
  357. package/.next/standalone/node_modules/proxy-from-env/index.js +0 -108
  358. package/.next/standalone/node_modules/proxy-from-env/package.json +0 -34
  359. package/.next/standalone/node_modules/pump/index.js +0 -86
  360. package/.next/standalone/node_modules/pump/package.json +0 -30
  361. package/.next/standalone/node_modules/puppeteer-core/lib/esm/package.json +0 -1
  362. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js +0 -204
  363. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js +0 -182
  364. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/CDPSession.js +0 -68
  365. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/DeviceRequestPrompt.js +0 -34
  366. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js +0 -90
  367. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js +0 -1406
  368. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandleSymbol.js +0 -10
  369. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js +0 -904
  370. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPRequest.js +0 -461
  371. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPResponse.js +0 -56
  372. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js +0 -211
  373. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js +0 -227
  374. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js +0 -1511
  375. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js +0 -44
  376. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Target.js +0 -49
  377. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/WebWorker.js +0 -106
  378. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/api.js +0 -22
  379. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js +0 -769
  380. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js +0 -83
  381. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Accessibility.js +0 -591
  382. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Binding.js +0 -162
  383. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BluetoothEmulation.js +0 -26
  384. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js +0 -327
  385. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserConnector.js +0 -26
  386. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserContext.js +0 -192
  387. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpPreloadScript.js +0 -39
  388. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpSession.js +0 -129
  389. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js +0 -244
  390. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Coverage.js +0 -372
  391. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +0 -151
  392. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js +0 -23
  393. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js +0 -206
  394. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js +0 -458
  395. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js +0 -457
  396. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExtensionTransport.js +0 -175
  397. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js +0 -358
  398. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js +0 -455
  399. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManagerEvents.js +0 -24
  400. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameTree.js +0 -91
  401. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPRequest.js +0 -195
  402. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPResponse.js +0 -126
  403. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js +0 -499
  404. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js +0 -157
  405. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorlds.js +0 -20
  406. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js +0 -101
  407. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/LifecycleWatcher.js +0 -174
  408. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkEventManager.js +0 -162
  409. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js +0 -601
  410. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js +0 -1011
  411. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +0 -69
  412. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js +0 -243
  413. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManageEvents.js +0 -7
  414. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManager.js +0 -320
  415. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Tracing.js +0 -110
  416. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/WebWorker.js +0 -73
  417. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js +0 -43
  418. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js +0 -216
  419. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +0 -54
  420. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +0 -129
  421. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +0 -39
  422. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CSSQueryHandler.js +0 -18
  423. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js +0 -133
  424. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +0 -78
  425. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js +0 -114
  426. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +0 -109
  427. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js +0 -1604
  428. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +0 -94
  429. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +0 -128
  430. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +0 -75
  431. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js +0 -70
  432. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js +0 -142
  433. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js +0 -23
  434. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManagerEvents.js +0 -21
  435. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +0 -58
  436. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js +0 -18
  437. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js +0 -100
  438. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js +0 -18
  439. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +0 -98
  440. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +0 -225
  441. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js +0 -51
  442. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +0 -69
  443. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js +0 -24
  444. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js +0 -15
  445. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +0 -39
  446. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +0 -394
  447. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js +0 -197
  448. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js +0 -21
  449. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/common.js +0 -35
  450. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js +0 -375
  451. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +0 -24
  452. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js +0 -9
  453. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index-browser.js +0 -11
  454. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index.js +0 -8
  455. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js +0 -41
  456. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +0 -14
  457. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js +0 -29
  458. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js +0 -105
  459. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js +0 -41
  460. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js +0 -70
  461. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js +0 -46
  462. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js +0 -18
  463. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js +0 -232
  464. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/disposable.js +0 -342
  465. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/encoding.js +0 -63
  466. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/incremental-id-generator.js +0 -18
  467. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js +0 -13
  468. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/version.js +0 -10
  469. package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js +0 -44
  470. package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/parsel-js/parsel-js.js +0 -196
  471. package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js +0 -2887
  472. package/.next/standalone/node_modules/puppeteer-core/package.json +0 -169
  473. package/.next/standalone/node_modules/semver/functions/clean.js +0 -8
  474. package/.next/standalone/node_modules/semver/functions/compare-build.js +0 -9
  475. package/.next/standalone/node_modules/semver/functions/compare-loose.js +0 -5
  476. package/.next/standalone/node_modules/semver/functions/diff.js +0 -60
  477. package/.next/standalone/node_modules/semver/functions/inc.js +0 -21
  478. package/.next/standalone/node_modules/semver/functions/major.js +0 -5
  479. package/.next/standalone/node_modules/semver/functions/minor.js +0 -5
  480. package/.next/standalone/node_modules/semver/functions/patch.js +0 -5
  481. package/.next/standalone/node_modules/semver/functions/prerelease.js +0 -8
  482. package/.next/standalone/node_modules/semver/functions/rcompare.js +0 -5
  483. package/.next/standalone/node_modules/semver/functions/rsort.js +0 -5
  484. package/.next/standalone/node_modules/semver/functions/sort.js +0 -5
  485. package/.next/standalone/node_modules/semver/functions/valid.js +0 -8
  486. package/.next/standalone/node_modules/semver/index.js +0 -91
  487. package/.next/standalone/node_modules/semver/ranges/gtr.js +0 -6
  488. package/.next/standalone/node_modules/semver/ranges/intersects.js +0 -9
  489. package/.next/standalone/node_modules/semver/ranges/ltr.js +0 -6
  490. package/.next/standalone/node_modules/semver/ranges/max-satisfying.js +0 -27
  491. package/.next/standalone/node_modules/semver/ranges/min-satisfying.js +0 -26
  492. package/.next/standalone/node_modules/semver/ranges/min-version.js +0 -63
  493. package/.next/standalone/node_modules/semver/ranges/outside.js +0 -82
  494. package/.next/standalone/node_modules/semver/ranges/simplify.js +0 -49
  495. package/.next/standalone/node_modules/semver/ranges/subset.js +0 -249
  496. package/.next/standalone/node_modules/semver/ranges/to-comparators.js +0 -10
  497. package/.next/standalone/node_modules/semver/ranges/valid.js +0 -13
  498. package/.next/standalone/node_modules/smart-buffer/build/smartbuffer.js +0 -1233
  499. package/.next/standalone/node_modules/smart-buffer/build/utils.js +0 -108
  500. package/.next/standalone/node_modules/smart-buffer/package.json +0 -79
  501. package/.next/standalone/node_modules/socks/build/client/socksclient.js +0 -793
  502. package/.next/standalone/node_modules/socks/build/common/constants.js +0 -108
  503. package/.next/standalone/node_modules/socks/build/common/helpers.js +0 -167
  504. package/.next/standalone/node_modules/socks/build/common/receivebuffer.js +0 -43
  505. package/.next/standalone/node_modules/socks/build/common/util.js +0 -25
  506. package/.next/standalone/node_modules/socks/build/index.js +0 -18
  507. package/.next/standalone/node_modules/socks/package.json +0 -58
  508. package/.next/standalone/node_modules/socks-proxy-agent/dist/index.js +0 -195
  509. package/.next/standalone/node_modules/socks-proxy-agent/package.json +0 -142
  510. package/.next/standalone/node_modules/source-map/lib/array-set.js +0 -121
  511. package/.next/standalone/node_modules/source-map/lib/base64-vlq.js +0 -140
  512. package/.next/standalone/node_modules/source-map/lib/base64.js +0 -67
  513. package/.next/standalone/node_modules/source-map/lib/binary-search.js +0 -111
  514. package/.next/standalone/node_modules/source-map/lib/mapping-list.js +0 -79
  515. package/.next/standalone/node_modules/source-map/lib/quick-sort.js +0 -114
  516. package/.next/standalone/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  517. package/.next/standalone/node_modules/source-map/lib/source-map-generator.js +0 -425
  518. package/.next/standalone/node_modules/source-map/lib/source-node.js +0 -413
  519. package/.next/standalone/node_modules/source-map/lib/util.js +0 -488
  520. package/.next/standalone/node_modules/source-map/package.json +0 -73
  521. package/.next/standalone/node_modules/source-map/source-map.js +0 -8
  522. package/.next/standalone/node_modules/streamx/index.js +0 -1184
  523. package/.next/standalone/node_modules/streamx/package.json +0 -34
  524. package/.next/standalone/node_modules/supports-color/index.js +0 -135
  525. package/.next/standalone/node_modules/supports-color/package.json +0 -53
  526. package/.next/standalone/node_modules/tar-stream/constants.js +0 -14
  527. package/.next/standalone/node_modules/tar-stream/extract.js +0 -406
  528. package/.next/standalone/node_modules/tar-stream/headers.js +0 -321
  529. package/.next/standalone/node_modules/tar-stream/index.js +0 -2
  530. package/.next/standalone/node_modules/tar-stream/pack.js +0 -287
  531. package/.next/standalone/node_modules/tar-stream/package.json +0 -42
  532. package/.next/standalone/node_modules/text-decoder/index.js +0 -64
  533. package/.next/standalone/node_modules/text-decoder/lib/pass-through-decoder.js +0 -19
  534. package/.next/standalone/node_modules/text-decoder/lib/utf8-decoder.js +0 -185
  535. package/.next/standalone/node_modules/text-decoder/package.json +0 -39
  536. package/.next/standalone/node_modules/tslib/package.json +0 -47
  537. package/.next/standalone/node_modules/tslib/tslib.js +0 -484
  538. package/.next/standalone/node_modules/wrappy/package.json +0 -29
  539. package/.next/standalone/node_modules/wrappy/wrappy.js +0 -33
  540. package/.next/standalone/node_modules/ws/lib/buffer-util.js +0 -131
  541. package/.next/standalone/node_modules/ws/lib/constants.js +0 -19
  542. package/.next/standalone/node_modules/ws/lib/event-target.js +0 -292
  543. package/.next/standalone/node_modules/ws/lib/extension.js +0 -203
  544. package/.next/standalone/node_modules/ws/lib/limiter.js +0 -55
  545. package/.next/standalone/node_modules/ws/lib/permessage-deflate.js +0 -528
  546. package/.next/standalone/node_modules/ws/lib/receiver.js +0 -706
  547. package/.next/standalone/node_modules/ws/lib/sender.js +0 -602
  548. package/.next/standalone/node_modules/ws/lib/stream.js +0 -161
  549. package/.next/standalone/node_modules/ws/lib/subprotocol.js +0 -62
  550. package/.next/standalone/node_modules/ws/lib/validation.js +0 -152
  551. package/.next/standalone/node_modules/ws/lib/websocket-server.js +0 -554
  552. package/.next/standalone/node_modules/ws/lib/websocket.js +0 -1393
  553. package/.next/standalone/node_modules/ws/package.json +0 -69
  554. package/.next/standalone/node_modules/ws/wrapper.mjs +0 -8
  555. package/.next/standalone/node_modules/y18n/build/lib/index.js +0 -174
  556. package/.next/standalone/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
  557. package/.next/standalone/node_modules/y18n/index.mjs +0 -8
  558. package/.next/standalone/node_modules/y18n/package.json +0 -70
  559. package/.next/standalone/node_modules/yargs/build/lib/argsert.js +0 -62
  560. package/.next/standalone/node_modules/yargs/build/lib/command.js +0 -449
  561. package/.next/standalone/node_modules/yargs/build/lib/completion-templates.js +0 -48
  562. package/.next/standalone/node_modules/yargs/build/lib/completion.js +0 -243
  563. package/.next/standalone/node_modules/yargs/build/lib/middleware.js +0 -88
  564. package/.next/standalone/node_modules/yargs/build/lib/parse-command.js +0 -32
  565. package/.next/standalone/node_modules/yargs/build/lib/typings/common-types.js +0 -9
  566. package/.next/standalone/node_modules/yargs/build/lib/usage.js +0 -584
  567. package/.next/standalone/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
  568. package/.next/standalone/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
  569. package/.next/standalone/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
  570. package/.next/standalone/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
  571. package/.next/standalone/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
  572. package/.next/standalone/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
  573. package/.next/standalone/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
  574. package/.next/standalone/node_modules/yargs/build/lib/utils/which-module.js +0 -10
  575. package/.next/standalone/node_modules/yargs/build/lib/validation.js +0 -305
  576. package/.next/standalone/node_modules/yargs/build/lib/yargs-factory.js +0 -1512
  577. package/.next/standalone/node_modules/yargs/build/lib/yerror.js +0 -9
  578. package/.next/standalone/node_modules/yargs/helpers/helpers.mjs +0 -10
  579. package/.next/standalone/node_modules/yargs/index.mjs +0 -8
  580. package/.next/standalone/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
  581. package/.next/standalone/node_modules/yargs/package.json +0 -123
  582. package/.next/standalone/node_modules/yargs-parser/build/lib/index.js +0 -62
  583. package/.next/standalone/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
  584. package/.next/standalone/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
  585. package/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
  586. package/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
  587. package/.next/standalone/node_modules/yargs-parser/package.json +0 -92
  588. package/.next/standalone/node_modules/yauzl/LICENSE +0 -21
  589. package/.next/standalone/node_modules/yauzl/README.md +0 -658
  590. package/.next/standalone/node_modules/yauzl/index.js +0 -796
  591. package/.next/standalone/node_modules/yauzl/package.json +0 -40
  592. package/.next/static/chunks/75f35cd5abea89f2.js +0 -1
  593. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/comparator.js +0 -0
  594. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/range.js +0 -0
  595. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/semver.js +0 -0
  596. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/cmp.js +0 -0
  597. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/coerce.js +0 -0
  598. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/compare.js +0 -0
  599. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/eq.js +0 -0
  600. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gt.js +0 -0
  601. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gte.js +0 -0
  602. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lt.js +0 -0
  603. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lte.js +0 -0
  604. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/neq.js +0 -0
  605. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/parse.js +0 -0
  606. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/satisfies.js +0 -0
  607. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/constants.js +0 -0
  608. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/debug.js +0 -0
  609. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/identifiers.js +0 -0
  610. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/lrucache.js +0 -0
  611. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/parse-options.js +0 -0
  612. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/re.js +0 -0
  613. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/package.json +0 -0
  614. /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_buildManifest.js +0 -0
  615. /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_clientMiddlewareManifest.json +0 -0
  616. /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_ssgManifest.js +0 -0
@@ -1,1406 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Google Inc.
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
7
- var useValue = arguments.length > 2;
8
- for (var i = 0; i < initializers.length; i++) {
9
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
10
- }
11
- return useValue ? value : void 0;
12
- };
13
- var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
14
- function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
15
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
16
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
17
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
18
- var _, done = false;
19
- for (var i = decorators.length - 1; i >= 0; i--) {
20
- var context = {};
21
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
22
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
23
- context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
24
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
25
- if (kind === "accessor") {
26
- if (result === void 0) continue;
27
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
28
- if (_ = accept(result.get)) descriptor.get = _;
29
- if (_ = accept(result.set)) descriptor.set = _;
30
- if (_ = accept(result.init)) initializers.unshift(_);
31
- }
32
- else if (_ = accept(result)) {
33
- if (kind === "field") initializers.unshift(_);
34
- else descriptor[key] = _;
35
- }
36
- }
37
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
38
- done = true;
39
- };
40
- var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
41
- if (value !== null && value !== void 0) {
42
- if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
43
- var dispose, inner;
44
- if (async) {
45
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
46
- dispose = value[Symbol.asyncDispose];
47
- }
48
- if (dispose === void 0) {
49
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
50
- dispose = value[Symbol.dispose];
51
- if (async) inner = dispose;
52
- }
53
- if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
54
- if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
55
- env.stack.push({ value: value, dispose: dispose, async: async });
56
- }
57
- else if (async) {
58
- env.stack.push({ async: true });
59
- }
60
- return value;
61
- };
62
- var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
63
- return function (env) {
64
- function fail(e) {
65
- env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
66
- env.hasError = true;
67
- }
68
- var r, s = 0;
69
- function next() {
70
- while (r = env.stack.pop()) {
71
- try {
72
- if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
73
- if (r.dispose) {
74
- var result = r.dispose.call(r.value);
75
- if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
76
- }
77
- else s |= 1;
78
- }
79
- catch (e) {
80
- fail(e);
81
- }
82
- }
83
- if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
84
- if (env.hasError) throw env.error;
85
- }
86
- return next();
87
- };
88
- })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
89
- var e = new Error(message);
90
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
91
- });
92
- var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
93
- if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
94
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
95
- };
96
- import { getQueryHandlerAndSelector } from '../common/GetQueryHandler.js';
97
- import { LazyArg } from '../common/LazyArg.js';
98
- import { isString, withSourcePuppeteerURLIfNone } from '../common/util.js';
99
- import { assert } from '../util/assert.js';
100
- import { AsyncIterableUtil } from '../util/AsyncIterableUtil.js';
101
- import { throwIfDisposed } from '../util/decorators.js';
102
- import { _isElementHandle } from './ElementHandleSymbol.js';
103
- import { JSHandle } from './JSHandle.js';
104
- import { NodeLocator } from './locators/locators.js';
105
- /**
106
- * A given method will have it's `this` replaced with an isolated version of
107
- * `this` when decorated with this decorator.
108
- *
109
- * All changes of isolated `this` are reflected on the actual `this`.
110
- *
111
- * @internal
112
- */
113
- export function bindIsolatedHandle(target, _) {
114
- return async function (...args) {
115
- // If the handle is already isolated, then we don't need to adopt it
116
- // again.
117
- if (this.realm === this.frame.isolatedRealm()) {
118
- return await target.call(this, ...args);
119
- }
120
- let adoptedThis;
121
- if (this['isolatedHandle']) {
122
- adoptedThis = this['isolatedHandle'];
123
- }
124
- else {
125
- this['isolatedHandle'] = adoptedThis = await this.frame
126
- .isolatedRealm()
127
- .adoptHandle(this);
128
- }
129
- const result = await target.call(adoptedThis, ...args);
130
- // If the function returns `adoptedThis`, then we return `this`.
131
- if (result === adoptedThis) {
132
- return this;
133
- }
134
- // If the function returns a handle, transfer it into the current realm.
135
- if (result instanceof JSHandle) {
136
- return await this.realm.transferHandle(result);
137
- }
138
- // If the function returns an array of handlers, transfer them into the
139
- // current realm.
140
- if (Array.isArray(result)) {
141
- await Promise.all(result.map(async (item, index, result) => {
142
- if (item instanceof JSHandle) {
143
- result[index] = await this.realm.transferHandle(item);
144
- }
145
- }));
146
- }
147
- if (result instanceof Map) {
148
- await Promise.all([...result.entries()].map(async ([key, value]) => {
149
- if (value instanceof JSHandle) {
150
- result.set(key, await this.realm.transferHandle(value));
151
- }
152
- }));
153
- }
154
- return result;
155
- };
156
- }
157
- /**
158
- * ElementHandle represents an in-page DOM element.
159
- *
160
- * @remarks
161
- * ElementHandles can be created with the {@link Page.$} method.
162
- *
163
- * ```ts
164
- * import puppeteer from 'puppeteer';
165
- *
166
- * const browser = await puppeteer.launch();
167
- * const page = await browser.newPage();
168
- * await page.goto('https://example.com');
169
- * const hrefElement = await page.$('a');
170
- * await hrefElement.click();
171
- * // ...
172
- * ```
173
- *
174
- * ElementHandle prevents the DOM element from being garbage-collected unless the
175
- * handle is {@link JSHandle.dispose | disposed}. ElementHandles are auto-disposed
176
- * when their associated frame is navigated away or the parent
177
- * context gets destroyed.
178
- *
179
- * ElementHandle instances can be used as arguments in {@link Page.$eval} and
180
- * {@link Page.evaluate} methods.
181
- *
182
- * If you're using TypeScript, ElementHandle takes a generic argument that
183
- * denotes the type of element the handle is holding within. For example, if you
184
- * have a handle to a `<select>` element, you can type it as
185
- * `ElementHandle<HTMLSelectElement>` and you get some nicer type checks.
186
- *
187
- * @public
188
- */
189
- let ElementHandle = (() => {
190
- let _classSuper = JSHandle;
191
- let _instanceExtraInitializers = [];
192
- let _getProperty_decorators;
193
- let _getProperties_decorators;
194
- let _jsonValue_decorators;
195
- let _$_decorators;
196
- let _$$_decorators;
197
- let _private_$$_decorators;
198
- let _private_$$_descriptor;
199
- let _waitForSelector_decorators;
200
- let _isVisible_decorators;
201
- let _isHidden_decorators;
202
- let _toElement_decorators;
203
- let _clickablePoint_decorators;
204
- let _hover_decorators;
205
- let _click_decorators;
206
- let _drag_decorators;
207
- let _dragEnter_decorators;
208
- let _dragOver_decorators;
209
- let _drop_decorators;
210
- let _dragAndDrop_decorators;
211
- let _select_decorators;
212
- let _tap_decorators;
213
- let _touchStart_decorators;
214
- let _touchMove_decorators;
215
- let _touchEnd_decorators;
216
- let _focus_decorators;
217
- let _type_decorators;
218
- let _press_decorators;
219
- let _boundingBox_decorators;
220
- let _boxModel_decorators;
221
- let _screenshot_decorators;
222
- let _isIntersectingViewport_decorators;
223
- let _scrollIntoView_decorators;
224
- let _asLocator_decorators;
225
- return class ElementHandle extends _classSuper {
226
- static {
227
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
228
- _getProperty_decorators = [throwIfDisposed(), bindIsolatedHandle];
229
- _getProperties_decorators = [throwIfDisposed(), bindIsolatedHandle];
230
- _jsonValue_decorators = [throwIfDisposed(), bindIsolatedHandle];
231
- _$_decorators = [throwIfDisposed(), bindIsolatedHandle];
232
- _$$_decorators = [throwIfDisposed()];
233
- _private_$$_decorators = [bindIsolatedHandle];
234
- _waitForSelector_decorators = [throwIfDisposed(), bindIsolatedHandle];
235
- _isVisible_decorators = [throwIfDisposed(), bindIsolatedHandle];
236
- _isHidden_decorators = [throwIfDisposed(), bindIsolatedHandle];
237
- _toElement_decorators = [throwIfDisposed(), bindIsolatedHandle];
238
- _clickablePoint_decorators = [throwIfDisposed(), bindIsolatedHandle];
239
- _hover_decorators = [throwIfDisposed(), bindIsolatedHandle];
240
- _click_decorators = [throwIfDisposed(), bindIsolatedHandle];
241
- _drag_decorators = [throwIfDisposed(), bindIsolatedHandle];
242
- _dragEnter_decorators = [throwIfDisposed(), bindIsolatedHandle];
243
- _dragOver_decorators = [throwIfDisposed(), bindIsolatedHandle];
244
- _drop_decorators = [throwIfDisposed(), bindIsolatedHandle];
245
- _dragAndDrop_decorators = [throwIfDisposed(), bindIsolatedHandle];
246
- _select_decorators = [throwIfDisposed(), bindIsolatedHandle];
247
- _tap_decorators = [throwIfDisposed(), bindIsolatedHandle];
248
- _touchStart_decorators = [throwIfDisposed(), bindIsolatedHandle];
249
- _touchMove_decorators = [throwIfDisposed(), bindIsolatedHandle];
250
- _touchEnd_decorators = [throwIfDisposed(), bindIsolatedHandle];
251
- _focus_decorators = [throwIfDisposed(), bindIsolatedHandle];
252
- _type_decorators = [throwIfDisposed(), bindIsolatedHandle];
253
- _press_decorators = [throwIfDisposed(), bindIsolatedHandle];
254
- _boundingBox_decorators = [throwIfDisposed(), bindIsolatedHandle];
255
- _boxModel_decorators = [throwIfDisposed(), bindIsolatedHandle];
256
- _screenshot_decorators = [throwIfDisposed(), bindIsolatedHandle];
257
- _isIntersectingViewport_decorators = [throwIfDisposed(), bindIsolatedHandle];
258
- _scrollIntoView_decorators = [throwIfDisposed(), bindIsolatedHandle];
259
- _asLocator_decorators = [throwIfDisposed()];
260
- __esDecorate(this, null, _getProperty_decorators, { kind: "method", name: "getProperty", static: false, private: false, access: { has: obj => "getProperty" in obj, get: obj => obj.getProperty }, metadata: _metadata }, null, _instanceExtraInitializers);
261
- __esDecorate(this, null, _getProperties_decorators, { kind: "method", name: "getProperties", static: false, private: false, access: { has: obj => "getProperties" in obj, get: obj => obj.getProperties }, metadata: _metadata }, null, _instanceExtraInitializers);
262
- __esDecorate(this, null, _jsonValue_decorators, { kind: "method", name: "jsonValue", static: false, private: false, access: { has: obj => "jsonValue" in obj, get: obj => obj.jsonValue }, metadata: _metadata }, null, _instanceExtraInitializers);
263
- __esDecorate(this, null, _$_decorators, { kind: "method", name: "$", static: false, private: false, access: { has: obj => "$" in obj, get: obj => obj.$ }, metadata: _metadata }, null, _instanceExtraInitializers);
264
- __esDecorate(this, null, _$$_decorators, { kind: "method", name: "$$", static: false, private: false, access: { has: obj => "$$" in obj, get: obj => obj.$$ }, metadata: _metadata }, null, _instanceExtraInitializers);
265
- __esDecorate(this, _private_$$_descriptor = { value: __setFunctionName(async function (selector) {
266
- return await this.#$$impl(selector);
267
- }, "#$$") }, _private_$$_decorators, { kind: "method", name: "#$$", static: false, private: true, access: { has: obj => #$$ in obj, get: obj => obj.#$$ }, metadata: _metadata }, null, _instanceExtraInitializers);
268
- __esDecorate(this, null, _waitForSelector_decorators, { kind: "method", name: "waitForSelector", static: false, private: false, access: { has: obj => "waitForSelector" in obj, get: obj => obj.waitForSelector }, metadata: _metadata }, null, _instanceExtraInitializers);
269
- __esDecorate(this, null, _isVisible_decorators, { kind: "method", name: "isVisible", static: false, private: false, access: { has: obj => "isVisible" in obj, get: obj => obj.isVisible }, metadata: _metadata }, null, _instanceExtraInitializers);
270
- __esDecorate(this, null, _isHidden_decorators, { kind: "method", name: "isHidden", static: false, private: false, access: { has: obj => "isHidden" in obj, get: obj => obj.isHidden }, metadata: _metadata }, null, _instanceExtraInitializers);
271
- __esDecorate(this, null, _toElement_decorators, { kind: "method", name: "toElement", static: false, private: false, access: { has: obj => "toElement" in obj, get: obj => obj.toElement }, metadata: _metadata }, null, _instanceExtraInitializers);
272
- __esDecorate(this, null, _clickablePoint_decorators, { kind: "method", name: "clickablePoint", static: false, private: false, access: { has: obj => "clickablePoint" in obj, get: obj => obj.clickablePoint }, metadata: _metadata }, null, _instanceExtraInitializers);
273
- __esDecorate(this, null, _hover_decorators, { kind: "method", name: "hover", static: false, private: false, access: { has: obj => "hover" in obj, get: obj => obj.hover }, metadata: _metadata }, null, _instanceExtraInitializers);
274
- __esDecorate(this, null, _click_decorators, { kind: "method", name: "click", static: false, private: false, access: { has: obj => "click" in obj, get: obj => obj.click }, metadata: _metadata }, null, _instanceExtraInitializers);
275
- __esDecorate(this, null, _drag_decorators, { kind: "method", name: "drag", static: false, private: false, access: { has: obj => "drag" in obj, get: obj => obj.drag }, metadata: _metadata }, null, _instanceExtraInitializers);
276
- __esDecorate(this, null, _dragEnter_decorators, { kind: "method", name: "dragEnter", static: false, private: false, access: { has: obj => "dragEnter" in obj, get: obj => obj.dragEnter }, metadata: _metadata }, null, _instanceExtraInitializers);
277
- __esDecorate(this, null, _dragOver_decorators, { kind: "method", name: "dragOver", static: false, private: false, access: { has: obj => "dragOver" in obj, get: obj => obj.dragOver }, metadata: _metadata }, null, _instanceExtraInitializers);
278
- __esDecorate(this, null, _drop_decorators, { kind: "method", name: "drop", static: false, private: false, access: { has: obj => "drop" in obj, get: obj => obj.drop }, metadata: _metadata }, null, _instanceExtraInitializers);
279
- __esDecorate(this, null, _dragAndDrop_decorators, { kind: "method", name: "dragAndDrop", static: false, private: false, access: { has: obj => "dragAndDrop" in obj, get: obj => obj.dragAndDrop }, metadata: _metadata }, null, _instanceExtraInitializers);
280
- __esDecorate(this, null, _select_decorators, { kind: "method", name: "select", static: false, private: false, access: { has: obj => "select" in obj, get: obj => obj.select }, metadata: _metadata }, null, _instanceExtraInitializers);
281
- __esDecorate(this, null, _tap_decorators, { kind: "method", name: "tap", static: false, private: false, access: { has: obj => "tap" in obj, get: obj => obj.tap }, metadata: _metadata }, null, _instanceExtraInitializers);
282
- __esDecorate(this, null, _touchStart_decorators, { kind: "method", name: "touchStart", static: false, private: false, access: { has: obj => "touchStart" in obj, get: obj => obj.touchStart }, metadata: _metadata }, null, _instanceExtraInitializers);
283
- __esDecorate(this, null, _touchMove_decorators, { kind: "method", name: "touchMove", static: false, private: false, access: { has: obj => "touchMove" in obj, get: obj => obj.touchMove }, metadata: _metadata }, null, _instanceExtraInitializers);
284
- __esDecorate(this, null, _touchEnd_decorators, { kind: "method", name: "touchEnd", static: false, private: false, access: { has: obj => "touchEnd" in obj, get: obj => obj.touchEnd }, metadata: _metadata }, null, _instanceExtraInitializers);
285
- __esDecorate(this, null, _focus_decorators, { kind: "method", name: "focus", static: false, private: false, access: { has: obj => "focus" in obj, get: obj => obj.focus }, metadata: _metadata }, null, _instanceExtraInitializers);
286
- __esDecorate(this, null, _type_decorators, { kind: "method", name: "type", static: false, private: false, access: { has: obj => "type" in obj, get: obj => obj.type }, metadata: _metadata }, null, _instanceExtraInitializers);
287
- __esDecorate(this, null, _press_decorators, { kind: "method", name: "press", static: false, private: false, access: { has: obj => "press" in obj, get: obj => obj.press }, metadata: _metadata }, null, _instanceExtraInitializers);
288
- __esDecorate(this, null, _boundingBox_decorators, { kind: "method", name: "boundingBox", static: false, private: false, access: { has: obj => "boundingBox" in obj, get: obj => obj.boundingBox }, metadata: _metadata }, null, _instanceExtraInitializers);
289
- __esDecorate(this, null, _boxModel_decorators, { kind: "method", name: "boxModel", static: false, private: false, access: { has: obj => "boxModel" in obj, get: obj => obj.boxModel }, metadata: _metadata }, null, _instanceExtraInitializers);
290
- __esDecorate(this, null, _screenshot_decorators, { kind: "method", name: "screenshot", static: false, private: false, access: { has: obj => "screenshot" in obj, get: obj => obj.screenshot }, metadata: _metadata }, null, _instanceExtraInitializers);
291
- __esDecorate(this, null, _isIntersectingViewport_decorators, { kind: "method", name: "isIntersectingViewport", static: false, private: false, access: { has: obj => "isIntersectingViewport" in obj, get: obj => obj.isIntersectingViewport }, metadata: _metadata }, null, _instanceExtraInitializers);
292
- __esDecorate(this, null, _scrollIntoView_decorators, { kind: "method", name: "scrollIntoView", static: false, private: false, access: { has: obj => "scrollIntoView" in obj, get: obj => obj.scrollIntoView }, metadata: _metadata }, null, _instanceExtraInitializers);
293
- __esDecorate(this, null, _asLocator_decorators, { kind: "method", name: "asLocator", static: false, private: false, access: { has: obj => "asLocator" in obj, get: obj => obj.asLocator }, metadata: _metadata }, null, _instanceExtraInitializers);
294
- if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
295
- }
296
- /**
297
- * @internal
298
- * Cached isolatedHandle to prevent
299
- * trying to adopt it multiple times
300
- */
301
- isolatedHandle = __runInitializers(this, _instanceExtraInitializers);
302
- /**
303
- * @internal
304
- */
305
- handle;
306
- /**
307
- * @internal
308
- */
309
- constructor(handle) {
310
- super();
311
- this.handle = handle;
312
- this[_isElementHandle] = true;
313
- }
314
- /**
315
- * @internal
316
- */
317
- get id() {
318
- return this.handle.id;
319
- }
320
- /**
321
- * @internal
322
- */
323
- get disposed() {
324
- return this.handle.disposed;
325
- }
326
- /**
327
- * @internal
328
- */
329
- async getProperty(propertyName) {
330
- return await this.handle.getProperty(propertyName);
331
- }
332
- /**
333
- * @internal
334
- */
335
- async getProperties() {
336
- return await this.handle.getProperties();
337
- }
338
- /**
339
- * @internal
340
- */
341
- async evaluate(pageFunction, ...args) {
342
- pageFunction = withSourcePuppeteerURLIfNone(this.evaluate.name, pageFunction);
343
- return await this.handle.evaluate(pageFunction, ...args);
344
- }
345
- /**
346
- * @internal
347
- */
348
- async evaluateHandle(pageFunction, ...args) {
349
- pageFunction = withSourcePuppeteerURLIfNone(this.evaluateHandle.name, pageFunction);
350
- return await this.handle.evaluateHandle(pageFunction, ...args);
351
- }
352
- /**
353
- * @internal
354
- */
355
- async jsonValue() {
356
- return await this.handle.jsonValue();
357
- }
358
- /**
359
- * @internal
360
- */
361
- toString() {
362
- return this.handle.toString();
363
- }
364
- /**
365
- * @internal
366
- */
367
- remoteObject() {
368
- return this.handle.remoteObject();
369
- }
370
- /**
371
- * @internal
372
- */
373
- async dispose() {
374
- await Promise.all([this.handle.dispose(), this.isolatedHandle?.dispose()]);
375
- }
376
- /**
377
- * @internal
378
- */
379
- asElement() {
380
- return this;
381
- }
382
- /**
383
- * Queries the current element for an element matching the given selector.
384
- *
385
- * @param selector -
386
- * {@link https://pptr.dev/guides/page-interactions#selectors | selector}
387
- * to query the page for.
388
- * {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors | CSS selectors}
389
- * can be passed as-is and a
390
- * {@link https://pptr.dev/guides/page-interactions#non-css-selectors | Puppeteer-specific selector syntax}
391
- * allows querying by
392
- * {@link https://pptr.dev/guides/page-interactions#text-selectors--p-text | text},
393
- * {@link https://pptr.dev/guides/page-interactions#aria-selectors--p-aria | a11y role and name},
394
- * and
395
- * {@link https://pptr.dev/guides/page-interactions#xpath-selectors--p-xpath | xpath}
396
- * and
397
- * {@link https://pptr.dev/guides/page-interactions#querying-elements-in-shadow-dom | combining these queries across shadow roots}.
398
- * Alternatively, you can specify the selector type using a
399
- * {@link https://pptr.dev/guides/page-interactions#prefixed-selector-syntax | prefix}.
400
- * @returns A {@link ElementHandle | element handle} to the first element
401
- * matching the given selector. Otherwise, `null`.
402
- */
403
- async $(selector) {
404
- const { updatedSelector, QueryHandler } = getQueryHandlerAndSelector(selector);
405
- return (await QueryHandler.queryOne(this, updatedSelector));
406
- }
407
- /**
408
- * Queries the current element for all elements matching the given selector.
409
- *
410
- * @param selector -
411
- * {@link https://pptr.dev/guides/page-interactions#selectors | selector}
412
- * to query the page for.
413
- * {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors | CSS selectors}
414
- * can be passed as-is and a
415
- * {@link https://pptr.dev/guides/page-interactions#non-css-selectors | Puppeteer-specific selector syntax}
416
- * allows querying by
417
- * {@link https://pptr.dev/guides/page-interactions#text-selectors--p-text | text},
418
- * {@link https://pptr.dev/guides/page-interactions#aria-selectors--p-aria | a11y role and name},
419
- * and
420
- * {@link https://pptr.dev/guides/page-interactions#xpath-selectors--p-xpath | xpath}
421
- * and
422
- * {@link https://pptr.dev/guides/page-interactions#querying-elements-in-shadow-dom | combining these queries across shadow roots}.
423
- * Alternatively, you can specify the selector type using a
424
- * {@link https://pptr.dev/guides/page-interactions#prefixed-selector-syntax | prefix}.
425
- * @returns An array of {@link ElementHandle | element handles} that point to
426
- * elements matching the given selector.
427
- */
428
- async $$(selector, options) {
429
- if (options?.isolate === false) {
430
- return await this.#$$impl(selector);
431
- }
432
- return await this.#$$(selector);
433
- }
434
- /**
435
- * Isolates {@link ElementHandle.$$} if needed.
436
- *
437
- * @internal
438
- */
439
- get #$$() { return _private_$$_descriptor.value; }
440
- /**
441
- * Implementation for {@link ElementHandle.$$}.
442
- *
443
- * @internal
444
- */
445
- async #$$impl(selector) {
446
- const { updatedSelector, QueryHandler } = getQueryHandlerAndSelector(selector);
447
- return await AsyncIterableUtil.collect(QueryHandler.queryAll(this, updatedSelector));
448
- }
449
- /**
450
- * Runs the given function on the first element matching the given selector in
451
- * the current element.
452
- *
453
- * If the given function returns a promise, then this method will wait till
454
- * the promise resolves.
455
- *
456
- * @example
457
- *
458
- * ```ts
459
- * const tweetHandle = await page.$('.tweet');
460
- * expect(await tweetHandle.$eval('.like', node => node.innerText)).toBe(
461
- * '100',
462
- * );
463
- * expect(await tweetHandle.$eval('.retweets', node => node.innerText)).toBe(
464
- * '10',
465
- * );
466
- * ```
467
- *
468
- * @param selector -
469
- * {@link https://pptr.dev/guides/page-interactions#selectors | selector}
470
- * to query the page for.
471
- * {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors | CSS selectors}
472
- * can be passed as-is and a
473
- * {@link https://pptr.dev/guides/page-interactions#non-css-selectors | Puppeteer-specific selector syntax}
474
- * allows querying by
475
- * {@link https://pptr.dev/guides/page-interactions#text-selectors--p-text | text},
476
- * {@link https://pptr.dev/guides/page-interactions#aria-selectors--p-aria | a11y role and name},
477
- * and
478
- * {@link https://pptr.dev/guides/page-interactions#xpath-selectors--p-xpath | xpath}
479
- * and
480
- * {@link https://pptr.dev/guides/page-interactions#querying-elements-in-shadow-dom | combining these queries across shadow roots}.
481
- * Alternatively, you can specify the selector type using a
482
- * {@link https://pptr.dev/guides/page-interactions#prefixed-selector-syntax | prefix}.
483
- * @param pageFunction - The function to be evaluated in this element's page's
484
- * context. The first element matching the selector will be passed in as the
485
- * first argument.
486
- * @param args - Additional arguments to pass to `pageFunction`.
487
- * @returns A promise to the result of the function.
488
- */
489
- async $eval(selector, pageFunction, ...args) {
490
- const env_1 = { stack: [], error: void 0, hasError: false };
491
- try {
492
- pageFunction = withSourcePuppeteerURLIfNone(this.$eval.name, pageFunction);
493
- const elementHandle = __addDisposableResource(env_1, await this.$(selector), false);
494
- if (!elementHandle) {
495
- throw new Error(`Error: failed to find element matching selector "${selector}"`);
496
- }
497
- return await elementHandle.evaluate(pageFunction, ...args);
498
- }
499
- catch (e_1) {
500
- env_1.error = e_1;
501
- env_1.hasError = true;
502
- }
503
- finally {
504
- __disposeResources(env_1);
505
- }
506
- }
507
- /**
508
- * Runs the given function on an array of elements matching the given selector
509
- * in the current element.
510
- *
511
- * If the given function returns a promise, then this method will wait till
512
- * the promise resolves.
513
- *
514
- * @example
515
- * HTML:
516
- *
517
- * ```html
518
- * <div class="feed">
519
- * <div class="tweet">Hello!</div>
520
- * <div class="tweet">Hi!</div>
521
- * </div>
522
- * ```
523
- *
524
- * JavaScript:
525
- *
526
- * ```ts
527
- * const feedHandle = await page.$('.feed');
528
- *
529
- * const listOfTweets = await feedHandle.$$eval('.tweet', nodes =>
530
- * nodes.map(n => n.innerText),
531
- * );
532
- * ```
533
- *
534
- * @param selector -
535
- * {@link https://pptr.dev/guides/page-interactions#selectors | selector}
536
- * to query the page for.
537
- * {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors | CSS selectors}
538
- * can be passed as-is and a
539
- * {@link https://pptr.dev/guides/page-interactions#non-css-selectors | Puppeteer-specific selector syntax}
540
- * allows querying by
541
- * {@link https://pptr.dev/guides/page-interactions#text-selectors--p-text | text},
542
- * {@link https://pptr.dev/guides/page-interactions#aria-selectors--p-aria | a11y role and name},
543
- * and
544
- * {@link https://pptr.dev/guides/page-interactions#xpath-selectors--p-xpath | xpath}
545
- * and
546
- * {@link https://pptr.dev/guides/page-interactions#querying-elements-in-shadow-dom | combining these queries across shadow roots}.
547
- * Alternatively, you can specify the selector type using a
548
- * {@link https://pptr.dev/guides/page-interactions#prefixed-selector-syntax | prefix}.
549
- * @param pageFunction - The function to be evaluated in the element's page's
550
- * context. An array of elements matching the given selector will be passed to
551
- * the function as its first argument.
552
- * @param args - Additional arguments to pass to `pageFunction`.
553
- * @returns A promise to the result of the function.
554
- */
555
- async $$eval(selector, pageFunction, ...args) {
556
- const env_2 = { stack: [], error: void 0, hasError: false };
557
- try {
558
- pageFunction = withSourcePuppeteerURLIfNone(this.$$eval.name, pageFunction);
559
- const results = await this.$$(selector);
560
- const elements = __addDisposableResource(env_2, await this.evaluateHandle((_, ...elements) => {
561
- return elements;
562
- }, ...results), false);
563
- const [result] = await Promise.all([
564
- elements.evaluate(pageFunction, ...args),
565
- ...results.map(results => {
566
- return results.dispose();
567
- }),
568
- ]);
569
- return result;
570
- }
571
- catch (e_2) {
572
- env_2.error = e_2;
573
- env_2.hasError = true;
574
- }
575
- finally {
576
- __disposeResources(env_2);
577
- }
578
- }
579
- /**
580
- * Wait for an element matching the given selector to appear in the current
581
- * element.
582
- *
583
- * Unlike {@link Frame.waitForSelector}, this method does not work across
584
- * navigations or if the element is detached from DOM.
585
- *
586
- * @example
587
- *
588
- * ```ts
589
- * import puppeteer from 'puppeteer';
590
- *
591
- * const browser = await puppeteer.launch();
592
- * const page = await browser.newPage();
593
- * let currentURL;
594
- * page
595
- * .mainFrame()
596
- * .waitForSelector('img')
597
- * .then(() => console.log('First URL with image: ' + currentURL));
598
- *
599
- * for (currentURL of [
600
- * 'https://example.com',
601
- * 'https://google.com',
602
- * 'https://bbc.com',
603
- * ]) {
604
- * await page.goto(currentURL);
605
- * }
606
- * await browser.close();
607
- * ```
608
- *
609
- * @param selector - The selector to query and wait for.
610
- * @param options - Options for customizing waiting behavior.
611
- * @returns An element matching the given selector.
612
- * @throws Throws if an element matching the given selector doesn't appear.
613
- */
614
- async waitForSelector(selector, options = {}) {
615
- const { updatedSelector, QueryHandler, polling } = getQueryHandlerAndSelector(selector);
616
- return (await QueryHandler.waitFor(this, updatedSelector, {
617
- polling,
618
- ...options,
619
- }));
620
- }
621
- async #checkVisibility(visibility) {
622
- return await this.evaluate(async (element, PuppeteerUtil, visibility) => {
623
- return Boolean(PuppeteerUtil.checkVisibility(element, visibility));
624
- }, LazyArg.create(context => {
625
- return context.puppeteerUtil;
626
- }), visibility);
627
- }
628
- /**
629
- * An element is considered to be visible if all of the following is
630
- * true:
631
- *
632
- * - the element has
633
- * {@link https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle | computed styles}.
634
- *
635
- * - the element has a non-empty
636
- * {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect | bounding client rect}.
637
- *
638
- * - the element's {@link https://developer.mozilla.org/en-US/docs/Web/CSS/visibility | visibility}
639
- * is not `hidden` or `collapse`.
640
- */
641
- async isVisible() {
642
- return await this.#checkVisibility(true);
643
- }
644
- /**
645
- * An element is considered to be hidden if at least one of the following is true:
646
- *
647
- * - the element has no
648
- * {@link https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle | computed styles}.
649
- *
650
- * - the element has an empty
651
- * {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect | bounding client rect}.
652
- *
653
- * - the element's {@link https://developer.mozilla.org/en-US/docs/Web/CSS/visibility | visibility}
654
- * is `hidden` or `collapse`.
655
- */
656
- async isHidden() {
657
- return await this.#checkVisibility(false);
658
- }
659
- /**
660
- * Converts the current handle to the given element type.
661
- *
662
- * @example
663
- *
664
- * ```ts
665
- * const element: ElementHandle<Element> = await page.$(
666
- * '.class-name-of-anchor',
667
- * );
668
- * // DO NOT DISPOSE `element`, this will be always be the same handle.
669
- * const anchor: ElementHandle<HTMLAnchorElement> =
670
- * await element.toElement('a');
671
- * ```
672
- *
673
- * @param tagName - The tag name of the desired element type.
674
- * @throws An error if the handle does not match. **The handle will not be
675
- * automatically disposed.**
676
- */
677
- async toElement(tagName) {
678
- const isMatchingTagName = await this.evaluate((node, tagName) => {
679
- return node.nodeName === tagName.toUpperCase();
680
- }, tagName);
681
- if (!isMatchingTagName) {
682
- throw new Error(`Element is not a(n) \`${tagName}\` element`);
683
- }
684
- return this;
685
- }
686
- /**
687
- * Returns the middle point within an element unless a specific offset is provided.
688
- */
689
- async clickablePoint(offset) {
690
- const box = await this.#clickableBox();
691
- if (!box) {
692
- throw new Error('Node is either not clickable or not an Element');
693
- }
694
- if (offset !== undefined) {
695
- return {
696
- x: box.x + offset.x,
697
- y: box.y + offset.y,
698
- };
699
- }
700
- return {
701
- x: box.x + box.width / 2,
702
- y: box.y + box.height / 2,
703
- };
704
- }
705
- /**
706
- * This method scrolls element into view if needed, and then
707
- * uses {@link Page.mouse} to hover over the center of the element.
708
- * If the element is detached from DOM, the method throws an error.
709
- */
710
- async hover() {
711
- await this.scrollIntoViewIfNeeded();
712
- const { x, y } = await this.clickablePoint();
713
- await this.frame.page().mouse.move(x, y);
714
- }
715
- /**
716
- * This method scrolls element into view if needed, and then
717
- * uses {@link Page.mouse} to click in the center of the element.
718
- * If the element is detached from DOM, the method throws an error.
719
- */
720
- async click(options = {}) {
721
- await this.scrollIntoViewIfNeeded();
722
- const { x, y } = await this.clickablePoint(options.offset);
723
- try {
724
- await this.frame.page().mouse.click(x, y, options);
725
- }
726
- finally {
727
- if (options.debugHighlight) {
728
- await this.frame.page().evaluate((x, y) => {
729
- const highlight = document.createElement('div');
730
- highlight.innerHTML = `<style>
731
- @scope {
732
- :scope {
733
- position: fixed;
734
- left: ${x}px;
735
- top: ${y}px;
736
- width: 10px;
737
- height: 10px;
738
- border-radius: 50%;
739
- animation: colorChange 10s 1 normal;
740
- animation-fill-mode: forwards;
741
- }
742
-
743
- @keyframes colorChange {
744
- from {
745
- background-color: red;
746
- }
747
- to {
748
- background-color: #FADADD00;
749
- }
750
- }
751
- }
752
- </style>`;
753
- highlight.addEventListener('animationend', () => {
754
- highlight.remove();
755
- }, { once: true });
756
- document.body.append(highlight);
757
- }, x, y);
758
- }
759
- }
760
- }
761
- /**
762
- * Drags an element over the given element or point.
763
- *
764
- * @returns DEPRECATED. When drag interception is enabled, the drag payload is
765
- * returned.
766
- */
767
- async drag(target) {
768
- await this.scrollIntoViewIfNeeded();
769
- const page = this.frame.page();
770
- if (page.isDragInterceptionEnabled()) {
771
- const source = await this.clickablePoint();
772
- if (target instanceof ElementHandle) {
773
- target = await target.clickablePoint();
774
- }
775
- return await page.mouse.drag(source, target);
776
- }
777
- try {
778
- if (!page._isDragging) {
779
- page._isDragging = true;
780
- await this.hover();
781
- await page.mouse.down();
782
- }
783
- if (target instanceof ElementHandle) {
784
- await target.hover();
785
- }
786
- else {
787
- await page.mouse.move(target.x, target.y);
788
- }
789
- }
790
- catch (error) {
791
- page._isDragging = false;
792
- throw error;
793
- }
794
- }
795
- /**
796
- * @deprecated Do not use. `dragenter` will automatically be performed during dragging.
797
- */
798
- async dragEnter(data = { items: [], dragOperationsMask: 1 }) {
799
- const page = this.frame.page();
800
- await this.scrollIntoViewIfNeeded();
801
- const target = await this.clickablePoint();
802
- await page.mouse.dragEnter(target, data);
803
- }
804
- /**
805
- * @deprecated Do not use. `dragover` will automatically be performed during dragging.
806
- */
807
- async dragOver(data = { items: [], dragOperationsMask: 1 }) {
808
- const page = this.frame.page();
809
- await this.scrollIntoViewIfNeeded();
810
- const target = await this.clickablePoint();
811
- await page.mouse.dragOver(target, data);
812
- }
813
- /**
814
- * @internal
815
- */
816
- async drop(dataOrElement = {
817
- items: [],
818
- dragOperationsMask: 1,
819
- }) {
820
- const page = this.frame.page();
821
- if ('items' in dataOrElement) {
822
- await this.scrollIntoViewIfNeeded();
823
- const destination = await this.clickablePoint();
824
- await page.mouse.drop(destination, dataOrElement);
825
- }
826
- else {
827
- // Note if the rest errors, we still want dragging off because the errors
828
- // is most likely something implying the mouse is no longer dragging.
829
- await dataOrElement.drag(this);
830
- page._isDragging = false;
831
- await page.mouse.up();
832
- }
833
- }
834
- /**
835
- * @deprecated Use `ElementHandle.drop` instead.
836
- */
837
- async dragAndDrop(target, options) {
838
- const page = this.frame.page();
839
- assert(page.isDragInterceptionEnabled(), 'Drag Interception is not enabled!');
840
- await this.scrollIntoViewIfNeeded();
841
- const startPoint = await this.clickablePoint();
842
- const targetPoint = await target.clickablePoint();
843
- await page.mouse.dragAndDrop(startPoint, targetPoint, options);
844
- }
845
- /**
846
- * Triggers a `change` and `input` event once all the provided options have been
847
- * selected. If there's no `<select>` element matching `selector`, the method
848
- * throws an error.
849
- *
850
- * @example
851
- *
852
- * ```ts
853
- * handle.select('blue'); // single selection
854
- * handle.select('red', 'green', 'blue'); // multiple selections
855
- * ```
856
- *
857
- * @param values - Values of options to select. If the `<select>` has the
858
- * `multiple` attribute, all values are considered, otherwise only the first
859
- * one is taken into account.
860
- */
861
- async select(...values) {
862
- for (const value of values) {
863
- assert(isString(value), 'Values must be strings. Found value "' +
864
- value +
865
- '" of type "' +
866
- typeof value +
867
- '"');
868
- }
869
- return await this.evaluate((element, vals) => {
870
- const values = new Set(vals);
871
- if (!(element instanceof HTMLSelectElement)) {
872
- throw new Error('Element is not a <select> element.');
873
- }
874
- const selectedValues = new Set();
875
- if (!element.multiple) {
876
- for (const option of element.options) {
877
- option.selected = false;
878
- }
879
- for (const option of element.options) {
880
- if (values.has(option.value)) {
881
- option.selected = true;
882
- selectedValues.add(option.value);
883
- break;
884
- }
885
- }
886
- }
887
- else {
888
- for (const option of element.options) {
889
- option.selected = values.has(option.value);
890
- if (option.selected) {
891
- selectedValues.add(option.value);
892
- }
893
- }
894
- }
895
- element.dispatchEvent(new Event('input', { bubbles: true }));
896
- element.dispatchEvent(new Event('change', { bubbles: true }));
897
- return [...selectedValues.values()];
898
- }, values);
899
- }
900
- /**
901
- * This method scrolls element into view if needed, and then uses
902
- * {@link Touchscreen.tap} to tap in the center of the element.
903
- * If the element is detached from DOM, the method throws an error.
904
- */
905
- async tap() {
906
- await this.scrollIntoViewIfNeeded();
907
- const { x, y } = await this.clickablePoint();
908
- await this.frame.page().touchscreen.tap(x, y);
909
- }
910
- /**
911
- * This method scrolls the element into view if needed, and then
912
- * starts a touch in the center of the element.
913
- * @returns A {@link TouchHandle} representing the touch that was started
914
- */
915
- async touchStart() {
916
- await this.scrollIntoViewIfNeeded();
917
- const { x, y } = await this.clickablePoint();
918
- return await this.frame.page().touchscreen.touchStart(x, y);
919
- }
920
- /**
921
- * This method scrolls the element into view if needed, and then
922
- * moves the touch to the center of the element.
923
- * @param touch - An optional {@link TouchHandle}. If provided, this touch
924
- * will be moved. If not provided, the first active touch will be moved.
925
- */
926
- async touchMove(touch) {
927
- await this.scrollIntoViewIfNeeded();
928
- const { x, y } = await this.clickablePoint();
929
- if (touch) {
930
- return await touch.move(x, y);
931
- }
932
- await this.frame.page().touchscreen.touchMove(x, y);
933
- }
934
- async touchEnd() {
935
- await this.scrollIntoViewIfNeeded();
936
- await this.frame.page().touchscreen.touchEnd();
937
- }
938
- /**
939
- * Calls {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus | focus} on the element.
940
- */
941
- async focus() {
942
- await this.evaluate(element => {
943
- if (!(element instanceof HTMLElement)) {
944
- throw new Error('Cannot focus non-HTMLElement');
945
- }
946
- return element.focus();
947
- });
948
- }
949
- /**
950
- * Focuses the element, and then sends a `keydown`, `keypress`/`input`, and
951
- * `keyup` event for each character in the text.
952
- *
953
- * To press a special key, like `Control` or `ArrowDown`,
954
- * use {@link ElementHandle.press}.
955
- *
956
- * @example
957
- *
958
- * ```ts
959
- * await elementHandle.type('Hello'); // Types instantly
960
- * await elementHandle.type('World', {delay: 100}); // Types slower, like a user
961
- * ```
962
- *
963
- * @example
964
- * An example of typing into a text field and then submitting the form:
965
- *
966
- * ```ts
967
- * const elementHandle = await page.$('input');
968
- * await elementHandle.type('some text');
969
- * await elementHandle.press('Enter');
970
- * ```
971
- *
972
- * @param options - Delay in milliseconds. Defaults to 0.
973
- */
974
- async type(text, options) {
975
- await this.focus();
976
- await this.frame.page().keyboard.type(text, options);
977
- }
978
- /**
979
- * Focuses the element, and then uses {@link Keyboard.down} and {@link Keyboard.up}.
980
- *
981
- * @remarks
982
- * If `key` is a single character and no modifier keys besides `Shift`
983
- * are being held down, a `keypress`/`input` event will also be generated.
984
- * The `text` option can be specified to force an input event to be generated.
985
- *
986
- * **NOTE** Modifier keys DO affect `elementHandle.press`. Holding down `Shift`
987
- * will type the text in upper case.
988
- *
989
- * @param key - Name of key to press, such as `ArrowLeft`.
990
- * See {@link KeyInput} for a list of all key names.
991
- */
992
- async press(key, options) {
993
- await this.focus();
994
- await this.frame.page().keyboard.press(key, options);
995
- }
996
- async #clickableBox() {
997
- const boxes = await this.evaluate(element => {
998
- if (!(element instanceof Element)) {
999
- return null;
1000
- }
1001
- return [...element.getClientRects()].map(rect => {
1002
- return { x: rect.x, y: rect.y, width: rect.width, height: rect.height };
1003
- });
1004
- });
1005
- if (!boxes?.length) {
1006
- return null;
1007
- }
1008
- await this.#intersectBoundingBoxesWithFrame(boxes);
1009
- let frame = this.frame;
1010
- let parentFrame;
1011
- while ((parentFrame = frame?.parentFrame())) {
1012
- const env_3 = { stack: [], error: void 0, hasError: false };
1013
- try {
1014
- const handle = __addDisposableResource(env_3, await frame.frameElement(), false);
1015
- if (!handle) {
1016
- throw new Error('Unsupported frame type');
1017
- }
1018
- const parentBox = await handle.evaluate(element => {
1019
- // Element is not visible.
1020
- if (element.getClientRects().length === 0) {
1021
- return null;
1022
- }
1023
- const rect = element.getBoundingClientRect();
1024
- const style = window.getComputedStyle(element);
1025
- return {
1026
- left: rect.left +
1027
- parseInt(style.paddingLeft, 10) +
1028
- parseInt(style.borderLeftWidth, 10),
1029
- top: rect.top +
1030
- parseInt(style.paddingTop, 10) +
1031
- parseInt(style.borderTopWidth, 10),
1032
- };
1033
- });
1034
- if (!parentBox) {
1035
- return null;
1036
- }
1037
- for (const box of boxes) {
1038
- box.x += parentBox.left;
1039
- box.y += parentBox.top;
1040
- }
1041
- await handle.#intersectBoundingBoxesWithFrame(boxes);
1042
- frame = parentFrame;
1043
- }
1044
- catch (e_3) {
1045
- env_3.error = e_3;
1046
- env_3.hasError = true;
1047
- }
1048
- finally {
1049
- __disposeResources(env_3);
1050
- }
1051
- }
1052
- const box = boxes.find(box => {
1053
- return box.width >= 1 && box.height >= 1;
1054
- });
1055
- if (!box) {
1056
- return null;
1057
- }
1058
- return {
1059
- x: box.x,
1060
- y: box.y,
1061
- height: box.height,
1062
- width: box.width,
1063
- };
1064
- }
1065
- async #intersectBoundingBoxesWithFrame(boxes) {
1066
- const { documentWidth, documentHeight } = await this.frame
1067
- .isolatedRealm()
1068
- .evaluate(() => {
1069
- return {
1070
- documentWidth: document.documentElement.clientWidth,
1071
- documentHeight: document.documentElement.clientHeight,
1072
- };
1073
- });
1074
- for (const box of boxes) {
1075
- intersectBoundingBox(box, documentWidth, documentHeight);
1076
- }
1077
- }
1078
- /**
1079
- * This method returns the bounding box of the element (relative to the main frame),
1080
- * or `null` if the element is {@link https://drafts.csswg.org/css-display-4/#box-generation | not part of the layout}
1081
- * (example: `display: none`).
1082
- */
1083
- async boundingBox() {
1084
- const box = await this.evaluate(element => {
1085
- if (!(element instanceof Element)) {
1086
- return null;
1087
- }
1088
- // Element is not visible.
1089
- if (element.getClientRects().length === 0) {
1090
- return null;
1091
- }
1092
- const rect = element.getBoundingClientRect();
1093
- return { x: rect.x, y: rect.y, width: rect.width, height: rect.height };
1094
- });
1095
- if (!box) {
1096
- return null;
1097
- }
1098
- const offset = await this.#getTopLeftCornerOfFrame();
1099
- if (!offset) {
1100
- return null;
1101
- }
1102
- return {
1103
- x: box.x + offset.x,
1104
- y: box.y + offset.y,
1105
- height: box.height,
1106
- width: box.width,
1107
- };
1108
- }
1109
- /**
1110
- * This method returns boxes of the element,
1111
- * or `null` if the element is {@link https://drafts.csswg.org/css-display-4/#box-generation | not part of the layout}
1112
- * (example: `display: none`).
1113
- *
1114
- * @remarks
1115
- *
1116
- * Boxes are represented as an array of points;
1117
- * Each Point is an object `{x, y}`. Box points are sorted clock-wise.
1118
- */
1119
- async boxModel() {
1120
- const model = await this.evaluate(element => {
1121
- if (!(element instanceof Element)) {
1122
- return null;
1123
- }
1124
- // Element is not visible.
1125
- if (element.getClientRects().length === 0) {
1126
- return null;
1127
- }
1128
- const rect = element.getBoundingClientRect();
1129
- const style = window.getComputedStyle(element);
1130
- const offsets = {
1131
- padding: {
1132
- left: parseInt(style.paddingLeft, 10),
1133
- top: parseInt(style.paddingTop, 10),
1134
- right: parseInt(style.paddingRight, 10),
1135
- bottom: parseInt(style.paddingBottom, 10),
1136
- },
1137
- margin: {
1138
- left: -parseInt(style.marginLeft, 10),
1139
- top: -parseInt(style.marginTop, 10),
1140
- right: -parseInt(style.marginRight, 10),
1141
- bottom: -parseInt(style.marginBottom, 10),
1142
- },
1143
- border: {
1144
- left: parseInt(style.borderLeft, 10),
1145
- top: parseInt(style.borderTop, 10),
1146
- right: parseInt(style.borderRight, 10),
1147
- bottom: parseInt(style.borderBottom, 10),
1148
- },
1149
- };
1150
- const border = [
1151
- { x: rect.left, y: rect.top },
1152
- { x: rect.left + rect.width, y: rect.top },
1153
- { x: rect.left + rect.width, y: rect.top + rect.height },
1154
- { x: rect.left, y: rect.top + rect.height },
1155
- ];
1156
- const padding = transformQuadWithOffsets(border, offsets.border);
1157
- const content = transformQuadWithOffsets(padding, offsets.padding);
1158
- const margin = transformQuadWithOffsets(border, offsets.margin);
1159
- return {
1160
- content,
1161
- padding,
1162
- border,
1163
- margin,
1164
- width: rect.width,
1165
- height: rect.height,
1166
- };
1167
- function transformQuadWithOffsets(quad, offsets) {
1168
- return [
1169
- {
1170
- x: quad[0].x + offsets.left,
1171
- y: quad[0].y + offsets.top,
1172
- },
1173
- {
1174
- x: quad[1].x - offsets.right,
1175
- y: quad[1].y + offsets.top,
1176
- },
1177
- {
1178
- x: quad[2].x - offsets.right,
1179
- y: quad[2].y - offsets.bottom,
1180
- },
1181
- {
1182
- x: quad[3].x + offsets.left,
1183
- y: quad[3].y - offsets.bottom,
1184
- },
1185
- ];
1186
- }
1187
- });
1188
- if (!model) {
1189
- return null;
1190
- }
1191
- const offset = await this.#getTopLeftCornerOfFrame();
1192
- if (!offset) {
1193
- return null;
1194
- }
1195
- for (const attribute of [
1196
- 'content',
1197
- 'padding',
1198
- 'border',
1199
- 'margin',
1200
- ]) {
1201
- for (const point of model[attribute]) {
1202
- point.x += offset.x;
1203
- point.y += offset.y;
1204
- }
1205
- }
1206
- return model;
1207
- }
1208
- async #getTopLeftCornerOfFrame() {
1209
- const point = { x: 0, y: 0 };
1210
- let frame = this.frame;
1211
- let parentFrame;
1212
- while ((parentFrame = frame?.parentFrame())) {
1213
- const env_4 = { stack: [], error: void 0, hasError: false };
1214
- try {
1215
- const handle = __addDisposableResource(env_4, await frame.frameElement(), false);
1216
- if (!handle) {
1217
- throw new Error('Unsupported frame type');
1218
- }
1219
- const parentBox = await handle.evaluate(element => {
1220
- // Element is not visible.
1221
- if (element.getClientRects().length === 0) {
1222
- return null;
1223
- }
1224
- const rect = element.getBoundingClientRect();
1225
- const style = window.getComputedStyle(element);
1226
- return {
1227
- left: rect.left +
1228
- parseInt(style.paddingLeft, 10) +
1229
- parseInt(style.borderLeftWidth, 10),
1230
- top: rect.top +
1231
- parseInt(style.paddingTop, 10) +
1232
- parseInt(style.borderTopWidth, 10),
1233
- };
1234
- });
1235
- if (!parentBox) {
1236
- return null;
1237
- }
1238
- point.x += parentBox.left;
1239
- point.y += parentBox.top;
1240
- frame = parentFrame;
1241
- }
1242
- catch (e_4) {
1243
- env_4.error = e_4;
1244
- env_4.hasError = true;
1245
- }
1246
- finally {
1247
- __disposeResources(env_4);
1248
- }
1249
- }
1250
- return point;
1251
- }
1252
- async screenshot(options = {}) {
1253
- const { scrollIntoView = true, clip } = options;
1254
- const page = this.frame.page();
1255
- // Only scroll the element into view if the user wants it.
1256
- if (scrollIntoView) {
1257
- await this.scrollIntoViewIfNeeded();
1258
- }
1259
- const elementClip = await this.#nonEmptyVisibleBoundingBox();
1260
- const [pageLeft, pageTop] = await this.evaluate(() => {
1261
- if (!window.visualViewport) {
1262
- throw new Error('window.visualViewport is not supported.');
1263
- }
1264
- return [
1265
- window.visualViewport.pageLeft,
1266
- window.visualViewport.pageTop,
1267
- ];
1268
- });
1269
- elementClip.x += pageLeft;
1270
- elementClip.y += pageTop;
1271
- if (clip) {
1272
- elementClip.x += clip.x;
1273
- elementClip.y += clip.y;
1274
- elementClip.height = clip.height;
1275
- elementClip.width = clip.width;
1276
- }
1277
- return await page.screenshot({ ...options, clip: elementClip });
1278
- }
1279
- async #nonEmptyVisibleBoundingBox() {
1280
- const box = await this.boundingBox();
1281
- assert(box, 'Node is either not visible or not an HTMLElement');
1282
- assert(box.width !== 0, 'Node has 0 width.');
1283
- assert(box.height !== 0, 'Node has 0 height.');
1284
- return box;
1285
- }
1286
- /**
1287
- * @internal
1288
- */
1289
- async assertConnectedElement() {
1290
- const error = await this.evaluate(async (element) => {
1291
- if (!element.isConnected) {
1292
- return 'Node is detached from document';
1293
- }
1294
- if (element.nodeType !== Node.ELEMENT_NODE) {
1295
- return 'Node is not of type HTMLElement';
1296
- }
1297
- return;
1298
- });
1299
- if (error) {
1300
- throw new Error(error);
1301
- }
1302
- }
1303
- /**
1304
- * @internal
1305
- */
1306
- async scrollIntoViewIfNeeded() {
1307
- if (await this.isIntersectingViewport({
1308
- threshold: 1,
1309
- })) {
1310
- return;
1311
- }
1312
- await this.scrollIntoView();
1313
- }
1314
- /**
1315
- * Resolves to true if the element is visible in the current viewport. If an
1316
- * element is an SVG, we check if the svg owner element is in the viewport
1317
- * instead. See https://crbug.com/963246.
1318
- *
1319
- * @param options - Threshold for the intersection between 0 (no intersection) and 1
1320
- * (full intersection). Defaults to 1.
1321
- */
1322
- async isIntersectingViewport(options = {}) {
1323
- const env_5 = { stack: [], error: void 0, hasError: false };
1324
- try {
1325
- await this.assertConnectedElement();
1326
- // eslint-disable-next-line @puppeteer/use-using -- Returns `this`.
1327
- const handle = await this.#asSVGElementHandle();
1328
- const target = __addDisposableResource(env_5, handle && (await handle.#getOwnerSVGElement()), false);
1329
- return await (target ?? this).evaluate(async (element, threshold) => {
1330
- const visibleRatio = await new Promise(resolve => {
1331
- const observer = new IntersectionObserver(entries => {
1332
- resolve(entries[0].intersectionRatio);
1333
- observer.disconnect();
1334
- });
1335
- observer.observe(element);
1336
- });
1337
- return threshold === 1 ? visibleRatio === 1 : visibleRatio > threshold;
1338
- }, options.threshold ?? 0);
1339
- }
1340
- catch (e_5) {
1341
- env_5.error = e_5;
1342
- env_5.hasError = true;
1343
- }
1344
- finally {
1345
- __disposeResources(env_5);
1346
- }
1347
- }
1348
- /**
1349
- * Scrolls the element into view using either the automation protocol client
1350
- * or by calling element.scrollIntoView.
1351
- */
1352
- async scrollIntoView() {
1353
- await this.assertConnectedElement();
1354
- await this.evaluate(async (element) => {
1355
- element.scrollIntoView({
1356
- block: 'center',
1357
- inline: 'center',
1358
- behavior: 'instant',
1359
- });
1360
- });
1361
- }
1362
- /**
1363
- * Creates a locator based on an ElementHandle. This would not allow
1364
- * refreshing the element handle if it is stale but it allows re-using other
1365
- * locator pre-conditions.
1366
- */
1367
- asLocator() {
1368
- return NodeLocator.createFromHandle(this.frame, this);
1369
- }
1370
- /**
1371
- * Returns true if an element is an SVGElement (included svg, path, rect
1372
- * etc.).
1373
- */
1374
- async #asSVGElementHandle() {
1375
- if (await this.evaluate(element => {
1376
- return element instanceof SVGElement;
1377
- })) {
1378
- return this;
1379
- }
1380
- else {
1381
- return null;
1382
- }
1383
- }
1384
- async #getOwnerSVGElement() {
1385
- // SVGSVGElement.ownerSVGElement === null.
1386
- return await this.evaluateHandle(element => {
1387
- if (element instanceof SVGSVGElement) {
1388
- return element;
1389
- }
1390
- return element.ownerSVGElement;
1391
- });
1392
- }
1393
- };
1394
- })();
1395
- export { ElementHandle };
1396
- function intersectBoundingBox(box, width, height) {
1397
- box.width = Math.max(box.x >= 0
1398
- ? Math.min(width - box.x, box.width)
1399
- : Math.min(width, box.width + box.x), 0);
1400
- box.height = Math.max(box.y >= 0
1401
- ? Math.min(height - box.y, box.height)
1402
- : Math.min(height, box.height + box.y), 0);
1403
- box.x = Math.max(box.x, 0);
1404
- box.y = Math.max(box.y, 0);
1405
- }
1406
- //# sourceMappingURL=ElementHandle.js.map