@socialgen_user/socialgen 0.0.0-stage → 2.0.0

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 (655) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/CM9bCtzQ.js +1 -0
  3. package/.output/public/_nuxt/CQBXt-Xj.js +4 -0
  4. package/.output/public/_nuxt/DGzMDps5.js +1 -0
  5. package/.output/public/_nuxt/DKdpYrB7.js +1 -0
  6. package/.output/public/_nuxt/DoO7LZEh.js +1 -0
  7. package/.output/public/_nuxt/NcMxVlo_.js +1 -0
  8. package/.output/public/_nuxt/_LypH0D7.js +1 -0
  9. package/.output/public/_nuxt/_mode_.XsuGEG0A.css +1 -0
  10. package/.output/public/_nuxt/builds/latest.json +1 -0
  11. package/.output/public/_nuxt/builds/meta/a8a06f55-e1a4-4d58-a8ac-5c8f3e91d730.json +1 -0
  12. package/.output/public/_nuxt/error-404.DL_4WIao.css +1 -0
  13. package/.output/public/_nuxt/error-500.I1Dtv2V5.css +1 -0
  14. package/.output/public/_nuxt/pages.Df3hoeGN.css +1 -0
  15. package/.output/public/audio/cyber_future_tech.mp3 +0 -0
  16. package/.output/public/audio/dark_phonk_pulse.mp3 +0 -0
  17. package/.output/public/audio/deep_finance_groove.mp3 +0 -0
  18. package/.output/public/audio/lofi_viral_study.mp3 +0 -0
  19. package/.output/public/audio/motivation_cinematic.mp3 +0 -0
  20. package/.output/public/videos/cyber_blue.mp4 +0 -0
  21. package/.output/public/videos/cyber_matrix_stream.mp4 +0 -0
  22. package/.output/public/videos/cyber_pulse.mp4 +0 -0
  23. package/.output/public/videos/dark_luxury_particles.mp4 +0 -0
  24. package/.output/public/videos/default_bg.mp4 +0 -0
  25. package/.output/public/videos/emerald_flow.mp4 +0 -0
  26. package/.output/public/videos/financial_pulse_flow.mp4 +0 -0
  27. package/.output/public/videos/neon_cyber_grid.mp4 +0 -0
  28. package/.output/server/chunks/_/error-500.mjs +19 -0
  29. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  30. package/.output/server/chunks/_/nitro.mjs +5712 -0
  31. package/.output/server/chunks/_/nitro.mjs.map +1 -0
  32. package/.output/server/chunks/_/storage.mjs +44 -0
  33. package/.output/server/chunks/_/storage.mjs.map +1 -0
  34. package/.output/server/chunks/_/topicMatrix.mjs +147 -0
  35. package/.output/server/chunks/_/topicMatrix.mjs.map +1 -0
  36. package/.output/server/chunks/build/TableCard-Cvso4Mm4.mjs +399 -0
  37. package/.output/server/chunks/build/TableCard-Cvso4Mm4.mjs.map +1 -0
  38. package/.output/server/chunks/build/_mode_-MljTmkD8.mjs +65 -0
  39. package/.output/server/chunks/build/_mode_-MljTmkD8.mjs.map +1 -0
  40. package/.output/server/chunks/build/_mode_-styles.CcOMAYS9.mjs +8 -0
  41. package/.output/server/chunks/build/_mode_-styles.CcOMAYS9.mjs.map +1 -0
  42. package/.output/server/chunks/build/client.precomputed.mjs +4 -0
  43. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  44. package/.output/server/chunks/build/entry-styles.BUuHzwjd.mjs +8 -0
  45. package/.output/server/chunks/build/entry-styles.BUuHzwjd.mjs.map +1 -0
  46. package/.output/server/chunks/build/error-404-D7pndyXD.mjs +403 -0
  47. package/.output/server/chunks/build/error-404-D7pndyXD.mjs.map +1 -0
  48. package/.output/server/chunks/build/error-404-styles.ir-5M2eu.mjs +8 -0
  49. package/.output/server/chunks/build/error-404-styles.ir-5M2eu.mjs.map +1 -0
  50. package/.output/server/chunks/build/error-500-D0twnCBi.mjs +76 -0
  51. package/.output/server/chunks/build/error-500-D0twnCBi.mjs.map +1 -0
  52. package/.output/server/chunks/build/error-500-styles.DiQTnuqt.mjs +8 -0
  53. package/.output/server/chunks/build/error-500-styles.DiQTnuqt.mjs.map +1 -0
  54. package/.output/server/chunks/build/index-styles.CQioNwpv.mjs +8 -0
  55. package/.output/server/chunks/build/index-styles.CQioNwpv.mjs.map +1 -0
  56. package/.output/server/chunks/build/pages-BIiRN2UV.mjs +599 -0
  57. package/.output/server/chunks/build/pages-BIiRN2UV.mjs.map +1 -0
  58. package/.output/server/chunks/build/server.mjs +1115 -0
  59. package/.output/server/chunks/build/server.mjs.map +1 -0
  60. package/.output/server/chunks/build/styles.mjs +11 -0
  61. package/.output/server/chunks/build/styles.mjs.map +1 -0
  62. package/.output/server/chunks/build/v3-CmUYmHkx.mjs +22 -0
  63. package/.output/server/chunks/build/v3-CmUYmHkx.mjs.map +1 -0
  64. package/.output/server/chunks/routes/api/auto-topic.post.mjs +263 -0
  65. package/.output/server/chunks/routes/api/auto-topic.post.mjs.map +1 -0
  66. package/.output/server/chunks/routes/api/copy-prompt.get.mjs +125 -0
  67. package/.output/server/chunks/routes/api/copy-prompt.get.mjs.map +1 -0
  68. package/.output/server/chunks/routes/api/download.get.mjs +35 -0
  69. package/.output/server/chunks/routes/api/download.get.mjs.map +1 -0
  70. package/.output/server/chunks/routes/api/files/_...path_.get.mjs +36 -0
  71. package/.output/server/chunks/routes/api/files/_...path_.get.mjs.map +1 -0
  72. package/.output/server/chunks/routes/api/generate.post.mjs +441 -0
  73. package/.output/server/chunks/routes/api/generate.post.mjs.map +1 -0
  74. package/.output/server/chunks/routes/api/media.get.mjs +48 -0
  75. package/.output/server/chunks/routes/api/media.get.mjs.map +1 -0
  76. package/.output/server/chunks/routes/api/open-folder.post.mjs +29 -0
  77. package/.output/server/chunks/routes/api/open-folder.post.mjs.map +1 -0
  78. package/.output/server/chunks/routes/api/render-data.get.mjs +34 -0
  79. package/.output/server/chunks/routes/api/render-data.get.mjs.map +1 -0
  80. package/.output/server/chunks/routes/api/status.get.mjs +26 -0
  81. package/.output/server/chunks/routes/api/status.get.mjs.map +1 -0
  82. package/.output/server/chunks/routes/api/upload-media.post.mjs +75 -0
  83. package/.output/server/chunks/routes/api/upload-media.post.mjs.map +1 -0
  84. package/.output/server/chunks/routes/renderer.mjs +462 -0
  85. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  86. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  87. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  88. package/.output/server/index.mjs +39 -0
  89. package/.output/server/index.mjs.map +1 -0
  90. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode-codepoint.js +72 -0
  91. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode.js +497 -0
  92. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/escape.js +117 -0
  93. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-html.js +7 -0
  94. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-xml.js +7 -0
  95. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/package.json +3 -0
  96. package/.output/server/node_modules/.nitro/entities@6.0.1/package.json +118 -0
  97. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/decode-codepoint.js +77 -0
  98. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/decode.js +568 -0
  99. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/generated/decode-data-html.js +7 -0
  100. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/generated/decode-data-xml.js +7 -0
  101. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/internal/bin-trie-flags.js +21 -0
  102. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/internal/decode-shared.js +31 -0
  103. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/package.json +3 -0
  104. package/.output/server/node_modules/.nitro/entities@7.0.1/package.json +120 -0
  105. package/.output/server/node_modules/.nitro/minimatch@5.1.9/lib/path.js +4 -0
  106. package/.output/server/node_modules/.nitro/minimatch@5.1.9/minimatch.js +996 -0
  107. package/.output/server/node_modules/.nitro/minimatch@5.1.9/package.json +35 -0
  108. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/assert-valid-pattern.js +14 -0
  109. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/ast.js +747 -0
  110. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/brace-expressions.js +152 -0
  111. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/escape.js +22 -0
  112. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/index.js +1023 -0
  113. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/package.json +3 -0
  114. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/unescape.js +24 -0
  115. package/.output/server/node_modules/.nitro/minimatch@9.0.9/package.json +82 -0
  116. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_duplex.js +131 -0
  117. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_passthrough.js +47 -0
  118. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_readable.js +1019 -0
  119. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_transform.js +214 -0
  120. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_writable.js +685 -0
  121. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/BufferList.js +78 -0
  122. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/destroy.js +84 -0
  123. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/stream.js +1 -0
  124. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/package.json +52 -0
  125. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/passthrough.js +1 -0
  126. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/readable.js +19 -0
  127. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/shims/process.js +19 -0
  128. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/add-abort-signal.js +52 -0
  129. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/buffer_list.js +157 -0
  130. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/compose.js +194 -0
  131. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/destroy.js +290 -0
  132. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/duplex.js +143 -0
  133. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/duplexify.js +378 -0
  134. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/end-of-stream.js +286 -0
  135. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/from.js +98 -0
  136. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/legacy.js +94 -0
  137. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/operators.js +457 -0
  138. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/passthrough.js +39 -0
  139. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/pipeline.js +471 -0
  140. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/readable.js +1290 -0
  141. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/state.js +39 -0
  142. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/transform.js +180 -0
  143. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/utils.js +327 -0
  144. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/writable.js +819 -0
  145. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/validators.js +530 -0
  146. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/errors.js +343 -0
  147. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/index.js +65 -0
  148. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/primordials.js +124 -0
  149. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/util/inspect.js +55 -0
  150. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/util.js +148 -0
  151. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/stream/promises.js +43 -0
  152. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/stream.js +143 -0
  153. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/package.json +89 -0
  154. package/.output/server/node_modules/.nitro/safe-buffer@5.1.2/index.js +62 -0
  155. package/.output/server/node_modules/.nitro/safe-buffer@5.1.2/package.json +37 -0
  156. package/.output/server/node_modules/.nitro/safe-buffer@5.2.1/index.js +65 -0
  157. package/.output/server/node_modules/.nitro/safe-buffer@5.2.1/package.json +51 -0
  158. package/.output/server/node_modules/.nitro/string_decoder@1.1.1/lib/string_decoder.js +296 -0
  159. package/.output/server/node_modules/.nitro/string_decoder@1.1.1/package.json +31 -0
  160. package/.output/server/node_modules/.nitro/string_decoder@1.3.0/lib/string_decoder.js +296 -0
  161. package/.output/server/node_modules/.nitro/string_decoder@1.3.0/package.json +34 -0
  162. package/.output/server/node_modules/@babel/parser/lib/index.js +14990 -0
  163. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  164. package/.output/server/node_modules/@google/genai/dist/node/index.mjs +32052 -0
  165. package/.output/server/node_modules/@google/genai/package.json +175 -0
  166. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6806 -0
  167. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  168. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +729 -0
  169. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  170. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1460 -0
  171. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  172. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
  173. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
  174. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
  175. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
  176. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
  177. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
  178. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
  179. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
  180. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
  181. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
  182. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
  183. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
  184. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
  185. package/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
  186. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1937 -0
  187. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  188. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +7260 -0
  189. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  190. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1932 -0
  191. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  192. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +951 -0
  193. package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
  194. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +657 -0
  195. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  196. package/.output/server/node_modules/abort-controller/dist/abort-controller.js +127 -0
  197. package/.output/server/node_modules/abort-controller/package.json +97 -0
  198. package/.output/server/node_modules/agent-base/dist/helpers.js +66 -0
  199. package/.output/server/node_modules/agent-base/dist/index.js +178 -0
  200. package/.output/server/node_modules/agent-base/package.json +46 -0
  201. package/.output/server/node_modules/archiver/index.js +84 -0
  202. package/.output/server/node_modules/archiver/lib/core.js +974 -0
  203. package/.output/server/node_modules/archiver/lib/error.js +40 -0
  204. package/.output/server/node_modules/archiver/lib/plugins/json.js +110 -0
  205. package/.output/server/node_modules/archiver/lib/plugins/tar.js +167 -0
  206. package/.output/server/node_modules/archiver/lib/plugins/zip.js +120 -0
  207. package/.output/server/node_modules/archiver/package.json +60 -0
  208. package/.output/server/node_modules/archiver-utils/file.js +209 -0
  209. package/.output/server/node_modules/archiver-utils/index.js +155 -0
  210. package/.output/server/node_modules/archiver-utils/package.json +48 -0
  211. package/.output/server/node_modules/async/dist/async.js +6061 -0
  212. package/.output/server/node_modules/async/package.json +75 -0
  213. package/.output/server/node_modules/b4a/index.js +193 -0
  214. package/.output/server/node_modules/b4a/package.json +54 -0
  215. package/.output/server/node_modules/balanced-match/index.js +62 -0
  216. package/.output/server/node_modules/balanced-match/package.json +48 -0
  217. package/.output/server/node_modules/base64-js/index.js +150 -0
  218. package/.output/server/node_modules/base64-js/package.json +47 -0
  219. package/.output/server/node_modules/bignumber.js/bignumber.js +2922 -0
  220. package/.output/server/node_modules/bignumber.js/package.json +60 -0
  221. package/.output/server/node_modules/brace-expansion/index.js +633 -0
  222. package/.output/server/node_modules/brace-expansion/package.json +52 -0
  223. package/.output/server/node_modules/buffer-crc32/dist/index.cjs +306 -0
  224. package/.output/server/node_modules/buffer-crc32/package.json +54 -0
  225. package/.output/server/node_modules/buffer-equal-constant-time/index.js +41 -0
  226. package/.output/server/node_modules/buffer-equal-constant-time/package.json +21 -0
  227. package/.output/server/node_modules/compress-commons/lib/archivers/archive-entry.js +16 -0
  228. package/.output/server/node_modules/compress-commons/lib/archivers/archive-output-stream.js +118 -0
  229. package/.output/server/node_modules/compress-commons/lib/archivers/zip/constants.js +71 -0
  230. package/.output/server/node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js +101 -0
  231. package/.output/server/node_modules/compress-commons/lib/archivers/zip/unix-stat.js +53 -0
  232. package/.output/server/node_modules/compress-commons/lib/archivers/zip/util.js +74 -0
  233. package/.output/server/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js +413 -0
  234. package/.output/server/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js +437 -0
  235. package/.output/server/node_modules/compress-commons/lib/compress-commons.js +13 -0
  236. package/.output/server/node_modules/compress-commons/lib/util/index.js +27 -0
  237. package/.output/server/node_modules/compress-commons/package.json +46 -0
  238. package/.output/server/node_modules/core-util-is/lib/util.js +107 -0
  239. package/.output/server/node_modules/core-util-is/package.json +38 -0
  240. package/.output/server/node_modules/crc-32/crc32.js +115 -0
  241. package/.output/server/node_modules/crc-32/package.json +67 -0
  242. package/.output/server/node_modules/crc32-stream/lib/crc32-stream.js +48 -0
  243. package/.output/server/node_modules/crc32-stream/lib/deflate-crc32-stream.js +62 -0
  244. package/.output/server/node_modules/crc32-stream/lib/index.js +14 -0
  245. package/.output/server/node_modules/crc32-stream/package.json +45 -0
  246. package/.output/server/node_modules/data-uri-to-buffer/dist/index.js +53 -0
  247. package/.output/server/node_modules/data-uri-to-buffer/package.json +62 -0
  248. package/.output/server/node_modules/debug/package.json +64 -0
  249. package/.output/server/node_modules/debug/src/browser.js +272 -0
  250. package/.output/server/node_modules/debug/src/common.js +292 -0
  251. package/.output/server/node_modules/debug/src/index.js +10 -0
  252. package/.output/server/node_modules/debug/src/node.js +263 -0
  253. package/.output/server/node_modules/devalue/index.js +17 -0
  254. package/.output/server/node_modules/devalue/package.json +39 -0
  255. package/.output/server/node_modules/devalue/src/base64.js +60 -0
  256. package/.output/server/node_modules/devalue/src/constants.js +12 -0
  257. package/.output/server/node_modules/devalue/src/operations.js +221 -0
  258. package/.output/server/node_modules/devalue/src/parse.js +279 -0
  259. package/.output/server/node_modules/devalue/src/stringify.js +433 -0
  260. package/.output/server/node_modules/devalue/src/uneval.js +698 -0
  261. package/.output/server/node_modules/devalue/src/utils.js +190 -0
  262. package/.output/server/node_modules/ecdsa-sig-formatter/package.json +46 -0
  263. package/.output/server/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
  264. package/.output/server/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
  265. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  266. package/.output/server/node_modules/estree-walker/package.json +37 -0
  267. package/.output/server/node_modules/event-target-shim/dist/event-target-shim.js +871 -0
  268. package/.output/server/node_modules/event-target-shim/package.json +82 -0
  269. package/.output/server/node_modules/events-universal/default.js +1 -0
  270. package/.output/server/node_modules/events-universal/package.json +39 -0
  271. package/.output/server/node_modules/extend/index.js +117 -0
  272. package/.output/server/node_modules/extend/package.json +42 -0
  273. package/.output/server/node_modules/fast-fifo/fixed-size.js +39 -0
  274. package/.output/server/node_modules/fast-fifo/index.js +48 -0
  275. package/.output/server/node_modules/fast-fifo/package.json +28 -0
  276. package/.output/server/node_modules/fetch-blob/file.js +49 -0
  277. package/.output/server/node_modules/fetch-blob/from.js +100 -0
  278. package/.output/server/node_modules/fetch-blob/index.js +250 -0
  279. package/.output/server/node_modules/fetch-blob/package.json +56 -0
  280. package/.output/server/node_modules/fetch-blob/streams.cjs +51 -0
  281. package/.output/server/node_modules/formdata-polyfill/esm.min.js +40 -0
  282. package/.output/server/node_modules/formdata-polyfill/package.json +50 -0
  283. package/.output/server/node_modules/gaxios/build/cjs/src/common.js +311 -0
  284. package/.output/server/node_modules/gaxios/build/cjs/src/gaxios.js +564 -0
  285. package/.output/server/node_modules/gaxios/build/cjs/src/index.js +48 -0
  286. package/.output/server/node_modules/gaxios/build/cjs/src/interceptor.js +22 -0
  287. package/.output/server/node_modules/gaxios/build/cjs/src/retry.js +165 -0
  288. package/.output/server/node_modules/gaxios/build/cjs/src/util.cjs +16 -0
  289. package/.output/server/node_modules/gaxios/package.json +105 -0
  290. package/.output/server/node_modules/gcp-metadata/build/src/gcp-residency.js +114 -0
  291. package/.output/server/node_modules/gcp-metadata/build/src/index.js +402 -0
  292. package/.output/server/node_modules/gcp-metadata/package.json +77 -0
  293. package/.output/server/node_modules/glob/dist/commonjs/glob.js +247 -0
  294. package/.output/server/node_modules/glob/dist/commonjs/has-magic.js +27 -0
  295. package/.output/server/node_modules/glob/dist/commonjs/ignore.js +119 -0
  296. package/.output/server/node_modules/glob/dist/commonjs/index.js +68 -0
  297. package/.output/server/node_modules/glob/dist/commonjs/package.json +3 -0
  298. package/.output/server/node_modules/glob/dist/commonjs/pattern.js +219 -0
  299. package/.output/server/node_modules/glob/dist/commonjs/processor.js +301 -0
  300. package/.output/server/node_modules/glob/dist/commonjs/walker.js +387 -0
  301. package/.output/server/node_modules/glob/package.json +99 -0
  302. package/.output/server/node_modules/google-auth-library/build/src/auth/authclient.js +286 -0
  303. package/.output/server/node_modules/google-auth-library/build/src/auth/awsclient.js +154 -0
  304. package/.output/server/node_modules/google-auth-library/build/src/auth/awsrequestsigner.js +213 -0
  305. package/.output/server/node_modules/google-auth-library/build/src/auth/baseexternalclient.js +477 -0
  306. package/.output/server/node_modules/google-auth-library/build/src/auth/certificatesubjecttokensupplier.js +223 -0
  307. package/.output/server/node_modules/google-auth-library/build/src/auth/computeclient.js +118 -0
  308. package/.output/server/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.js +199 -0
  309. package/.output/server/node_modules/google-auth-library/build/src/auth/downscopedclient.js +273 -0
  310. package/.output/server/node_modules/google-auth-library/build/src/auth/envDetect.js +97 -0
  311. package/.output/server/node_modules/google-auth-library/build/src/auth/executable-response.js +178 -0
  312. package/.output/server/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js +233 -0
  313. package/.output/server/node_modules/google-auth-library/build/src/auth/externalclient.js +68 -0
  314. package/.output/server/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.js +84 -0
  315. package/.output/server/node_modules/google-auth-library/build/src/auth/gdchclient.js +307 -0
  316. package/.output/server/node_modules/google-auth-library/build/src/auth/googleauth.js +921 -0
  317. package/.output/server/node_modules/google-auth-library/build/src/auth/iam.js +44 -0
  318. package/.output/server/node_modules/google-auth-library/build/src/auth/identitypoolclient.js +131 -0
  319. package/.output/server/node_modules/google-auth-library/build/src/auth/idtokenclient.js +56 -0
  320. package/.output/server/node_modules/google-auth-library/build/src/auth/impersonated.js +197 -0
  321. package/.output/server/node_modules/google-auth-library/build/src/auth/jwtaccess.js +201 -0
  322. package/.output/server/node_modules/google-auth-library/build/src/auth/jwtclient.js +301 -0
  323. package/.output/server/node_modules/google-auth-library/build/src/auth/loginticket.js +60 -0
  324. package/.output/server/node_modules/google-auth-library/build/src/auth/oauth2client.js +820 -0
  325. package/.output/server/node_modules/google-auth-library/build/src/auth/oauth2common.js +189 -0
  326. package/.output/server/node_modules/google-auth-library/build/src/auth/passthrough.js +60 -0
  327. package/.output/server/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js +220 -0
  328. package/.output/server/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js +174 -0
  329. package/.output/server/node_modules/google-auth-library/build/src/auth/refreshclient.js +160 -0
  330. package/.output/server/node_modules/google-auth-library/build/src/auth/stscredentials.js +107 -0
  331. package/.output/server/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.js +71 -0
  332. package/.output/server/node_modules/google-auth-library/build/src/crypto/browser/crypto.js +127 -0
  333. package/.output/server/node_modules/google-auth-library/build/src/crypto/crypto.js +54 -0
  334. package/.output/server/node_modules/google-auth-library/build/src/crypto/node/crypto.js +88 -0
  335. package/.output/server/node_modules/google-auth-library/build/src/crypto/shared.js +32 -0
  336. package/.output/server/node_modules/google-auth-library/build/src/gtoken/errorWithCode.js +25 -0
  337. package/.output/server/node_modules/google-auth-library/build/src/gtoken/getCredentials.js +132 -0
  338. package/.output/server/node_modules/google-auth-library/build/src/gtoken/getToken.js +66 -0
  339. package/.output/server/node_modules/google-auth-library/build/src/gtoken/googleToken.js +125 -0
  340. package/.output/server/node_modules/google-auth-library/build/src/gtoken/jwsSign.js +54 -0
  341. package/.output/server/node_modules/google-auth-library/build/src/gtoken/revokeToken.js +34 -0
  342. package/.output/server/node_modules/google-auth-library/build/src/gtoken/tokenHandler.js +97 -0
  343. package/.output/server/node_modules/google-auth-library/build/src/index.js +88 -0
  344. package/.output/server/node_modules/google-auth-library/build/src/shared.cjs +22 -0
  345. package/.output/server/node_modules/google-auth-library/build/src/util.js +176 -0
  346. package/.output/server/node_modules/google-auth-library/package.json +90 -0
  347. package/.output/server/node_modules/google-logging-utils/build/src/colours.js +81 -0
  348. package/.output/server/node_modules/google-logging-utils/build/src/index.js +31 -0
  349. package/.output/server/node_modules/google-logging-utils/build/src/logging-utils.js +437 -0
  350. package/.output/server/node_modules/google-logging-utils/package.json +45 -0
  351. package/.output/server/node_modules/graceful-fs/clone.js +23 -0
  352. package/.output/server/node_modules/graceful-fs/graceful-fs.js +448 -0
  353. package/.output/server/node_modules/graceful-fs/legacy-streams.js +118 -0
  354. package/.output/server/node_modules/graceful-fs/package.json +52 -0
  355. package/.output/server/node_modules/graceful-fs/polyfills.js +355 -0
  356. package/.output/server/node_modules/has-flag/index.js +8 -0
  357. package/.output/server/node_modules/has-flag/package.json +46 -0
  358. package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
  359. package/.output/server/node_modules/hookable/package.json +54 -0
  360. package/.output/server/node_modules/https-proxy-agent/dist/index.js +180 -0
  361. package/.output/server/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
  362. package/.output/server/node_modules/https-proxy-agent/package.json +50 -0
  363. package/.output/server/node_modules/inherits/inherits.js +9 -0
  364. package/.output/server/node_modules/inherits/inherits_browser.js +27 -0
  365. package/.output/server/node_modules/inherits/package.json +29 -0
  366. package/.output/server/node_modules/is-stream/index.js +28 -0
  367. package/.output/server/node_modules/is-stream/package.json +42 -0
  368. package/.output/server/node_modules/isarray/index.js +5 -0
  369. package/.output/server/node_modules/isarray/package.json +45 -0
  370. package/.output/server/node_modules/json-bigint/index.js +12 -0
  371. package/.output/server/node_modules/json-bigint/lib/parse.js +443 -0
  372. package/.output/server/node_modules/json-bigint/lib/stringify.js +384 -0
  373. package/.output/server/node_modules/json-bigint/package.json +34 -0
  374. package/.output/server/node_modules/jwa/index.js +266 -0
  375. package/.output/server/node_modules/jwa/package.json +37 -0
  376. package/.output/server/node_modules/jws/index.js +22 -0
  377. package/.output/server/node_modules/jws/lib/data-stream.js +55 -0
  378. package/.output/server/node_modules/jws/lib/sign-stream.js +83 -0
  379. package/.output/server/node_modules/jws/lib/tostring.js +10 -0
  380. package/.output/server/node_modules/jws/lib/verify-stream.js +125 -0
  381. package/.output/server/node_modules/jws/package.json +34 -0
  382. package/.output/server/node_modules/lazystream/lib/lazystream.js +54 -0
  383. package/.output/server/node_modules/lazystream/package.json +46 -0
  384. package/.output/server/node_modules/lodash/_Hash.js +32 -0
  385. package/.output/server/node_modules/lodash/_ListCache.js +32 -0
  386. package/.output/server/node_modules/lodash/_Map.js +7 -0
  387. package/.output/server/node_modules/lodash/_MapCache.js +32 -0
  388. package/.output/server/node_modules/lodash/_Set.js +7 -0
  389. package/.output/server/node_modules/lodash/_SetCache.js +27 -0
  390. package/.output/server/node_modules/lodash/_Symbol.js +6 -0
  391. package/.output/server/node_modules/lodash/_apply.js +21 -0
  392. package/.output/server/node_modules/lodash/_arrayIncludes.js +17 -0
  393. package/.output/server/node_modules/lodash/_arrayIncludesWith.js +22 -0
  394. package/.output/server/node_modules/lodash/_arrayLikeKeys.js +49 -0
  395. package/.output/server/node_modules/lodash/_arrayMap.js +21 -0
  396. package/.output/server/node_modules/lodash/_arrayPush.js +20 -0
  397. package/.output/server/node_modules/lodash/_assocIndexOf.js +21 -0
  398. package/.output/server/node_modules/lodash/_baseDifference.js +67 -0
  399. package/.output/server/node_modules/lodash/_baseFindIndex.js +24 -0
  400. package/.output/server/node_modules/lodash/_baseFlatten.js +38 -0
  401. package/.output/server/node_modules/lodash/_baseGetTag.js +28 -0
  402. package/.output/server/node_modules/lodash/_baseIndexOf.js +20 -0
  403. package/.output/server/node_modules/lodash/_baseIsArguments.js +18 -0
  404. package/.output/server/node_modules/lodash/_baseIsNaN.js +12 -0
  405. package/.output/server/node_modules/lodash/_baseIsNative.js +47 -0
  406. package/.output/server/node_modules/lodash/_baseIsTypedArray.js +60 -0
  407. package/.output/server/node_modules/lodash/_baseKeysIn.js +33 -0
  408. package/.output/server/node_modules/lodash/_baseRest.js +17 -0
  409. package/.output/server/node_modules/lodash/_baseSetToString.js +22 -0
  410. package/.output/server/node_modules/lodash/_baseTimes.js +20 -0
  411. package/.output/server/node_modules/lodash/_baseUnary.js +14 -0
  412. package/.output/server/node_modules/lodash/_baseUniq.js +72 -0
  413. package/.output/server/node_modules/lodash/_cacheHas.js +13 -0
  414. package/.output/server/node_modules/lodash/_coreJsData.js +6 -0
  415. package/.output/server/node_modules/lodash/_createSet.js +19 -0
  416. package/.output/server/node_modules/lodash/_defineProperty.js +11 -0
  417. package/.output/server/node_modules/lodash/_freeGlobal.js +4 -0
  418. package/.output/server/node_modules/lodash/_getMapData.js +18 -0
  419. package/.output/server/node_modules/lodash/_getNative.js +17 -0
  420. package/.output/server/node_modules/lodash/_getPrototype.js +6 -0
  421. package/.output/server/node_modules/lodash/_getRawTag.js +46 -0
  422. package/.output/server/node_modules/lodash/_getValue.js +13 -0
  423. package/.output/server/node_modules/lodash/_hashClear.js +15 -0
  424. package/.output/server/node_modules/lodash/_hashDelete.js +17 -0
  425. package/.output/server/node_modules/lodash/_hashGet.js +30 -0
  426. package/.output/server/node_modules/lodash/_hashHas.js +23 -0
  427. package/.output/server/node_modules/lodash/_hashSet.js +23 -0
  428. package/.output/server/node_modules/lodash/_isFlattenable.js +20 -0
  429. package/.output/server/node_modules/lodash/_isIndex.js +25 -0
  430. package/.output/server/node_modules/lodash/_isIterateeCall.js +30 -0
  431. package/.output/server/node_modules/lodash/_isKeyable.js +15 -0
  432. package/.output/server/node_modules/lodash/_isMasked.js +20 -0
  433. package/.output/server/node_modules/lodash/_isPrototype.js +18 -0
  434. package/.output/server/node_modules/lodash/_listCacheClear.js +13 -0
  435. package/.output/server/node_modules/lodash/_listCacheDelete.js +35 -0
  436. package/.output/server/node_modules/lodash/_listCacheGet.js +19 -0
  437. package/.output/server/node_modules/lodash/_listCacheHas.js +16 -0
  438. package/.output/server/node_modules/lodash/_listCacheSet.js +26 -0
  439. package/.output/server/node_modules/lodash/_mapCacheClear.js +21 -0
  440. package/.output/server/node_modules/lodash/_mapCacheDelete.js +18 -0
  441. package/.output/server/node_modules/lodash/_mapCacheGet.js +16 -0
  442. package/.output/server/node_modules/lodash/_mapCacheHas.js +16 -0
  443. package/.output/server/node_modules/lodash/_mapCacheSet.js +22 -0
  444. package/.output/server/node_modules/lodash/_nativeCreate.js +6 -0
  445. package/.output/server/node_modules/lodash/_nativeKeysIn.js +20 -0
  446. package/.output/server/node_modules/lodash/_nodeUtil.js +30 -0
  447. package/.output/server/node_modules/lodash/_objectToString.js +22 -0
  448. package/.output/server/node_modules/lodash/_overArg.js +15 -0
  449. package/.output/server/node_modules/lodash/_overRest.js +36 -0
  450. package/.output/server/node_modules/lodash/_root.js +9 -0
  451. package/.output/server/node_modules/lodash/_setCacheAdd.js +19 -0
  452. package/.output/server/node_modules/lodash/_setCacheHas.js +14 -0
  453. package/.output/server/node_modules/lodash/_setToArray.js +18 -0
  454. package/.output/server/node_modules/lodash/_setToString.js +14 -0
  455. package/.output/server/node_modules/lodash/_shortOut.js +37 -0
  456. package/.output/server/node_modules/lodash/_strictIndexOf.js +23 -0
  457. package/.output/server/node_modules/lodash/_toSource.js +26 -0
  458. package/.output/server/node_modules/lodash/constant.js +26 -0
  459. package/.output/server/node_modules/lodash/defaults.js +64 -0
  460. package/.output/server/node_modules/lodash/difference.js +33 -0
  461. package/.output/server/node_modules/lodash/eq.js +37 -0
  462. package/.output/server/node_modules/lodash/flatten.js +22 -0
  463. package/.output/server/node_modules/lodash/identity.js +21 -0
  464. package/.output/server/node_modules/lodash/isArguments.js +36 -0
  465. package/.output/server/node_modules/lodash/isArray.js +26 -0
  466. package/.output/server/node_modules/lodash/isArrayLike.js +33 -0
  467. package/.output/server/node_modules/lodash/isArrayLikeObject.js +33 -0
  468. package/.output/server/node_modules/lodash/isBuffer.js +38 -0
  469. package/.output/server/node_modules/lodash/isFunction.js +37 -0
  470. package/.output/server/node_modules/lodash/isLength.js +35 -0
  471. package/.output/server/node_modules/lodash/isObject.js +31 -0
  472. package/.output/server/node_modules/lodash/isObjectLike.js +29 -0
  473. package/.output/server/node_modules/lodash/isPlainObject.js +62 -0
  474. package/.output/server/node_modules/lodash/isTypedArray.js +27 -0
  475. package/.output/server/node_modules/lodash/keysIn.js +32 -0
  476. package/.output/server/node_modules/lodash/noop.js +17 -0
  477. package/.output/server/node_modules/lodash/package.json +19 -0
  478. package/.output/server/node_modules/lodash/stubFalse.js +18 -0
  479. package/.output/server/node_modules/lodash/union.js +26 -0
  480. package/.output/server/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
  481. package/.output/server/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  482. package/.output/server/node_modules/lru-cache/package.json +116 -0
  483. package/.output/server/node_modules/lucide-vue-next/dist/cjs/lucide-vue-next.js +21273 -0
  484. package/.output/server/node_modules/lucide-vue-next/package.json +64 -0
  485. package/.output/server/node_modules/minipass/dist/commonjs/index.js +1038 -0
  486. package/.output/server/node_modules/minipass/dist/commonjs/package.json +3 -0
  487. package/.output/server/node_modules/minipass/package.json +77 -0
  488. package/.output/server/node_modules/ms/index.js +162 -0
  489. package/.output/server/node_modules/ms/package.json +38 -0
  490. package/.output/server/node_modules/node-domexception/index.js +16 -0
  491. package/.output/server/node_modules/node-domexception/package.json +29 -0
  492. package/.output/server/node_modules/node-fetch/package.json +131 -0
  493. package/.output/server/node_modules/node-fetch/src/body.js +397 -0
  494. package/.output/server/node_modules/node-fetch/src/errors/abort-error.js +10 -0
  495. package/.output/server/node_modules/node-fetch/src/errors/base.js +17 -0
  496. package/.output/server/node_modules/node-fetch/src/errors/fetch-error.js +26 -0
  497. package/.output/server/node_modules/node-fetch/src/headers.js +267 -0
  498. package/.output/server/node_modules/node-fetch/src/index.js +417 -0
  499. package/.output/server/node_modules/node-fetch/src/request.js +313 -0
  500. package/.output/server/node_modules/node-fetch/src/response.js +160 -0
  501. package/.output/server/node_modules/node-fetch/src/utils/get-search.js +9 -0
  502. package/.output/server/node_modules/node-fetch/src/utils/is-redirect.js +11 -0
  503. package/.output/server/node_modules/node-fetch/src/utils/is.js +87 -0
  504. package/.output/server/node_modules/node-fetch/src/utils/multipart-parser.js +432 -0
  505. package/.output/server/node_modules/node-fetch/src/utils/referrer.js +340 -0
  506. package/.output/server/node_modules/normalize-path/index.js +35 -0
  507. package/.output/server/node_modules/normalize-path/package.json +77 -0
  508. package/.output/server/node_modules/p-retry/index.js +85 -0
  509. package/.output/server/node_modules/p-retry/package.json +51 -0
  510. package/.output/server/node_modules/parse5/dist/common/doctype.js +114 -0
  511. package/.output/server/node_modules/parse5/dist/common/error-codes.js +63 -0
  512. package/.output/server/node_modules/parse5/dist/common/foreign-content.js +228 -0
  513. package/.output/server/node_modules/parse5/dist/common/html.js +523 -0
  514. package/.output/server/node_modules/parse5/dist/common/token.js +20 -0
  515. package/.output/server/node_modules/parse5/dist/common/unicode.js +62 -0
  516. package/.output/server/node_modules/parse5/dist/index.js +42 -0
  517. package/.output/server/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
  518. package/.output/server/node_modules/parse5/dist/parser/index.js +3245 -0
  519. package/.output/server/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
  520. package/.output/server/node_modules/parse5/dist/serializer/index.js +168 -0
  521. package/.output/server/node_modules/parse5/dist/tokenizer/index.js +2710 -0
  522. package/.output/server/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
  523. package/.output/server/node_modules/parse5/dist/tree-adapters/default.js +173 -0
  524. package/.output/server/node_modules/parse5/package.json +50 -0
  525. package/.output/server/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
  526. package/.output/server/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  527. package/.output/server/node_modules/path-scurry/package.json +89 -0
  528. package/.output/server/node_modules/playwright/index.mjs +18 -0
  529. package/.output/server/node_modules/playwright/package.json +50 -0
  530. package/.output/server/node_modules/playwright-core/browsers.json +52 -0
  531. package/.output/server/node_modules/playwright-core/index.js +17 -0
  532. package/.output/server/node_modules/playwright-core/index.mjs +28 -0
  533. package/.output/server/node_modules/playwright-core/lib/bootstrap.js +149 -0
  534. package/.output/server/node_modules/playwright-core/lib/coreBundle.js +78764 -0
  535. package/.output/server/node_modules/playwright-core/lib/utilsBundle.js +92408 -0
  536. package/.output/server/node_modules/playwright-core/package.json +34 -0
  537. package/.output/server/node_modules/process/index.js +2 -0
  538. package/.output/server/node_modules/process/package.json +27 -0
  539. package/.output/server/node_modules/process-nextick-args/index.js +45 -0
  540. package/.output/server/node_modules/process-nextick-args/package.json +25 -0
  541. package/.output/server/node_modules/readdir-glob/index.js +243 -0
  542. package/.output/server/node_modules/readdir-glob/package.json +43 -0
  543. package/.output/server/node_modules/retry/index.js +1 -0
  544. package/.output/server/node_modules/retry/lib/retry.js +100 -0
  545. package/.output/server/node_modules/retry/lib/retry_operation.js +162 -0
  546. package/.output/server/node_modules/retry/package.json +36 -0
  547. package/.output/server/node_modules/source-map-js/lib/array-set.js +123 -0
  548. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +136 -0
  549. package/.output/server/node_modules/source-map-js/lib/base64.js +68 -0
  550. package/.output/server/node_modules/source-map-js/lib/binary-search.js +115 -0
  551. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +84 -0
  552. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +211 -0
  553. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1314 -0
  554. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +486 -0
  555. package/.output/server/node_modules/source-map-js/lib/source-node.js +446 -0
  556. package/.output/server/node_modules/source-map-js/lib/util.js +613 -0
  557. package/.output/server/node_modules/source-map-js/package.json +78 -0
  558. package/.output/server/node_modules/source-map-js/source-map.js +10 -0
  559. package/.output/server/node_modules/streamx/index.js +1314 -0
  560. package/.output/server/node_modules/streamx/lib/errors.js +47 -0
  561. package/.output/server/node_modules/streamx/package.json +51 -0
  562. package/.output/server/node_modules/supports-color/index.js +135 -0
  563. package/.output/server/node_modules/supports-color/package.json +53 -0
  564. package/.output/server/node_modules/tar-stream/constants.js +14 -0
  565. package/.output/server/node_modules/tar-stream/extract.js +418 -0
  566. package/.output/server/node_modules/tar-stream/headers.js +322 -0
  567. package/.output/server/node_modules/tar-stream/index.js +2 -0
  568. package/.output/server/node_modules/tar-stream/pack.js +287 -0
  569. package/.output/server/node_modules/tar-stream/package.json +50 -0
  570. package/.output/server/node_modules/text-decoder/index.js +64 -0
  571. package/.output/server/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
  572. package/.output/server/node_modules/text-decoder/lib/utf8-decoder.js +185 -0
  573. package/.output/server/node_modules/text-decoder/package.json +39 -0
  574. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  575. package/.output/server/node_modules/ufo/package.json +48 -0
  576. package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  577. package/.output/server/node_modules/unhead/dist/plugins.mjs +103 -0
  578. package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  579. package/.output/server/node_modules/unhead/dist/server.mjs +191 -0
  580. package/.output/server/node_modules/unhead/dist/shared/unhead.0TIQaUam.mjs +244 -0
  581. package/.output/server/node_modules/unhead/dist/shared/unhead.AtIkjM2B.mjs +166 -0
  582. package/.output/server/node_modules/unhead/dist/shared/unhead.AvDFlk_u.mjs +39 -0
  583. package/.output/server/node_modules/unhead/dist/shared/unhead.B0o2oYhg.mjs +317 -0
  584. package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  585. package/.output/server/node_modules/unhead/dist/shared/unhead.ByHeIeZd.mjs +184 -0
  586. package/.output/server/node_modules/unhead/dist/shared/unhead.C-69jnXc.mjs +44 -0
  587. package/.output/server/node_modules/unhead/dist/shared/unhead.ChXiQvI8.mjs +76 -0
  588. package/.output/server/node_modules/unhead/dist/shared/unhead.DWXHYkPf.mjs +366 -0
  589. package/.output/server/node_modules/unhead/dist/shared/unhead.h_KkEIE6.mjs +196 -0
  590. package/.output/server/node_modules/unhead/dist/shared/unhead.ylJpsHyA.mjs +255 -0
  591. package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  592. package/.output/server/node_modules/unhead/package.json +106 -0
  593. package/.output/server/node_modules/util-deprecate/node.js +6 -0
  594. package/.output/server/node_modules/util-deprecate/package.json +27 -0
  595. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  596. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  597. package/.output/server/node_modules/vue/index.js +7 -0
  598. package/.output/server/node_modules/vue/index.mjs +1 -0
  599. package/.output/server/node_modules/vue/package.json +112 -0
  600. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  601. package/.output/server/node_modules/vue-bundle-renderer/dist/dependencies-VCG-RX19.mjs +118 -0
  602. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +673 -0
  603. package/.output/server/node_modules/vue-bundle-renderer/package.json +66 -0
  604. package/.output/server/node_modules/vue-router/dist/devtools-C3Hva4Qk.mjs +1220 -0
  605. package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1561 -0
  606. package/.output/server/node_modules/vue-router/package.json +156 -0
  607. package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
  608. package/.output/server/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +4737 -0
  609. package/.output/server/node_modules/web-streams-polyfill/package.json +83 -0
  610. package/.output/server/node_modules/ws/lib/buffer-util.js +142 -0
  611. package/.output/server/node_modules/ws/lib/constants.js +19 -0
  612. package/.output/server/node_modules/ws/lib/event-target.js +292 -0
  613. package/.output/server/node_modules/ws/lib/extension.js +203 -0
  614. package/.output/server/node_modules/ws/lib/limiter.js +55 -0
  615. package/.output/server/node_modules/ws/lib/permessage-deflate.js +530 -0
  616. package/.output/server/node_modules/ws/lib/receiver.js +751 -0
  617. package/.output/server/node_modules/ws/lib/sender.js +610 -0
  618. package/.output/server/node_modules/ws/lib/stream.js +161 -0
  619. package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
  620. package/.output/server/node_modules/ws/lib/validation.js +152 -0
  621. package/.output/server/node_modules/ws/lib/websocket-server.js +565 -0
  622. package/.output/server/node_modules/ws/lib/websocket.js +1471 -0
  623. package/.output/server/node_modules/ws/package.json +74 -0
  624. package/.output/server/node_modules/ws/wrapper.mjs +21 -0
  625. package/.output/server/node_modules/zip-stream/index.js +187 -0
  626. package/.output/server/node_modules/zip-stream/package.json +49 -0
  627. package/.output/server/node_modules/zod/index.js +4 -0
  628. package/.output/server/node_modules/zod/package.json +118 -0
  629. package/.output/server/node_modules/zod/v3/ZodError.js +133 -0
  630. package/.output/server/node_modules/zod/v3/errors.js +9 -0
  631. package/.output/server/node_modules/zod/v3/external.js +6 -0
  632. package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  633. package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  634. package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  635. package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
  636. package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
  637. package/.output/server/node_modules/zod/v3/types.js +3693 -0
  638. package/.output/server/package.json +99 -0
  639. package/README.md +81 -2
  640. package/bin/cli.js +138 -0
  641. package/data/history.json +17 -0
  642. package/package.json +39 -4
  643. package/public/audio/cyber_future_tech.mp3 +0 -0
  644. package/public/audio/dark_phonk_pulse.mp3 +0 -0
  645. package/public/audio/deep_finance_groove.mp3 +0 -0
  646. package/public/audio/lofi_viral_study.mp3 +0 -0
  647. package/public/audio/motivation_cinematic.mp3 +0 -0
  648. package/public/videos/cyber_blue.mp4 +0 -0
  649. package/public/videos/cyber_matrix_stream.mp4 +0 -0
  650. package/public/videos/cyber_pulse.mp4 +0 -0
  651. package/public/videos/dark_luxury_particles.mp4 +0 -0
  652. package/public/videos/default_bg.mp4 +0 -0
  653. package/public/videos/emerald_flow.mp4 +0 -0
  654. package/public/videos/financial_pulse_flow.mp4 +0 -0
  655. package/public/videos/neon_cyber_grid.mp4 +0 -0
@@ -0,0 +1,698 @@
1
+ import { MAX_ARRAY_INDEX } from './constants.js';
2
+ import {
3
+ DevalueError,
4
+ enumerable_symbols,
5
+ escaped,
6
+ get_type,
7
+ is_buffer,
8
+ is_plain_object,
9
+ is_primitive,
10
+ stringify_key,
11
+ stringify_string,
12
+ valid_array_indices
13
+ } from './utils.js';
14
+
15
+ const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$';
16
+ // Short strings have bounded escaping/output costs per reference, so they cannot
17
+ // cause quadratic expansion. Keep them on the original fast path rather than
18
+ // paying for deduplication on common values such as names, IDs and status fields.
19
+ const MIN_STRING_LENGTH = 128;
20
+ const unsafe_chars = /[<\b\f\n\r\t\0\u2028\u2029]/g;
21
+ const reserved =
22
+ /^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/;
23
+
24
+ /**
25
+ * Turn a value into the JavaScript that creates an equivalent value
26
+ * @param {any} value
27
+ * @param {(value: any, uneval: (value: any) => string) => string | void} [replacer]
28
+ */
29
+ export function uneval(value, replacer) {
30
+ const counts = new Map();
31
+
32
+ /** @type {string[]} */
33
+ const keys = [];
34
+
35
+ const custom = new Map();
36
+
37
+ // Only allocate a literal cache when we need to reuse an expensive primitive,
38
+ // including long Map keys rendered in error paths during the walk.
39
+ /** @type {Map<string | bigint, string> | undefined} */
40
+ let primitives;
41
+
42
+ /** @param {any} thing */
43
+ function stringify_cached_primitive(thing) {
44
+ if (
45
+ (typeof thing === 'string' && thing.length >= MIN_STRING_LENGTH) ||
46
+ typeof thing === 'bigint'
47
+ ) {
48
+ primitives ??= new Map();
49
+ let literal = primitives.get(thing);
50
+ if (literal === undefined) {
51
+ literal = stringify_primitive(thing);
52
+ primitives.set(thing, literal);
53
+ }
54
+ return literal;
55
+ }
56
+ return stringify_primitive(thing);
57
+ }
58
+
59
+ /** @param {any} thing */
60
+ function walk(thing) {
61
+ if (!is_primitive(thing)) {
62
+ if (counts.has(thing)) {
63
+ counts.set(thing, counts.get(thing) + 1);
64
+ return;
65
+ }
66
+
67
+ counts.set(thing, 1);
68
+
69
+ if (replacer) {
70
+ const str = replacer(thing, (value) => uneval(value, replacer));
71
+
72
+ if (typeof str === 'string') {
73
+ custom.set(thing, str);
74
+ return;
75
+ }
76
+ }
77
+
78
+ if (typeof thing === 'function') {
79
+ throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
80
+ }
81
+
82
+ const type = get_type(thing);
83
+
84
+ switch (type) {
85
+ case 'BigInt':
86
+ case 'String':
87
+ walk(thing.valueOf());
88
+ return;
89
+
90
+ case 'Number':
91
+ case 'Boolean':
92
+ case 'Date':
93
+ case 'RegExp':
94
+ case 'URL':
95
+ case 'URLSearchParams':
96
+ return;
97
+
98
+ case 'Array':
99
+ // forEach scans the logical length of dictionary-backed sparse
100
+ // arrays. Visit own enumerable indices without doing work for
101
+ // every hole.
102
+ for (const i of valid_array_indices(thing)) {
103
+ keys.push(`[${i}]`);
104
+ walk(thing[i]);
105
+ keys.pop();
106
+ }
107
+ break;
108
+
109
+ case 'Set':
110
+ Array.from(thing).forEach(walk);
111
+ break;
112
+
113
+ case 'Map':
114
+ for (const [key, value] of thing) {
115
+ keys.push(`.get(${is_primitive(key) ? stringify_cached_primitive(key) : '...'})`);
116
+ walk(key);
117
+ walk(value);
118
+ keys.pop();
119
+ }
120
+ break;
121
+
122
+ case 'Int8Array':
123
+ case 'Uint8Array':
124
+ case 'Uint8ClampedArray':
125
+ case 'Int16Array':
126
+ case 'Uint16Array':
127
+ case 'Float16Array':
128
+ case 'Int32Array':
129
+ case 'Uint32Array':
130
+ case 'Float32Array':
131
+ case 'Float64Array':
132
+ case 'BigInt64Array':
133
+ case 'BigUint64Array':
134
+ case 'DataView':
135
+ // A Node Buffer's backing store may be a shared pool. It must
136
+ // never be visited or hoisted just because a Buffer uses it.
137
+ if (!is_buffer(thing)) walk(thing.buffer);
138
+ return;
139
+
140
+ case 'ArrayBuffer':
141
+ return;
142
+
143
+ case 'Temporal.Duration':
144
+ case 'Temporal.Instant':
145
+ case 'Temporal.PlainDate':
146
+ case 'Temporal.PlainTime':
147
+ case 'Temporal.PlainDateTime':
148
+ case 'Temporal.PlainMonthDay':
149
+ case 'Temporal.PlainYearMonth':
150
+ case 'Temporal.ZonedDateTime':
151
+ return;
152
+
153
+ default:
154
+ if (!is_plain_object(thing)) {
155
+ throw new DevalueError(`Cannot stringify arbitrary non-POJOs`, keys, thing, value);
156
+ }
157
+
158
+ if (enumerable_symbols(thing).length > 0) {
159
+ throw new DevalueError(`Cannot stringify POJOs with symbolic keys`, keys, thing, value);
160
+ }
161
+
162
+ for (const key of Object.keys(thing)) {
163
+ if (key === '__proto__') {
164
+ throw new DevalueError(
165
+ `Cannot stringify objects with __proto__ keys`,
166
+ keys,
167
+ thing,
168
+ value
169
+ );
170
+ }
171
+
172
+ keys.push(stringify_key(key));
173
+ walk(thing[key]);
174
+ keys.pop();
175
+ }
176
+ }
177
+ } else if (typeof thing === 'symbol') {
178
+ throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
179
+ } else if (
180
+ (typeof thing === 'string' && thing.length >= MIN_STRING_LENGTH) ||
181
+ typeof thing === 'bigint'
182
+ ) {
183
+ counts.set(thing, (counts.get(thing) || 0) + 1);
184
+ }
185
+ }
186
+
187
+ walk(value);
188
+
189
+ const names = new Map();
190
+
191
+ /** @type {Array<[any, number]>} */
192
+ const repeated = [];
193
+ // Avoid allocating entries for all the values that will never be hoisted.
194
+ counts.forEach((count, thing) => {
195
+ if (count > 1) repeated.push([thing, count]);
196
+ });
197
+
198
+ repeated
199
+ .sort((a, b) => b[1] - a[1])
200
+ .forEach(([thing, count]) => {
201
+ const name = get_name(names.size);
202
+
203
+ if (is_primitive(thing)) {
204
+ const length = stringify_cached_primitive(thing).length;
205
+ // Hoisting costs one literal, a parameter and a reference per occurrence.
206
+ // Allow for the IIFE wrapper and separators even if one already exists,
207
+ // so inexpensive repetitions stay inline.
208
+ if (length * count <= length + (count + 1) * name.length + 25) return;
209
+ }
210
+
211
+ names.set(thing, name);
212
+ });
213
+
214
+ /**
215
+ * @param {any} thing
216
+ * @returns {string}
217
+ */
218
+ function stringify(thing) {
219
+ if (names.has(thing)) {
220
+ return names.get(thing);
221
+ }
222
+
223
+ if (is_primitive(thing)) {
224
+ return stringify_primitive(thing);
225
+ }
226
+
227
+ if (custom.has(thing)) {
228
+ return custom.get(thing);
229
+ }
230
+
231
+ const type = get_type(thing);
232
+
233
+ switch (type) {
234
+ case 'Number':
235
+ case 'String':
236
+ case 'Boolean':
237
+ case 'BigInt':
238
+ return `Object(${stringify(thing.valueOf())})`;
239
+
240
+ case 'RegExp':
241
+ const { source, flags } = thing;
242
+ return flags
243
+ ? `new RegExp(${stringify_string(source)},"${flags}")`
244
+ : `new RegExp(${stringify_string(source)})`;
245
+
246
+ case 'Date':
247
+ return `new Date(${thing.getTime()})`;
248
+
249
+ case 'URL':
250
+ return `new URL(${stringify_string(thing.toString())})`;
251
+
252
+ case 'URLSearchParams':
253
+ return `new URLSearchParams(${stringify_string(thing.toString())})`;
254
+
255
+ case 'Array': {
256
+ // For dense arrays (no holes), we iterate normally.
257
+ // When we encounter the first hole, we collect own indices
258
+ // to determine the sparseness, then decide between:
259
+ // - Array literal with holes: [,"a",,] (default)
260
+ // - Object.assign with a sparse-safe allocator (for very sparse arrays)
261
+ // Only the Object.assign path avoids iterating every slot, which
262
+ // is what protects against the DoS of e.g. `arr[1000000] = 1`.
263
+ let has_holes = false;
264
+
265
+ let result = '[';
266
+
267
+ for (let i = 0; i < thing.length; i += 1) {
268
+ if (i > 0) result += ',';
269
+
270
+ if (Object.hasOwn(thing, i)) {
271
+ result += stringify(thing[i]);
272
+ } else if (!has_holes) {
273
+ // Decide between array literal and Object.assign.
274
+ //
275
+ // Array literal: holes are consecutive commas.
276
+ // For example, [, "a", ,] is written as [,"a",,].
277
+ // Each hole costs 1 char (a comma).
278
+ //
279
+ // Object.assign: populated indices are listed explicitly.
280
+ // For example, [, "a", ,] would be written as
281
+ // Object.assign(sparse(3),{1:"a"}), where sparse(n) stands
282
+ // for the expression emitted by stringify_sparse_array(n).
283
+ // This avoids paying per-hole, but has a large fixed
284
+ // overhead for the allocator and Object.assign wrapper,
285
+ // and each element costs extra chars for its index and colon.
286
+ //
287
+ // The serialized values are the same size either way, so
288
+ // the choice comes down to the structural overhead:
289
+ //
290
+ // Array literal overhead:
291
+ // 1 char per element or hole (comma separators)
292
+ // + 2 chars for "[" and "]"
293
+ // = L + 2
294
+ //
295
+ // Object.assign overhead:
296
+ // "Object.assign(" — 14 chars
297
+ // + allocator expression — A chars
298
+ // + ",{" — 2 chars
299
+ // + for each populated element:
300
+ // index + ":" + "," — (d + 2) chars
301
+ // + "})" — 2 chars
302
+ // = (18 + A) + P * (d + 2)
303
+ //
304
+ // where L is the array length, P is the number of
305
+ // populated elements, A is the allocator expression's
306
+ // length, and d is the number of digits in L (an upper
307
+ // bound on the digits in any index).
308
+ //
309
+ // Object.assign is cheaper when:
310
+ // (18 + A) + P * (d + 2) < L + 2
311
+ const populated_keys = valid_array_indices(thing);
312
+ const population = populated_keys.length;
313
+ const d = String(thing.length).length;
314
+ const array = stringify_sparse_array(thing.length);
315
+
316
+ const hole_cost = thing.length + 2;
317
+ const sparse_cost = array.length + 18 + population * (d + 2);
318
+
319
+ if (hole_cost > sparse_cost) {
320
+ const entries = populated_keys.map((k) => `${k}:${stringify(thing[k])}`).join(',');
321
+ return `Object.assign(${array},{${entries}})`;
322
+ }
323
+
324
+ has_holes = true;
325
+ }
326
+ // else: already decided on array literal, hole is just an empty slot
327
+ // (the comma separator is all we need — no content for this position)
328
+ }
329
+
330
+ const tail = thing.length === 0 || Object.hasOwn(thing, thing.length - 1) ? '' : ',';
331
+ return result + tail + ']';
332
+ }
333
+
334
+ case 'Set':
335
+ case 'Map':
336
+ return `new ${type}([${Array.from(thing).map(stringify).join(',')}])`;
337
+
338
+ case 'Int8Array':
339
+ case 'Uint8Array':
340
+ case 'Uint8ClampedArray':
341
+ case 'Int16Array':
342
+ case 'Uint16Array':
343
+ case 'Float16Array':
344
+ case 'Int32Array':
345
+ case 'Uint32Array':
346
+ case 'Float32Array':
347
+ case 'Float64Array':
348
+ case 'BigInt64Array':
349
+ case 'BigUint64Array': {
350
+ if (is_buffer(thing)) thing = new Uint8Array(thing);
351
+
352
+ let str = `new ${type}`;
353
+
354
+ if (!names.has(thing.buffer)) {
355
+ str += `([${stringify_typed_array_elements(type, thing.buffer)}])`;
356
+ } else {
357
+ str += `(${stringify(thing.buffer)})`;
358
+ }
359
+
360
+ // handle subarrays
361
+ if (thing.byteLength !== thing.buffer.byteLength) {
362
+ const start = thing.byteOffset / thing.BYTES_PER_ELEMENT;
363
+ const end = start + thing.length;
364
+ str += `.subarray(${start},${end})`;
365
+ }
366
+
367
+ return str;
368
+ }
369
+
370
+ case 'DataView': {
371
+ let str = `new DataView`;
372
+
373
+ if (!names.has(thing.buffer)) {
374
+ str += `(new Uint8Array([${new Uint8Array(thing.buffer)}]).buffer`;
375
+ } else {
376
+ str += `(${stringify(thing.buffer)}`;
377
+ }
378
+
379
+ // handle subviews
380
+ if (thing.byteLength !== thing.buffer.byteLength) {
381
+ str += `,${thing.byteOffset},${thing.byteLength}`;
382
+ }
383
+
384
+ return str + ')';
385
+ }
386
+
387
+ case 'ArrayBuffer': {
388
+ const ui8 = new Uint8Array(thing);
389
+ return `new Uint8Array([${ui8.toString()}]).buffer`;
390
+ }
391
+
392
+ case 'Temporal.Duration':
393
+ case 'Temporal.Instant':
394
+ case 'Temporal.PlainDate':
395
+ case 'Temporal.PlainTime':
396
+ case 'Temporal.PlainDateTime':
397
+ case 'Temporal.PlainMonthDay':
398
+ case 'Temporal.PlainYearMonth':
399
+ case 'Temporal.ZonedDateTime':
400
+ return `${type}.from(${stringify_string(thing.toString())})`;
401
+
402
+ default:
403
+ const keys = Object.keys(thing);
404
+ const obj = keys.map((key) => `${safe_key(key)}:${stringify(thing[key])}`).join(',');
405
+ const proto = Object.getPrototypeOf(thing);
406
+ if (proto === null) {
407
+ return keys.length > 0 ? `{${obj},__proto__:null}` : `{__proto__:null}`;
408
+ }
409
+
410
+ return `{${obj}}`;
411
+ }
412
+ }
413
+
414
+ const str = stringify(value);
415
+
416
+ if (names.size) {
417
+ /** @type {string[]} */
418
+ const params = [];
419
+
420
+ /** @type {string[]} */
421
+ const statements = [];
422
+
423
+ /** @type {string[]} */
424
+ const values = [];
425
+
426
+ // Reconstructions (e.g. `b = new Uint8Array(...)`) reassign a placeholder
427
+ // parameter. They must run before the `statements` that reference them,
428
+ // otherwise those statements capture the placeholder. They only depend on
429
+ // IIFE arguments (never on each other), so emitting them first is safe.
430
+ /** @type {string[]} */
431
+ const reconstructions = [];
432
+
433
+ names.forEach((name, thing) => {
434
+ params.push(name);
435
+
436
+ if (custom.has(thing)) {
437
+ values.push(/** @type {string} */ (custom.get(thing)));
438
+ return;
439
+ }
440
+
441
+ if (is_primitive(thing)) {
442
+ values.push(stringify_cached_primitive(thing));
443
+ return;
444
+ }
445
+
446
+ const type = get_type(thing);
447
+
448
+ switch (type) {
449
+ case 'Number':
450
+ case 'String':
451
+ case 'Boolean':
452
+ case 'BigInt': {
453
+ const primitive = thing.valueOf();
454
+ if (names.has(primitive)) {
455
+ // A hoisted primitive is only in scope inside the IIFE, not in
456
+ // its arguments. Reconstruct the box before assigning references.
457
+ values.push('{}');
458
+ reconstructions.push(`${name}=Object(${stringify(primitive)})`);
459
+ } else {
460
+ values.push(`Object(${stringify(primitive)})`);
461
+ }
462
+ break;
463
+ }
464
+
465
+ case 'RegExp':
466
+ const { source, flags } = thing;
467
+ const regexp = flags
468
+ ? `new RegExp(${stringify_string(source)},"${flags}")`
469
+ : `new RegExp(${stringify_string(source)})`
470
+ values.push(regexp);
471
+ break;
472
+
473
+ case 'Date':
474
+ values.push(`new Date(${thing.getTime()})`);
475
+ break;
476
+
477
+ case 'URL':
478
+ values.push(`new URL(${stringify_string(thing.toString())})`);
479
+ break;
480
+
481
+ case 'URLSearchParams':
482
+ values.push(`new URLSearchParams(${stringify_string(thing.toString())})`);
483
+ break;
484
+
485
+ case 'Array': {
486
+ const populated_keys = valid_array_indices(thing);
487
+ // Only preallocate when the length is bounded by the number
488
+ // of populated elements, plus a small constant for short arrays.
489
+ values.push(
490
+ thing.length > 32 + 2 * populated_keys.length
491
+ ? stringify_sparse_array(thing.length)
492
+ : `Array(${thing.length})`
493
+ );
494
+ for (const i of populated_keys) {
495
+ statements.push(`${name}[${i}]=${stringify(thing[i])}`);
496
+ }
497
+ break;
498
+ }
499
+
500
+ case 'Set': {
501
+ values.push(`new Set`);
502
+ const adds = Array.from(thing).map((v) => `.add(${stringify(v)})`);
503
+ // An empty Set is fully built by `new Set`; a chained statement would
504
+ // otherwise be a dangling `name.`.
505
+ if (adds.length > 0) statements.push(name + adds.join(''));
506
+ break;
507
+ }
508
+
509
+ case 'Map': {
510
+ values.push(`new Map`);
511
+ const sets = Array.from(thing).map(
512
+ ([k, v]) => `.set(${stringify(k)}, ${stringify(v)})`
513
+ );
514
+ if (sets.length > 0) statements.push(name + sets.join(''));
515
+ break;
516
+ }
517
+
518
+ case 'Int8Array':
519
+ case 'Uint8Array':
520
+ case 'Uint8ClampedArray':
521
+ case 'Int16Array':
522
+ case 'Uint16Array':
523
+ case 'Float16Array':
524
+ case 'Int32Array':
525
+ case 'Uint32Array':
526
+ case 'Float32Array':
527
+ case 'Float64Array':
528
+ case 'BigInt64Array':
529
+ case 'BigUint64Array': {
530
+ if (is_buffer(thing)) thing = new Uint8Array(thing);
531
+
532
+ let str = `new ${type}`;
533
+
534
+ if (!names.has(thing.buffer)) {
535
+ str += `([${stringify_typed_array_elements(type, thing.buffer)}])`;
536
+ } else {
537
+ str += `(${stringify(thing.buffer)})`;
538
+ }
539
+
540
+ // handle subarrays
541
+ if (thing.byteLength !== thing.buffer.byteLength) {
542
+ const start = thing.byteOffset / thing.BYTES_PER_ELEMENT;
543
+ const end = start + thing.length;
544
+ str += `.subarray(${start},${end})`;
545
+ }
546
+
547
+ values.push(`{}`);
548
+ reconstructions.push(`${name}=${str}`);
549
+ break;
550
+ }
551
+
552
+ case 'DataView': {
553
+ let str = `new DataView`;
554
+
555
+ if (!names.has(thing.buffer)) {
556
+ str += `(new Uint8Array([${new Uint8Array(thing.buffer)}]).buffer`;
557
+ } else {
558
+ str += `(${stringify(thing.buffer)}`;
559
+ }
560
+
561
+ // handle subviews
562
+ if (thing.byteLength !== thing.buffer.byteLength) {
563
+ str += `,${thing.byteOffset},${thing.byteLength}`;
564
+ }
565
+
566
+ str += ')';
567
+
568
+ values.push(`{}`);
569
+ reconstructions.push(`${name}=${str}`);
570
+ break;
571
+ }
572
+
573
+ case 'ArrayBuffer':
574
+ values.push(`new Uint8Array([${new Uint8Array(thing)}]).buffer`);
575
+ break;
576
+
577
+ case 'Temporal.Duration':
578
+ case 'Temporal.Instant':
579
+ case 'Temporal.PlainDate':
580
+ case 'Temporal.PlainTime':
581
+ case 'Temporal.PlainDateTime':
582
+ case 'Temporal.PlainMonthDay':
583
+ case 'Temporal.PlainYearMonth':
584
+ case 'Temporal.ZonedDateTime':
585
+ values.push(`${type}.from(${stringify_string(thing.toString())})`);
586
+ break;
587
+
588
+ default:
589
+ values.push(Object.getPrototypeOf(thing) === null ? 'Object.create(null)' : '{}');
590
+ Object.keys(thing).forEach((key) => {
591
+ statements.push(`${name}${safe_prop(key)}=${stringify(thing[key])}`);
592
+ });
593
+ }
594
+ });
595
+
596
+ statements.push(`return ${str}`);
597
+
598
+ const body = [...reconstructions, ...statements].join(';');
599
+ // A function may have at most 65535 parameters (and a call at most that
600
+ // many arguments). For very large graphs, pass the hoisted values as a
601
+ // single array argument and destructure them into the placeholder names,
602
+ // so the emitted code stays within the engine limit (#93).
603
+ if (params.length > 65534) {
604
+ return `(function(){var[${params.join(',')}]=arguments[0];${body}}([${values.join(',')}]))`;
605
+ }
606
+
607
+ return `(function(${params.join(',')}){${body}}(${values.join(',')}))`;
608
+ } else {
609
+ return str;
610
+ }
611
+ }
612
+
613
+ /**
614
+ * Emit an array whose storage is not proportional to its declared length.
615
+ * As in the default parse operations, touching and deleting the largest valid
616
+ * index forces V8 into dictionary-elements mode before setting the length.
617
+ * Merely starting with [] and assigning .length still eagerly allocates.
618
+ * @param {number} length
619
+ */
620
+ function stringify_sparse_array(length) {
621
+ return `(function(a){a[${MAX_ARRAY_INDEX}]=0;delete a[${MAX_ARRAY_INDEX}];a.length=${length};return a}([]))`;
622
+ }
623
+
624
+ /**
625
+ * Serialize the elements of `buffer`, read as `type`, as a comma-separated list.
626
+ * The view is created from `type` rather than from the serialized value's own
627
+ * constructor, which may be a subclass like Node's `Buffer` whose `toString`
628
+ * decodes the bytes instead of listing them.
629
+ * `BigInt64Array`/`BigUint64Array` elements are bigints and must be written
630
+ * with an `n` suffix, otherwise the emitted `new BigInt64Array([...])` throws.
631
+ * @param {string} type
632
+ * @param {ArrayBufferLike} buffer
633
+ */
634
+ function stringify_typed_array_elements(type, buffer) {
635
+ const array = new (/** @type {any} */ (globalThis)[type])(buffer);
636
+
637
+ if (type === 'BigInt64Array' || type === 'BigUint64Array') {
638
+ return Array.from(array, (element) => `${element}n`).join(',');
639
+ }
640
+
641
+ // Float arrays can hold `-0`, which `toString()` collapses to `"0"`, silently
642
+ // losing the sign on round-trip. Emit `-0` explicitly for those elements.
643
+ if (
644
+ array instanceof Float32Array ||
645
+ array instanceof Float64Array ||
646
+ (typeof Float16Array !== 'undefined' && array instanceof Float16Array)
647
+ ) {
648
+ return Array.from(array, (element) => (Object.is(element, -0) ? '-0' : `${element}`)).join(',');
649
+ }
650
+
651
+ return array.toString();
652
+ }
653
+
654
+ /** @param {number} num */
655
+ function get_name(num) {
656
+ let name = '';
657
+
658
+ do {
659
+ name = chars[num % chars.length] + name;
660
+ num = ~~(num / chars.length) - 1;
661
+ } while (num >= 0);
662
+
663
+ return reserved.test(name) ? `${name}0` : name;
664
+ }
665
+
666
+ /** @param {string} c */
667
+ function escape_unsafe_char(c) {
668
+ return escaped[c] || c;
669
+ }
670
+
671
+ /** @param {string} str */
672
+ function escape_unsafe_chars(str) {
673
+ return str.replace(unsafe_chars, escape_unsafe_char);
674
+ }
675
+
676
+ /** @param {string} key */
677
+ function safe_key(key) {
678
+ return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? key : escape_unsafe_chars(JSON.stringify(key));
679
+ }
680
+
681
+ /** @param {string} key */
682
+ function safe_prop(key) {
683
+ return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key)
684
+ ? `.${key}`
685
+ : `[${escape_unsafe_chars(JSON.stringify(key))}]`;
686
+ }
687
+
688
+ /** @param {any} thing */
689
+ function stringify_primitive(thing) {
690
+ const type = typeof thing;
691
+ if (type === 'string') return stringify_string(thing);
692
+ if (thing === void 0) return 'void 0';
693
+ if (thing === 0 && 1 / thing < 0) return '-0';
694
+ const str = String(thing);
695
+ if (type === 'number') return str.replace(/^(-)?0\./, '$1.');
696
+ if (type === 'bigint') return thing + 'n';
697
+ return str;
698
+ }