qalita 2.5.2__py3-none-any.whl → 2.5.3__py3-none-any.whl

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 (1323) hide show
  1. qalita/__main__.py +43 -20
  2. qalita/_frontend/.next/static/chunks/023d923a37d494fc.js +1 -0
  3. qalita/_frontend/.next/static/chunks/0f84739db4a8acc7.js +1 -0
  4. qalita/_frontend/.next/static/chunks/1107bdca1eff6d34.css +1 -0
  5. qalita/_frontend/.next/static/chunks/247eb132b7f7b574.js +1 -0
  6. qalita/_frontend/.next/static/chunks/4b0c5de8d4cc313f.js +1 -0
  7. qalita/_frontend/.next/static/chunks/6c99da4248e4fcfc.js +1 -0
  8. qalita/_frontend/.next/static/chunks/a6dad97d9634a72d.js +1 -0
  9. qalita/_frontend/.next/static/chunks/bb29c2be4df20a40.js +1 -0
  10. qalita/_frontend/.next/static/chunks/bba035711c7e37a2.js +4 -0
  11. qalita/_frontend/.next/static/chunks/c903f9580a4b6572.js +2 -0
  12. qalita/_frontend/.next/static/chunks/cbd55ab9639e1e66.js +1 -0
  13. qalita/_frontend/.next/static/chunks/e393fec0d8ba175d.js +3 -0
  14. qalita/_frontend/.next/static/chunks/ff1a16fafef87110.js +1 -0
  15. qalita/_frontend/.next/static/chunks/turbopack-1ad58da399056f41.js +3 -0
  16. qalita/_frontend/.next/static/fm8OzItmoekYnFcSZ5R8j/_buildManifest.js +11 -0
  17. qalita/_frontend/.next/static/fm8OzItmoekYnFcSZ5R8j/_ssgManifest.js +1 -0
  18. qalita/_frontend/node_modules/@img/colour/color.cjs +1594 -0
  19. qalita/_frontend/node_modules/@img/colour/index.cjs +1 -0
  20. qalita/_frontend/node_modules/@img/colour/package.json +45 -0
  21. qalita/_frontend/node_modules/@img/sharp-libvips-linux-x64/README.md +46 -0
  22. qalita/_frontend/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  23. qalita/_frontend/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +1 -0
  24. qalita/_frontend/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  25. qalita/_frontend/node_modules/@img/sharp-libvips-linux-x64/package.json +42 -0
  26. qalita/_frontend/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
  27. qalita/_frontend/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  28. qalita/_frontend/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
  29. qalita/_frontend/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  30. qalita/_frontend/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
  31. qalita/_frontend/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  32. qalita/_frontend/node_modules/@img/sharp-linux-x64/package.json +46 -0
  33. qalita/_frontend/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  34. qalita/_frontend/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
  35. qalita/_frontend/node_modules/@next/env/dist/index.js +1 -0
  36. qalita/_frontend/node_modules/@next/env/package.json +36 -0
  37. qalita/_frontend/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
  38. qalita/_frontend/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
  39. qalita/_frontend/node_modules/@swc/helpers/package.json +471 -0
  40. qalita/_frontend/node_modules/client-only/index.js +0 -0
  41. qalita/_frontend/node_modules/client-only/package.json +19 -0
  42. qalita/_frontend/node_modules/detect-libc/lib/detect-libc.js +313 -0
  43. qalita/_frontend/node_modules/detect-libc/lib/elf.js +39 -0
  44. qalita/_frontend/node_modules/detect-libc/lib/filesystem.js +51 -0
  45. qalita/_frontend/node_modules/detect-libc/lib/process.js +24 -0
  46. qalita/_frontend/node_modules/detect-libc/package.json +44 -0
  47. qalita/_frontend/node_modules/next/dist/build/adapter/build-complete.js +993 -0
  48. qalita/_frontend/node_modules/next/dist/build/after-production-compile.js +95 -0
  49. qalita/_frontend/node_modules/next/dist/build/analysis/extract-const-value.js +205 -0
  50. qalita/_frontend/node_modules/next/dist/build/analysis/get-page-static-info.js +601 -0
  51. qalita/_frontend/node_modules/next/dist/build/analysis/parse-module.js +20 -0
  52. qalita/_frontend/node_modules/next/dist/build/babel/loader/get-config.js +429 -0
  53. qalita/_frontend/node_modules/next/dist/build/babel/loader/index.js +56 -0
  54. qalita/_frontend/node_modules/next/dist/build/babel/loader/transform.js +103 -0
  55. qalita/_frontend/node_modules/next/dist/build/babel/loader/util.js +20 -0
  56. qalita/_frontend/node_modules/next/dist/build/babel/plugins/commonjs.js +42 -0
  57. qalita/_frontend/node_modules/next/dist/build/babel/plugins/jsx-pragma.js +74 -0
  58. qalita/_frontend/node_modules/next/dist/build/babel/plugins/next-font-unsupported.js +36 -0
  59. qalita/_frontend/node_modules/next/dist/build/babel/plugins/next-page-config.js +104 -0
  60. qalita/_frontend/node_modules/next/dist/build/babel/plugins/next-page-disallow-re-export-all-exports.js +29 -0
  61. qalita/_frontend/node_modules/next/dist/build/babel/plugins/next-ssg-transform.js +345 -0
  62. qalita/_frontend/node_modules/next/dist/build/babel/plugins/optimize-hook-destructuring.js +60 -0
  63. qalita/_frontend/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js +145 -0
  64. qalita/_frontend/node_modules/next/dist/build/babel/preset.js +250 -0
  65. qalita/_frontend/node_modules/next/dist/build/build-context.js +58 -0
  66. qalita/_frontend/node_modules/next/dist/build/collect-build-traces.js +536 -0
  67. qalita/_frontend/node_modules/next/dist/build/compiler.js +88 -0
  68. qalita/_frontend/node_modules/next/dist/build/create-compiler-aliases.js +436 -0
  69. qalita/_frontend/node_modules/next/dist/build/define-env.js +228 -0
  70. qalita/_frontend/node_modules/next/dist/build/deployment-id.js +18 -0
  71. qalita/_frontend/node_modules/next/dist/build/duration-to-string.js +99 -0
  72. qalita/_frontend/node_modules/next/dist/build/entries.js +798 -0
  73. qalita/_frontend/node_modules/next/dist/build/generate-build-id.js +31 -0
  74. qalita/_frontend/node_modules/next/dist/build/get-babel-config-file.js +35 -0
  75. qalita/_frontend/node_modules/next/dist/build/get-babel-loader-config.js +109 -0
  76. qalita/_frontend/node_modules/next/dist/build/get-static-info-including-layouts.js +81 -0
  77. qalita/_frontend/node_modules/next/dist/build/handle-entrypoints.js +176 -0
  78. qalita/_frontend/node_modules/next/dist/build/handle-externals.js +290 -0
  79. qalita/_frontend/node_modules/next/dist/build/index.js +2728 -0
  80. qalita/_frontend/node_modules/next/dist/build/is-writeable.js +26 -0
  81. qalita/_frontend/node_modules/next/dist/build/jest/__mocks__/empty.js +10 -0
  82. qalita/_frontend/node_modules/next/dist/build/jest/__mocks__/fileMock.js +15 -0
  83. qalita/_frontend/node_modules/next/dist/build/jest/__mocks__/nextFontMock.js +20 -0
  84. qalita/_frontend/node_modules/next/dist/build/jest/__mocks__/styleMock.js +10 -0
  85. qalita/_frontend/node_modules/next/dist/build/jest/jest.js +227 -0
  86. qalita/_frontend/node_modules/next/dist/build/jest/object-proxy.js +50 -0
  87. qalita/_frontend/node_modules/next/dist/build/load-entrypoint.js +30 -0
  88. qalita/_frontend/node_modules/next/dist/build/load-jsconfig.js +162 -0
  89. qalita/_frontend/node_modules/next/dist/build/lockfile.js +160 -0
  90. qalita/_frontend/node_modules/next/dist/build/manifests/formatter/format-manifest.js +19 -0
  91. qalita/_frontend/node_modules/next/dist/build/next-config-ts/require-hook.js +85 -0
  92. qalita/_frontend/node_modules/next/dist/build/next-config-ts/transpile-config.js +172 -0
  93. qalita/_frontend/node_modules/next/dist/build/next-dir-paths.js +37 -0
  94. qalita/_frontend/node_modules/next/dist/build/normalize-catchall-routes.js +76 -0
  95. qalita/_frontend/node_modules/next/dist/build/output/format.js +84 -0
  96. qalita/_frontend/node_modules/next/dist/build/output/index.js +186 -0
  97. qalita/_frontend/node_modules/next/dist/build/output/log.js +138 -0
  98. qalita/_frontend/node_modules/next/dist/build/output/store.js +204 -0
  99. qalita/_frontend/node_modules/next/dist/build/page-extensions-type.js +6 -0
  100. qalita/_frontend/node_modules/next/dist/build/polyfills/fetch/index.js +6 -0
  101. qalita/_frontend/node_modules/next/dist/build/polyfills/fetch/whatwg-fetch.js +7 -0
  102. qalita/_frontend/node_modules/next/dist/build/polyfills/object-assign.js +6 -0
  103. qalita/_frontend/node_modules/next/dist/build/polyfills/object.assign/auto.js +4 -0
  104. qalita/_frontend/node_modules/next/dist/build/polyfills/object.assign/implementation.js +4 -0
  105. qalita/_frontend/node_modules/next/dist/build/polyfills/object.assign/index.js +19 -0
  106. qalita/_frontend/node_modules/next/dist/build/polyfills/object.assign/polyfill.js +6 -0
  107. qalita/_frontend/node_modules/next/dist/build/polyfills/object.assign/shim.js +6 -0
  108. qalita/_frontend/node_modules/next/dist/build/polyfills/polyfill-module.js +1 -0
  109. qalita/_frontend/node_modules/next/dist/build/polyfills/polyfill-nomodule.js +1 -0
  110. qalita/_frontend/node_modules/next/dist/build/polyfills/process.js +5 -0
  111. qalita/_frontend/node_modules/next/dist/build/preview-key-utils.js +91 -0
  112. qalita/_frontend/node_modules/next/dist/build/progress.js +151 -0
  113. qalita/_frontend/node_modules/next/dist/build/rendering-mode.js +26 -0
  114. qalita/_frontend/node_modules/next/dist/build/segment-config/app/app-segment-config.js +145 -0
  115. qalita/_frontend/node_modules/next/dist/build/segment-config/app/app-segments.js +213 -0
  116. qalita/_frontend/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +52 -0
  117. qalita/_frontend/node_modules/next/dist/build/segment-config/middleware/middleware-config.js +121 -0
  118. qalita/_frontend/node_modules/next/dist/build/segment-config/pages/pages-segment-config.js +62 -0
  119. qalita/_frontend/node_modules/next/dist/build/sort-by-page-exts.js +30 -0
  120. qalita/_frontend/node_modules/next/dist/build/spinner.js +138 -0
  121. qalita/_frontend/node_modules/next/dist/build/static-paths/app.js +823 -0
  122. qalita/_frontend/node_modules/next/dist/build/static-paths/pages.js +169 -0
  123. qalita/_frontend/node_modules/next/dist/build/static-paths/types.js +6 -0
  124. qalita/_frontend/node_modules/next/dist/build/static-paths/utils.js +47 -0
  125. qalita/_frontend/node_modules/next/dist/build/swc/helpers.js +15 -0
  126. qalita/_frontend/node_modules/next/dist/build/swc/index.js +1267 -0
  127. qalita/_frontend/node_modules/next/dist/build/swc/install-bindings.js +30 -0
  128. qalita/_frontend/node_modules/next/dist/build/swc/jest-transformer.js +75 -0
  129. qalita/_frontend/node_modules/next/dist/build/swc/options.js +386 -0
  130. qalita/_frontend/node_modules/next/dist/build/swc/types.js +6 -0
  131. qalita/_frontend/node_modules/next/dist/build/templates/app-page.js +1064 -0
  132. qalita/_frontend/node_modules/next/dist/build/templates/app-route.js +422 -0
  133. qalita/_frontend/node_modules/next/dist/build/templates/edge-app-route.js +88 -0
  134. qalita/_frontend/node_modules/next/dist/build/templates/edge-ssr-app.js +313 -0
  135. qalita/_frontend/node_modules/next/dist/build/templates/edge-ssr.js +329 -0
  136. qalita/_frontend/node_modules/next/dist/build/templates/helpers.js +36 -0
  137. qalita/_frontend/node_modules/next/dist/build/templates/middleware.js +114 -0
  138. qalita/_frontend/node_modules/next/dist/build/templates/pages-api.js +194 -0
  139. qalita/_frontend/node_modules/next/dist/build/templates/pages-edge-api.js +38 -0
  140. qalita/_frontend/node_modules/next/dist/build/templates/pages.js +155 -0
  141. qalita/_frontend/node_modules/next/dist/build/turbopack-build/impl.js +243 -0
  142. qalita/_frontend/node_modules/next/dist/build/turbopack-build/index.js +85 -0
  143. qalita/_frontend/node_modules/next/dist/build/turborepo-access-trace/env.js +29 -0
  144. qalita/_frontend/node_modules/next/dist/build/turborepo-access-trace/helpers.js +104 -0
  145. qalita/_frontend/node_modules/next/dist/build/turborepo-access-trace/index.js +30 -0
  146. qalita/_frontend/node_modules/next/dist/build/turborepo-access-trace/result.js +51 -0
  147. qalita/_frontend/node_modules/next/dist/build/turborepo-access-trace/tcp.js +41 -0
  148. qalita/_frontend/node_modules/next/dist/build/turborepo-access-trace/types.js +8 -0
  149. qalita/_frontend/node_modules/next/dist/build/type-check.js +152 -0
  150. qalita/_frontend/node_modules/next/dist/build/utils.js +1220 -0
  151. qalita/_frontend/node_modules/next/dist/build/webpack/alias/react-dom-server-experimental.js +32 -0
  152. qalita/_frontend/node_modules/next/dist/build/webpack/alias/react-dom-server.js +32 -0
  153. qalita/_frontend/node_modules/next/dist/build/webpack/cache-invalidation.js +91 -0
  154. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/base.js +82 -0
  155. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/css/index.js +562 -0
  156. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/css/loaders/client.js +49 -0
  157. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/css/loaders/file-resolve.js +21 -0
  158. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent.js +37 -0
  159. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +65 -0
  160. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/css/loaders/index.js +22 -0
  161. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +86 -0
  162. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +62 -0
  163. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/css/messages.js +45 -0
  164. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +190 -0
  165. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/images/index.js +42 -0
  166. qalita/_frontend/node_modules/next/dist/build/webpack/config/blocks/images/messages.js +16 -0
  167. qalita/_frontend/node_modules/next/dist/build/webpack/config/helpers.js +78 -0
  168. qalita/_frontend/node_modules/next/dist/build/webpack/config/index.js +46 -0
  169. qalita/_frontend/node_modules/next/dist/build/webpack/config/utils.js +13 -0
  170. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/css-loader/src/CssSyntaxError.js +32 -0
  171. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/css-loader/src/camelcase.js +93 -0
  172. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +287 -0
  173. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/index.js +36 -0
  174. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-icss-parser.js +105 -0
  175. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-import-parser.js +220 -0
  176. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +307 -0
  177. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js +83 -0
  178. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/getUrl.js +23 -0
  179. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/css-loader/src/utils.js +459 -0
  180. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/devtool/devtool-style-inject.js +129 -0
  181. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/empty-loader.js +14 -0
  182. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/error-loader.js +36 -0
  183. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/get-module-build-info.js +15 -0
  184. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/codegen.js +156 -0
  185. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/index.js +27 -0
  186. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/interface.js +17 -0
  187. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +429 -0
  188. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/minify.js +94 -0
  189. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/utils.js +58 -0
  190. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/metadata/discover.js +122 -0
  191. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/metadata/resolve-route-data.js +171 -0
  192. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/metadata/types.js +7 -0
  193. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/modularize-import-loader.js +39 -0
  194. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-app-loader/create-app-route-code.js +65 -0
  195. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js +747 -0
  196. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-barrel-loader.js +268 -0
  197. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js +37 -0
  198. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js +54 -0
  199. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-edge-function-loader.js +52 -0
  200. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js +100 -0
  201. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-error-browser-binary-loader.js +21 -0
  202. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-action-entry-loader.js +32 -0
  203. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-client-entry-loader.js +45 -0
  204. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.js +49 -0
  205. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-css-loader.js +56 -0
  206. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-loader/action-client-wrapper.js +33 -0
  207. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-loader/action-validate.js +27 -0
  208. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-loader/cache-wrapper.js +13 -0
  209. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js +211 -0
  210. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-loader/module-proxy.js +14 -0
  211. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-loader/server-reference.js +13 -0
  212. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-loader/track-dynamic-import.js +13 -0
  213. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-flight-server-reference-proxy-loader.js +29 -0
  214. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js +133 -0
  215. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-font-loader/postcss-next-font.js +169 -0
  216. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-image-loader/blur.js +73 -0
  217. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-image-loader/index.js +80 -0
  218. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-invalid-import-error-loader.js +28 -0
  219. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-metadata-image-loader.js +158 -0
  220. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-metadata-route-loader.js +342 -0
  221. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-middleware-asset-loader.js +46 -0
  222. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +59 -0
  223. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-middleware-wasm-loader.js +46 -0
  224. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-root-params-loader.js +164 -0
  225. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js +141 -0
  226. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-style-loader/index.js +220 -0
  227. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/injectStylesIntoLinkTag.js +61 -0
  228. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/injectStylesIntoStyleTag.js +221 -0
  229. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/isEqualLocals.js +27 -0
  230. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js +241 -0
  231. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Error.js +40 -0
  232. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Warning.js +35 -0
  233. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js +125 -0
  234. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/utils.js +86 -0
  235. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js +101 -0
  236. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/file-protocol.js +78 -0
  237. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/join-function.js +190 -0
  238. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/postcss.js +92 -0
  239. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/value-processor.js +97 -0
  240. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/utils.js +100 -0
  241. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin-utils.js +79 -0
  242. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +183 -0
  243. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/copy-file-plugin.js +67 -0
  244. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/css-chunking-plugin.js +277 -0
  245. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/css-minimizer-plugin.js +92 -0
  246. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/devtools-ignore-list-plugin.js +78 -0
  247. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/eval-source-map-dev-tool-plugin.js +191 -0
  248. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +793 -0
  249. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +420 -0
  250. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/force-complete-runtime.js +42 -0
  251. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/jsconfig-paths-plugin.js +219 -0
  252. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/memory-with-gc-cache-plugin.js +114 -0
  253. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +611 -0
  254. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/mini-css-extract-plugin.js +24 -0
  255. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/minify-webpack-plugin/src/index.js +188 -0
  256. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/next-font-manifest-plugin.js +120 -0
  257. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js +542 -0
  258. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +428 -0
  259. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/next-types-plugin/shared.js +14 -0
  260. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +57 -0
  261. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/optional-peer-dependency-resolve-plugin.js +45 -0
  262. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/pages-manifest-plugin.js +146 -0
  263. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/profiling-plugin.js +282 -0
  264. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js +169 -0
  265. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/rspack-flight-client-entry-plugin.js +97 -0
  266. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/rspack-profiling-plugin.js +62 -0
  267. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/slow-module-detection-plugin.js +190 -0
  268. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/subresource-integrity-plugin.js +62 -0
  269. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/telemetry-plugin.js +188 -0
  270. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/update-telemetry-loader-context-from-swc.js +28 -0
  271. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/use-cache-tracker-utils.js +43 -0
  272. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/getModuleTrace.js +89 -0
  273. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/index.js +43 -0
  274. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parse-dynamic-code-evaluation-error.js +19 -0
  275. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseBabel.js +29 -0
  276. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseCss.js +29 -0
  277. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextAppLoaderError.js +26 -0
  278. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextFontError.js +33 -0
  279. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextInvalidImportError.js +26 -0
  280. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +166 -0
  281. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +42 -0
  282. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/simpleWebpackError.js +18 -0
  283. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/webpackModuleError.js +138 -0
  284. qalita/_frontend/node_modules/next/dist/build/webpack/stringify-request.js +15 -0
  285. qalita/_frontend/node_modules/next/dist/build/webpack/utils.js +109 -0
  286. qalita/_frontend/node_modules/next/dist/build/webpack-build/impl.js +380 -0
  287. qalita/_frontend/node_modules/next/dist/build/webpack-build/index.js +179 -0
  288. qalita/_frontend/node_modules/next/dist/build/webpack-config-rules/resolve.js +55 -0
  289. qalita/_frontend/node_modules/next/dist/build/webpack-config.js +2311 -0
  290. qalita/_frontend/node_modules/next/dist/build/worker.js +35 -0
  291. qalita/_frontend/node_modules/next/dist/build/write-build-id.js +19 -0
  292. qalita/_frontend/node_modules/next/dist/cli/next-test.js +171 -0
  293. qalita/_frontend/node_modules/next/dist/client/add-base-path.js +24 -0
  294. qalita/_frontend/node_modules/next/dist/client/app-build-id.js +49 -0
  295. qalita/_frontend/node_modules/next/dist/client/app-call-server.js +34 -0
  296. qalita/_frontend/node_modules/next/dist/client/app-find-source-map-url.js +38 -0
  297. qalita/_frontend/node_modules/next/dist/client/assign-location.js +29 -0
  298. qalita/_frontend/node_modules/next/dist/client/components/app-router-announcer.js +78 -0
  299. qalita/_frontend/node_modules/next/dist/client/components/app-router-headers.js +123 -0
  300. qalita/_frontend/node_modules/next/dist/client/components/app-router-instance.js +327 -0
  301. qalita/_frontend/node_modules/next/dist/client/components/app-router-utils.js +62 -0
  302. qalita/_frontend/node_modules/next/dist/client/components/app-router.js +515 -0
  303. qalita/_frontend/node_modules/next/dist/client/components/builtin/default.js +35 -0
  304. qalita/_frontend/node_modules/next/dist/client/components/builtin/global-error.js +82 -0
  305. qalita/_frontend/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +52 -0
  306. qalita/_frontend/node_modules/next/dist/client/components/error-boundary.js +134 -0
  307. qalita/_frontend/node_modules/next/dist/client/components/errors/graceful-degrade-boundary.js +86 -0
  308. qalita/_frontend/node_modules/next/dist/client/components/errors/root-error-boundary.js +41 -0
  309. qalita/_frontend/node_modules/next/dist/client/components/forbidden.js +48 -0
  310. qalita/_frontend/node_modules/next/dist/client/components/handle-isr-error.js +31 -0
  311. qalita/_frontend/node_modules/next/dist/client/components/hooks-server-context.js +42 -0
  312. qalita/_frontend/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js +125 -0
  313. qalita/_frontend/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +72 -0
  314. qalita/_frontend/node_modules/next/dist/client/components/is-next-router-error.js +23 -0
  315. qalita/_frontend/node_modules/next/dist/client/components/links.js +292 -0
  316. qalita/_frontend/node_modules/next/dist/client/components/match-segments.js +32 -0
  317. qalita/_frontend/node_modules/next/dist/client/components/nav-failure-handler.js +61 -0
  318. qalita/_frontend/node_modules/next/dist/client/components/navigation-devtools.js +128 -0
  319. qalita/_frontend/node_modules/next/dist/client/components/navigation-untracked.js +65 -0
  320. qalita/_frontend/node_modules/next/dist/client/components/navigation.js +197 -0
  321. qalita/_frontend/node_modules/next/dist/client/components/navigation.react-server.js +72 -0
  322. qalita/_frontend/node_modules/next/dist/client/components/not-found.js +42 -0
  323. qalita/_frontend/node_modules/next/dist/client/components/readonly-url-search-params.js +41 -0
  324. qalita/_frontend/node_modules/next/dist/client/components/redirect-boundary.js +107 -0
  325. qalita/_frontend/node_modules/next/dist/client/components/redirect-error.js +52 -0
  326. qalita/_frontend/node_modules/next/dist/client/components/redirect-status-code.js +24 -0
  327. qalita/_frontend/node_modules/next/dist/client/components/redirect.js +91 -0
  328. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/apply-flight-data.js +53 -0
  329. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js +105 -0
  330. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +128 -0
  331. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/create-href-from-url.js +21 -0
  332. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +78 -0
  333. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +32 -0
  334. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +352 -0
  335. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js +110 -0
  336. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js +131 -0
  337. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/handle-mutable.js +66 -0
  338. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js +25 -0
  339. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js +32 -0
  340. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +51 -0
  341. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +875 -0
  342. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +64 -0
  343. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js +38 -0
  344. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +95 -0
  345. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +165 -0
  346. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +105 -0
  347. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +63 -0
  348. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +279 -0
  349. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +65 -0
  350. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js +104 -0
  351. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +62 -0
  352. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/router-reducer.js +66 -0
  353. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +60 -0
  354. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/cache-key.js +28 -0
  355. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/cache-map.js +310 -0
  356. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/cache.js +1419 -0
  357. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/lru.js +141 -0
  358. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/navigation.js +416 -0
  359. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/prefetch.js +31 -0
  360. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/scheduler.js +1150 -0
  361. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/types.js +69 -0
  362. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/vary-path.js +216 -0
  363. qalita/_frontend/node_modules/next/dist/client/components/static-generation-bailout.js +42 -0
  364. qalita/_frontend/node_modules/next/dist/client/components/unauthorized.js +49 -0
  365. qalita/_frontend/node_modules/next/dist/client/components/unrecognized-action-error.js +39 -0
  366. qalita/_frontend/node_modules/next/dist/client/components/unresolved-thenable.js +23 -0
  367. qalita/_frontend/node_modules/next/dist/client/components/unstable-rethrow.browser.js +28 -0
  368. qalita/_frontend/node_modules/next/dist/client/components/unstable-rethrow.js +25 -0
  369. qalita/_frontend/node_modules/next/dist/client/components/unstable-rethrow.server.js +32 -0
  370. qalita/_frontend/node_modules/next/dist/client/components/use-action-queue.js +102 -0
  371. qalita/_frontend/node_modules/next/dist/client/dev/debug-channel.js +72 -0
  372. qalita/_frontend/node_modules/next/dist/client/flight-data-helpers.js +219 -0
  373. qalita/_frontend/node_modules/next/dist/client/has-base-path.js +23 -0
  374. qalita/_frontend/node_modules/next/dist/client/lib/console.js +177 -0
  375. qalita/_frontend/node_modules/next/dist/client/normalize-trailing-slash.js +36 -0
  376. qalita/_frontend/node_modules/next/dist/client/remove-base-path.js +32 -0
  377. qalita/_frontend/node_modules/next/dist/client/route-params.js +230 -0
  378. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +339 -0
  379. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/cookies/package.json +1 -0
  380. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/ponyfill/index.js +46 -0
  381. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/ponyfill/package.json +1 -0
  382. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/primitives/abort-controller.js.text.js +1 -0
  383. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/primitives/console.js.text.js +1 -0
  384. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/primitives/events.js.text.js +1 -0
  385. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/primitives/index.js +5 -0
  386. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js +18713 -0
  387. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/primitives/package.json +1 -0
  388. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/primitives/stream.js +44 -0
  389. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/primitives/timers.js.text.js +1 -0
  390. qalita/_frontend/node_modules/next/dist/compiled/@edge-runtime/primitives/url.js.text.js +1 -0
  391. qalita/_frontend/node_modules/next/dist/compiled/@hapi/accept/index.js +1 -0
  392. qalita/_frontend/node_modules/next/dist/compiled/@hapi/accept/package.json +1 -0
  393. qalita/_frontend/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +1 -0
  394. qalita/_frontend/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json +1 -0
  395. qalita/_frontend/node_modules/next/dist/compiled/@napi-rs/triples/index.js +1 -0
  396. qalita/_frontend/node_modules/next/dist/compiled/@napi-rs/triples/package.json +1 -0
  397. qalita/_frontend/node_modules/next/dist/compiled/@opentelemetry/api/index.js +1 -0
  398. qalita/_frontend/node_modules/next/dist/compiled/@opentelemetry/api/package.json +1 -0
  399. qalita/_frontend/node_modules/next/dist/compiled/async-retry/index.js +1 -0
  400. qalita/_frontend/node_modules/next/dist/compiled/async-retry/package.json +1 -0
  401. qalita/_frontend/node_modules/next/dist/compiled/async-sema/index.js +1 -0
  402. qalita/_frontend/node_modules/next/dist/compiled/async-sema/package.json +1 -0
  403. qalita/_frontend/node_modules/next/dist/compiled/babel/code-frame.js +1 -0
  404. qalita/_frontend/node_modules/next/dist/compiled/babel/package.json +1 -0
  405. qalita/_frontend/node_modules/next/dist/compiled/babel-code-frame/index.js +1 -0
  406. qalita/_frontend/node_modules/next/dist/compiled/babel-code-frame/package.json +1 -0
  407. qalita/_frontend/node_modules/next/dist/compiled/busboy/index.js +1 -0
  408. qalita/_frontend/node_modules/next/dist/compiled/busboy/package.json +1 -0
  409. qalita/_frontend/node_modules/next/dist/compiled/bytes/index.js +8 -0
  410. qalita/_frontend/node_modules/next/dist/compiled/bytes/package.json +1 -0
  411. qalita/_frontend/node_modules/next/dist/compiled/ci-info/index.js +1 -0
  412. qalita/_frontend/node_modules/next/dist/compiled/ci-info/package.json +1 -0
  413. qalita/_frontend/node_modules/next/dist/compiled/commander/index.js +1 -0
  414. qalita/_frontend/node_modules/next/dist/compiled/commander/package.json +1 -0
  415. qalita/_frontend/node_modules/next/dist/compiled/comment-json/index.js +7 -0
  416. qalita/_frontend/node_modules/next/dist/compiled/comment-json/package.json +1 -0
  417. qalita/_frontend/node_modules/next/dist/compiled/compression/index.js +58 -0
  418. qalita/_frontend/node_modules/next/dist/compiled/compression/package.json +1 -0
  419. qalita/_frontend/node_modules/next/dist/compiled/conf/index.js +15 -0
  420. qalita/_frontend/node_modules/next/dist/compiled/conf/package.json +1 -0
  421. qalita/_frontend/node_modules/next/dist/compiled/content-disposition/index.js +6 -0
  422. qalita/_frontend/node_modules/next/dist/compiled/content-disposition/package.json +1 -0
  423. qalita/_frontend/node_modules/next/dist/compiled/cookie/index.js +7 -0
  424. qalita/_frontend/node_modules/next/dist/compiled/cookie/package.json +1 -0
  425. qalita/_frontend/node_modules/next/dist/compiled/cross-spawn/index.js +1 -0
  426. qalita/_frontend/node_modules/next/dist/compiled/cross-spawn/package.json +1 -0
  427. qalita/_frontend/node_modules/next/dist/compiled/debug/index.js +1 -0
  428. qalita/_frontend/node_modules/next/dist/compiled/debug/package.json +1 -0
  429. qalita/_frontend/node_modules/next/dist/compiled/edge-runtime/index.js +1 -0
  430. qalita/_frontend/node_modules/next/dist/compiled/edge-runtime/package.json +1 -0
  431. qalita/_frontend/node_modules/next/dist/compiled/find-up/index.js +1 -0
  432. qalita/_frontend/node_modules/next/dist/compiled/find-up/package.json +1 -0
  433. qalita/_frontend/node_modules/next/dist/compiled/fresh/index.js +8 -0
  434. qalita/_frontend/node_modules/next/dist/compiled/fresh/package.json +1 -0
  435. qalita/_frontend/node_modules/next/dist/compiled/http-proxy/index.js +34 -0
  436. qalita/_frontend/node_modules/next/dist/compiled/http-proxy/package.json +1 -0
  437. qalita/_frontend/node_modules/next/dist/compiled/image-detector/detector.js +1 -0
  438. qalita/_frontend/node_modules/next/dist/compiled/image-size/index.js +1 -0
  439. qalita/_frontend/node_modules/next/dist/compiled/image-size/package.json +1 -0
  440. qalita/_frontend/node_modules/next/dist/compiled/ipaddr.js/ipaddr.js +1 -0
  441. qalita/_frontend/node_modules/next/dist/compiled/ipaddr.js/package.json +1 -0
  442. qalita/_frontend/node_modules/next/dist/compiled/is-animated/index.js +1 -0
  443. qalita/_frontend/node_modules/next/dist/compiled/is-animated/package.json +1 -0
  444. qalita/_frontend/node_modules/next/dist/compiled/is-docker/index.js +1 -0
  445. qalita/_frontend/node_modules/next/dist/compiled/is-docker/package.json +1 -0
  446. qalita/_frontend/node_modules/next/dist/compiled/is-wsl/index.js +1 -0
  447. qalita/_frontend/node_modules/next/dist/compiled/is-wsl/package.json +1 -0
  448. qalita/_frontend/node_modules/next/dist/compiled/jsonwebtoken/index.js +11 -0
  449. qalita/_frontend/node_modules/next/dist/compiled/jsonwebtoken/package.json +1 -0
  450. qalita/_frontend/node_modules/next/dist/compiled/nanoid/index.cjs +1 -0
  451. qalita/_frontend/node_modules/next/dist/compiled/nanoid/package.json +1 -0
  452. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +24 -0
  453. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +24 -0
  454. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +6 -0
  455. qalita/_frontend/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +20 -0
  456. qalita/_frontend/node_modules/next/dist/compiled/p-limit/index.js +1 -0
  457. qalita/_frontend/node_modules/next/dist/compiled/p-limit/package.json +1 -0
  458. qalita/_frontend/node_modules/next/dist/compiled/p-queue/index.js +1 -0
  459. qalita/_frontend/node_modules/next/dist/compiled/p-queue/package.json +1 -0
  460. qalita/_frontend/node_modules/next/dist/compiled/path-browserify/index.js +1 -0
  461. qalita/_frontend/node_modules/next/dist/compiled/path-browserify/package.json +1 -0
  462. qalita/_frontend/node_modules/next/dist/compiled/path-to-regexp/index.js +1 -0
  463. qalita/_frontend/node_modules/next/dist/compiled/path-to-regexp/package.json +1 -0
  464. qalita/_frontend/node_modules/next/dist/compiled/picomatch/index.js +1 -0
  465. qalita/_frontend/node_modules/next/dist/compiled/picomatch/package.json +1 -0
  466. qalita/_frontend/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +133 -0
  467. qalita/_frontend/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +130 -0
  468. qalita/_frontend/node_modules/next/dist/compiled/react-is/index.js +7 -0
  469. qalita/_frontend/node_modules/next/dist/compiled/react-is/package.json +26 -0
  470. qalita/_frontend/node_modules/next/dist/compiled/regenerator-runtime/package.json +19 -0
  471. qalita/_frontend/node_modules/next/dist/compiled/regenerator-runtime/runtime.js +729 -0
  472. qalita/_frontend/node_modules/next/dist/compiled/semver/index.js +1 -0
  473. qalita/_frontend/node_modules/next/dist/compiled/semver/package.json +1 -0
  474. qalita/_frontend/node_modules/next/dist/compiled/send/index.js +70 -0
  475. qalita/_frontend/node_modules/next/dist/compiled/send/package.json +1 -0
  476. qalita/_frontend/node_modules/next/dist/compiled/source-map/package.json +1 -0
  477. qalita/_frontend/node_modules/next/dist/compiled/source-map/source-map.js +1 -0
  478. qalita/_frontend/node_modules/next/dist/compiled/stacktrace-parser/package.json +1 -0
  479. qalita/_frontend/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +1 -0
  480. qalita/_frontend/node_modules/next/dist/compiled/string-hash/index.js +1 -0
  481. qalita/_frontend/node_modules/next/dist/compiled/string-hash/package.json +1 -0
  482. qalita/_frontend/node_modules/next/dist/compiled/strip-ansi/index.js +1 -0
  483. qalita/_frontend/node_modules/next/dist/compiled/strip-ansi/package.json +1 -0
  484. qalita/_frontend/node_modules/next/dist/compiled/superstruct/index.cjs +1 -0
  485. qalita/_frontend/node_modules/next/dist/compiled/superstruct/package.json +1 -0
  486. qalita/_frontend/node_modules/next/dist/compiled/tar/index.js +1 -0
  487. qalita/_frontend/node_modules/next/dist/compiled/tar/package.json +1 -0
  488. qalita/_frontend/node_modules/next/dist/compiled/text-table/index.js +1 -0
  489. qalita/_frontend/node_modules/next/dist/compiled/text-table/package.json +1 -0
  490. qalita/_frontend/node_modules/next/dist/compiled/watchpack/package.json +1 -0
  491. qalita/_frontend/node_modules/next/dist/compiled/watchpack/watchpack.js +1 -0
  492. qalita/_frontend/node_modules/next/dist/compiled/ws/index.js +1 -0
  493. qalita/_frontend/node_modules/next/dist/compiled/ws/package.json +1 -0
  494. qalita/_frontend/node_modules/next/dist/compiled/zod/index.cjs +1 -0
  495. qalita/_frontend/node_modules/next/dist/compiled/zod/package.json +1 -0
  496. qalita/_frontend/node_modules/next/dist/compiled/zod-validation-error/index.js +1 -0
  497. qalita/_frontend/node_modules/next/dist/compiled/zod-validation-error/package.json +1 -0
  498. qalita/_frontend/node_modules/next/dist/experimental/testmode/context.js +57 -0
  499. qalita/_frontend/node_modules/next/dist/experimental/testmode/fetch.js +142 -0
  500. qalita/_frontend/node_modules/next/dist/experimental/testmode/httpget.js +26 -0
  501. qalita/_frontend/node_modules/next/dist/experimental/testmode/server-edge.js +32 -0
  502. qalita/_frontend/node_modules/next/dist/experimental/testmode/server.js +62 -0
  503. qalita/_frontend/node_modules/next/dist/export/helpers/create-incremental-cache.js +61 -0
  504. qalita/_frontend/node_modules/next/dist/lib/batcher.js +65 -0
  505. qalita/_frontend/node_modules/next/dist/lib/build-custom-route.js +46 -0
  506. qalita/_frontend/node_modules/next/dist/lib/bundler.js +97 -0
  507. qalita/_frontend/node_modules/next/dist/lib/client-and-server-references.js +54 -0
  508. qalita/_frontend/node_modules/next/dist/lib/coalesced-function.js +39 -0
  509. qalita/_frontend/node_modules/next/dist/lib/compile-error.js +14 -0
  510. qalita/_frontend/node_modules/next/dist/lib/constants.js +410 -0
  511. qalita/_frontend/node_modules/next/dist/lib/create-client-router-filter.js +67 -0
  512. qalita/_frontend/node_modules/next/dist/lib/detached-promise.js +32 -0
  513. qalita/_frontend/node_modules/next/dist/lib/detect-typo.js +51 -0
  514. qalita/_frontend/node_modules/next/dist/lib/download-swc.js +183 -0
  515. qalita/_frontend/node_modules/next/dist/lib/error-telemetry-utils.js +42 -0
  516. qalita/_frontend/node_modules/next/dist/lib/fallback.js +100 -0
  517. qalita/_frontend/node_modules/next/dist/lib/fatal-error.js +14 -0
  518. qalita/_frontend/node_modules/next/dist/lib/file-exists.js +53 -0
  519. qalita/_frontend/node_modules/next/dist/lib/find-config.js +102 -0
  520. qalita/_frontend/node_modules/next/dist/lib/find-pages-dir.js +65 -0
  521. qalita/_frontend/node_modules/next/dist/lib/find-root.js +122 -0
  522. qalita/_frontend/node_modules/next/dist/lib/format-cli-help-output.js +84 -0
  523. qalita/_frontend/node_modules/next/dist/lib/format-dynamic-import-path.js +24 -0
  524. qalita/_frontend/node_modules/next/dist/lib/format-server-error.js +74 -0
  525. qalita/_frontend/node_modules/next/dist/lib/framework/boundary-components.js +62 -0
  526. qalita/_frontend/node_modules/next/dist/lib/framework/boundary-constants.js +36 -0
  527. qalita/_frontend/node_modules/next/dist/lib/fs/rename.js +87 -0
  528. qalita/_frontend/node_modules/next/dist/lib/fs/write-atomic.js +28 -0
  529. qalita/_frontend/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +70 -0
  530. qalita/_frontend/node_modules/next/dist/lib/get-files-in-dir.js +33 -0
  531. qalita/_frontend/node_modules/next/dist/lib/get-network-host.js +44 -0
  532. qalita/_frontend/node_modules/next/dist/lib/get-package-version.js +118 -0
  533. qalita/_frontend/node_modules/next/dist/lib/get-project-dir.js +51 -0
  534. qalita/_frontend/node_modules/next/dist/lib/has-necessary-dependencies.js +49 -0
  535. qalita/_frontend/node_modules/next/dist/lib/helpers/get-cache-directory.js +66 -0
  536. qalita/_frontend/node_modules/next/dist/lib/helpers/get-npx-command.js +29 -0
  537. qalita/_frontend/node_modules/next/dist/lib/helpers/get-online.js +50 -0
  538. qalita/_frontend/node_modules/next/dist/lib/helpers/get-pkg-manager.js +63 -0
  539. qalita/_frontend/node_modules/next/dist/lib/helpers/get-registry.js +45 -0
  540. qalita/_frontend/node_modules/next/dist/lib/helpers/get-reserved-port.js +116 -0
  541. qalita/_frontend/node_modules/next/dist/lib/helpers/install.js +83 -0
  542. qalita/_frontend/node_modules/next/dist/lib/import-next-warning.js +50 -0
  543. qalita/_frontend/node_modules/next/dist/lib/inline-static-env.js +112 -0
  544. qalita/_frontend/node_modules/next/dist/lib/install-dependencies.js +40 -0
  545. qalita/_frontend/node_modules/next/dist/lib/interop-default.js +15 -0
  546. qalita/_frontend/node_modules/next/dist/lib/is-api-route.js +15 -0
  547. qalita/_frontend/node_modules/next/dist/lib/is-app-page-route.js +15 -0
  548. qalita/_frontend/node_modules/next/dist/lib/is-app-route-route.js +15 -0
  549. qalita/_frontend/node_modules/next/dist/lib/is-edge-runtime.js +16 -0
  550. qalita/_frontend/node_modules/next/dist/lib/is-error.js +78 -0
  551. qalita/_frontend/node_modules/next/dist/lib/is-internal-component.js +36 -0
  552. qalita/_frontend/node_modules/next/dist/lib/is-serializable-props.js +106 -0
  553. qalita/_frontend/node_modules/next/dist/lib/load-custom-routes.js +550 -0
  554. qalita/_frontend/node_modules/next/dist/lib/memory/gc-observer.js +53 -0
  555. qalita/_frontend/node_modules/next/dist/lib/memory/shutdown.js +29 -0
  556. qalita/_frontend/node_modules/next/dist/lib/memory/startup.js +47 -0
  557. qalita/_frontend/node_modules/next/dist/lib/memory/trace.js +109 -0
  558. qalita/_frontend/node_modules/next/dist/lib/metadata/constants.js +40 -0
  559. qalita/_frontend/node_modules/next/dist/lib/metadata/default-metadata.js +82 -0
  560. qalita/_frontend/node_modules/next/dist/lib/metadata/generate/alternate.js +55 -0
  561. qalita/_frontend/node_modules/next/dist/lib/metadata/generate/basic.js +307 -0
  562. qalita/_frontend/node_modules/next/dist/lib/metadata/generate/icon-mark.js +22 -0
  563. qalita/_frontend/node_modules/next/dist/lib/metadata/generate/icons.js +64 -0
  564. qalita/_frontend/node_modules/next/dist/lib/metadata/generate/meta.js +123 -0
  565. qalita/_frontend/node_modules/next/dist/lib/metadata/generate/opengraph.js +478 -0
  566. qalita/_frontend/node_modules/next/dist/lib/metadata/generate/utils.js +52 -0
  567. qalita/_frontend/node_modules/next/dist/lib/metadata/get-metadata-route.js +114 -0
  568. qalita/_frontend/node_modules/next/dist/lib/metadata/is-metadata-route.js +221 -0
  569. qalita/_frontend/node_modules/next/dist/lib/metadata/metadata-context.js +18 -0
  570. qalita/_frontend/node_modules/next/dist/lib/metadata/metadata.js +237 -0
  571. qalita/_frontend/node_modules/next/dist/lib/metadata/resolve-metadata.js +859 -0
  572. qalita/_frontend/node_modules/next/dist/lib/metadata/resolvers/resolve-basics.js +232 -0
  573. qalita/_frontend/node_modules/next/dist/lib/metadata/resolvers/resolve-icons.js +56 -0
  574. qalita/_frontend/node_modules/next/dist/lib/metadata/resolvers/resolve-opengraph.js +199 -0
  575. qalita/_frontend/node_modules/next/dist/lib/metadata/resolvers/resolve-title.js +40 -0
  576. qalita/_frontend/node_modules/next/dist/lib/metadata/resolvers/resolve-url.js +135 -0
  577. qalita/_frontend/node_modules/next/dist/lib/metadata/types/alternative-urls-types.js +7 -0
  578. qalita/_frontend/node_modules/next/dist/lib/metadata/types/extra-types.js +9 -0
  579. qalita/_frontend/node_modules/next/dist/lib/metadata/types/icons.js +6 -0
  580. qalita/_frontend/node_modules/next/dist/lib/metadata/types/manifest-types.js +6 -0
  581. qalita/_frontend/node_modules/next/dist/lib/metadata/types/metadata-interface.js +18 -0
  582. qalita/_frontend/node_modules/next/dist/lib/metadata/types/metadata-types.js +10 -0
  583. qalita/_frontend/node_modules/next/dist/lib/metadata/types/opengraph-types.js +6 -0
  584. qalita/_frontend/node_modules/next/dist/lib/metadata/types/resolvers.js +6 -0
  585. qalita/_frontend/node_modules/next/dist/lib/metadata/types/twitter-types.js +7 -0
  586. qalita/_frontend/node_modules/next/dist/lib/mime-type.js +20 -0
  587. qalita/_frontend/node_modules/next/dist/lib/mkcert.js +204 -0
  588. qalita/_frontend/node_modules/next/dist/lib/multi-file-writer.js +75 -0
  589. qalita/_frontend/node_modules/next/dist/lib/needs-experimental-react.js +16 -0
  590. qalita/_frontend/node_modules/next/dist/lib/non-nullable.js +15 -0
  591. qalita/_frontend/node_modules/next/dist/lib/normalize-path.js +21 -0
  592. qalita/_frontend/node_modules/next/dist/lib/oxford-comma-list.js +15 -0
  593. qalita/_frontend/node_modules/next/dist/lib/page-types.js +18 -0
  594. qalita/_frontend/node_modules/next/dist/lib/patch-incorrect-lockfile.js +185 -0
  595. qalita/_frontend/node_modules/next/dist/lib/pick.js +19 -0
  596. qalita/_frontend/node_modules/next/dist/lib/picocolors.js +177 -0
  597. qalita/_frontend/node_modules/next/dist/lib/pretty-bytes.js +74 -0
  598. qalita/_frontend/node_modules/next/dist/lib/realpath.js +20 -0
  599. qalita/_frontend/node_modules/next/dist/lib/recursive-copy.js +76 -0
  600. qalita/_frontend/node_modules/next/dist/lib/recursive-delete.js +137 -0
  601. qalita/_frontend/node_modules/next/dist/lib/recursive-readdir.js +124 -0
  602. qalita/_frontend/node_modules/next/dist/lib/redirect-status.js +46 -0
  603. qalita/_frontend/node_modules/next/dist/lib/require-instrumentation-client.js +26 -0
  604. qalita/_frontend/node_modules/next/dist/lib/resolve-build-paths.js +181 -0
  605. qalita/_frontend/node_modules/next/dist/lib/resolve-from.js +65 -0
  606. qalita/_frontend/node_modules/next/dist/lib/route-pattern-normalizer.js +107 -0
  607. qalita/_frontend/node_modules/next/dist/lib/scheduler.js +64 -0
  608. qalita/_frontend/node_modules/next/dist/lib/semver-noop.js +18 -0
  609. qalita/_frontend/node_modules/next/dist/lib/setup-exception-listeners.js +11 -0
  610. qalita/_frontend/node_modules/next/dist/lib/static-env.js +92 -0
  611. qalita/_frontend/node_modules/next/dist/lib/try-to-parse-path.js +68 -0
  612. qalita/_frontend/node_modules/next/dist/lib/turbopack-warning.js +188 -0
  613. qalita/_frontend/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +240 -0
  614. qalita/_frontend/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +73 -0
  615. qalita/_frontend/node_modules/next/dist/lib/typescript/getTypeScriptIntent.js +52 -0
  616. qalita/_frontend/node_modules/next/dist/lib/typescript/missingDependencyError.js +27 -0
  617. qalita/_frontend/node_modules/next/dist/lib/typescript/runTypeCheck.js +95 -0
  618. qalita/_frontend/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +65 -0
  619. qalita/_frontend/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +405 -0
  620. qalita/_frontend/node_modules/next/dist/lib/url.js +75 -0
  621. qalita/_frontend/node_modules/next/dist/lib/verify-partytown-setup.js +115 -0
  622. qalita/_frontend/node_modules/next/dist/lib/verify-root-layout.js +165 -0
  623. qalita/_frontend/node_modules/next/dist/lib/verify-typescript-setup.js +170 -0
  624. qalita/_frontend/node_modules/next/dist/lib/wait.js +19 -0
  625. qalita/_frontend/node_modules/next/dist/lib/with-promise-cache.js +24 -0
  626. qalita/_frontend/node_modules/next/dist/lib/worker.js +215 -0
  627. qalita/_frontend/node_modules/next/dist/next-devtools/server/shared.js +61 -0
  628. qalita/_frontend/node_modules/next/dist/server/ReactDOMServerPages.js +16 -0
  629. qalita/_frontend/node_modules/next/dist/server/accept-header.js +132 -0
  630. qalita/_frontend/node_modules/next/dist/server/after/after-context.js +140 -0
  631. qalita/_frontend/node_modules/next/dist/server/after/after.js +26 -0
  632. qalita/_frontend/node_modules/next/dist/server/after/awaiter.js +74 -0
  633. qalita/_frontend/node_modules/next/dist/server/after/builtin-request-context.js +38 -0
  634. qalita/_frontend/node_modules/next/dist/server/after/index.js +21 -0
  635. qalita/_frontend/node_modules/next/dist/server/after/run-with-after.js +35 -0
  636. qalita/_frontend/node_modules/next/dist/server/api-utils/get-cookie-parser.js +22 -0
  637. qalita/_frontend/node_modules/next/dist/server/api-utils/index.js +201 -0
  638. qalita/_frontend/node_modules/next/dist/server/api-utils/node/api-resolver.js +395 -0
  639. qalita/_frontend/node_modules/next/dist/server/api-utils/node/parse-body.js +79 -0
  640. qalita/_frontend/node_modules/next/dist/server/api-utils/node/try-get-preview-data.js +86 -0
  641. qalita/_frontend/node_modules/next/dist/server/api-utils/web.js +17 -0
  642. qalita/_frontend/node_modules/next/dist/server/app-render/action-async-storage-instance.js +14 -0
  643. qalita/_frontend/node_modules/next/dist/server/app-render/action-async-storage.external.js +13 -0
  644. qalita/_frontend/node_modules/next/dist/server/app-render/action-handler.js +916 -0
  645. qalita/_frontend/node_modules/next/dist/server/app-render/action-utils.js +90 -0
  646. qalita/_frontend/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +14 -0
  647. qalita/_frontend/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +13 -0
  648. qalita/_frontend/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +228 -0
  649. qalita/_frontend/node_modules/next/dist/server/app-render/app-render-render-utils.js +91 -0
  650. qalita/_frontend/node_modules/next/dist/server/app-render/app-render.js +3470 -0
  651. qalita/_frontend/node_modules/next/dist/server/app-render/async-local-storage.js +76 -0
  652. qalita/_frontend/node_modules/next/dist/server/app-render/cache-signal.js +181 -0
  653. qalita/_frontend/node_modules/next/dist/server/app-render/collect-segment-data.js +270 -0
  654. qalita/_frontend/node_modules/next/dist/server/app-render/console-async-storage-instance.js +14 -0
  655. qalita/_frontend/node_modules/next/dist/server/app-render/console-async-storage.external.js +13 -0
  656. qalita/_frontend/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +33 -0
  657. qalita/_frontend/node_modules/next/dist/server/app-render/create-component-tree.js +754 -0
  658. qalita/_frontend/node_modules/next/dist/server/app-render/create-error-handler.js +220 -0
  659. qalita/_frontend/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +76 -0
  660. qalita/_frontend/node_modules/next/dist/server/app-render/csrf-protection.js +75 -0
  661. qalita/_frontend/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +14 -0
  662. qalita/_frontend/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +13 -0
  663. qalita/_frontend/node_modules/next/dist/server/app-render/dynamic-rendering.js +715 -0
  664. qalita/_frontend/node_modules/next/dist/server/app-render/encryption-utils-server.js +114 -0
  665. qalita/_frontend/node_modules/next/dist/server/app-render/encryption-utils.js +198 -0
  666. qalita/_frontend/node_modules/next/dist/server/app-render/encryption.js +237 -0
  667. qalita/_frontend/node_modules/next/dist/server/app-render/entry-base.js +237 -0
  668. qalita/_frontend/node_modules/next/dist/server/app-render/flight-render-result.js +27 -0
  669. qalita/_frontend/node_modules/next/dist/server/app-render/get-asset-query-string.js +29 -0
  670. qalita/_frontend/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +48 -0
  671. qalita/_frontend/node_modules/next/dist/server/app-render/get-layer-assets.js +65 -0
  672. qalita/_frontend/node_modules/next/dist/server/app-render/get-preloadable-fonts.js +39 -0
  673. qalita/_frontend/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +44 -0
  674. qalita/_frontend/node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js +25 -0
  675. qalita/_frontend/node_modules/next/dist/server/app-render/has-loading-component-in-tree.js +19 -0
  676. qalita/_frontend/node_modules/next/dist/server/app-render/interop-default.js +17 -0
  677. qalita/_frontend/node_modules/next/dist/server/app-render/make-get-server-inserted-html.js +92 -0
  678. qalita/_frontend/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +28 -0
  679. qalita/_frontend/node_modules/next/dist/server/app-render/module-loading/track-dynamic-import.js +57 -0
  680. qalita/_frontend/node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js +32 -0
  681. qalita/_frontend/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +66 -0
  682. qalita/_frontend/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +49 -0
  683. qalita/_frontend/node_modules/next/dist/server/app-render/postponed-state.js +156 -0
  684. qalita/_frontend/node_modules/next/dist/server/app-render/prospective-render-utils.js +56 -0
  685. qalita/_frontend/node_modules/next/dist/server/app-render/react-large-shell-error.js +17 -0
  686. qalita/_frontend/node_modules/next/dist/server/app-render/react-server.node.js +39 -0
  687. qalita/_frontend/node_modules/next/dist/server/app-render/render-css-resource.js +52 -0
  688. qalita/_frontend/node_modules/next/dist/server/app-render/required-scripts.js +76 -0
  689. qalita/_frontend/node_modules/next/dist/server/app-render/rsc/postpone.js +18 -0
  690. qalita/_frontend/node_modules/next/dist/server/app-render/rsc/preloads.js +74 -0
  691. qalita/_frontend/node_modules/next/dist/server/app-render/rsc/taint.js +79 -0
  692. qalita/_frontend/node_modules/next/dist/server/app-render/segment-explorer-path.js +103 -0
  693. qalita/_frontend/node_modules/next/dist/server/app-render/server-inserted-html.js +77 -0
  694. qalita/_frontend/node_modules/next/dist/server/app-render/staged-rendering.js +127 -0
  695. qalita/_frontend/node_modules/next/dist/server/app-render/staged-validation.js +32 -0
  696. qalita/_frontend/node_modules/next/dist/server/app-render/strip-flight-headers.js +18 -0
  697. qalita/_frontend/node_modules/next/dist/server/app-render/types.js +59 -0
  698. qalita/_frontend/node_modules/next/dist/server/app-render/use-flight-response.js +165 -0
  699. qalita/_frontend/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +185 -0
  700. qalita/_frontend/node_modules/next/dist/server/app-render/work-async-storage-instance.js +14 -0
  701. qalita/_frontend/node_modules/next/dist/server/app-render/work-async-storage.external.js +13 -0
  702. qalita/_frontend/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +14 -0
  703. qalita/_frontend/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +252 -0
  704. qalita/_frontend/node_modules/next/dist/server/async-storage/draft-mode-provider.js +62 -0
  705. qalita/_frontend/node_modules/next/dist/server/async-storage/request-store.js +144 -0
  706. qalita/_frontend/node_modules/next/dist/server/async-storage/with-store.js +6 -0
  707. qalita/_frontend/node_modules/next/dist/server/async-storage/work-store.js +93 -0
  708. qalita/_frontend/node_modules/next/dist/server/base-http/helpers.js +36 -0
  709. qalita/_frontend/node_modules/next/dist/server/base-http/index.js +54 -0
  710. qalita/_frontend/node_modules/next/dist/server/base-http/node.js +147 -0
  711. qalita/_frontend/node_modules/next/dist/server/base-http/web.js +124 -0
  712. qalita/_frontend/node_modules/next/dist/server/base-server.js +1833 -0
  713. qalita/_frontend/node_modules/next/dist/server/body-streams.js +114 -0
  714. qalita/_frontend/node_modules/next/dist/server/cache-dir.js +26 -0
  715. qalita/_frontend/node_modules/next/dist/server/ci-info.js +41 -0
  716. qalita/_frontend/node_modules/next/dist/server/client-component-renderer-logger.js +70 -0
  717. qalita/_frontend/node_modules/next/dist/server/config-schema.js +623 -0
  718. qalita/_frontend/node_modules/next/dist/server/config-shared.js +224 -0
  719. qalita/_frontend/node_modules/next/dist/server/config-utils.js +185 -0
  720. qalita/_frontend/node_modules/next/dist/server/config.js +1461 -0
  721. qalita/_frontend/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +96 -0
  722. qalita/_frontend/node_modules/next/dist/server/crypto-utils.js +70 -0
  723. qalita/_frontend/node_modules/next/dist/server/dev/browser-logs/file-logger.js +183 -0
  724. qalita/_frontend/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +512 -0
  725. qalita/_frontend/node_modules/next/dist/server/dev/browser-logs/source-map.js +225 -0
  726. qalita/_frontend/node_modules/next/dist/server/dev/debug-channel.js +87 -0
  727. qalita/_frontend/node_modules/next/dist/server/dev/dev-indicator-server-state.js +15 -0
  728. qalita/_frontend/node_modules/next/dist/server/dev/get-source-map-from-file.js +100 -0
  729. qalita/_frontend/node_modules/next/dist/server/dev/hot-middleware.js +274 -0
  730. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-shared-utils.js +56 -0
  731. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +1235 -0
  732. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-types.js +57 -0
  733. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1377 -0
  734. qalita/_frontend/node_modules/next/dist/server/dev/log-requests.js +133 -0
  735. qalita/_frontend/node_modules/next/dist/server/dev/messages.js +64 -0
  736. qalita/_frontend/node_modules/next/dist/server/dev/middleware-turbopack.js +393 -0
  737. qalita/_frontend/node_modules/next/dist/server/dev/middleware-webpack.js +473 -0
  738. qalita/_frontend/node_modules/next/dist/server/dev/node-stack-frames.js +72 -0
  739. qalita/_frontend/node_modules/next/dist/server/dev/on-demand-entry-handler.js +704 -0
  740. qalita/_frontend/node_modules/next/dist/server/dev/parse-version-info.js +108 -0
  741. qalita/_frontend/node_modules/next/dist/server/dev/require-cache.js +49 -0
  742. qalita/_frontend/node_modules/next/dist/server/dev/static-paths-worker.js +93 -0
  743. qalita/_frontend/node_modules/next/dist/server/dev/turbopack-utils.js +696 -0
  744. qalita/_frontend/node_modules/next/dist/server/dynamic-rendering-utils.js +86 -0
  745. qalita/_frontend/node_modules/next/dist/server/font-utils.js +43 -0
  746. qalita/_frontend/node_modules/next/dist/server/get-app-route-from-entrypoint.js +30 -0
  747. qalita/_frontend/node_modules/next/dist/server/get-page-files.js +23 -0
  748. qalita/_frontend/node_modules/next/dist/server/get-route-from-entrypoint.js +35 -0
  749. qalita/_frontend/node_modules/next/dist/server/htmlescape.js +37 -0
  750. qalita/_frontend/node_modules/next/dist/server/image-optimizer.js +1067 -0
  751. qalita/_frontend/node_modules/next/dist/server/instrumentation/types.js +6 -0
  752. qalita/_frontend/node_modules/next/dist/server/instrumentation/utils.js +21 -0
  753. qalita/_frontend/node_modules/next/dist/server/internal-utils.js +39 -0
  754. qalita/_frontend/node_modules/next/dist/server/is-private-ip.js +36 -0
  755. qalita/_frontend/node_modules/next/dist/server/lib/app-dir-module.js +59 -0
  756. qalita/_frontend/node_modules/next/dist/server/lib/app-info-log.js +154 -0
  757. qalita/_frontend/node_modules/next/dist/server/lib/async-callback-set.js +29 -0
  758. qalita/_frontend/node_modules/next/dist/server/lib/cache-control.js +22 -0
  759. qalita/_frontend/node_modules/next/dist/server/lib/cache-handlers/default.external.js +18 -0
  760. qalita/_frontend/node_modules/next/dist/server/lib/cache-handlers/default.js +160 -0
  761. qalita/_frontend/node_modules/next/dist/server/lib/cache-handlers/types.js +8 -0
  762. qalita/_frontend/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +116 -0
  763. qalita/_frontend/node_modules/next/dist/server/lib/clone-response.js +77 -0
  764. qalita/_frontend/node_modules/next/dist/server/lib/cpu-profile.js +28 -0
  765. qalita/_frontend/node_modules/next/dist/server/lib/decode-query-path-parameter.js +26 -0
  766. qalita/_frontend/node_modules/next/dist/server/lib/dedupe-fetch.js +163 -0
  767. qalita/_frontend/node_modules/next/dist/server/lib/dev-bundler-service.js +99 -0
  768. qalita/_frontend/node_modules/next/dist/server/lib/etag.js +56 -0
  769. qalita/_frontend/node_modules/next/dist/server/lib/experimental/create-env-definitions.js +48 -0
  770. qalita/_frontend/node_modules/next/dist/server/lib/experimental/ppr.js +47 -0
  771. qalita/_frontend/node_modules/next/dist/server/lib/find-page-file.js +127 -0
  772. qalita/_frontend/node_modules/next/dist/server/lib/fix-mojibake.js +25 -0
  773. qalita/_frontend/node_modules/next/dist/server/lib/format-hostname.js +16 -0
  774. qalita/_frontend/node_modules/next/dist/server/lib/i18n-provider.js +129 -0
  775. qalita/_frontend/node_modules/next/dist/server/lib/implicit-tags.js +77 -0
  776. qalita/_frontend/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +333 -0
  777. qalita/_frontend/node_modules/next/dist/server/lib/incremental-cache/index.js +479 -0
  778. qalita/_frontend/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +40 -0
  779. qalita/_frontend/node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js +73 -0
  780. qalita/_frontend/node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js +55 -0
  781. qalita/_frontend/node_modules/next/dist/server/lib/is-ipv6.js +41 -0
  782. qalita/_frontend/node_modules/next/dist/server/lib/lazy-result.js +46 -0
  783. qalita/_frontend/node_modules/next/dist/server/lib/lru-cache.js +177 -0
  784. qalita/_frontend/node_modules/next/dist/server/lib/match-next-data-pathname.js +18 -0
  785. qalita/_frontend/node_modules/next/dist/server/lib/mock-request.js +416 -0
  786. qalita/_frontend/node_modules/next/dist/server/lib/module-loader/module-loader.js +8 -0
  787. qalita/_frontend/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +25 -0
  788. qalita/_frontend/node_modules/next/dist/server/lib/module-loader/route-module-loader.js +26 -0
  789. qalita/_frontend/node_modules/next/dist/server/lib/node-fs-methods.js +28 -0
  790. qalita/_frontend/node_modules/next/dist/server/lib/parse-stack.js +46 -0
  791. qalita/_frontend/node_modules/next/dist/server/lib/patch-fetch.js +945 -0
  792. qalita/_frontend/node_modules/next/dist/server/lib/patch-set-header.js +38 -0
  793. qalita/_frontend/node_modules/next/dist/server/lib/render-server.js +152 -0
  794. qalita/_frontend/node_modules/next/dist/server/lib/router-server.js +658 -0
  795. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/block-cross-site.js +76 -0
  796. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/build-data-route.js +48 -0
  797. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +71 -0
  798. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/cache-life-type-utils.js +211 -0
  799. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +42 -0
  800. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/filesystem.js +595 -0
  801. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +89 -0
  802. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +96 -0
  803. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/is-postpone.js +16 -0
  804. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/proxy-request.js +118 -0
  805. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +604 -0
  806. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +286 -0
  807. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/router-server-context.js +26 -0
  808. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/typegen.js +613 -0
  809. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/types.js +6 -0
  810. qalita/_frontend/node_modules/next/dist/server/lib/server-action-request-meta.js +53 -0
  811. qalita/_frontend/node_modules/next/dist/server/lib/server-ipc/utils.js +80 -0
  812. qalita/_frontend/node_modules/next/dist/server/lib/source-maps.js +196 -0
  813. qalita/_frontend/node_modules/next/dist/server/lib/start-server.js +460 -0
  814. qalita/_frontend/node_modules/next/dist/server/lib/streaming-metadata.js +38 -0
  815. qalita/_frontend/node_modules/next/dist/server/lib/to-route.js +37 -0
  816. qalita/_frontend/node_modules/next/dist/server/lib/trace/constants.js +203 -0
  817. qalita/_frontend/node_modules/next/dist/server/lib/trace/tracer.js +266 -0
  818. qalita/_frontend/node_modules/next/dist/server/lib/trace/utils.js +16 -0
  819. qalita/_frontend/node_modules/next/dist/server/lib/types.js +6 -0
  820. qalita/_frontend/node_modules/next/dist/server/lib/utils.js +249 -0
  821. qalita/_frontend/node_modules/next/dist/server/lib/worker-utils.js +36 -0
  822. qalita/_frontend/node_modules/next/dist/server/load-components.js +183 -0
  823. qalita/_frontend/node_modules/next/dist/server/load-default-error-components.js +41 -0
  824. qalita/_frontend/node_modules/next/dist/server/load-manifest.external.js +97 -0
  825. qalita/_frontend/node_modules/next/dist/server/match-bundle.js +25 -0
  826. qalita/_frontend/node_modules/next/dist/server/mcp/get-mcp-middleware.js +49 -0
  827. qalita/_frontend/node_modules/next/dist/server/mcp/get-or-create-mcp-server.js +41 -0
  828. qalita/_frontend/node_modules/next/dist/server/mcp/mcp-telemetry-tracker.js +82 -0
  829. qalita/_frontend/node_modules/next/dist/server/mcp/tools/get-errors.js +107 -0
  830. qalita/_frontend/node_modules/next/dist/server/mcp/tools/get-logs.js +61 -0
  831. qalita/_frontend/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +180 -0
  832. qalita/_frontend/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +55 -0
  833. qalita/_frontend/node_modules/next/dist/server/mcp/tools/get-routes.js +171 -0
  834. qalita/_frontend/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +113 -0
  835. qalita/_frontend/node_modules/next/dist/server/mcp/tools/next-instance-error-state.js +31 -0
  836. qalita/_frontend/node_modules/next/dist/server/mcp/tools/utils/browser-communication.js +90 -0
  837. qalita/_frontend/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +147 -0
  838. qalita/_frontend/node_modules/next/dist/server/next-server.js +1458 -0
  839. qalita/_frontend/node_modules/next/dist/server/next-typescript.js +13 -0
  840. qalita/_frontend/node_modules/next/dist/server/next.js +452 -0
  841. qalita/_frontend/node_modules/next/dist/server/node-environment-baseline.js +25 -0
  842. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +246 -0
  843. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/console-exit.js +49 -0
  844. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/console-file.js +56 -0
  845. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/date.js +52 -0
  846. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/error-inspect.js +8 -0
  847. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/global-behaviors.js +33 -0
  848. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +103 -0
  849. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/random.js +28 -0
  850. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.js +489 -0
  851. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/utils.js +129 -0
  852. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +45 -0
  853. qalita/_frontend/node_modules/next/dist/server/node-environment.js +18 -0
  854. qalita/_frontend/node_modules/next/dist/server/node-polyfill-crypto.js +21 -0
  855. qalita/_frontend/node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js +33 -0
  856. qalita/_frontend/node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js +54 -0
  857. qalita/_frontend/node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js +22 -0
  858. qalita/_frontend/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +40 -0
  859. qalita/_frontend/node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js +55 -0
  860. qalita/_frontend/node_modules/next/dist/server/normalizers/built/app/index.js +42 -0
  861. qalita/_frontend/node_modules/next/dist/server/normalizers/built/pages/index.js +44 -0
  862. qalita/_frontend/node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js +55 -0
  863. qalita/_frontend/node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js +22 -0
  864. qalita/_frontend/node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js +19 -0
  865. qalita/_frontend/node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js +19 -0
  866. qalita/_frontend/node_modules/next/dist/server/normalizers/locale-route-normalizer.js +26 -0
  867. qalita/_frontend/node_modules/next/dist/server/normalizers/normalizer.js +6 -0
  868. qalita/_frontend/node_modules/next/dist/server/normalizers/normalizers.js +23 -0
  869. qalita/_frontend/node_modules/next/dist/server/normalizers/prefixing-normalizer.js +26 -0
  870. qalita/_frontend/node_modules/next/dist/server/normalizers/request/base-path.js +25 -0
  871. qalita/_frontend/node_modules/next/dist/server/normalizers/request/next-data.js +38 -0
  872. qalita/_frontend/node_modules/next/dist/server/normalizers/request/pathname-normalizer.js +6 -0
  873. qalita/_frontend/node_modules/next/dist/server/normalizers/request/prefetch-rsc.js +31 -0
  874. qalita/_frontend/node_modules/next/dist/server/normalizers/request/prefix.js +39 -0
  875. qalita/_frontend/node_modules/next/dist/server/normalizers/request/rsc.js +19 -0
  876. qalita/_frontend/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +32 -0
  877. qalita/_frontend/node_modules/next/dist/server/normalizers/request/suffix.js +27 -0
  878. qalita/_frontend/node_modules/next/dist/server/normalizers/underscore-normalizer.js +17 -0
  879. qalita/_frontend/node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js +17 -0
  880. qalita/_frontend/node_modules/next/dist/server/og/image-response.js +53 -0
  881. qalita/_frontend/node_modules/next/dist/server/patch-error-inspect.js +433 -0
  882. qalita/_frontend/node_modules/next/dist/server/pipe-readable.js +140 -0
  883. qalita/_frontend/node_modules/next/dist/server/post-process.js +39 -0
  884. qalita/_frontend/node_modules/next/dist/server/render-result.js +195 -0
  885. qalita/_frontend/node_modules/next/dist/server/render.js +1138 -0
  886. qalita/_frontend/node_modules/next/dist/server/request/connection.js +111 -0
  887. qalita/_frontend/node_modules/next/dist/server/request/cookies.js +220 -0
  888. qalita/_frontend/node_modules/next/dist/server/request/draft-mode.js +207 -0
  889. qalita/_frontend/node_modules/next/dist/server/request/fallback-params.js +112 -0
  890. qalita/_frontend/node_modules/next/dist/server/request/headers.js +219 -0
  891. qalita/_frontend/node_modules/next/dist/server/request/params.js +415 -0
  892. qalita/_frontend/node_modules/next/dist/server/request/pathname.js +104 -0
  893. qalita/_frontend/node_modules/next/dist/server/request/root-params.js +157 -0
  894. qalita/_frontend/node_modules/next/dist/server/request/search-params.js +432 -0
  895. qalita/_frontend/node_modules/next/dist/server/request/utils.js +51 -0
  896. qalita/_frontend/node_modules/next/dist/server/request-meta.js +55 -0
  897. qalita/_frontend/node_modules/next/dist/server/require-hook.js +71 -0
  898. qalita/_frontend/node_modules/next/dist/server/require.js +109 -0
  899. qalita/_frontend/node_modules/next/dist/server/response-cache/index.js +211 -0
  900. qalita/_frontend/node_modules/next/dist/server/response-cache/types.js +41 -0
  901. qalita/_frontend/node_modules/next/dist/server/response-cache/utils.js +103 -0
  902. qalita/_frontend/node_modules/next/dist/server/response-cache/web.js +101 -0
  903. qalita/_frontend/node_modules/next/dist/server/resume-data-cache/cache-store.js +84 -0
  904. qalita/_frontend/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +96 -0
  905. qalita/_frontend/node_modules/next/dist/server/revalidation-utils.js +152 -0
  906. qalita/_frontend/node_modules/next/dist/server/route-definitions/app-page-route-definition.js +16 -0
  907. qalita/_frontend/node_modules/next/dist/server/route-definitions/app-route-route-definition.js +6 -0
  908. qalita/_frontend/node_modules/next/dist/server/route-definitions/locale-route-definition.js +6 -0
  909. qalita/_frontend/node_modules/next/dist/server/route-definitions/pages-api-route-definition.js +6 -0
  910. qalita/_frontend/node_modules/next/dist/server/route-definitions/pages-route-definition.js +6 -0
  911. qalita/_frontend/node_modules/next/dist/server/route-definitions/route-definition.js +6 -0
  912. qalita/_frontend/node_modules/next/dist/server/route-kind.js +32 -0
  913. qalita/_frontend/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js +239 -0
  914. qalita/_frontend/node_modules/next/dist/server/route-matcher-managers/dev-route-matcher-manager.js +120 -0
  915. qalita/_frontend/node_modules/next/dist/server/route-matcher-managers/route-matcher-manager.js +6 -0
  916. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js +55 -0
  917. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js +43 -0
  918. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +90 -0
  919. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.js +112 -0
  920. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-api-route-matcher-provider.js +77 -0
  921. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.js +77 -0
  922. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/dev/file-cache-route-matcher-provider.js +28 -0
  923. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.js +106 -0
  924. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/default-file-reader.js +42 -0
  925. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/file-reader.js +6 -0
  926. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js +30 -0
  927. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/manifest-loader.js +6 -0
  928. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/node-manifest-loader.js +34 -0
  929. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js +20 -0
  930. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js +21 -0
  931. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js +55 -0
  932. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js +64 -0
  933. qalita/_frontend/node_modules/next/dist/server/route-matcher-providers/route-matcher-provider.js +6 -0
  934. qalita/_frontend/node_modules/next/dist/server/route-matchers/app-page-route-matcher.js +18 -0
  935. qalita/_frontend/node_modules/next/dist/server/route-matchers/app-route-route-matcher.js +15 -0
  936. qalita/_frontend/node_modules/next/dist/server/route-matchers/locale-route-matcher.js +68 -0
  937. qalita/_frontend/node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js +30 -0
  938. qalita/_frontend/node_modules/next/dist/server/route-matchers/pages-route-matcher.js +30 -0
  939. qalita/_frontend/node_modules/next/dist/server/route-matchers/route-matcher.js +54 -0
  940. qalita/_frontend/node_modules/next/dist/server/route-matches/app-page-route-match.js +6 -0
  941. qalita/_frontend/node_modules/next/dist/server/route-matches/app-route-route-match.js +6 -0
  942. qalita/_frontend/node_modules/next/dist/server/route-matches/locale-route-match.js +6 -0
  943. qalita/_frontend/node_modules/next/dist/server/route-matches/pages-api-route-match.js +16 -0
  944. qalita/_frontend/node_modules/next/dist/server/route-matches/pages-route-match.js +6 -0
  945. qalita/_frontend/node_modules/next/dist/server/route-matches/route-match.js +6 -0
  946. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +48 -0
  947. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/module.compiled.js +36 -0
  948. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/module.js +132 -0
  949. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/module.render.js +24 -0
  950. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js +4 -0
  951. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js +87 -0
  952. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js +4 -0
  953. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js +4 -0
  954. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js +4 -0
  955. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js +4 -0
  956. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js +4 -0
  957. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +140 -0
  958. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-compiler-runtime.js +4 -0
  959. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-dom.js +4 -0
  960. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js +4 -0
  961. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js +4 -0
  962. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-server.js +4 -0
  963. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-static.js +4 -0
  964. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-server.js +4 -0
  965. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-static.js +4 -0
  966. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react.js +4 -0
  967. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +125 -0
  968. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-compiler-runtime.js +4 -0
  969. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom-server.js +4 -0
  970. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom.js +4 -0
  971. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-dev-runtime.js +4 -0
  972. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js +4 -0
  973. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.js +4 -0
  974. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-webpack-client.js +4 -0
  975. qalita/_frontend/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js +4 -0
  976. qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/helpers/auto-implement-methods.js +85 -0
  977. qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/helpers/clean-url.js +24 -0
  978. qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/helpers/get-pathname-from-absolute-path.js +29 -0
  979. qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/helpers/is-static-gen-enabled.js +15 -0
  980. qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/helpers/parsed-url-query-to-params.js +20 -0
  981. qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/module.compiled.js +36 -0
  982. qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/module.js +889 -0
  983. qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/shared-modules.js +56 -0
  984. qalita/_frontend/node_modules/next/dist/server/route-modules/checks.js +45 -0
  985. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/builtin/_error.js +100 -0
  986. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/module.compiled.js +20 -0
  987. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/module.js +92 -0
  988. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/module.render.js +24 -0
  989. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/pages-handler.js +519 -0
  990. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js +4 -0
  991. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js +102 -0
  992. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js +4 -0
  993. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js +4 -0
  994. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js +4 -0
  995. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js +4 -0
  996. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js +4 -0
  997. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js +4 -0
  998. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js +4 -0
  999. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js +4 -0
  1000. qalita/_frontend/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js +20 -0
  1001. qalita/_frontend/node_modules/next/dist/server/route-modules/pages-api/module.js +58 -0
  1002. qalita/_frontend/node_modules/next/dist/server/route-modules/route-module.js +533 -0
  1003. qalita/_frontend/node_modules/next/dist/server/runtime-reacts.external.js +46 -0
  1004. qalita/_frontend/node_modules/next/dist/server/send-payload.js +88 -0
  1005. qalita/_frontend/node_modules/next/dist/server/send-response.js +70 -0
  1006. qalita/_frontend/node_modules/next/dist/server/serve-static.js +66 -0
  1007. qalita/_frontend/node_modules/next/dist/server/server-route-utils.js +30 -0
  1008. qalita/_frontend/node_modules/next/dist/server/server-utils.js +323 -0
  1009. qalita/_frontend/node_modules/next/dist/server/setup-http-agent-env.js +31 -0
  1010. qalita/_frontend/node_modules/next/dist/server/stream-utils/encoded-tags.js +114 -0
  1011. qalita/_frontend/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +713 -0
  1012. qalita/_frontend/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +69 -0
  1013. qalita/_frontend/node_modules/next/dist/server/typescript/constant.js +97 -0
  1014. qalita/_frontend/node_modules/next/dist/server/typescript/index.js +199 -0
  1015. qalita/_frontend/node_modules/next/dist/server/typescript/rules/client-boundary.js +97 -0
  1016. qalita/_frontend/node_modules/next/dist/server/typescript/rules/config.js +457 -0
  1017. qalita/_frontend/node_modules/next/dist/server/typescript/rules/entry.js +149 -0
  1018. qalita/_frontend/node_modules/next/dist/server/typescript/rules/error.js +38 -0
  1019. qalita/_frontend/node_modules/next/dist/server/typescript/rules/metadata.js +234 -0
  1020. qalita/_frontend/node_modules/next/dist/server/typescript/rules/server-boundary.js +115 -0
  1021. qalita/_frontend/node_modules/next/dist/server/typescript/rules/server.js +79 -0
  1022. qalita/_frontend/node_modules/next/dist/server/typescript/utils.js +212 -0
  1023. qalita/_frontend/node_modules/next/dist/server/use-cache/cache-life.js +161 -0
  1024. qalita/_frontend/node_modules/next/dist/server/use-cache/cache-tag.js +50 -0
  1025. qalita/_frontend/node_modules/next/dist/server/use-cache/constants.js +28 -0
  1026. qalita/_frontend/node_modules/next/dist/server/use-cache/handlers.js +121 -0
  1027. qalita/_frontend/node_modules/next/dist/server/use-cache/use-cache-errors.js +36 -0
  1028. qalita/_frontend/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +1291 -0
  1029. qalita/_frontend/node_modules/next/dist/server/utils.js +73 -0
  1030. qalita/_frontend/node_modules/next/dist/server/web/adapter.js +388 -0
  1031. qalita/_frontend/node_modules/next/dist/server/web/edge-route-module-wrapper.js +120 -0
  1032. qalita/_frontend/node_modules/next/dist/server/web/error.js +54 -0
  1033. qalita/_frontend/node_modules/next/dist/server/web/exports/index.js +56 -0
  1034. qalita/_frontend/node_modules/next/dist/server/web/get-edge-preview-props.js +23 -0
  1035. qalita/_frontend/node_modules/next/dist/server/web/globals.js +128 -0
  1036. qalita/_frontend/node_modules/next/dist/server/web/http.js +39 -0
  1037. qalita/_frontend/node_modules/next/dist/server/web/internal-edge-wait-until.js +64 -0
  1038. qalita/_frontend/node_modules/next/dist/server/web/next-url.js +195 -0
  1039. qalita/_frontend/node_modules/next/dist/server/web/sandbox/context.js +463 -0
  1040. qalita/_frontend/node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js +35 -0
  1041. qalita/_frontend/node_modules/next/dist/server/web/sandbox/index.js +28 -0
  1042. qalita/_frontend/node_modules/next/dist/server/web/sandbox/resource-managers.js +88 -0
  1043. qalita/_frontend/node_modules/next/dist/server/web/sandbox/sandbox.js +134 -0
  1044. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +192 -0
  1045. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +142 -0
  1046. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +30 -0
  1047. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +210 -0
  1048. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/cookies.js +29 -0
  1049. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/fetch-event.js +98 -0
  1050. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/image-response.js +22 -0
  1051. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/request.js +99 -0
  1052. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/response.js +136 -0
  1053. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/revalidate.js +202 -0
  1054. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +284 -0
  1055. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js +49 -0
  1056. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/url-pattern.js +14 -0
  1057. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/user-agent.js +46 -0
  1058. qalita/_frontend/node_modules/next/dist/server/web/types.js +6 -0
  1059. qalita/_frontend/node_modules/next/dist/server/web/utils.js +151 -0
  1060. qalita/_frontend/node_modules/next/dist/server/web/web-on-close.js +87 -0
  1061. qalita/_frontend/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +50 -0
  1062. qalita/_frontend/node_modules/next/dist/shared/lib/app-router-types.js +27 -0
  1063. qalita/_frontend/node_modules/next/dist/shared/lib/constants.js +443 -0
  1064. qalita/_frontend/node_modules/next/dist/shared/lib/deep-freeze.js +30 -0
  1065. qalita/_frontend/node_modules/next/dist/shared/lib/dset.js +34 -0
  1066. qalita/_frontend/node_modules/next/dist/shared/lib/encode-uri-path.js +15 -0
  1067. qalita/_frontend/node_modules/next/dist/shared/lib/entry-constants.js +36 -0
  1068. qalita/_frontend/node_modules/next/dist/shared/lib/error-source.js +36 -0
  1069. qalita/_frontend/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +39 -0
  1070. qalita/_frontend/node_modules/next/dist/shared/lib/errors/constants.js +19 -0
  1071. qalita/_frontend/node_modules/next/dist/shared/lib/errors/empty-generate-static-params-error.js +24 -0
  1072. qalita/_frontend/node_modules/next/dist/shared/lib/errors/hard-deprecated-config-error.js +20 -0
  1073. qalita/_frontend/node_modules/next/dist/shared/lib/escape-regexp.js +22 -0
  1074. qalita/_frontend/node_modules/next/dist/shared/lib/get-hostname.js +23 -0
  1075. qalita/_frontend/node_modules/next/dist/shared/lib/hash.js +42 -0
  1076. qalita/_frontend/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +18 -0
  1077. qalita/_frontend/node_modules/next/dist/shared/lib/head.js +163 -0
  1078. qalita/_frontend/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +55 -0
  1079. qalita/_frontend/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +40 -0
  1080. qalita/_frontend/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +25 -0
  1081. qalita/_frontend/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js +59 -0
  1082. qalita/_frontend/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +54 -0
  1083. qalita/_frontend/node_modules/next/dist/shared/lib/image-blur-svg.js +22 -0
  1084. qalita/_frontend/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +19 -0
  1085. qalita/_frontend/node_modules/next/dist/shared/lib/image-config.js +74 -0
  1086. qalita/_frontend/node_modules/next/dist/shared/lib/invariant-error.js +18 -0
  1087. qalita/_frontend/node_modules/next/dist/shared/lib/is-internal.js +39 -0
  1088. qalita/_frontend/node_modules/next/dist/shared/lib/is-plain-object.js +42 -0
  1089. qalita/_frontend/node_modules/next/dist/shared/lib/is-thenable.js +20 -0
  1090. qalita/_frontend/node_modules/next/dist/shared/lib/isomorphic/path.js +14 -0
  1091. qalita/_frontend/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +37 -0
  1092. qalita/_frontend/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js +19 -0
  1093. qalita/_frontend/node_modules/next/dist/shared/lib/loadable.shared-runtime.js +246 -0
  1094. qalita/_frontend/node_modules/next/dist/shared/lib/magic-identifier.js +218 -0
  1095. qalita/_frontend/node_modules/next/dist/shared/lib/match-local-pattern.js +46 -0
  1096. qalita/_frontend/node_modules/next/dist/shared/lib/match-remote-pattern.js +63 -0
  1097. qalita/_frontend/node_modules/next/dist/shared/lib/modern-browserslist-target.js +15 -0
  1098. qalita/_frontend/node_modules/next/dist/shared/lib/no-fallback-error.external.js +18 -0
  1099. qalita/_frontend/node_modules/next/dist/shared/lib/normalized-asset-prefix.js +28 -0
  1100. qalita/_frontend/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js +26 -0
  1101. qalita/_frontend/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +18 -0
  1102. qalita/_frontend/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +18 -0
  1103. qalita/_frontend/node_modules/next/dist/shared/lib/page-path/get-page-paths.js +40 -0
  1104. qalita/_frontend/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js +23 -0
  1105. qalita/_frontend/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js +26 -0
  1106. qalita/_frontend/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +19 -0
  1107. qalita/_frontend/node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js +20 -0
  1108. qalita/_frontend/node_modules/next/dist/shared/lib/promise-with-resolvers.js +26 -0
  1109. qalita/_frontend/node_modules/next/dist/shared/lib/router/adapters.js +136 -0
  1110. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/add-locale.js +28 -0
  1111. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +20 -0
  1112. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +20 -0
  1113. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/app-paths.js +51 -0
  1114. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js +17 -0
  1115. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +24 -0
  1116. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js +16 -0
  1117. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +27 -0
  1118. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/format-url.js +111 -0
  1119. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +196 -0
  1120. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +52 -0
  1121. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js +25 -0
  1122. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +90 -0
  1123. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/html-bots.js +17 -0
  1124. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/index.js +30 -0
  1125. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +108 -0
  1126. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/is-bot.js +57 -0
  1127. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
  1128. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js +31 -0
  1129. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +29 -0
  1130. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/parse-path.js +33 -0
  1131. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +36 -0
  1132. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/parse-url.js +32 -0
  1133. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +20 -0
  1134. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/path-match.js +49 -0
  1135. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +292 -0
  1136. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/querystring.js +79 -0
  1137. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/relativize-url.js +40 -0
  1138. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +39 -0
  1139. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +21 -0
  1140. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +113 -0
  1141. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +45 -0
  1142. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/route-regex.js +256 -0
  1143. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +244 -0
  1144. qalita/_frontend/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +18 -0
  1145. qalita/_frontend/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +73 -0
  1146. qalita/_frontend/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +99 -0
  1147. qalita/_frontend/node_modules/next/dist/shared/lib/segment.js +97 -0
  1148. qalita/_frontend/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +35 -0
  1149. qalita/_frontend/node_modules/next/dist/shared/lib/server-reference-info.js +52 -0
  1150. qalita/_frontend/node_modules/next/dist/shared/lib/side-effect.js +63 -0
  1151. qalita/_frontend/node_modules/next/dist/shared/lib/turbopack/internal-error.js +53 -0
  1152. qalita/_frontend/node_modules/next/dist/shared/lib/turbopack/utils.js +278 -0
  1153. qalita/_frontend/node_modules/next/dist/shared/lib/utils/warn-once.js +22 -0
  1154. qalita/_frontend/node_modules/next/dist/shared/lib/utils.js +207 -0
  1155. qalita/_frontend/node_modules/next/dist/shared/lib/zod.js +101 -0
  1156. qalita/_frontend/node_modules/next/dist/telemetry/anonymous-meta.js +89 -0
  1157. qalita/_frontend/node_modules/next/dist/telemetry/detached-flush.js +56 -0
  1158. qalita/_frontend/node_modules/next/dist/telemetry/events/build.js +163 -0
  1159. qalita/_frontend/node_modules/next/dist/telemetry/events/index.js +41 -0
  1160. qalita/_frontend/node_modules/next/dist/telemetry/events/plugins.js +51 -0
  1161. qalita/_frontend/node_modules/next/dist/telemetry/events/swc-load-failure.js +55 -0
  1162. qalita/_frontend/node_modules/next/dist/telemetry/events/version.js +66 -0
  1163. qalita/_frontend/node_modules/next/dist/telemetry/flush-telemetry.js +19 -0
  1164. qalita/_frontend/node_modules/next/dist/telemetry/post-telemetry-payload.js +48 -0
  1165. qalita/_frontend/node_modules/next/dist/telemetry/project-id.js +48 -0
  1166. qalita/_frontend/node_modules/next/dist/telemetry/storage.js +301 -0
  1167. qalita/_frontend/node_modules/next/dist/trace/index.js +54 -0
  1168. qalita/_frontend/node_modules/next/dist/trace/report/index.js +37 -0
  1169. qalita/_frontend/node_modules/next/dist/trace/report/to-json-build.js +137 -0
  1170. qalita/_frontend/node_modules/next/dist/trace/report/to-json.js +151 -0
  1171. qalita/_frontend/node_modules/next/dist/trace/report/to-telemetry.js +36 -0
  1172. qalita/_frontend/node_modules/next/dist/trace/shared.js +39 -0
  1173. qalita/_frontend/node_modules/next/dist/trace/trace.js +197 -0
  1174. qalita/_frontend/node_modules/next/package.json +378 -0
  1175. qalita/_frontend/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +10 -0
  1176. qalita/_frontend/node_modules/react/cjs/react-jsx-runtime.production.min.js +11 -0
  1177. qalita/_frontend/node_modules/react/cjs/react.production.min.js +26 -0
  1178. qalita/_frontend/node_modules/react/index.js +7 -0
  1179. qalita/_frontend/node_modules/react/jsx-dev-runtime.js +7 -0
  1180. qalita/_frontend/node_modules/react/jsx-runtime.js +7 -0
  1181. qalita/_frontend/node_modules/react/package.json +47 -0
  1182. qalita/_frontend/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +93 -0
  1183. qalita/_frontend/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js +101 -0
  1184. qalita/_frontend/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +96 -0
  1185. qalita/_frontend/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +102 -0
  1186. qalita/_frontend/node_modules/react-dom/cjs/react-dom.production.min.js +322 -0
  1187. qalita/_frontend/node_modules/react-dom/index.js +38 -0
  1188. qalita/_frontend/node_modules/react-dom/package.json +62 -0
  1189. qalita/_frontend/node_modules/react-dom/server.browser.js +17 -0
  1190. qalita/_frontend/node_modules/react-dom/server.node.js +17 -0
  1191. qalita/_frontend/node_modules/scheduler/cjs/scheduler.development.js +634 -0
  1192. qalita/_frontend/node_modules/scheduler/cjs/scheduler.production.min.js +19 -0
  1193. qalita/_frontend/node_modules/scheduler/index.js +7 -0
  1194. qalita/_frontend/node_modules/scheduler/package.json +36 -0
  1195. qalita/_frontend/node_modules/semver/classes/comparator.js +143 -0
  1196. qalita/_frontend/node_modules/semver/classes/range.js +557 -0
  1197. qalita/_frontend/node_modules/semver/classes/semver.js +333 -0
  1198. qalita/_frontend/node_modules/semver/functions/cmp.js +54 -0
  1199. qalita/_frontend/node_modules/semver/functions/coerce.js +62 -0
  1200. qalita/_frontend/node_modules/semver/functions/compare.js +7 -0
  1201. qalita/_frontend/node_modules/semver/functions/eq.js +5 -0
  1202. qalita/_frontend/node_modules/semver/functions/gt.js +5 -0
  1203. qalita/_frontend/node_modules/semver/functions/gte.js +5 -0
  1204. qalita/_frontend/node_modules/semver/functions/lt.js +5 -0
  1205. qalita/_frontend/node_modules/semver/functions/lte.js +5 -0
  1206. qalita/_frontend/node_modules/semver/functions/neq.js +5 -0
  1207. qalita/_frontend/node_modules/semver/functions/parse.js +18 -0
  1208. qalita/_frontend/node_modules/semver/functions/satisfies.js +12 -0
  1209. qalita/_frontend/node_modules/semver/internal/constants.js +37 -0
  1210. qalita/_frontend/node_modules/semver/internal/debug.js +11 -0
  1211. qalita/_frontend/node_modules/semver/internal/identifiers.js +29 -0
  1212. qalita/_frontend/node_modules/semver/internal/lrucache.js +42 -0
  1213. qalita/_frontend/node_modules/semver/internal/parse-options.js +17 -0
  1214. qalita/_frontend/node_modules/semver/internal/re.js +223 -0
  1215. qalita/_frontend/node_modules/semver/package.json +78 -0
  1216. qalita/_frontend/node_modules/sharp/lib/channel.js +177 -0
  1217. qalita/_frontend/node_modules/sharp/lib/colour.js +195 -0
  1218. qalita/_frontend/node_modules/sharp/lib/composite.js +212 -0
  1219. qalita/_frontend/node_modules/sharp/lib/constructor.js +499 -0
  1220. qalita/_frontend/node_modules/sharp/lib/index.js +16 -0
  1221. qalita/_frontend/node_modules/sharp/lib/input.js +809 -0
  1222. qalita/_frontend/node_modules/sharp/lib/is.js +143 -0
  1223. qalita/_frontend/node_modules/sharp/lib/libvips.js +207 -0
  1224. qalita/_frontend/node_modules/sharp/lib/operation.js +1016 -0
  1225. qalita/_frontend/node_modules/sharp/lib/output.js +1666 -0
  1226. qalita/_frontend/node_modules/sharp/lib/resize.js +595 -0
  1227. qalita/_frontend/node_modules/sharp/lib/sharp.js +121 -0
  1228. qalita/_frontend/node_modules/sharp/lib/utility.js +291 -0
  1229. qalita/_frontend/node_modules/sharp/package.json +202 -0
  1230. qalita/_frontend/node_modules/styled-jsx/dist/index/index.js +499 -0
  1231. qalita/_frontend/node_modules/styled-jsx/index.js +1 -0
  1232. qalita/_frontend/node_modules/styled-jsx/package.json +132 -0
  1233. qalita/_frontend/node_modules/styled-jsx/style.js +1 -0
  1234. qalita/_frontend/node_modules/typescript/lib/_tsc.js +133818 -0
  1235. qalita/_frontend/node_modules/typescript/lib/_tsserver.js +659 -0
  1236. qalita/_frontend/node_modules/typescript/lib/_typingsInstaller.js +222 -0
  1237. qalita/_frontend/node_modules/typescript/lib/tsc.js +8 -0
  1238. qalita/_frontend/node_modules/typescript/lib/tsserver.js +8 -0
  1239. qalita/_frontend/node_modules/typescript/lib/tsserverlibrary.js +21 -0
  1240. qalita/_frontend/node_modules/typescript/lib/typescript.js +200276 -0
  1241. qalita/_frontend/node_modules/typescript/lib/typingsInstaller.js +8 -0
  1242. qalita/_frontend/node_modules/typescript/lib/watchGuard.js +53 -0
  1243. qalita/_frontend/node_modules/typescript/package.json +120 -0
  1244. qalita/_frontend/package.json +28 -0
  1245. qalita/_frontend/public/chatgpt.svg +3 -0
  1246. qalita/_frontend/public/claude.png +0 -0
  1247. qalita/_frontend/public/favicon.ico +0 -0
  1248. qalita/_frontend/public/gemini.png +0 -0
  1249. qalita/_frontend/public/logo-no-slogan.png +0 -0
  1250. qalita/_frontend/public/logo-white-no-slogan.svg +11 -0
  1251. qalita/_frontend/public/mistral.svg +1 -0
  1252. qalita/_frontend/public/noise.webp +0 -0
  1253. qalita/_frontend/public/ollama.png +0 -0
  1254. qalita/_frontend/public/platform.png +0 -0
  1255. qalita/_frontend/public/sources-logos/alloy-db.png +0 -0
  1256. qalita/_frontend/public/sources-logos/amazon-athena.png +0 -0
  1257. qalita/_frontend/public/sources-logos/amazon-rds.png +0 -0
  1258. qalita/_frontend/public/sources-logos/api.svg +2 -0
  1259. qalita/_frontend/public/sources-logos/avro.svg +20 -0
  1260. qalita/_frontend/public/sources-logos/azure-database-mysql.png +0 -0
  1261. qalita/_frontend/public/sources-logos/azure-database-postgresql.png +0 -0
  1262. qalita/_frontend/public/sources-logos/azure-sql-database.png +0 -0
  1263. qalita/_frontend/public/sources-logos/azure-sql-managed-instance.png +0 -0
  1264. qalita/_frontend/public/sources-logos/azure-synapse-analytics.png +0 -0
  1265. qalita/_frontend/public/sources-logos/azure_blob.svg +1 -0
  1266. qalita/_frontend/public/sources-logos/bigquery.png +0 -0
  1267. qalita/_frontend/public/sources-logos/cassandra.svg +254 -0
  1268. qalita/_frontend/public/sources-logos/clickhouse.png +0 -0
  1269. qalita/_frontend/public/sources-logos/cloud-sql.png +0 -0
  1270. qalita/_frontend/public/sources-logos/cockroach-db.png +0 -0
  1271. qalita/_frontend/public/sources-logos/csv.svg +1 -0
  1272. qalita/_frontend/public/sources-logos/database.svg +3 -0
  1273. qalita/_frontend/public/sources-logos/databricks.png +0 -0
  1274. qalita/_frontend/public/sources-logos/duckdb.png +0 -0
  1275. qalita/_frontend/public/sources-logos/elasticsearch.svg +1 -0
  1276. qalita/_frontend/public/sources-logos/excel.svg +1 -0
  1277. qalita/_frontend/public/sources-logos/file.svg +1 -0
  1278. qalita/_frontend/public/sources-logos/folder.svg +6 -0
  1279. qalita/_frontend/public/sources-logos/gcs.png +0 -0
  1280. qalita/_frontend/public/sources-logos/hdfs.svg +1 -0
  1281. qalita/_frontend/public/sources-logos/ibm-db2.png +0 -0
  1282. qalita/_frontend/public/sources-logos/json.png +0 -0
  1283. qalita/_frontend/public/sources-logos/maria-db.png +0 -0
  1284. qalita/_frontend/public/sources-logos/mongodb.svg +1 -0
  1285. qalita/_frontend/public/sources-logos/mssql.svg +1 -0
  1286. qalita/_frontend/public/sources-logos/mysql.svg +7 -0
  1287. qalita/_frontend/public/sources-logos/oracle.svg +4 -0
  1288. qalita/_frontend/public/sources-logos/parquet.svg +16 -0
  1289. qalita/_frontend/public/sources-logos/picture.png +0 -0
  1290. qalita/_frontend/public/sources-logos/postgresql.svg +22 -0
  1291. qalita/_frontend/public/sources-logos/questdb.png +0 -0
  1292. qalita/_frontend/public/sources-logos/redshift.png +0 -0
  1293. qalita/_frontend/public/sources-logos/s3.svg +34 -0
  1294. qalita/_frontend/public/sources-logos/sap-hana.png +0 -0
  1295. qalita/_frontend/public/sources-logos/sftp.png +0 -0
  1296. qalita/_frontend/public/sources-logos/single-store.png +0 -0
  1297. qalita/_frontend/public/sources-logos/snowflake.png +0 -0
  1298. qalita/_frontend/public/sources-logos/sqlite.svg +104 -0
  1299. qalita/_frontend/public/sources-logos/sqlserver.png +0 -0
  1300. qalita/_frontend/public/sources-logos/starburst.png +0 -0
  1301. qalita/_frontend/public/sources-logos/stream.png +0 -0
  1302. qalita/_frontend/public/sources-logos/teradata.png +0 -0
  1303. qalita/_frontend/public/sources-logos/timescale.png +0 -0
  1304. qalita/_frontend/public/sources-logos/xls.svg +1 -0
  1305. qalita/_frontend/public/sources-logos/xlsx.svg +1 -0
  1306. qalita/_frontend/public/sources-logos/yugabyte-db.png +0 -0
  1307. qalita/_frontend/public/studio-logo.svg +10 -0
  1308. qalita/_frontend/public/studio.ico +0 -0
  1309. qalita/_frontend/public/studio.png +0 -0
  1310. qalita/_frontend/server.js +38 -0
  1311. qalita/commands/pack.py +73 -19
  1312. qalita/commands/source.py +10 -6
  1313. qalita/internal/utils.py +57 -9
  1314. qalita/web/blueprints/context.py +3 -2
  1315. qalita/web/blueprints/dashboard.py +3 -1
  1316. qalita/web/blueprints/sources.py +4 -2
  1317. qalita/web/blueprints/workers.py +3 -3
  1318. {qalita-2.5.2.dist-info → qalita-2.5.3.dist-info}/METADATA +1 -1
  1319. qalita-2.5.3.dist-info/RECORD +1333 -0
  1320. qalita-2.5.2.dist-info/RECORD +0 -24
  1321. {qalita-2.5.2.dist-info → qalita-2.5.3.dist-info}/WHEEL +0 -0
  1322. {qalita-2.5.2.dist-info → qalita-2.5.3.dist-info}/entry_points.txt +0 -0
  1323. {qalita-2.5.2.dist-info → qalita-2.5.3.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,1419 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ 0 && (module.exports = {
6
+ EntryStatus: null,
7
+ canNewFetchStrategyProvideMoreContent: null,
8
+ convertRouteTreeToFlightRouterState: null,
9
+ createDetachedSegmentCacheEntry: null,
10
+ fetchRouteOnCacheMiss: null,
11
+ fetchSegmentOnCacheMiss: null,
12
+ fetchSegmentPrefetchesUsingDynamicRequest: null,
13
+ getCurrentCacheVersion: null,
14
+ getStaleTimeMs: null,
15
+ overwriteRevalidatingSegmentCacheEntry: null,
16
+ pingInvalidationListeners: null,
17
+ readOrCreateRevalidatingSegmentEntry: null,
18
+ readOrCreateRouteCacheEntry: null,
19
+ readOrCreateSegmentCacheEntry: null,
20
+ readRouteCacheEntry: null,
21
+ readSegmentCacheEntry: null,
22
+ requestOptimisticRouteCacheEntry: null,
23
+ revalidateEntireCache: null,
24
+ upgradeToPendingSegment: null,
25
+ upsertSegmentEntry: null,
26
+ waitForSegmentCacheEntry: null
27
+ });
28
+ function _export(target, all) {
29
+ for(var name in all)Object.defineProperty(target, name, {
30
+ enumerable: true,
31
+ get: all[name]
32
+ });
33
+ }
34
+ _export(exports, {
35
+ EntryStatus: function() {
36
+ return EntryStatus;
37
+ },
38
+ canNewFetchStrategyProvideMoreContent: function() {
39
+ return canNewFetchStrategyProvideMoreContent;
40
+ },
41
+ convertRouteTreeToFlightRouterState: function() {
42
+ return convertRouteTreeToFlightRouterState;
43
+ },
44
+ createDetachedSegmentCacheEntry: function() {
45
+ return createDetachedSegmentCacheEntry;
46
+ },
47
+ fetchRouteOnCacheMiss: function() {
48
+ return fetchRouteOnCacheMiss;
49
+ },
50
+ fetchSegmentOnCacheMiss: function() {
51
+ return fetchSegmentOnCacheMiss;
52
+ },
53
+ fetchSegmentPrefetchesUsingDynamicRequest: function() {
54
+ return fetchSegmentPrefetchesUsingDynamicRequest;
55
+ },
56
+ getCurrentCacheVersion: function() {
57
+ return getCurrentCacheVersion;
58
+ },
59
+ getStaleTimeMs: function() {
60
+ return getStaleTimeMs;
61
+ },
62
+ overwriteRevalidatingSegmentCacheEntry: function() {
63
+ return overwriteRevalidatingSegmentCacheEntry;
64
+ },
65
+ pingInvalidationListeners: function() {
66
+ return pingInvalidationListeners;
67
+ },
68
+ readOrCreateRevalidatingSegmentEntry: function() {
69
+ return readOrCreateRevalidatingSegmentEntry;
70
+ },
71
+ readOrCreateRouteCacheEntry: function() {
72
+ return readOrCreateRouteCacheEntry;
73
+ },
74
+ readOrCreateSegmentCacheEntry: function() {
75
+ return readOrCreateSegmentCacheEntry;
76
+ },
77
+ readRouteCacheEntry: function() {
78
+ return readRouteCacheEntry;
79
+ },
80
+ readSegmentCacheEntry: function() {
81
+ return readSegmentCacheEntry;
82
+ },
83
+ requestOptimisticRouteCacheEntry: function() {
84
+ return requestOptimisticRouteCacheEntry;
85
+ },
86
+ revalidateEntireCache: function() {
87
+ return revalidateEntireCache;
88
+ },
89
+ upgradeToPendingSegment: function() {
90
+ return upgradeToPendingSegment;
91
+ },
92
+ upsertSegmentEntry: function() {
93
+ return upsertSegmentEntry;
94
+ },
95
+ waitForSegmentCacheEntry: function() {
96
+ return waitForSegmentCacheEntry;
97
+ }
98
+ });
99
+ const _approutertypes = require("../../../shared/lib/app-router-types");
100
+ const _approuterheaders = require("../app-router-headers");
101
+ const _fetchserverresponse = require("../router-reducer/fetch-server-response");
102
+ const _scheduler = require("./scheduler");
103
+ const _varypath = require("./vary-path");
104
+ const _appbuildid = require("../../app-build-id");
105
+ const _createhreffromurl = require("../router-reducer/create-href-from-url");
106
+ const _cachekey = require("./cache-key");
107
+ const _routeparams = require("../../route-params");
108
+ const _cachemap = require("./cache-map");
109
+ const _segmentvalueencoding = require("../../../shared/lib/segment-cache/segment-value-encoding");
110
+ const _flightdatahelpers = require("../../flight-data-helpers");
111
+ const _navigatereducer = require("../router-reducer/reducers/navigate-reducer");
112
+ const _links = require("../links");
113
+ const _segment = require("../../../shared/lib/segment");
114
+ const _outputexportprefetchencoding = require("../../../shared/lib/segment-cache/output-export-prefetch-encoding");
115
+ const _types = require("./types");
116
+ const _promisewithresolvers = require("../../../shared/lib/promise-with-resolvers");
117
+ function getStaleTimeMs(staleTimeSeconds) {
118
+ return Math.max(staleTimeSeconds, 30) * 1000;
119
+ }
120
+ var EntryStatus = /*#__PURE__*/ function(EntryStatus) {
121
+ EntryStatus[EntryStatus["Empty"] = 0] = "Empty";
122
+ EntryStatus[EntryStatus["Pending"] = 1] = "Pending";
123
+ EntryStatus[EntryStatus["Fulfilled"] = 2] = "Fulfilled";
124
+ EntryStatus[EntryStatus["Rejected"] = 3] = "Rejected";
125
+ return EntryStatus;
126
+ }({});
127
+ const isOutputExportMode = process.env.NODE_ENV === 'production' && process.env.__NEXT_CONFIG_OUTPUT === 'export';
128
+ const MetadataOnlyRequestTree = [
129
+ '',
130
+ {},
131
+ null,
132
+ 'metadata-only'
133
+ ];
134
+ let routeCacheMap = (0, _cachemap.createCacheMap)();
135
+ let segmentCacheMap = (0, _cachemap.createCacheMap)();
136
+ // All invalidation listeners for the whole cache are tracked in single set.
137
+ // Since we don't yet support tag or path-based invalidation, there's no point
138
+ // tracking them any more granularly than this. Once we add granular
139
+ // invalidation, that may change, though generally the model is to just notify
140
+ // the listeners and allow the caller to poll the prefetch cache with a new
141
+ // prefetch task if desired.
142
+ let invalidationListeners = null;
143
+ // Incrementing counter used to track cache invalidations.
144
+ let currentCacheVersion = 0;
145
+ function getCurrentCacheVersion() {
146
+ return currentCacheVersion;
147
+ }
148
+ function revalidateEntireCache(nextUrl, tree) {
149
+ // Increment the current cache version. This does not eagerly evict anything
150
+ // from the cache, but because all the entries are versioned, and we check
151
+ // the version when reading from the cache, this effectively causes all
152
+ // entries to be evicted lazily. We do it lazily because in the future,
153
+ // actions like revalidateTag or refresh will not evict the entire cache,
154
+ // but rather some subset of the entries.
155
+ currentCacheVersion++;
156
+ // Start a cooldown before re-prefetching to allow CDN cache propagation.
157
+ (0, _scheduler.startRevalidationCooldown)();
158
+ // Prefetch all the currently visible links again, to re-fill the cache.
159
+ (0, _links.pingVisibleLinks)(nextUrl, tree);
160
+ // Similarly, notify all invalidation listeners (i.e. those passed to
161
+ // `router.prefetch(onInvalidate)`), so they can trigger a new prefetch
162
+ // if needed.
163
+ pingInvalidationListeners(nextUrl, tree);
164
+ }
165
+ function attachInvalidationListener(task) {
166
+ // This function is called whenever a prefetch task reads a cache entry. If
167
+ // the task has an onInvalidate function associated with it — i.e. the one
168
+ // optionally passed to router.prefetch(onInvalidate) — then we attach that
169
+ // listener to the every cache entry that the task reads. Then, if an entry
170
+ // is invalidated, we call the function.
171
+ if (task.onInvalidate !== null) {
172
+ if (invalidationListeners === null) {
173
+ invalidationListeners = new Set([
174
+ task
175
+ ]);
176
+ } else {
177
+ invalidationListeners.add(task);
178
+ }
179
+ }
180
+ }
181
+ function notifyInvalidationListener(task) {
182
+ const onInvalidate = task.onInvalidate;
183
+ if (onInvalidate !== null) {
184
+ // Clear the callback from the task object to guarantee it's not called more
185
+ // than once.
186
+ task.onInvalidate = null;
187
+ // This is a user-space function, so we must wrap in try/catch.
188
+ try {
189
+ onInvalidate();
190
+ } catch (error) {
191
+ if (typeof reportError === 'function') {
192
+ reportError(error);
193
+ } else {
194
+ console.error(error);
195
+ }
196
+ }
197
+ }
198
+ }
199
+ function pingInvalidationListeners(nextUrl, tree) {
200
+ // The rough equivalent of pingVisibleLinks, but for onInvalidate callbacks.
201
+ // This is called when the Next-Url or the base tree changes, since those
202
+ // may affect the result of a prefetch task. It's also called after a
203
+ // cache invalidation.
204
+ if (invalidationListeners !== null) {
205
+ const tasks = invalidationListeners;
206
+ invalidationListeners = null;
207
+ for (const task of tasks){
208
+ if ((0, _scheduler.isPrefetchTaskDirty)(task, nextUrl, tree)) {
209
+ notifyInvalidationListener(task);
210
+ }
211
+ }
212
+ }
213
+ }
214
+ function readRouteCacheEntry(now, key) {
215
+ const varyPath = (0, _varypath.getRouteVaryPath)(key.pathname, key.search, key.nextUrl);
216
+ const isRevalidation = false;
217
+ return (0, _cachemap.getFromCacheMap)(now, getCurrentCacheVersion(), routeCacheMap, varyPath, isRevalidation);
218
+ }
219
+ function readSegmentCacheEntry(now, varyPath) {
220
+ const isRevalidation = false;
221
+ return (0, _cachemap.getFromCacheMap)(now, getCurrentCacheVersion(), segmentCacheMap, varyPath, isRevalidation);
222
+ }
223
+ function readRevalidatingSegmentCacheEntry(now, varyPath) {
224
+ const isRevalidation = true;
225
+ return (0, _cachemap.getFromCacheMap)(now, getCurrentCacheVersion(), segmentCacheMap, varyPath, isRevalidation);
226
+ }
227
+ function waitForSegmentCacheEntry(pendingEntry) {
228
+ // Because the entry is pending, there's already a in-progress request.
229
+ // Attach a promise to the entry that will resolve when the server responds.
230
+ let promiseWithResolvers = pendingEntry.promise;
231
+ if (promiseWithResolvers === null) {
232
+ promiseWithResolvers = pendingEntry.promise = (0, _promisewithresolvers.createPromiseWithResolvers)();
233
+ } else {
234
+ // There's already a promise we can use
235
+ }
236
+ return promiseWithResolvers.promise;
237
+ }
238
+ function readOrCreateRouteCacheEntry(now, task, key) {
239
+ attachInvalidationListener(task);
240
+ const existingEntry = readRouteCacheEntry(now, key);
241
+ if (existingEntry !== null) {
242
+ return existingEntry;
243
+ }
244
+ // Create a pending entry and add it to the cache.
245
+ const pendingEntry = {
246
+ canonicalUrl: null,
247
+ status: 0,
248
+ blockedTasks: null,
249
+ tree: null,
250
+ metadata: null,
251
+ // This is initialized to true because we don't know yet whether the route
252
+ // could be intercepted. It's only set to false once we receive a response
253
+ // from the server.
254
+ couldBeIntercepted: true,
255
+ // Similarly, we don't yet know if the route supports PPR.
256
+ isPPREnabled: false,
257
+ renderedSearch: null,
258
+ // Map-related fields
259
+ ref: null,
260
+ size: 0,
261
+ // Since this is an empty entry, there's no reason to ever evict it. It will
262
+ // be updated when the data is populated.
263
+ staleAt: Infinity,
264
+ version: getCurrentCacheVersion()
265
+ };
266
+ const varyPath = (0, _varypath.getRouteVaryPath)(key.pathname, key.search, key.nextUrl);
267
+ const isRevalidation = false;
268
+ (0, _cachemap.setInCacheMap)(routeCacheMap, varyPath, pendingEntry, isRevalidation);
269
+ return pendingEntry;
270
+ }
271
+ function requestOptimisticRouteCacheEntry(now, requestedUrl, nextUrl) {
272
+ // This function is called during a navigation when there was no matching
273
+ // route tree in the prefetch cache. Before de-opting to a blocking,
274
+ // unprefetched navigation, we will first attempt to construct an "optimistic"
275
+ // route tree by checking the cache for similar routes.
276
+ //
277
+ // Check if there's a route with the same pathname, but with different
278
+ // search params. We can then base our optimistic route tree on this entry.
279
+ //
280
+ // Conceptually, we are simulating what would happen if we did perform a
281
+ // prefetch the requested URL, under the assumption that the server will
282
+ // not redirect or rewrite the request in a different manner than the
283
+ // base route tree. This assumption might not hold, in which case we'll have
284
+ // to recover when we perform the dynamic navigation request. However, this
285
+ // is what would happen if a route were dynamically rewritten/redirected
286
+ // in between the prefetch and the navigation. So the logic needs to exist
287
+ // to handle this case regardless.
288
+ // Look for a route with the same pathname, but with an empty search string.
289
+ // TODO: There's nothing inherently special about the empty search string;
290
+ // it's chosen somewhat arbitrarily, with the rationale that it's the most
291
+ // likely one to exist. But we should update this to match _any_ search
292
+ // string. The plan is to generalize this logic alongside other improvements
293
+ // related to "fallback" cache entries.
294
+ const requestedSearch = requestedUrl.search;
295
+ if (requestedSearch === '') {
296
+ // The caller would have already checked if a route with an empty search
297
+ // string is in the cache. So we can bail out here.
298
+ return null;
299
+ }
300
+ const urlWithoutSearchParams = new URL(requestedUrl);
301
+ urlWithoutSearchParams.search = '';
302
+ const routeWithNoSearchParams = readRouteCacheEntry(now, (0, _cachekey.createCacheKey)(urlWithoutSearchParams.href, nextUrl));
303
+ if (routeWithNoSearchParams === null || routeWithNoSearchParams.status !== 2) {
304
+ // Bail out of constructing an optimistic route tree. This will result in
305
+ // a blocking, unprefetched navigation.
306
+ return null;
307
+ }
308
+ // Now we have a base route tree we can "patch" with our optimistic values.
309
+ // Optimistically assume that redirects for the requested pathname do
310
+ // not vary on the search string. Therefore, if the base route was
311
+ // redirected to a different search string, then the optimistic route
312
+ // should be redirected to the same search string. Otherwise, we use
313
+ // the requested search string.
314
+ const canonicalUrlForRouteWithNoSearchParams = new URL(routeWithNoSearchParams.canonicalUrl, requestedUrl.origin);
315
+ const optimisticCanonicalSearch = canonicalUrlForRouteWithNoSearchParams.search !== '' ? canonicalUrlForRouteWithNoSearchParams.search : requestedSearch;
316
+ // Similarly, optimistically assume that rewrites for the requested
317
+ // pathname do not vary on the search string. Therefore, if the base
318
+ // route was rewritten to a different search string, then the optimistic
319
+ // route should be rewritten to the same search string. Otherwise, we use
320
+ // the requested search string.
321
+ const optimisticRenderedSearch = routeWithNoSearchParams.renderedSearch !== '' ? routeWithNoSearchParams.renderedSearch : requestedSearch;
322
+ const optimisticUrl = new URL(routeWithNoSearchParams.canonicalUrl, location.origin);
323
+ optimisticUrl.search = optimisticCanonicalSearch;
324
+ const optimisticCanonicalUrl = (0, _createhreffromurl.createHrefFromUrl)(optimisticUrl);
325
+ const optimisticRouteTree = createOptimisticRouteTree(routeWithNoSearchParams.tree, optimisticRenderedSearch);
326
+ const optimisticMetadataTree = createOptimisticRouteTree(routeWithNoSearchParams.metadata, optimisticRenderedSearch);
327
+ // Clone the base route tree, and override the relevant fields with our
328
+ // optimistic values.
329
+ const optimisticEntry = {
330
+ canonicalUrl: optimisticCanonicalUrl,
331
+ status: 2,
332
+ // This isn't cloned because it's instance-specific
333
+ blockedTasks: null,
334
+ tree: optimisticRouteTree,
335
+ metadata: optimisticMetadataTree,
336
+ couldBeIntercepted: routeWithNoSearchParams.couldBeIntercepted,
337
+ isPPREnabled: routeWithNoSearchParams.isPPREnabled,
338
+ // Override the rendered search with the optimistic value.
339
+ renderedSearch: optimisticRenderedSearch,
340
+ // Map-related fields
341
+ ref: null,
342
+ size: 0,
343
+ staleAt: routeWithNoSearchParams.staleAt,
344
+ version: routeWithNoSearchParams.version
345
+ };
346
+ // Do not insert this entry into the cache. It only exists so we can
347
+ // perform the current navigation. Just return it to the caller.
348
+ return optimisticEntry;
349
+ }
350
+ function createOptimisticRouteTree(tree, newRenderedSearch) {
351
+ // Create a new route tree that identical to the original one except for
352
+ // the rendered search string, which is contained in the vary path.
353
+ let clonedSlots = null;
354
+ const originalSlots = tree.slots;
355
+ if (originalSlots !== null) {
356
+ clonedSlots = {};
357
+ for(const parallelRouteKey in originalSlots){
358
+ const childTree = originalSlots[parallelRouteKey];
359
+ clonedSlots[parallelRouteKey] = createOptimisticRouteTree(childTree, newRenderedSearch);
360
+ }
361
+ }
362
+ // We only need to clone the vary path if the route is a page.
363
+ if (tree.isPage) {
364
+ return {
365
+ requestKey: tree.requestKey,
366
+ segment: tree.segment,
367
+ varyPath: (0, _varypath.clonePageVaryPathWithNewSearchParams)(tree.varyPath, newRenderedSearch),
368
+ isPage: true,
369
+ slots: clonedSlots,
370
+ isRootLayout: tree.isRootLayout,
371
+ hasLoadingBoundary: tree.hasLoadingBoundary,
372
+ hasRuntimePrefetch: tree.hasRuntimePrefetch
373
+ };
374
+ }
375
+ return {
376
+ requestKey: tree.requestKey,
377
+ segment: tree.segment,
378
+ varyPath: tree.varyPath,
379
+ isPage: false,
380
+ slots: clonedSlots,
381
+ isRootLayout: tree.isRootLayout,
382
+ hasLoadingBoundary: tree.hasLoadingBoundary,
383
+ hasRuntimePrefetch: tree.hasRuntimePrefetch
384
+ };
385
+ }
386
+ function readOrCreateSegmentCacheEntry(now, fetchStrategy, route, tree) {
387
+ const existingEntry = readSegmentCacheEntry(now, tree.varyPath);
388
+ if (existingEntry !== null) {
389
+ return existingEntry;
390
+ }
391
+ // Create a pending entry and add it to the cache.
392
+ const varyPathForRequest = (0, _varypath.getSegmentVaryPathForRequest)(fetchStrategy, tree);
393
+ const pendingEntry = createDetachedSegmentCacheEntry(route.staleAt);
394
+ const isRevalidation = false;
395
+ (0, _cachemap.setInCacheMap)(segmentCacheMap, varyPathForRequest, pendingEntry, isRevalidation);
396
+ return pendingEntry;
397
+ }
398
+ function readOrCreateRevalidatingSegmentEntry(now, fetchStrategy, route, tree) {
399
+ // This function is called when we've already confirmed that a particular
400
+ // segment is cached, but we want to perform another request anyway in case it
401
+ // returns more complete and/or fresher data than we already have. The logic
402
+ // for deciding whether to replace the existing entry is handled elsewhere;
403
+ // this function just handles retrieving a cache entry that we can use to
404
+ // track the revalidation.
405
+ //
406
+ // The reason revalidations are stored in the cache is because we need to be
407
+ // able to dedupe multiple revalidation requests. The reason they have to be
408
+ // handled specially is because we shouldn't overwrite a "normal" entry if
409
+ // one exists at the same keypath. So, for each internal cache location, there
410
+ // is a special "revalidation" slot that is used solely for this purpose.
411
+ //
412
+ // You can think of it as if all the revalidation entries were stored in a
413
+ // separate cache map from the canonical entries, and then transfered to the
414
+ // canonical cache map once the request is complete — this isn't how it's
415
+ // actually implemented, since it's more efficient to store them in the same
416
+ // data structure as the normal entries, but that's how it's modeled
417
+ // conceptually.
418
+ // TODO: Once we implement Fallback behavior for params, where an entry is
419
+ // re-keyed based on response information, we'll need to account for the
420
+ // possibility that the keypath of the previous entry is more generic than
421
+ // the keypath of the revalidating entry. In other words, the server could
422
+ // return a less generic entry upon revalidation. For now, though, this isn't
423
+ // a concern because the keypath is based solely on the prefetch strategy,
424
+ // not on data contained in the response.
425
+ const existingEntry = readRevalidatingSegmentCacheEntry(now, tree.varyPath);
426
+ if (existingEntry !== null) {
427
+ return existingEntry;
428
+ }
429
+ // Create a pending entry and add it to the cache.
430
+ const varyPathForRequest = (0, _varypath.getSegmentVaryPathForRequest)(fetchStrategy, tree);
431
+ const pendingEntry = createDetachedSegmentCacheEntry(route.staleAt);
432
+ const isRevalidation = true;
433
+ (0, _cachemap.setInCacheMap)(segmentCacheMap, varyPathForRequest, pendingEntry, isRevalidation);
434
+ return pendingEntry;
435
+ }
436
+ function overwriteRevalidatingSegmentCacheEntry(fetchStrategy, route, tree) {
437
+ // This function is called when we've already decided to replace an existing
438
+ // revalidation entry. Create a new entry and write it into the cache,
439
+ // overwriting the previous value.
440
+ const varyPathForRequest = (0, _varypath.getSegmentVaryPathForRequest)(fetchStrategy, tree);
441
+ const pendingEntry = createDetachedSegmentCacheEntry(route.staleAt);
442
+ const isRevalidation = true;
443
+ (0, _cachemap.setInCacheMap)(segmentCacheMap, varyPathForRequest, pendingEntry, isRevalidation);
444
+ return pendingEntry;
445
+ }
446
+ function upsertSegmentEntry(now, varyPath, candidateEntry) {
447
+ // We have a new entry that has not yet been inserted into the cache. Before
448
+ // we do so, we need to confirm whether it takes precedence over the existing
449
+ // entry (if one exists).
450
+ // TODO: We should not upsert an entry if its key was invalidated in the time
451
+ // since the request was made. We can do that by passing the "owner" entry to
452
+ // this function and confirming it's the same as `existingEntry`.
453
+ if ((0, _cachemap.isValueExpired)(now, getCurrentCacheVersion(), candidateEntry)) {
454
+ // The entry is expired. We cannot upsert it.
455
+ return null;
456
+ }
457
+ const existingEntry = readSegmentCacheEntry(now, varyPath);
458
+ if (existingEntry !== null) {
459
+ // Don't replace a more specific segment with a less-specific one. A case where this
460
+ // might happen is if the existing segment was fetched via
461
+ // `<Link prefetch={true}>`.
462
+ if (// We fetched the new segment using a different, less specific fetch strategy
463
+ // than the segment we already have in the cache, so it can't have more content.
464
+ candidateEntry.fetchStrategy !== existingEntry.fetchStrategy && !canNewFetchStrategyProvideMoreContent(existingEntry.fetchStrategy, candidateEntry.fetchStrategy) || // The existing entry isn't partial, but the new one is.
465
+ // (TODO: can this be true if `candidateEntry.fetchStrategy >= existingEntry.fetchStrategy`?)
466
+ !existingEntry.isPartial && candidateEntry.isPartial) {
467
+ // We're going to leave revalidating entry in the cache so that it doesn't
468
+ // get revalidated again unnecessarily. Downgrade the Fulfilled entry to
469
+ // Rejected and null out the data so it can be garbage collected. We leave
470
+ // `staleAt` intact to prevent subsequent revalidation attempts only until
471
+ // the entry expires.
472
+ const rejectedEntry = candidateEntry;
473
+ rejectedEntry.status = 3;
474
+ rejectedEntry.loading = null;
475
+ rejectedEntry.rsc = null;
476
+ return null;
477
+ }
478
+ // Evict the existing entry from the cache.
479
+ (0, _cachemap.deleteFromCacheMap)(existingEntry);
480
+ }
481
+ const isRevalidation = false;
482
+ (0, _cachemap.setInCacheMap)(segmentCacheMap, varyPath, candidateEntry, isRevalidation);
483
+ return candidateEntry;
484
+ }
485
+ function createDetachedSegmentCacheEntry(staleAt) {
486
+ const emptyEntry = {
487
+ status: 0,
488
+ // Default to assuming the fetch strategy will be PPR. This will be updated
489
+ // when a fetch is actually initiated.
490
+ fetchStrategy: _types.FetchStrategy.PPR,
491
+ rsc: null,
492
+ loading: null,
493
+ isPartial: true,
494
+ promise: null,
495
+ // Map-related fields
496
+ ref: null,
497
+ size: 0,
498
+ staleAt,
499
+ version: 0
500
+ };
501
+ return emptyEntry;
502
+ }
503
+ function upgradeToPendingSegment(emptyEntry, fetchStrategy) {
504
+ const pendingEntry = emptyEntry;
505
+ pendingEntry.status = 1;
506
+ pendingEntry.fetchStrategy = fetchStrategy;
507
+ // Set the version here, since this is right before the request is initiated.
508
+ // The next time the global cache version is incremented, the entry will
509
+ // effectively be evicted. This happens before initiating the request, rather
510
+ // than when receiving the response, because it's guaranteed to happen
511
+ // before the data is read on the server.
512
+ pendingEntry.version = getCurrentCacheVersion();
513
+ return pendingEntry;
514
+ }
515
+ function pingBlockedTasks(entry) {
516
+ const blockedTasks = entry.blockedTasks;
517
+ if (blockedTasks !== null) {
518
+ for (const task of blockedTasks){
519
+ (0, _scheduler.pingPrefetchTask)(task);
520
+ }
521
+ entry.blockedTasks = null;
522
+ }
523
+ }
524
+ function fulfillRouteCacheEntry(entry, tree, metadataVaryPath, staleAt, couldBeIntercepted, canonicalUrl, renderedSearch, isPPREnabled) {
525
+ // The Head is not actually part of the route tree, but other than that, it's
526
+ // fetched and cached like a segment. Some functions expect a RouteTree
527
+ // object, so rather than fork the logic in all those places, we use this
528
+ // "fake" one.
529
+ const metadata = {
530
+ requestKey: _segmentvalueencoding.HEAD_REQUEST_KEY,
531
+ segment: _segmentvalueencoding.HEAD_REQUEST_KEY,
532
+ varyPath: metadataVaryPath,
533
+ // The metadata isn't really a "page" (though it isn't really a "segment"
534
+ // either) but for the purposes of how this field is used, it behaves like
535
+ // one. If this logic ever gets more complex we can change this to an enum.
536
+ isPage: true,
537
+ slots: null,
538
+ isRootLayout: false,
539
+ hasLoadingBoundary: _approutertypes.HasLoadingBoundary.SubtreeHasNoLoadingBoundary,
540
+ hasRuntimePrefetch: false
541
+ };
542
+ const fulfilledEntry = entry;
543
+ fulfilledEntry.status = 2;
544
+ fulfilledEntry.tree = tree;
545
+ fulfilledEntry.metadata = metadata;
546
+ fulfilledEntry.staleAt = staleAt;
547
+ fulfilledEntry.couldBeIntercepted = couldBeIntercepted;
548
+ fulfilledEntry.canonicalUrl = canonicalUrl;
549
+ fulfilledEntry.renderedSearch = renderedSearch;
550
+ fulfilledEntry.isPPREnabled = isPPREnabled;
551
+ pingBlockedTasks(entry);
552
+ return fulfilledEntry;
553
+ }
554
+ function fulfillSegmentCacheEntry(segmentCacheEntry, rsc, loading, staleAt, isPartial) {
555
+ const fulfilledEntry = segmentCacheEntry;
556
+ fulfilledEntry.status = 2;
557
+ fulfilledEntry.rsc = rsc;
558
+ fulfilledEntry.loading = loading;
559
+ fulfilledEntry.staleAt = staleAt;
560
+ fulfilledEntry.isPartial = isPartial;
561
+ // Resolve any listeners that were waiting for this data.
562
+ if (segmentCacheEntry.promise !== null) {
563
+ segmentCacheEntry.promise.resolve(fulfilledEntry);
564
+ // Free the promise for garbage collection.
565
+ fulfilledEntry.promise = null;
566
+ }
567
+ return fulfilledEntry;
568
+ }
569
+ function rejectRouteCacheEntry(entry, staleAt) {
570
+ const rejectedEntry = entry;
571
+ rejectedEntry.status = 3;
572
+ rejectedEntry.staleAt = staleAt;
573
+ pingBlockedTasks(entry);
574
+ }
575
+ function rejectSegmentCacheEntry(entry, staleAt) {
576
+ const rejectedEntry = entry;
577
+ rejectedEntry.status = 3;
578
+ rejectedEntry.staleAt = staleAt;
579
+ if (entry.promise !== null) {
580
+ // NOTE: We don't currently propagate the reason the prefetch was canceled
581
+ // but we could by accepting a `reason` argument.
582
+ entry.promise.resolve(null);
583
+ entry.promise = null;
584
+ }
585
+ }
586
+ function convertRootTreePrefetchToRouteTree(rootTree, renderedPathname, renderedSearch, acc) {
587
+ // Remove trailing and leading slashes
588
+ const pathnameParts = renderedPathname.split('/').filter((p)=>p !== '');
589
+ const index = 0;
590
+ const rootSegment = _segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY;
591
+ return convertTreePrefetchToRouteTree(rootTree.tree, rootSegment, null, _segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY, pathnameParts, index, renderedSearch, acc);
592
+ }
593
+ function convertTreePrefetchToRouteTree(prefetch, segment, partialVaryPath, requestKey, pathnameParts, pathnamePartsIndex, renderedSearch, acc) {
594
+ // Converts the route tree sent by the server into the format used by the
595
+ // cache. The cached version of the tree includes additional fields, such as a
596
+ // cache key for each segment. Since this is frequently accessed, we compute
597
+ // it once instead of on every access. This same cache key is also used to
598
+ // request the segment from the server.
599
+ let slots = null;
600
+ let isPage;
601
+ let varyPath;
602
+ const prefetchSlots = prefetch.slots;
603
+ if (prefetchSlots !== null) {
604
+ isPage = false;
605
+ varyPath = (0, _varypath.finalizeLayoutVaryPath)(requestKey, partialVaryPath);
606
+ slots = {};
607
+ for(let parallelRouteKey in prefetchSlots){
608
+ const childPrefetch = prefetchSlots[parallelRouteKey];
609
+ const childParamName = childPrefetch.name;
610
+ const childParamType = childPrefetch.paramType;
611
+ const childServerSentParamKey = childPrefetch.paramKey;
612
+ let childDoesAppearInURL;
613
+ let childSegment;
614
+ let childPartialVaryPath;
615
+ if (childParamType !== null) {
616
+ // This segment is parameterized. Get the param from the pathname.
617
+ const childParamValue = (0, _routeparams.parseDynamicParamFromURLPart)(childParamType, pathnameParts, pathnamePartsIndex);
618
+ // Assign a cache key to the segment, based on the param value. In the
619
+ // pre-Segment Cache implementation, the server computes this and sends
620
+ // it in the body of the response. In the Segment Cache implementation,
621
+ // the server sends an empty string and we fill it in here.
622
+ // TODO: We're intentionally not adding the search param to page
623
+ // segments here; it's tracked separately and added back during a read.
624
+ // This would clearer if we waited to construct the segment until it's
625
+ // read from the cache, since that's effectively what we're
626
+ // doing anyway.
627
+ const childParamKey = // The server omits this field from the prefetch response when
628
+ // cacheComponents is enabled.
629
+ childServerSentParamKey !== null ? childServerSentParamKey : (0, _routeparams.getCacheKeyForDynamicParam)(childParamValue, '');
630
+ childPartialVaryPath = (0, _varypath.appendLayoutVaryPath)(partialVaryPath, childParamKey);
631
+ childSegment = [
632
+ childParamName,
633
+ childParamKey,
634
+ childParamType
635
+ ];
636
+ childDoesAppearInURL = true;
637
+ } else {
638
+ // This segment does not have a param. Inherit the partial vary path of
639
+ // the parent.
640
+ childPartialVaryPath = partialVaryPath;
641
+ childSegment = childParamName;
642
+ childDoesAppearInURL = (0, _routeparams.doesStaticSegmentAppearInURL)(childParamName);
643
+ }
644
+ // Only increment the index if the segment appears in the URL. If it's a
645
+ // "virtual" segment, like a route group, it remains the same.
646
+ const childPathnamePartsIndex = childDoesAppearInURL ? pathnamePartsIndex + 1 : pathnamePartsIndex;
647
+ const childRequestKeyPart = (0, _segmentvalueencoding.createSegmentRequestKeyPart)(childSegment);
648
+ const childRequestKey = (0, _segmentvalueencoding.appendSegmentRequestKeyPart)(requestKey, parallelRouteKey, childRequestKeyPart);
649
+ slots[parallelRouteKey] = convertTreePrefetchToRouteTree(childPrefetch, childSegment, childPartialVaryPath, childRequestKey, pathnameParts, childPathnamePartsIndex, renderedSearch, acc);
650
+ }
651
+ } else {
652
+ if (requestKey.endsWith(_segment.PAGE_SEGMENT_KEY)) {
653
+ // This is a page segment.
654
+ isPage = true;
655
+ varyPath = (0, _varypath.finalizePageVaryPath)(requestKey, renderedSearch, partialVaryPath);
656
+ // The metadata "segment" is not part the route tree, but it has the same
657
+ // conceptual params as a page segment. Write the vary path into the
658
+ // accumulator object. If there are multiple parallel pages, we use the
659
+ // first one. Which page we choose is arbitrary as long as it's
660
+ // consistently the same one every time every time. See
661
+ // finalizeMetadataVaryPath for more details.
662
+ if (acc.metadataVaryPath === null) {
663
+ acc.metadataVaryPath = (0, _varypath.finalizeMetadataVaryPath)(requestKey, renderedSearch, partialVaryPath);
664
+ }
665
+ } else {
666
+ // This is a layout segment.
667
+ isPage = false;
668
+ varyPath = (0, _varypath.finalizeLayoutVaryPath)(requestKey, partialVaryPath);
669
+ }
670
+ }
671
+ return {
672
+ requestKey,
673
+ segment,
674
+ varyPath,
675
+ // TODO: Cheating the type system here a bit because TypeScript can't tell
676
+ // that the type of isPage and varyPath are consistent. The fix would be to
677
+ // create separate constructors and call the appropriate one from each of
678
+ // the branches above. Just seems a bit overkill only for one field so I'll
679
+ // leave it as-is for now. If isPage were wrong it would break the behavior
680
+ // and we'd catch it quickly, anyway.
681
+ isPage: isPage,
682
+ slots,
683
+ isRootLayout: prefetch.isRootLayout,
684
+ // This field is only relevant to dynamic routes. For a PPR/static route,
685
+ // there's always some partial loading state we can fetch.
686
+ hasLoadingBoundary: _approutertypes.HasLoadingBoundary.SegmentHasLoadingBoundary,
687
+ hasRuntimePrefetch: prefetch.hasRuntimePrefetch
688
+ };
689
+ }
690
+ function convertRootFlightRouterStateToRouteTree(flightRouterState, renderedSearch, acc) {
691
+ return convertFlightRouterStateToRouteTree(flightRouterState, _segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY, null, renderedSearch, acc);
692
+ }
693
+ function convertFlightRouterStateToRouteTree(flightRouterState, requestKey, parentPartialVaryPath, renderedSearch, acc) {
694
+ const originalSegment = flightRouterState[0];
695
+ let segment;
696
+ let partialVaryPath;
697
+ let isPage;
698
+ let varyPath;
699
+ if (Array.isArray(originalSegment)) {
700
+ isPage = false;
701
+ const paramCacheKey = originalSegment[1];
702
+ partialVaryPath = (0, _varypath.appendLayoutVaryPath)(parentPartialVaryPath, paramCacheKey);
703
+ varyPath = (0, _varypath.finalizeLayoutVaryPath)(requestKey, partialVaryPath);
704
+ segment = originalSegment;
705
+ } else {
706
+ // This segment does not have a param. Inherit the partial vary path of
707
+ // the parent.
708
+ partialVaryPath = parentPartialVaryPath;
709
+ if (requestKey.endsWith(_segment.PAGE_SEGMENT_KEY)) {
710
+ // This is a page segment.
711
+ isPage = true;
712
+ // The navigation implementation expects the search params to be included
713
+ // in the segment. However, in the case of a static response, the search
714
+ // params are omitted. So the client needs to add them back in when reading
715
+ // from the Segment Cache.
716
+ //
717
+ // For consistency, we'll do this for dynamic responses, too.
718
+ //
719
+ // TODO: We should move search params out of FlightRouterState and handle
720
+ // them entirely on the client, similar to our plan for dynamic params.
721
+ segment = _segment.PAGE_SEGMENT_KEY;
722
+ varyPath = (0, _varypath.finalizePageVaryPath)(requestKey, renderedSearch, partialVaryPath);
723
+ // The metadata "segment" is not part the route tree, but it has the same
724
+ // conceptual params as a page segment. Write the vary path into the
725
+ // accumulator object. If there are multiple parallel pages, we use the
726
+ // first one. Which page we choose is arbitrary as long as it's
727
+ // consistently the same one every time every time. See
728
+ // finalizeMetadataVaryPath for more details.
729
+ if (acc.metadataVaryPath === null) {
730
+ acc.metadataVaryPath = (0, _varypath.finalizeMetadataVaryPath)(requestKey, renderedSearch, partialVaryPath);
731
+ }
732
+ } else {
733
+ // This is a layout segment.
734
+ isPage = false;
735
+ segment = originalSegment;
736
+ varyPath = (0, _varypath.finalizeLayoutVaryPath)(requestKey, partialVaryPath);
737
+ }
738
+ }
739
+ let slots = null;
740
+ const parallelRoutes = flightRouterState[1];
741
+ for(let parallelRouteKey in parallelRoutes){
742
+ const childRouterState = parallelRoutes[parallelRouteKey];
743
+ const childSegment = childRouterState[0];
744
+ // TODO: Eventually, the param values will not be included in the response
745
+ // from the server. We'll instead fill them in on the client by parsing
746
+ // the URL. This is where we'll do that.
747
+ const childRequestKeyPart = (0, _segmentvalueencoding.createSegmentRequestKeyPart)(childSegment);
748
+ const childRequestKey = (0, _segmentvalueencoding.appendSegmentRequestKeyPart)(requestKey, parallelRouteKey, childRequestKeyPart);
749
+ const childTree = convertFlightRouterStateToRouteTree(childRouterState, childRequestKey, partialVaryPath, renderedSearch, acc);
750
+ if (slots === null) {
751
+ slots = {
752
+ [parallelRouteKey]: childTree
753
+ };
754
+ } else {
755
+ slots[parallelRouteKey] = childTree;
756
+ }
757
+ }
758
+ return {
759
+ requestKey,
760
+ segment,
761
+ varyPath,
762
+ // TODO: Cheating the type system here a bit because TypeScript can't tell
763
+ // that the type of isPage and varyPath are consistent. The fix would be to
764
+ // create separate constructors and call the appropriate one from each of
765
+ // the branches above. Just seems a bit overkill only for one field so I'll
766
+ // leave it as-is for now. If isPage were wrong it would break the behavior
767
+ // and we'd catch it quickly, anyway.
768
+ isPage: isPage,
769
+ slots,
770
+ isRootLayout: flightRouterState[4] === true,
771
+ hasLoadingBoundary: flightRouterState[5] !== undefined ? flightRouterState[5] : _approutertypes.HasLoadingBoundary.SubtreeHasNoLoadingBoundary,
772
+ // Non-static tree responses are only used by apps that haven't adopted
773
+ // Cache Components. So this is always false.
774
+ hasRuntimePrefetch: false
775
+ };
776
+ }
777
+ function convertRouteTreeToFlightRouterState(routeTree) {
778
+ const parallelRoutes = {};
779
+ if (routeTree.slots !== null) {
780
+ for(const parallelRouteKey in routeTree.slots){
781
+ parallelRoutes[parallelRouteKey] = convertRouteTreeToFlightRouterState(routeTree.slots[parallelRouteKey]);
782
+ }
783
+ }
784
+ const flightRouterState = [
785
+ routeTree.segment,
786
+ parallelRoutes,
787
+ null,
788
+ null,
789
+ routeTree.isRootLayout
790
+ ];
791
+ return flightRouterState;
792
+ }
793
+ async function fetchRouteOnCacheMiss(entry, task, key) {
794
+ // This function is allowed to use async/await because it contains the actual
795
+ // fetch that gets issued on a cache miss. Notice it writes the result to the
796
+ // cache entry directly, rather than return data that is then written by
797
+ // the caller.
798
+ const pathname = key.pathname;
799
+ const search = key.search;
800
+ const nextUrl = key.nextUrl;
801
+ const segmentPath = '/_tree';
802
+ const headers = {
803
+ [_approuterheaders.RSC_HEADER]: '1',
804
+ [_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER]: '1',
805
+ [_approuterheaders.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]: segmentPath
806
+ };
807
+ if (nextUrl !== null) {
808
+ headers[_approuterheaders.NEXT_URL] = nextUrl;
809
+ }
810
+ try {
811
+ const url = new URL(pathname + search, location.origin);
812
+ let response;
813
+ let urlAfterRedirects;
814
+ if (isOutputExportMode) {
815
+ // In output: "export" mode, we can't use headers to request a particular
816
+ // segment. Instead, we encode the extra request information into the URL.
817
+ // This is not part of the "public" interface of the app; it's an internal
818
+ // Next.js implementation detail that the app developer should not need to
819
+ // concern themselves with.
820
+ //
821
+ // For example, to request a segment:
822
+ //
823
+ // Path passed to <Link>: /path/to/page
824
+ // Path passed to fetch: /path/to/page/__next-segments/_tree
825
+ //
826
+ // (This is not the exact protocol, just an illustration.)
827
+ //
828
+ // Before we do that, though, we need to account for redirects. Even in
829
+ // output: "export" mode, a proxy might redirect the page to a different
830
+ // location, but we shouldn't assume or expect that they also redirect all
831
+ // the segment files, too.
832
+ //
833
+ // To check whether the page is redirected, we perform a range request of
834
+ // the first N bytes of the HTML document. The canonical URL is determined
835
+ // from the response.
836
+ //
837
+ // Then we can use the canonical URL to request the route tree.
838
+ //
839
+ // NOTE: We could embed the route tree into the HTML document, to avoid
840
+ // a second request. We're not doing that currently because it would make
841
+ // the HTML document larger and affect normal page loads.
842
+ const htmlResponse = await fetch(url, {
843
+ headers: {
844
+ Range: _outputexportprefetchencoding.DOC_PREFETCH_RANGE_HEADER_VALUE
845
+ }
846
+ });
847
+ const partialHtml = await htmlResponse.text();
848
+ if (!(0, _outputexportprefetchencoding.doesExportedHtmlMatchBuildId)(partialHtml, (0, _appbuildid.getAppBuildId)())) {
849
+ // The target page is not part of this app, or it belongs to a
850
+ // different build.
851
+ rejectRouteCacheEntry(entry, Date.now() + 10 * 1000);
852
+ return null;
853
+ }
854
+ urlAfterRedirects = htmlResponse.redirected ? new URL(htmlResponse.url) : url;
855
+ response = await fetchPrefetchResponse(addSegmentPathToUrlInOutputExportMode(urlAfterRedirects, segmentPath), headers);
856
+ } else {
857
+ // "Server" mode. We can use request headers instead of the pathname.
858
+ // TODO: The eventual plan is to get rid of our custom request headers and
859
+ // encode everything into the URL, using a similar strategy to the
860
+ // "output: export" block above.
861
+ response = await fetchPrefetchResponse(url, headers);
862
+ urlAfterRedirects = response !== null && response.redirected ? new URL(response.url) : url;
863
+ }
864
+ if (!response || !response.ok || // 204 is a Cache miss. Though theoretically this shouldn't happen when
865
+ // PPR is enabled, because we always respond to route tree requests, even
866
+ // if it needs to be blockingly generated on demand.
867
+ response.status === 204 || !response.body) {
868
+ // Server responded with an error, or with a miss. We should still cache
869
+ // the response, but we can try again after 10 seconds.
870
+ rejectRouteCacheEntry(entry, Date.now() + 10 * 1000);
871
+ return null;
872
+ }
873
+ // TODO: The canonical URL is the href without the origin. I think
874
+ // historically the reason for this is because the initial canonical URL
875
+ // gets passed as a prop to the top-level React component, which means it
876
+ // needs to be computed during SSR. If it were to include the origin, it
877
+ // would need to always be same as location.origin on the client, to prevent
878
+ // a hydration mismatch. To sidestep this complexity, we omit the origin.
879
+ //
880
+ // However, since this is neither a native URL object nor a fully qualified
881
+ // URL string, we need to be careful about how we use it. To prevent subtle
882
+ // mistakes, we should create a special type for it, instead of just string.
883
+ // Or, we should just use a (readonly) URL object instead. The type of the
884
+ // prop that we pass to seed the initial state does not need to be the same
885
+ // type as the state itself.
886
+ const canonicalUrl = (0, _createhreffromurl.createHrefFromUrl)(urlAfterRedirects);
887
+ // Check whether the response varies based on the Next-Url header.
888
+ const varyHeader = response.headers.get('vary');
889
+ const couldBeIntercepted = varyHeader !== null && varyHeader.includes(_approuterheaders.NEXT_URL);
890
+ // Track when the network connection closes.
891
+ const closed = (0, _promisewithresolvers.createPromiseWithResolvers)();
892
+ // This checks whether the response was served from the per-segment cache,
893
+ // rather than the old prefetching flow. If it fails, it implies that PPR
894
+ // is disabled on this route.
895
+ const routeIsPPREnabled = response.headers.get(_approuterheaders.NEXT_DID_POSTPONE_HEADER) === '2' || // In output: "export" mode, we can't rely on response headers. But if we
896
+ // receive a well-formed response, we can assume it's a static response,
897
+ // because all data is static in this mode.
898
+ isOutputExportMode;
899
+ if (routeIsPPREnabled) {
900
+ const prefetchStream = createPrefetchResponseStream(response.body, closed.resolve, function onResponseSizeUpdate(size) {
901
+ (0, _cachemap.setSizeInCacheMap)(entry, size);
902
+ });
903
+ const serverData = await (0, _fetchserverresponse.createFromNextReadableStream)(prefetchStream, headers);
904
+ if (serverData.buildId !== (0, _appbuildid.getAppBuildId)()) {
905
+ // The server build does not match the client. Treat as a 404. During
906
+ // an actual navigation, the router will trigger an MPA navigation.
907
+ // TODO: Consider moving the build ID to a response header so we can check
908
+ // it before decoding the response, and so there's one way of checking
909
+ // across all response types.
910
+ // TODO: We should cache the fact that this is an MPA navigation.
911
+ rejectRouteCacheEntry(entry, Date.now() + 10 * 1000);
912
+ return null;
913
+ }
914
+ // Get the params that were used to render the target page. These may
915
+ // be different from the params in the request URL, if the page
916
+ // was rewritten.
917
+ const renderedPathname = (0, _routeparams.getRenderedPathname)(response);
918
+ const renderedSearch = (0, _routeparams.getRenderedSearch)(response);
919
+ // Convert the server-sent data into the RouteTree format used by the
920
+ // client cache.
921
+ //
922
+ // During this traversal, we accumulate additional data into this
923
+ // "accumulator" object.
924
+ const acc = {
925
+ metadataVaryPath: null
926
+ };
927
+ const routeTree = convertRootTreePrefetchToRouteTree(serverData, renderedPathname, renderedSearch, acc);
928
+ const metadataVaryPath = acc.metadataVaryPath;
929
+ if (metadataVaryPath === null) {
930
+ rejectRouteCacheEntry(entry, Date.now() + 10 * 1000);
931
+ return null;
932
+ }
933
+ const staleTimeMs = getStaleTimeMs(serverData.staleTime);
934
+ fulfillRouteCacheEntry(entry, routeTree, metadataVaryPath, Date.now() + staleTimeMs, couldBeIntercepted, canonicalUrl, renderedSearch, routeIsPPREnabled);
935
+ } else {
936
+ // PPR is not enabled for this route. The server responds with a
937
+ // different format (FlightRouterState) that we need to convert.
938
+ // TODO: We will unify the responses eventually. I'm keeping the types
939
+ // separate for now because FlightRouterState has so many
940
+ // overloaded concerns.
941
+ const prefetchStream = createPrefetchResponseStream(response.body, closed.resolve, function onResponseSizeUpdate(size) {
942
+ (0, _cachemap.setSizeInCacheMap)(entry, size);
943
+ });
944
+ const serverData = await (0, _fetchserverresponse.createFromNextReadableStream)(prefetchStream, headers);
945
+ if (serverData.b !== (0, _appbuildid.getAppBuildId)()) {
946
+ // The server build does not match the client. Treat as a 404. During
947
+ // an actual navigation, the router will trigger an MPA navigation.
948
+ // TODO: Consider moving the build ID to a response header so we can check
949
+ // it before decoding the response, and so there's one way of checking
950
+ // across all response types.
951
+ // TODO: We should cache the fact that this is an MPA navigation.
952
+ rejectRouteCacheEntry(entry, Date.now() + 10 * 1000);
953
+ return null;
954
+ }
955
+ writeDynamicTreeResponseIntoCache(Date.now(), task, // The non-PPR response format is what we'd get if we prefetched these segments
956
+ // using the LoadingBoundary fetch strategy, so mark their cache entries accordingly.
957
+ _types.FetchStrategy.LoadingBoundary, response, serverData, entry, couldBeIntercepted, canonicalUrl, routeIsPPREnabled);
958
+ }
959
+ if (!couldBeIntercepted) {
960
+ // This route will never be intercepted. So we can use this entry for all
961
+ // requests to this route, regardless of the Next-Url header. This works
962
+ // because when reading the cache we always check for a valid
963
+ // non-intercepted entry first.
964
+ // Re-key the entry. The `set` implementation handles removing it from
965
+ // its previous position in the cache. We don't need to do anything to
966
+ // update the LRU, because the entry is already in it.
967
+ // TODO: Treat this as an upsert — should check if an entry already
968
+ // exists at the new keypath, and if so, whether we should keep that
969
+ // one instead.
970
+ const fulfilledVaryPath = (0, _varypath.getFulfilledRouteVaryPath)(pathname, search, nextUrl, couldBeIntercepted);
971
+ const isRevalidation = false;
972
+ (0, _cachemap.setInCacheMap)(routeCacheMap, fulfilledVaryPath, entry, isRevalidation);
973
+ }
974
+ // Return a promise that resolves when the network connection closes, so
975
+ // the scheduler can track the number of concurrent network connections.
976
+ return {
977
+ value: null,
978
+ closed: closed.promise
979
+ };
980
+ } catch (error) {
981
+ // Either the connection itself failed, or something bad happened while
982
+ // decoding the response.
983
+ rejectRouteCacheEntry(entry, Date.now() + 10 * 1000);
984
+ return null;
985
+ }
986
+ }
987
+ async function fetchSegmentOnCacheMiss(route, segmentCacheEntry, routeKey, tree) {
988
+ // This function is allowed to use async/await because it contains the actual
989
+ // fetch that gets issued on a cache miss. Notice it writes the result to the
990
+ // cache entry directly, rather than return data that is then written by
991
+ // the caller.
992
+ //
993
+ // Segment fetches are non-blocking so we don't need to ping the scheduler
994
+ // on completion.
995
+ // Use the canonical URL to request the segment, not the original URL. These
996
+ // are usually the same, but the canonical URL will be different if the route
997
+ // tree response was redirected. To avoid an extra waterfall on every segment
998
+ // request, we pass the redirected URL instead of the original one.
999
+ const url = new URL(route.canonicalUrl, location.origin);
1000
+ const nextUrl = routeKey.nextUrl;
1001
+ const requestKey = tree.requestKey;
1002
+ const normalizedRequestKey = requestKey === _segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY ? // handling of these requests, we encode the root segment path as
1003
+ // `_index` instead of as an empty string. This should be treated as
1004
+ // an implementation detail and not as a stable part of the protocol.
1005
+ // It just needs to match the equivalent logic that happens when
1006
+ // prerendering the responses. It should not leak outside of Next.js.
1007
+ '/_index' : requestKey;
1008
+ const headers = {
1009
+ [_approuterheaders.RSC_HEADER]: '1',
1010
+ [_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER]: '1',
1011
+ [_approuterheaders.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]: normalizedRequestKey
1012
+ };
1013
+ if (nextUrl !== null) {
1014
+ headers[_approuterheaders.NEXT_URL] = nextUrl;
1015
+ }
1016
+ const requestUrl = isOutputExportMode ? addSegmentPathToUrlInOutputExportMode(url, normalizedRequestKey) : url;
1017
+ try {
1018
+ const response = await fetchPrefetchResponse(requestUrl, headers);
1019
+ if (!response || !response.ok || response.status === 204 || // Cache miss
1020
+ // This checks whether the response was served from the per-segment cache,
1021
+ // rather than the old prefetching flow. If it fails, it implies that PPR
1022
+ // is disabled on this route. Theoretically this should never happen
1023
+ // because we only issue requests for segments once we've verified that
1024
+ // the route supports PPR.
1025
+ response.headers.get(_approuterheaders.NEXT_DID_POSTPONE_HEADER) !== '2' && // In output: "export" mode, we can't rely on response headers. But if
1026
+ // we receive a well-formed response, we can assume it's a static
1027
+ // response, because all data is static in this mode.
1028
+ !isOutputExportMode || !response.body) {
1029
+ // Server responded with an error, or with a miss. We should still cache
1030
+ // the response, but we can try again after 10 seconds.
1031
+ rejectSegmentCacheEntry(segmentCacheEntry, Date.now() + 10 * 1000);
1032
+ return null;
1033
+ }
1034
+ // Track when the network connection closes.
1035
+ const closed = (0, _promisewithresolvers.createPromiseWithResolvers)();
1036
+ // Wrap the original stream in a new stream that never closes. That way the
1037
+ // Flight client doesn't error if there's a hanging promise.
1038
+ const prefetchStream = createPrefetchResponseStream(response.body, closed.resolve, function onResponseSizeUpdate(size) {
1039
+ (0, _cachemap.setSizeInCacheMap)(segmentCacheEntry, size);
1040
+ });
1041
+ const serverData = await (0, _fetchserverresponse.createFromNextReadableStream)(prefetchStream, headers);
1042
+ if (serverData.buildId !== (0, _appbuildid.getAppBuildId)()) {
1043
+ // The server build does not match the client. Treat as a 404. During
1044
+ // an actual navigation, the router will trigger an MPA navigation.
1045
+ // TODO: Consider moving the build ID to a response header so we can check
1046
+ // it before decoding the response, and so there's one way of checking
1047
+ // across all response types.
1048
+ rejectSegmentCacheEntry(segmentCacheEntry, Date.now() + 10 * 1000);
1049
+ return null;
1050
+ }
1051
+ return {
1052
+ value: fulfillSegmentCacheEntry(segmentCacheEntry, serverData.rsc, serverData.loading, // TODO: The server does not currently provide per-segment stale time.
1053
+ // So we use the stale time of the route.
1054
+ route.staleAt, serverData.isPartial),
1055
+ // Return a promise that resolves when the network connection closes, so
1056
+ // the scheduler can track the number of concurrent network connections.
1057
+ closed: closed.promise
1058
+ };
1059
+ } catch (error) {
1060
+ // Either the connection itself failed, or something bad happened while
1061
+ // decoding the response.
1062
+ rejectSegmentCacheEntry(segmentCacheEntry, Date.now() + 10 * 1000);
1063
+ return null;
1064
+ }
1065
+ }
1066
+ async function fetchSegmentPrefetchesUsingDynamicRequest(task, route, fetchStrategy, dynamicRequestTree, spawnedEntries) {
1067
+ const key = task.key;
1068
+ const url = new URL(route.canonicalUrl, location.origin);
1069
+ const nextUrl = key.nextUrl;
1070
+ if (spawnedEntries.size === 1 && spawnedEntries.has(route.metadata.requestKey)) {
1071
+ // The only thing pending is the head. Instruct the server to
1072
+ // skip over everything else.
1073
+ dynamicRequestTree = MetadataOnlyRequestTree;
1074
+ }
1075
+ const headers = {
1076
+ [_approuterheaders.RSC_HEADER]: '1',
1077
+ [_approuterheaders.NEXT_ROUTER_STATE_TREE_HEADER]: (0, _flightdatahelpers.prepareFlightRouterStateForRequest)(dynamicRequestTree)
1078
+ };
1079
+ if (nextUrl !== null) {
1080
+ headers[_approuterheaders.NEXT_URL] = nextUrl;
1081
+ }
1082
+ switch(fetchStrategy){
1083
+ case _types.FetchStrategy.Full:
1084
+ {
1085
+ break;
1086
+ }
1087
+ case _types.FetchStrategy.PPRRuntime:
1088
+ {
1089
+ headers[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER] = '2';
1090
+ break;
1091
+ }
1092
+ case _types.FetchStrategy.LoadingBoundary:
1093
+ {
1094
+ headers[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER] = '1';
1095
+ break;
1096
+ }
1097
+ default:
1098
+ {
1099
+ fetchStrategy;
1100
+ }
1101
+ }
1102
+ try {
1103
+ const response = await fetchPrefetchResponse(url, headers);
1104
+ if (!response || !response.ok || !response.body) {
1105
+ // Server responded with an error, or with a miss. We should still cache
1106
+ // the response, but we can try again after 10 seconds.
1107
+ rejectSegmentEntriesIfStillPending(spawnedEntries, Date.now() + 10 * 1000);
1108
+ return null;
1109
+ }
1110
+ const renderedSearch = (0, _routeparams.getRenderedSearch)(response);
1111
+ if (renderedSearch !== route.renderedSearch) {
1112
+ // The search params that were used to render the target page are
1113
+ // different from the search params in the request URL. This only happens
1114
+ // when there's a dynamic rewrite in between the tree prefetch and the
1115
+ // data prefetch.
1116
+ // TODO: For now, since this is an edge case, we reject the prefetch, but
1117
+ // the proper way to handle this is to evict the stale route tree entry
1118
+ // then fill the cache with the new response.
1119
+ rejectSegmentEntriesIfStillPending(spawnedEntries, Date.now() + 10 * 1000);
1120
+ return null;
1121
+ }
1122
+ // Track when the network connection closes.
1123
+ const closed = (0, _promisewithresolvers.createPromiseWithResolvers)();
1124
+ let fulfilledEntries = null;
1125
+ const prefetchStream = createPrefetchResponseStream(response.body, closed.resolve, function onResponseSizeUpdate(totalBytesReceivedSoFar) {
1126
+ // When processing a dynamic response, we don't know how large each
1127
+ // individual segment is, so approximate by assiging each segment
1128
+ // the average of the total response size.
1129
+ if (fulfilledEntries === null) {
1130
+ // Haven't received enough data yet to know which segments
1131
+ // were included.
1132
+ return;
1133
+ }
1134
+ const averageSize = totalBytesReceivedSoFar / fulfilledEntries.length;
1135
+ for (const entry of fulfilledEntries){
1136
+ (0, _cachemap.setSizeInCacheMap)(entry, averageSize);
1137
+ }
1138
+ });
1139
+ const serverData = await (0, _fetchserverresponse.createFromNextReadableStream)(prefetchStream, headers);
1140
+ const isResponsePartial = fetchStrategy === _types.FetchStrategy.PPRRuntime ? serverData.rp?.[0] === true : // (even if we did set the prefetch header, we only use this codepath for non-PPR-enabled routes)
1141
+ false;
1142
+ // Aside from writing the data into the cache, this function also returns
1143
+ // the entries that were fulfilled, so we can streamingly update their sizes
1144
+ // in the LRU as more data comes in.
1145
+ fulfilledEntries = writeDynamicRenderResponseIntoCache(Date.now(), task, fetchStrategy, response, serverData, isResponsePartial, route, spawnedEntries);
1146
+ // Return a promise that resolves when the network connection closes, so
1147
+ // the scheduler can track the number of concurrent network connections.
1148
+ return {
1149
+ value: null,
1150
+ closed: closed.promise
1151
+ };
1152
+ } catch (error) {
1153
+ rejectSegmentEntriesIfStillPending(spawnedEntries, Date.now() + 10 * 1000);
1154
+ return null;
1155
+ }
1156
+ }
1157
+ function writeDynamicTreeResponseIntoCache(now, task, fetchStrategy, response, serverData, entry, couldBeIntercepted, canonicalUrl, routeIsPPREnabled) {
1158
+ // Get the URL that was used to render the target page. This may be different
1159
+ // from the URL in the request URL, if the page was rewritten.
1160
+ const renderedSearch = (0, _routeparams.getRenderedSearch)(response);
1161
+ const normalizedFlightDataResult = (0, _flightdatahelpers.normalizeFlightData)(serverData.f);
1162
+ if (// A string result means navigating to this route will result in an
1163
+ // MPA navigation.
1164
+ typeof normalizedFlightDataResult === 'string' || normalizedFlightDataResult.length !== 1) {
1165
+ rejectRouteCacheEntry(entry, now + 10 * 1000);
1166
+ return;
1167
+ }
1168
+ const flightData = normalizedFlightDataResult[0];
1169
+ if (!flightData.isRootRender) {
1170
+ // Unexpected response format.
1171
+ rejectRouteCacheEntry(entry, now + 10 * 1000);
1172
+ return;
1173
+ }
1174
+ const flightRouterState = flightData.tree;
1175
+ // For runtime prefetches, stale time is in the payload at rp[1].
1176
+ // For other responses, fall back to the header.
1177
+ const staleTimeSeconds = typeof serverData.rp?.[1] === 'number' ? serverData.rp[1] : parseInt(response.headers.get(_approuterheaders.NEXT_ROUTER_STALE_TIME_HEADER) ?? '', 10);
1178
+ const staleTimeMs = !isNaN(staleTimeSeconds) ? getStaleTimeMs(staleTimeSeconds) : _navigatereducer.STATIC_STALETIME_MS;
1179
+ // If the response contains dynamic holes, then we must conservatively assume
1180
+ // that any individual segment might contain dynamic holes, and also the
1181
+ // head. If it did not contain dynamic holes, then we can assume every segment
1182
+ // and the head is completely static.
1183
+ const isResponsePartial = response.headers.get(_approuterheaders.NEXT_DID_POSTPONE_HEADER) === '1';
1184
+ // Convert the server-sent data into the RouteTree format used by the
1185
+ // client cache.
1186
+ //
1187
+ // During this traversal, we accumulate additional data into this
1188
+ // "accumulator" object.
1189
+ const acc = {
1190
+ metadataVaryPath: null
1191
+ };
1192
+ const routeTree = convertRootFlightRouterStateToRouteTree(flightRouterState, renderedSearch, acc);
1193
+ const metadataVaryPath = acc.metadataVaryPath;
1194
+ if (metadataVaryPath === null) {
1195
+ rejectRouteCacheEntry(entry, now + 10 * 1000);
1196
+ return;
1197
+ }
1198
+ const fulfilledEntry = fulfillRouteCacheEntry(entry, routeTree, metadataVaryPath, now + staleTimeMs, couldBeIntercepted, canonicalUrl, renderedSearch, routeIsPPREnabled);
1199
+ // If the server sent segment data as part of the response, we should write
1200
+ // it into the cache to prevent a second, redundant prefetch request.
1201
+ //
1202
+ // TODO: When `clientSegmentCache` is enabled, the server does not include
1203
+ // segment data when responding to a route tree prefetch request. However,
1204
+ // when `clientSegmentCache` is set to "client-only", and PPR is enabled (or
1205
+ // the page is fully static), the normal check is bypassed and the server
1206
+ // responds with the full page. This is a temporary situation until we can
1207
+ // remove the "client-only" option. Then, we can delete this function call.
1208
+ writeDynamicRenderResponseIntoCache(now, task, fetchStrategy, response, serverData, isResponsePartial, fulfilledEntry, null);
1209
+ }
1210
+ function rejectSegmentEntriesIfStillPending(entries, staleAt) {
1211
+ const fulfilledEntries = [];
1212
+ for (const entry of entries.values()){
1213
+ if (entry.status === 1) {
1214
+ rejectSegmentCacheEntry(entry, staleAt);
1215
+ } else if (entry.status === 2) {
1216
+ fulfilledEntries.push(entry);
1217
+ }
1218
+ }
1219
+ return fulfilledEntries;
1220
+ }
1221
+ function writeDynamicRenderResponseIntoCache(now, task, fetchStrategy, response, serverData, isResponsePartial, route, spawnedEntries) {
1222
+ if (serverData.b !== (0, _appbuildid.getAppBuildId)()) {
1223
+ // The server build does not match the client. Treat as a 404. During
1224
+ // an actual navigation, the router will trigger an MPA navigation.
1225
+ // TODO: Consider moving the build ID to a response header so we can check
1226
+ // it before decoding the response, and so there's one way of checking
1227
+ // across all response types.
1228
+ if (spawnedEntries !== null) {
1229
+ rejectSegmentEntriesIfStillPending(spawnedEntries, now + 10 * 1000);
1230
+ }
1231
+ return null;
1232
+ }
1233
+ const flightDatas = (0, _flightdatahelpers.normalizeFlightData)(serverData.f);
1234
+ if (typeof flightDatas === 'string') {
1235
+ // This means navigating to this route will result in an MPA navigation.
1236
+ // TODO: We should cache this, too, so that the MPA navigation is immediate.
1237
+ return null;
1238
+ }
1239
+ // For runtime prefetches, stale time is in the payload at rp[1].
1240
+ // For other responses, fall back to the header.
1241
+ const staleTimeSeconds = typeof serverData.rp?.[1] === 'number' ? serverData.rp[1] : parseInt(response.headers.get(_approuterheaders.NEXT_ROUTER_STALE_TIME_HEADER) ?? '', 10);
1242
+ const staleTimeMs = !isNaN(staleTimeSeconds) ? getStaleTimeMs(staleTimeSeconds) : _navigatereducer.STATIC_STALETIME_MS;
1243
+ const staleAt = now + staleTimeMs;
1244
+ for (const flightData of flightDatas){
1245
+ const seedData = flightData.seedData;
1246
+ if (seedData !== null) {
1247
+ // The data sent by the server represents only a subtree of the app. We
1248
+ // need to find the part of the task tree that matches the response.
1249
+ //
1250
+ // segmentPath represents the parent path of subtree. It's a repeating
1251
+ // pattern of parallel route key and segment:
1252
+ //
1253
+ // [string, Segment, string, Segment, string, Segment, ...]
1254
+ const segmentPath = flightData.segmentPath;
1255
+ let tree = route.tree;
1256
+ for(let i = 0; i < segmentPath.length; i += 2){
1257
+ const parallelRouteKey = segmentPath[i];
1258
+ if (tree?.slots?.[parallelRouteKey] !== undefined) {
1259
+ tree = tree.slots[parallelRouteKey];
1260
+ } else {
1261
+ if (spawnedEntries !== null) {
1262
+ rejectSegmentEntriesIfStillPending(spawnedEntries, now + 10 * 1000);
1263
+ }
1264
+ return null;
1265
+ }
1266
+ }
1267
+ writeSeedDataIntoCache(now, task, fetchStrategy, route, tree, staleAt, seedData, isResponsePartial, spawnedEntries);
1268
+ }
1269
+ const head = flightData.head;
1270
+ if (head !== null) {
1271
+ fulfillEntrySpawnedByRuntimePrefetch(now, fetchStrategy, route, head, null, flightData.isHeadPartial, staleAt, route.metadata, spawnedEntries);
1272
+ }
1273
+ }
1274
+ // Any entry that's still pending was intentionally not rendered by the
1275
+ // server, because it was inside the loading boundary. Mark them as rejected
1276
+ // so we know not to fetch them again.
1277
+ // TODO: If PPR is enabled on some routes but not others, then it's possible
1278
+ // that a different page is able to do a per-segment prefetch of one of the
1279
+ // segments we're marking as rejected here. We should mark on the segment
1280
+ // somehow that the reason for the rejection is because of a non-PPR prefetch.
1281
+ // That way a per-segment prefetch knows to disregard the rejection.
1282
+ if (spawnedEntries !== null) {
1283
+ const fulfilledEntries = rejectSegmentEntriesIfStillPending(spawnedEntries, now + 10 * 1000);
1284
+ return fulfilledEntries;
1285
+ }
1286
+ return null;
1287
+ }
1288
+ function writeSeedDataIntoCache(now, task, fetchStrategy, route, tree, staleAt, seedData, isResponsePartial, entriesOwnedByCurrentTask) {
1289
+ // This function is used to write the result of a runtime server request
1290
+ // (CacheNodeSeedData) into the prefetch cache.
1291
+ const rsc = seedData[0];
1292
+ const loading = seedData[2];
1293
+ const isPartial = rsc === null || isResponsePartial;
1294
+ fulfillEntrySpawnedByRuntimePrefetch(now, fetchStrategy, route, rsc, loading, isPartial, staleAt, tree, entriesOwnedByCurrentTask);
1295
+ // Recursively write the child data into the cache.
1296
+ const slots = tree.slots;
1297
+ if (slots !== null) {
1298
+ const seedDataChildren = seedData[1];
1299
+ for(const parallelRouteKey in slots){
1300
+ const childTree = slots[parallelRouteKey];
1301
+ const childSeedData = seedDataChildren[parallelRouteKey];
1302
+ if (childSeedData !== null && childSeedData !== undefined) {
1303
+ writeSeedDataIntoCache(now, task, fetchStrategy, route, childTree, staleAt, childSeedData, isResponsePartial, entriesOwnedByCurrentTask);
1304
+ }
1305
+ }
1306
+ }
1307
+ }
1308
+ function fulfillEntrySpawnedByRuntimePrefetch(now, fetchStrategy, route, rsc, loading, isPartial, staleAt, tree, entriesOwnedByCurrentTask) {
1309
+ // We should only write into cache entries that are owned by us. Or create
1310
+ // a new one and write into that. We must never write over an entry that was
1311
+ // created by a different task, because that causes data races.
1312
+ const ownedEntry = entriesOwnedByCurrentTask !== null ? entriesOwnedByCurrentTask.get(tree.requestKey) : undefined;
1313
+ if (ownedEntry !== undefined) {
1314
+ fulfillSegmentCacheEntry(ownedEntry, rsc, loading, staleAt, isPartial);
1315
+ } else {
1316
+ // There's no matching entry. Attempt to create a new one.
1317
+ const possiblyNewEntry = readOrCreateSegmentCacheEntry(now, fetchStrategy, route, tree);
1318
+ if (possiblyNewEntry.status === 0) {
1319
+ // Confirmed this is a new entry. We can fulfill it.
1320
+ const newEntry = possiblyNewEntry;
1321
+ fulfillSegmentCacheEntry(upgradeToPendingSegment(newEntry, fetchStrategy), rsc, loading, staleAt, isPartial);
1322
+ } else {
1323
+ // There was already an entry in the cache. But we may be able to
1324
+ // replace it with the new one from the server.
1325
+ const newEntry = fulfillSegmentCacheEntry(upgradeToPendingSegment(createDetachedSegmentCacheEntry(staleAt), fetchStrategy), rsc, loading, staleAt, isPartial);
1326
+ upsertSegmentEntry(now, (0, _varypath.getSegmentVaryPathForRequest)(fetchStrategy, tree), newEntry);
1327
+ }
1328
+ }
1329
+ }
1330
+ async function fetchPrefetchResponse(url, headers) {
1331
+ const fetchPriority = 'low';
1332
+ // When issuing a prefetch request, don't immediately decode the response; we
1333
+ // use the lower level `createFromResponse` API instead because we need to do
1334
+ // some extra processing of the response stream. See
1335
+ // `createPrefetchResponseStream` for more details.
1336
+ const shouldImmediatelyDecode = false;
1337
+ const response = await (0, _fetchserverresponse.createFetch)(url, headers, fetchPriority, shouldImmediatelyDecode);
1338
+ if (!response.ok) {
1339
+ return null;
1340
+ }
1341
+ // Check the content type
1342
+ if (isOutputExportMode) {
1343
+ // In output: "export" mode, we relaxed about the content type, since it's
1344
+ // not Next.js that's serving the response. If the status is OK, assume the
1345
+ // response is valid. If it's not a valid response, the Flight client won't
1346
+ // be able to decode it, and we'll treat it as a miss.
1347
+ } else {
1348
+ const contentType = response.headers.get('content-type');
1349
+ const isFlightResponse = contentType && contentType.startsWith(_approuterheaders.RSC_CONTENT_TYPE_HEADER);
1350
+ if (!isFlightResponse) {
1351
+ return null;
1352
+ }
1353
+ }
1354
+ return response;
1355
+ }
1356
+ function createPrefetchResponseStream(originalFlightStream, onStreamClose, onResponseSizeUpdate) {
1357
+ // When PPR is enabled, prefetch streams may contain references that never
1358
+ // resolve, because that's how we encode dynamic data access. In the decoded
1359
+ // object returned by the Flight client, these are reified into hanging
1360
+ // promises that suspend during render, which is effectively what we want.
1361
+ // The UI resolves when it switches to the dynamic data stream
1362
+ // (via useDeferredValue(dynamic, static)).
1363
+ //
1364
+ // However, the Flight implementation currently errors if the server closes
1365
+ // the response before all the references are resolved. As a cheat to work
1366
+ // around this, we wrap the original stream in a new stream that never closes,
1367
+ // and therefore doesn't error.
1368
+ //
1369
+ // While processing the original stream, we also incrementally update the size
1370
+ // of the cache entry in the LRU.
1371
+ let totalByteLength = 0;
1372
+ const reader = originalFlightStream.getReader();
1373
+ return new ReadableStream({
1374
+ async pull (controller) {
1375
+ while(true){
1376
+ const { done, value } = await reader.read();
1377
+ if (!done) {
1378
+ // Pass to the target stream and keep consuming the Flight response
1379
+ // from the server.
1380
+ controller.enqueue(value);
1381
+ // Incrementally update the size of the cache entry in the LRU.
1382
+ // NOTE: Since prefetch responses are delivered in a single chunk,
1383
+ // it's not really necessary to do this streamingly, but I'm doing it
1384
+ // anyway in case this changes in the future.
1385
+ totalByteLength += value.byteLength;
1386
+ onResponseSizeUpdate(totalByteLength);
1387
+ continue;
1388
+ }
1389
+ // The server stream has closed. Exit, but intentionally do not close
1390
+ // the target stream. We do notify the caller, though.
1391
+ onStreamClose();
1392
+ return;
1393
+ }
1394
+ }
1395
+ });
1396
+ }
1397
+ function addSegmentPathToUrlInOutputExportMode(url, segmentPath) {
1398
+ if (isOutputExportMode) {
1399
+ // In output: "export" mode, we cannot use a header to encode the segment
1400
+ // path. Instead, we append it to the end of the pathname.
1401
+ const staticUrl = new URL(url);
1402
+ const routeDir = staticUrl.pathname.endsWith('/') ? staticUrl.pathname.slice(0, -1) : staticUrl.pathname;
1403
+ const staticExportFilename = (0, _segmentvalueencoding.convertSegmentPathToStaticExportFilename)(segmentPath);
1404
+ staticUrl.pathname = `${routeDir}/${staticExportFilename}`;
1405
+ return staticUrl;
1406
+ }
1407
+ return url;
1408
+ }
1409
+ function canNewFetchStrategyProvideMoreContent(currentStrategy, newStrategy) {
1410
+ return currentStrategy < newStrategy;
1411
+ }
1412
+
1413
+ if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
1414
+ Object.defineProperty(exports.default, '__esModule', { value: true });
1415
+ Object.assign(exports.default, exports);
1416
+ module.exports = exports.default;
1417
+ }
1418
+
1419
+ //# sourceMappingURL=cache.js.map