commit cdceb1bc87dc2d5ef42a7f172ea5dc2263c5c526 Author: Dhravya Date: Wed Feb 21 16:11:35 2024 -0700 initialised monorepo with auth and extension communication diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 00000000..7c9790ec --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,34 @@ +/** @type {import("eslint").Linter.Config} */ +const config = { + parser: "@typescript-eslint/parser", + plugins: ["@typescript-eslint"], + extends: [ + "next/core-web-vitals", + "plugin:@typescript-eslint/recommended-type-checked", + "plugin:@typescript-eslint/stylistic-type-checked", + ], + rules: { + // These opinionated rules are enabled in stylistic-type-checked above. + // Feel free to reconfigure them to your own preference. + "@typescript-eslint/array-type": "off", + "@typescript-eslint/consistent-type-definitions": "off", + + "@typescript-eslint/consistent-type-imports": [ + "warn", + { + prefer: "type-imports", + fixStyle: "inline-type-imports", + }, + ], + "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], + "@typescript-eslint/require-await": "off", + "@typescript-eslint/no-misused-promises": [ + "error", + { + checksVoidReturn: { attributes: false }, + }, + ], + }, +}; + +module.exports = config; diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..97d2f23f --- /dev/null +++ b/.gitignore @@ -0,0 +1,44 @@ +.turbo +*.sqlite +bun.lockb + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# database +/prisma/db.sqlite +/prisma/db.sqlite-journal + +# next.js +/.next/ +/out/ +next-env.d.ts + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# local env files +# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables +.env +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo diff --git a/README.md b/README.md new file mode 100644 index 00000000..fba19eda --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# Create T3 App + +This is a [T3 Stack](https://create.t3.gg/) project bootstrapped with `create-t3-app`. + +## What's next? How do I make an app with this? + +We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary. + +If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our [Discord](https://t3.gg/discord) and ask for help. + +- [Next.js](https://nextjs.org) +- [NextAuth.js](https://next-auth.js.org) +- [Prisma](https://prisma.io) +- [Tailwind CSS](https://tailwindcss.com) +- [tRPC](https://trpc.io) + +## Learn More + +To learn more about the [T3 Stack](https://create.t3.gg/), take a look at the following resources: + +- [Documentation](https://create.t3.gg/) +- [Learn the T3 Stack](https://create.t3.gg/en/faq#what-learning-resources-are-currently-available) — Check out these awesome tutorials + +You can check out the [create-t3-app GitHub repository](https://github.com/t3-oss/create-t3-app) — your feedback and contributions are welcome! + +## How do I deploy this? + +Follow our deployment guides for [Vercel](https://create.t3.gg/en/deployment/vercel), [Netlify](https://create.t3.gg/en/deployment/netlify) and [Docker](https://create.t3.gg/en/deployment/docker) for more information. diff --git a/apps/web/.env.example b/apps/web/.env.example new file mode 100644 index 00000000..35ecefb5 --- /dev/null +++ b/apps/web/.env.example @@ -0,0 +1,23 @@ +# Since the ".env" file is gitignored, you can use the ".env.example" file to +# build a new ".env" file when you clone the repo. Keep this file up-to-date +# when you add new variables to `.env`. + +# This file will be committed to version control, so make sure not to have any +# secrets in it. If you are cloning this repo, create a copy of this file named +# ".env" and populate it with your secrets. + +# When adding additional environment variables, the schema in "/src/env.js" +# should be updated accordingly. + +# Drizzle +DATABASE_URL="db.sqlite" + +# Next Auth +# You can generate a new secret on the command line with: +# openssl rand -base64 32 +# https://next-auth.js.org/configuration/options#secret +# NEXTAUTH_SECRET="" +NEXTAUTH_URL="http://localhost:3000" + +GOOGLE_CLIENT_ID="" +GOOGLE_CLIENT_SECRET="" diff --git a/apps/web/.next/BUILD_ID b/apps/web/.next/BUILD_ID new file mode 100644 index 00000000..b5fa64e9 --- /dev/null +++ b/apps/web/.next/BUILD_ID @@ -0,0 +1 @@ +NZ5J5THZSIm48Kb9Sw_O9 \ No newline at end of file diff --git a/apps/web/.next/app-build-manifest.json b/apps/web/.next/app-build-manifest.json new file mode 100644 index 00000000..1ab29687 --- /dev/null +++ b/apps/web/.next/app-build-manifest.json @@ -0,0 +1,33 @@ +{ + "pages": { + "/_not-found": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/1dd3208c-2005e60b0a14e8cf.js", + "static/chunks/997-22e52d7003e9633c.js", + "static/chunks/main-app-6394067cfc5308ad.js", + "static/chunks/app/_not-found-2c355b04f2805185.js" + ], + "/layout": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/1dd3208c-2005e60b0a14e8cf.js", + "static/chunks/997-22e52d7003e9633c.js", + "static/chunks/main-app-6394067cfc5308ad.js", + "static/css/6c15d7e3526590b3.css", + "static/chunks/app/layout-d03d6a3648fc999a.js" + ], + "/account/page": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/1dd3208c-2005e60b0a14e8cf.js", + "static/chunks/997-22e52d7003e9633c.js", + "static/chunks/main-app-6394067cfc5308ad.js", + "static/chunks/app/account/page-0cdf2840d5548012.js" + ], + "/page": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/1dd3208c-2005e60b0a14e8cf.js", + "static/chunks/997-22e52d7003e9633c.js", + "static/chunks/main-app-6394067cfc5308ad.js", + "static/chunks/app/page-4446d9ce009d4a80.js" + ] + } +} \ No newline at end of file diff --git a/apps/web/.next/app-path-routes-manifest.json b/apps/web/.next/app-path-routes-manifest.json new file mode 100644 index 00000000..8adfaa0f --- /dev/null +++ b/apps/web/.next/app-path-routes-manifest.json @@ -0,0 +1 @@ +{"/_not-found":"/_not-found","/account/page":"/account","/api/auth/[...nextauth]/route":"/api/auth/[...nextauth]","/api/store/route":"/api/store","/page":"/"} \ No newline at end of file diff --git a/apps/web/.next/build-manifest.json b/apps/web/.next/build-manifest.json new file mode 100644 index 00000000..6bb7d199 --- /dev/null +++ b/apps/web/.next/build-manifest.json @@ -0,0 +1,32 @@ +{ + "polyfillFiles": [ + "static/chunks/polyfills-c67a75d1b6f99dc8.js" + ], + "devFiles": [], + "ampDevFiles": [], + "lowPriorityFiles": [ + "static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js", + "static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js" + ], + "rootMainFiles": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/1dd3208c-2005e60b0a14e8cf.js", + "static/chunks/997-22e52d7003e9633c.js", + "static/chunks/main-app-6394067cfc5308ad.js" + ], + "pages": { + "/_app": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/framework-9e68550641db712d.js", + "static/chunks/main-2f8ae24bc202a544.js", + "static/chunks/pages/_app-22ef1381f3010e9c.js" + ], + "/_error": [ + "static/chunks/webpack-7c56eb6342069862.js", + "static/chunks/framework-9e68550641db712d.js", + "static/chunks/main-2f8ae24bc202a544.js", + "static/chunks/pages/_error-2312f57de16788ac.js" + ] + }, + "ampFirstPages": [] +} \ No newline at end of file diff --git a/apps/web/.next/cache/webpack/client-development/0.pack.gz b/apps/web/.next/cache/webpack/client-development/0.pack.gz new file mode 100644 index 00000000..1ba2a417 Binary files /dev/null and b/apps/web/.next/cache/webpack/client-development/0.pack.gz differ diff --git a/apps/web/.next/cache/webpack/client-development/1.pack.gz b/apps/web/.next/cache/webpack/client-development/1.pack.gz new file mode 100644 index 00000000..b1fb0765 Binary files /dev/null and b/apps/web/.next/cache/webpack/client-development/1.pack.gz differ diff --git a/apps/web/.next/cache/webpack/client-development/2.pack.gz b/apps/web/.next/cache/webpack/client-development/2.pack.gz new file mode 100644 index 00000000..fdd57045 Binary files /dev/null and b/apps/web/.next/cache/webpack/client-development/2.pack.gz differ diff --git a/apps/web/.next/cache/webpack/client-development/index.pack.gz b/apps/web/.next/cache/webpack/client-development/index.pack.gz new file mode 100644 index 00000000..0809af9c Binary files /dev/null and b/apps/web/.next/cache/webpack/client-development/index.pack.gz differ diff --git a/apps/web/.next/cache/webpack/client-development/index.pack.gz.old b/apps/web/.next/cache/webpack/client-development/index.pack.gz.old new file mode 100644 index 00000000..7ccac761 Binary files /dev/null and b/apps/web/.next/cache/webpack/client-development/index.pack.gz.old differ diff --git a/apps/web/.next/cache/webpack/client-production/0.pack b/apps/web/.next/cache/webpack/client-production/0.pack new file mode 100644 index 00000000..e63c20c6 Binary files /dev/null and b/apps/web/.next/cache/webpack/client-production/0.pack differ diff --git a/apps/web/.next/cache/webpack/client-production/1.pack b/apps/web/.next/cache/webpack/client-production/1.pack new file mode 100644 index 00000000..f18980d3 Binary files /dev/null and b/apps/web/.next/cache/webpack/client-production/1.pack differ diff --git a/apps/web/.next/cache/webpack/client-production/2.pack b/apps/web/.next/cache/webpack/client-production/2.pack new file mode 100644 index 00000000..be4ad78c Binary files /dev/null and b/apps/web/.next/cache/webpack/client-production/2.pack differ diff --git a/apps/web/.next/cache/webpack/client-production/3.pack b/apps/web/.next/cache/webpack/client-production/3.pack new file mode 100644 index 00000000..6d940534 Binary files /dev/null and b/apps/web/.next/cache/webpack/client-production/3.pack differ diff --git a/apps/web/.next/cache/webpack/client-production/4.pack b/apps/web/.next/cache/webpack/client-production/4.pack new file mode 100644 index 00000000..7aa904e5 Binary files /dev/null and b/apps/web/.next/cache/webpack/client-production/4.pack differ diff --git a/apps/web/.next/cache/webpack/client-production/5.pack b/apps/web/.next/cache/webpack/client-production/5.pack new file mode 100644 index 00000000..6c7fea75 Binary files /dev/null and b/apps/web/.next/cache/webpack/client-production/5.pack differ diff --git a/apps/web/.next/cache/webpack/client-production/index.pack b/apps/web/.next/cache/webpack/client-production/index.pack new file mode 100644 index 00000000..b0cc06e0 Binary files /dev/null and b/apps/web/.next/cache/webpack/client-production/index.pack differ diff --git a/apps/web/.next/cache/webpack/client-production/index.pack.old b/apps/web/.next/cache/webpack/client-production/index.pack.old new file mode 100644 index 00000000..30f5d1b0 Binary files /dev/null and b/apps/web/.next/cache/webpack/client-production/index.pack.old differ diff --git a/apps/web/.next/cache/webpack/server-development/0.pack.gz b/apps/web/.next/cache/webpack/server-development/0.pack.gz new file mode 100644 index 00000000..bce9403b Binary files /dev/null and b/apps/web/.next/cache/webpack/server-development/0.pack.gz differ diff --git a/apps/web/.next/cache/webpack/server-development/1.pack.gz b/apps/web/.next/cache/webpack/server-development/1.pack.gz new file mode 100644 index 00000000..763051cf Binary files /dev/null and b/apps/web/.next/cache/webpack/server-development/1.pack.gz differ diff --git a/apps/web/.next/cache/webpack/server-development/2.pack.gz b/apps/web/.next/cache/webpack/server-development/2.pack.gz new file mode 100644 index 00000000..5b411690 Binary files /dev/null and b/apps/web/.next/cache/webpack/server-development/2.pack.gz differ diff --git a/apps/web/.next/cache/webpack/server-development/index.pack.gz b/apps/web/.next/cache/webpack/server-development/index.pack.gz new file mode 100644 index 00000000..5164671c Binary files /dev/null and b/apps/web/.next/cache/webpack/server-development/index.pack.gz differ diff --git a/apps/web/.next/cache/webpack/server-development/index.pack.gz.old b/apps/web/.next/cache/webpack/server-development/index.pack.gz.old new file mode 100644 index 00000000..be8a6682 Binary files /dev/null and b/apps/web/.next/cache/webpack/server-development/index.pack.gz.old differ diff --git a/apps/web/.next/cache/webpack/server-production/0.pack b/apps/web/.next/cache/webpack/server-production/0.pack new file mode 100644 index 00000000..3550895d Binary files /dev/null and b/apps/web/.next/cache/webpack/server-production/0.pack differ diff --git a/apps/web/.next/cache/webpack/server-production/index.pack b/apps/web/.next/cache/webpack/server-production/index.pack new file mode 100644 index 00000000..ebe8618f Binary files /dev/null and b/apps/web/.next/cache/webpack/server-production/index.pack differ diff --git a/apps/web/.next/export-marker.json b/apps/web/.next/export-marker.json new file mode 100644 index 00000000..07328d64 --- /dev/null +++ b/apps/web/.next/export-marker.json @@ -0,0 +1 @@ +{"version":1,"hasExportPathMap":false,"exportTrailingSlash":false,"isNextImageImported":false} \ No newline at end of file diff --git a/apps/web/.next/images-manifest.json b/apps/web/.next/images-manifest.json new file mode 100644 index 00000000..3be04678 --- /dev/null +++ b/apps/web/.next/images-manifest.json @@ -0,0 +1 @@ +{"version":1,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false,"sizes":[640,750,828,1080,1200,1920,2048,3840,16,32,48,64,96,128,256,384]}} \ No newline at end of file diff --git a/apps/web/.next/next-minimal-server.js.nft.json b/apps/web/.next/next-minimal-server.js.nft.json new file mode 100644 index 00000000..55f080b9 --- /dev/null +++ b/apps/web/.next/next-minimal-server.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/style.js","../../../node_modules/next/dist/compiled/next-server/server.runtime.prod.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/app-page/module.compiled.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/pages/module.compiled.js"]} \ No newline at end of file diff --git a/apps/web/.next/next-server.js.nft.json b/apps/web/.next/next-server.js.nft.json new file mode 100644 index 00000000..894bd2fb --- /dev/null +++ b/apps/web/.next/next-server.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/style.js","../../../node_modules/next/dist/server/next-server.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/app-page/module.compiled.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/pages/module.compiled.js"]} \ No newline at end of file diff --git a/apps/web/.next/package.json b/apps/web/.next/package.json new file mode 100644 index 00000000..7156107e --- /dev/null +++ b/apps/web/.next/package.json @@ -0,0 +1 @@ +{"type": "commonjs"} \ No newline at end of file diff --git a/apps/web/.next/prerender-manifest.js b/apps/web/.next/prerender-manifest.js new file mode 100644 index 00000000..7240d702 --- /dev/null +++ b/apps/web/.next/prerender-manifest.js @@ -0,0 +1 @@ +self.__PRERENDER_MANIFEST="{\"version\":4,\"routes\":{\"/\":{\"experimentalBypassFor\":[{\"type\":\"header\",\"key\":\"Next-Action\"},{\"type\":\"header\",\"key\":\"content-type\",\"value\":\"multipart/form-data\"}],\"initialRevalidateSeconds\":false,\"srcRoute\":\"/\",\"dataRoute\":\"/index.rsc\"}},\"dynamicRoutes\":{},\"notFoundRoutes\":[],\"preview\":{\"previewModeId\":\"601e555451af779f51bebe3d5192c4e1\",\"previewModeSigningKey\":\"02474f00ee5e962a2ec10afff2ab78eee83bf337b304eb667506d5d8e34e0b30\",\"previewModeEncryptionKey\":\"988d34a5620d5d97da6581f3ad688547ee9b9b20a92afdc7647b534d272550e1\"}}" \ No newline at end of file diff --git a/apps/web/.next/prerender-manifest.json b/apps/web/.next/prerender-manifest.json new file mode 100644 index 00000000..104bf066 --- /dev/null +++ b/apps/web/.next/prerender-manifest.json @@ -0,0 +1 @@ +{"version":4,"routes":{"/":{"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data"}],"initialRevalidateSeconds":false,"srcRoute":"/","dataRoute":"/index.rsc"}},"dynamicRoutes":{},"notFoundRoutes":[],"preview":{"previewModeId":"601e555451af779f51bebe3d5192c4e1","previewModeSigningKey":"02474f00ee5e962a2ec10afff2ab78eee83bf337b304eb667506d5d8e34e0b30","previewModeEncryptionKey":"988d34a5620d5d97da6581f3ad688547ee9b9b20a92afdc7647b534d272550e1"}} \ No newline at end of file diff --git a/apps/web/.next/react-loadable-manifest.json b/apps/web/.next/react-loadable-manifest.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/apps/web/.next/react-loadable-manifest.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apps/web/.next/required-server-files.json b/apps/web/.next/required-server-files.json new file mode 100644 index 00000000..8e10359b --- /dev/null +++ b/apps/web/.next/required-server-files.json @@ -0,0 +1 @@ +{"version":1,"config":{"env":{},"webpack":null,"eslint":{"ignoreDuringBuilds":false},"typescript":{"ignoreBuildErrors":false,"tsconfigPath":"tsconfig.json"},"distDir":".next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.js","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"poweredByHeader":true,"compress":true,"analyticsId":"","images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false},"devIndicators":{"buildActivity":true,"buildActivityPosition":"bottom-right"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"amp":{"canonicalBase":""},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"optimizeFonts":true,"excludeDefaultMomentLocales":true,"serverRuntimeConfig":{},"publicRuntimeConfig":{},"reactProductionProfiling":false,"reactStrictMode":null,"httpAgentOptions":{"keepAlive":true},"outputFileTracing":true,"staticPageGenerationTimeout":60,"swcMinify":true,"modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"},"next/server":{"transform":"next/dist/server/web/exports/{{ kebabCase member }}"}},"experimental":{"serverMinification":true,"serverSourceMaps":false,"caseSensitiveRoutes":false,"useDeploymentId":false,"useDeploymentIdServerActions":false,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","middlewarePrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":9,"memoryBasedWorkersCount":false,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"outputFileTracingRoot":"","swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"adjustFontFallbacks":false,"adjustFontFallbacksWithSizeAdjust":false,"typedRoutes":false,"instrumentationHook":false,"bundlePagesExternals":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"missingSuspenseWithCSRBailout":true,"optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"trustHostHeader":false,"isExperimentalCompile":false},"configFileName":"next.config.js"},"appDir":"/Users/dhravyashah/Documents/code/anycontext/apps/web","relativeAppDir":"","files":[".next/routes-manifest.json",".next/server/pages-manifest.json",".next/build-manifest.json",".next/prerender-manifest.json",".next/prerender-manifest.js",".next/server/middleware-manifest.json",".next/server/middleware-build-manifest.js",".next/server/middleware-react-loadable-manifest.js",".next/server/app-paths-manifest.json",".next/app-path-routes-manifest.json",".next/app-build-manifest.json",".next/server/server-reference-manifest.js",".next/server/server-reference-manifest.json",".next/react-loadable-manifest.json",".next/server/font-manifest.json",".next/BUILD_ID",".next/server/next-font-manifest.js",".next/server/next-font-manifest.json"],"ignore":["../../node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/**/*"]} \ No newline at end of file diff --git a/apps/web/.next/routes-manifest.json b/apps/web/.next/routes-manifest.json new file mode 100644 index 00000000..eb5b1287 --- /dev/null +++ b/apps/web/.next/routes-manifest.json @@ -0,0 +1 @@ +{"version":3,"pages404":true,"caseSensitive":false,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/api/auth/[...nextauth]","regex":"^/api/auth/(.+?)(?:/)?$","routeKeys":{"nxtPnextauth":"nxtPnextauth"},"namedRegex":"^/api/auth/(?.+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/_not-found","regex":"^/_not\\-found(?:/)?$","routeKeys":{},"namedRegex":"^/_not\\-found(?:/)?$"},{"page":"/account","regex":"^/account(?:/)?$","routeKeys":{},"namedRegex":"^/account(?:/)?$"}],"dataRoutes":[],"rsc":{"header":"RSC","varyHeader":"RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Url","prefetchHeader":"Next-Router-Prefetch","didPostponeHeader":"x-nextjs-postponed","contentTypeHeader":"text/x-component","suffix":".rsc","prefetchSuffix":".prefetch.rsc"},"rewrites":[]} \ No newline at end of file diff --git a/apps/web/.next/server/app-paths-manifest.json b/apps/web/.next/server/app-paths-manifest.json new file mode 100644 index 00000000..1c1fb501 --- /dev/null +++ b/apps/web/.next/server/app-paths-manifest.json @@ -0,0 +1,7 @@ +{ + "/_not-found": "app/_not-found.js", + "/account/page": "app/account/page.js", + "/api/auth/[...nextauth]/route": "app/api/auth/[...nextauth]/route.js", + "/api/store/route": "app/api/store/route.js", + "/page": "app/page.js" +} \ No newline at end of file diff --git a/apps/web/.next/server/app/_not-found.html b/apps/web/.next/server/app/_not-found.html new file mode 100644 index 00000000..5b9ab9b8 --- /dev/null +++ b/apps/web/.next/server/app/_not-found.html @@ -0,0 +1 @@ +404: This page could not be found.Create T3 App

404

This page could not be found.

\ No newline at end of file diff --git a/apps/web/.next/server/app/_not-found.js b/apps/web/.next/server/app/_not-found.js new file mode 100644 index 00000000..1b0d12fe --- /dev/null +++ b/apps/web/.next/server/app/_not-found.js @@ -0,0 +1 @@ +(()=>{var e={};e.id=165,e.ids=[165],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},3145:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalError:()=>i.a,__next_app__:()=>p,originalPathname:()=>u,pages:()=>c,routeModule:()=>x,tree:()=>d});var r=n(9441),s=n(1498),o=n(6580),i=n.n(o),a=n(5511),l={};for(let e in a)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>a[e]);n.d(t,l);let d=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(n.t.bind(n,3250,23)),"next/dist/client/components/not-found-error"]}]},{layout:[()=>Promise.resolve().then(n.bind(n,8205)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(n.t.bind(n,3250,23)),"next/dist/client/components/not-found-error"]}],c=[],u="/_not-found",p={require:n,loadChunk:()=>Promise.resolve()},x=new r.AppPageRouteModule({definition:{kind:s.x.APP_PAGE,page:"/_not-found",pathname:"/_not-found",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},7422:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,9489,23)),Promise.resolve().then(n.t.bind(n,6225,23)),Promise.resolve().then(n.t.bind(n,5964,23)),Promise.resolve().then(n.t.bind(n,5804,23)),Promise.resolve().then(n.t.bind(n,7255,23)),Promise.resolve().then(n.t.bind(n,1021,23))},5722:()=>{},8205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,metadata:()=>i});var r=n(6491),s=n(1608),o=n.n(s);n(1603);let i={title:"Create T3 App",description:"Generated by create-t3-app",icons:[{rel:"icon",url:"/favicon.ico"}]};function a({children:e}){return r.jsx("html",{lang:"en",children:r.jsx("body",{className:`font-sans ${o().variable}`,children:e})})}},1603:()=>{}};var t=require("../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[369,38],()=>n(3145));module.exports=r})(); \ No newline at end of file diff --git a/apps/web/.next/server/app/_not-found.js.nft.json b/apps/web/.next/server/app/_not-found.js.nft.json new file mode 100644 index 00000000..f6282d10 --- /dev/null +++ b/apps/web/.next/server/app/_not-found.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../package.json","../chunks/369.js","../chunks/38.js","../webpack-runtime.js","_not-found_client-reference-manifest.js"]} \ No newline at end of file diff --git a/apps/web/.next/server/app/_not-found.meta b/apps/web/.next/server/app/_not-found.meta new file mode 100644 index 00000000..fc1dcd9e --- /dev/null +++ b/apps/web/.next/server/app/_not-found.meta @@ -0,0 +1,5 @@ +{ + "headers": { + "x-next-cache-tags": "_N_T_/layout,_N_T_/_not-found/layout,_N_T_/_not-found" + } +} \ No newline at end of file diff --git a/apps/web/.next/server/app/_not-found.rsc b/apps/web/.next/server/app/_not-found.rsc new file mode 100644 index 00000000..4d3be41a --- /dev/null +++ b/apps/web/.next/server/app/_not-found.rsc @@ -0,0 +1,9 @@ +2:I[2172,[],""] +3:I[2533,[],""] +4:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"} +5:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"} +6:{"display":"inline-block"} +7:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0} +0:["NZ5J5THZSIm48Kb9Sw_O9",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null]]},[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"font-sans __variable_aaf875","children":["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$4","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$5","children":"404"}],["$","div",null,{"style":"$6","children":["$","h2",null,{"style":"$7","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/6c15d7e3526590b3.css","precedence":"next","crossOrigin":""}]],"$L8"]]]] +8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Create T3 App"}],["$","meta","3",{"name":"description","content":"Generated by create-t3-app"}],["$","link","4",{"rel":"icon","href":"/favicon.ico"}],["$","meta","5",{"name":"next-size-adjust"}]] +1:null diff --git a/apps/web/.next/server/app/_not-found_client-reference-manifest.js b/apps/web/.next/server/app/_not-found_client-reference-manifest.js new file mode 100644 index 00000000..5b986991 --- /dev/null +++ b/apps/web/.next/server/app/_not-found_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"2172":{"*":{"id":"5964","name":"*","chunks":[],"async":false}},"2533":{"*":{"id":"7255","name":"*","chunks":[],"async":false}},"3398":{"*":{"id":"5804","name":"*","chunks":[],"async":false}},"5119":{"*":{"id":"6225","name":"*","chunks":[],"async":false}},"8950":{"*":{"id":"9489","name":"*","chunks":[],"async":false}},"9256":{"*":{"id":"1021","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\"}],\"variableName\":\"inter\"}":{"id":425,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false},"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/styles/globals.css":{"id":3744,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false}},"entryCSSFiles":{"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/_not-found":[],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout":["static/css/6c15d7e3526590b3.css"],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page":[]}} \ No newline at end of file diff --git a/apps/web/.next/server/app/account/page.js b/apps/web/.next/server/app/account/page.js new file mode 100644 index 00000000..94f45e43 --- /dev/null +++ b/apps/web/.next/server/app/account/page.js @@ -0,0 +1 @@ +(()=>{var e={};e.id=346,e.ids=[346],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},419:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>a.a,__next_app__:()=>p,originalPathname:()=>d,pages:()=>c,routeModule:()=>f,tree:()=>u});var n=r(9441),s=r(1498),o=r(6580),a=r.n(o),i=r(5511),l={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>i[e]);r.d(t,l);let u=["",{children:["account",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,829)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/account/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(r.bind(r,8205)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,3250,23)),"next/dist/client/components/not-found-error"]}],c=["/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/account/page.tsx"],d="/account/page",p={require:r,loadChunk:()=>Promise.resolve()},f=new n.AppPageRouteModule({definition:{kind:s.x.APP_PAGE,page:"/account/page",pathname:"/account",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:u}})},5209:(e,t,r)=>{Promise.resolve().then(r.bind(r,6196))},7422:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,9489,23)),Promise.resolve().then(r.t.bind(r,6225,23)),Promise.resolve().then(r.t.bind(r,5964,23)),Promise.resolve().then(r.t.bind(r,5804,23)),Promise.resolve().then(r.t.bind(r,7255,23)),Promise.resolve().then(r.t.bind(r,1021,23))},5722:()=>{},6196:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(3810);let s=function({jwt:e}){return(0,n.useEffect)(()=>{},[e]),null}},829:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(6491),s=r(7167);let o=(0,r(599).createProxy)(String.raw`/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/account/client.tsx`),{__esModule:a,$$typeof:i}=o,l=o.default,u=async function(){let e=s.cookies().get("next-auth.session-token")?.value;return n.jsx(l,{jwt:e})}},8205:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,metadata:()=>a});var n=r(6491),s=r(1608),o=r.n(s);r(1603);let a={title:"Create T3 App",description:"Generated by create-t3-app",icons:[{rel:"icon",url:"/favicon.ico"}]};function i({children:e}){return n.jsx("html",{lang:"en",children:n.jsx("body",{className:`font-sans ${o().variable}`,children:e})})}},7167:(e,t,r)=>{"use strict";r.r(t);var n=r(9767),s={};for(let e in n)"default"!==e&&(s[e]=()=>n[e]);r.d(t,s)},1847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraftMode",{enumerable:!0,get:function(){return s}});let n=r(2936);class s{get isEnabled(){return this._provider.isEnabled}enable(){if(!(0,n.staticGenerationBailout)("draftMode().enable()"))return this._provider.enable()}disable(){if(!(0,n.staticGenerationBailout)("draftMode().disable()"))return this._provider.disable()}constructor(e){this._provider=e}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9767:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{headers:function(){return c},cookies:function(){return d},draftMode:function(){return p}});let n=r(9839),s=r(270),o=r(8005),a=r(4580),i=r(2934),l=r(2936),u=r(1847);function c(){if((0,l.staticGenerationBailout)("headers",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return s.HeadersAdapter.seal(new Headers({}));let e=a.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: headers() expects to have requestAsyncStorage, none available.");return e.headers}function d(){if((0,l.staticGenerationBailout)("cookies",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return n.RequestCookiesAdapter.seal(new o.RequestCookies(new Headers({})));let e=a.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: cookies() expects to have requestAsyncStorage, none available.");let t=i.actionAsyncStorage.getStore();return t&&(t.isAction||t.isAppRoute)?e.mutableCookies:e.cookies}function p(){let e=a.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: draftMode() expects to have requestAsyncStorage, none available.");return new u.DraftMode(e.draftMode)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8263:e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o={};function a(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean);return`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}; ${r.join("; ")}`}function i(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,s]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=s?s:"true"))}catch{}}return t}function l(e){var t,r;if(!e)return;let[[n,s],...o]=i(e),{domain:a,expires:l,httponly:d,maxage:p,path:f,samesite:h,secure:y,priority:g}=Object.fromEntries(o.map(([e,t])=>[e.toLowerCase(),t]));return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}({name:n,value:decodeURIComponent(s),domain:a,...l&&{expires:new Date(l)},...d&&{httpOnly:!0},..."string"==typeof p&&{maxAge:Number(p)},path:f,...h&&{sameSite:u.includes(t=(t=h).toLowerCase())?t:void 0},...y&&{secure:!0},...g&&{priority:c.includes(r=(r=g).toLowerCase())?r:void 0}})}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(o,{RequestCookies:()=>d,ResponseCookies:()=>p,parseCookie:()=>i,parseSetCookie:()=>l,stringifyCookie:()=>a}),e.exports=((e,o,a,i)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of n(o))s.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(i=r(o,a))||i.enumerable});return e})(t({},"__esModule",{value:!0}),o);var u=["strict","lax","none"],c=["low","medium","high"],d=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,r]of i(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>a(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>a(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},p=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let s=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(let e of Array.isArray(s)?s:function(e){if(!e)return[];var t,r,n,s,o,a=[],i=0;function l(){for(;i=e.length)&&a.push(e.substring(t,e.length))}return a}(s)){let t=l(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,s=this._parsed;return s.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=a(r);t.append("set-cookie",e)}}(s,this._headers),this}delete(...e){let[t,r,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a).join("; ")}}},270:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyHeadersError:function(){return s},HeadersAdapter:function(){return o}});let n=r(5444);class s extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new s}}class o extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,s){if("symbol"==typeof r)return n.ReflectAdapter.get(t,r,s);let o=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===o);if(void 0!==a)return n.ReflectAdapter.get(t,a,s)},set(t,r,s,o){if("symbol"==typeof r)return n.ReflectAdapter.set(t,r,s,o);let a=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===a);return n.ReflectAdapter.set(t,i??r,s,o)},has(t,r){if("symbol"==typeof r)return n.ReflectAdapter.has(t,r);let s=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===s);return void 0!==o&&n.ReflectAdapter.has(t,o)},deleteProperty(t,r){if("symbol"==typeof r)return n.ReflectAdapter.deleteProperty(t,r);let s=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===s);return void 0===o||n.ReflectAdapter.deleteProperty(t,o)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return s.callable;default:return n.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new o(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},5444:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},9839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyRequestCookiesError:function(){return o},RequestCookiesAdapter:function(){return a},getModifiedCookieValues:function(){return l},appendMutableCookies:function(){return u},MutableRequestCookiesAdapter:function(){return c}});let n=r(8005),s=r(5444);class o extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options")}static callable(){throw new o}}class a{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return o.callable;default:return s.ReflectAdapter.get(e,t,r)}}})}}let i=Symbol.for("next.mutated.cookies");function l(e){let t=e[i];return t&&Array.isArray(t)&&0!==t.length?t:[]}function u(e,t){let r=l(t);if(0===r.length)return!1;let s=new n.ResponseCookies(e),o=s.getAll();for(let e of r)s.set(e);for(let e of o)s.set(e);return!0}class c{static wrap(e,t){let r=new n.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let o=[],a=new Set,l=()=>{var e;let s=null==fetch.__nextGetStaticStore?void 0:null==(e=fetch.__nextGetStaticStore.call(fetch))?void 0:e.getStore();if(s&&(s.pathWasRevalidated=!0),o=r.getAll().filter(e=>a.has(e.name)),t){let e=[];for(let t of o){let r=new n.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case i:return o;case"delete":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{e.delete(...t)}finally{l()}};case"set":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t)}finally{l()}};default:return s.ReflectAdapter.get(e,t,r)}}})}}},8005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RequestCookies:function(){return n.RequestCookies},ResponseCookies:function(){return n.ResponseCookies}});let n=r(8263)},1603:()=>{}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[369,38],()=>r(419));module.exports=n})(); \ No newline at end of file diff --git a/apps/web/.next/server/app/account/page.js.nft.json b/apps/web/.next/server/app/account/page.js.nft.json new file mode 100644 index 00000000..f4e8c4e6 --- /dev/null +++ b/apps/web/.next/server/app/account/page.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../package.json","../../chunks/369.js","../../chunks/38.js","../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/apps/web/.next/server/app/account/page_client-reference-manifest.js b/apps/web/.next/server/app/account/page_client-reference-manifest.js new file mode 100644 index 00000000..a4174cae --- /dev/null +++ b/apps/web/.next/server/app/account/page_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/account/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"2172":{"*":{"id":"5964","name":"*","chunks":[],"async":false}},"2533":{"*":{"id":"7255","name":"*","chunks":[],"async":false}},"3398":{"*":{"id":"5804","name":"*","chunks":[],"async":false}},"5119":{"*":{"id":"6225","name":"*","chunks":[],"async":false}},"6695":{"*":{"id":"6196","name":"*","chunks":[],"async":false}},"8950":{"*":{"id":"9489","name":"*","chunks":[],"async":false}},"9256":{"*":{"id":"1021","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\"}],\"variableName\":\"inter\"}":{"id":425,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false},"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/styles/globals.css":{"id":3744,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false},"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/account/client.tsx":{"id":6695,"name":"*","chunks":["346","static/chunks/app/account/page-0cdf2840d5548012.js"],"async":false}},"entryCSSFiles":{"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/_not-found":[],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout":["static/css/6c15d7e3526590b3.css"],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page":[],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/account/page":[]}} \ No newline at end of file diff --git a/apps/web/.next/server/app/api/auth/[...nextauth]/route.js b/apps/web/.next/server/app/api/auth/[...nextauth]/route.js new file mode 100644 index 00000000..b1472e8b --- /dev/null +++ b/apps/web/.next/server/app/api/auth/[...nextauth]/route.js @@ -0,0 +1,51 @@ +(()=>{var e={};e.id=912,e.ids=[912],e.modules={2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},517:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},3477:e=>{"use strict";e.exports=require("querystring")},7310:e=>{"use strict";e.exports=require("url")},3849:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},2789:(e,t,r)=>{"use strict";let i;r.r(t),r.d(t,{headerHooks:()=>tN,originalPathname:()=>tW,patchFetch:()=>tK,requestAsyncStorage:()=>t$,routeModule:()=>tI,serverHooks:()=>tM,staticGenerationAsyncStorage:()=>tJ,staticGenerationBailout:()=>tR});var n={};r.r(n),r.d(n,{GET:()=>tC,POST:()=>tC});var o=r(2390),s=r(1498),a=r(9308),l=r(7345),c=r.n(l),u=r(4869),d=r(4143),h=r(2877),p=r(4456),f=r(9105),y=r(9349),g=r(2393),m=r(3543),_=r(9324),v=r(776),w=r(4990),b=r(6702),S=r(6711);let k=Symbol.for("drizzle:MySqlInlineForeignKeys");class E extends m.iA{static{m.iA.Symbol.Columns,i=m.iA.Symbol.ExtraConfigBuilder}static{this[u.Q]="MySqlTable"}static{this.Symbol=Object.assign({},m.iA.Symbol,{InlineForeignKeys:k})}constructor(...e){super(...e),this[k]=[],this[i]=void 0}}let A=(e,t,r)=>(function(e,t,r,i,n=e){let o=new E(e,i,n),s=Object.fromEntries(Object.entries(t).map(([e,t])=>{let r=t.build(o);return o[k].push(...t.buildForeignKeys(r,o)),[e,r]})),a=Object.assign(o,s);return a[m.iA.Symbol.Columns]=s,r&&(a[E.Symbol.ExtraConfigBuilder]=r),a})(e,t,r,void 0,e);class x{static{this[u.Q]="MySqlForeignKeyBuilder"}constructor(e,t){this.reference=()=>{let{name:t,columns:r,foreignColumns:i}=e();return{name:t,columns:r,foreignTable:i[0].table,foreignColumns:i}},t&&(this._onUpdate=t.onUpdate,this._onDelete=t.onDelete)}onUpdate(e){return this._onUpdate=e,this}onDelete(e){return this._onDelete=e,this}build(e){return new O(e,this)}}class O{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static{this[u.Q]="MySqlForeignKey"}getName(){let{name:e,columns:t,foreignColumns:r}=this.reference(),i=t.map(e=>e.name),n=r.map(e=>e.name),o=[this.table[E.Symbol.Name],...i,r[0].table[E.Symbol.Name],...n];return e??`${o.join("_")}_fk`}}function T(e,t){return`${e[E.Symbol.Name]}_${t.join("_")}_unique`}class P{constructor(e,t){this.name=t,this.columns=e}static{this[u.Q]="MySqlUniqueConstraintBuilder"}build(e){return new C(e,this.columns,this.name)}}class j{static{this[u.Q]="MySqlUniqueOnConstraintBuilder"}constructor(e){this.name=e}on(...e){return new P(e,this.name)}}class C{constructor(e,t,r){this.nullsNotDistinct=!1,this.table=e,this.columns=t,this.name=r??T(this.table,this.columns.map(e=>e.name))}static{this[u.Q]="MySqlUniqueConstraint"}getName(){return this.name}}class I extends S.L{static{this[u.Q]="MySqlColumnBuilder"}references(e,t={}){return this.foreignKeyConfigs.push({ref:e,actions:t}),this}unique(e){return this.config.isUnique=!0,this.config.uniqueName=e,this}buildForeignKeys(e,t){return this.foreignKeyConfigs.map(({ref:r,actions:i})=>((r,i)=>{let n=new x(()=>({columns:[e],foreignColumns:[r()]}));return i.onUpdate&&n.onUpdate(i.onUpdate),i.onDelete&&n.onDelete(i.onDelete),n.build(t)})(r,i))}constructor(...e){super(...e),this.foreignKeyConfigs=[]}}class $ extends f.s{constructor(e,t){t.uniqueName||(t.uniqueName=T(e,[t.name])),super(e,t),this.table=e}static{this[u.Q]="MySqlColumn"}}class J extends I{static{this[u.Q]="MySqlColumnBuilderWithAutoIncrement"}constructor(e,t,r){super(e,t,r),this.config.autoIncrement=!1}autoincrement(){return this.config.autoIncrement=!0,this.config.hasDefault=!0,this}}class M extends ${static{this[u.Q]="MySqlColumnWithAutoIncrement"}constructor(...e){super(...e),this.autoIncrement=this.config.autoIncrement}}class N extends g.G7{static{this[u.Q]="MySqlViewBase"}}class R{static{this[u.Q]="MySqlDialect"}async migrate(e,t,r){let i=r.migrationsTable??"__drizzle_migrations",n=g.i6` + create table if not exists ${g.i6.identifier(i)} ( + id serial primary key, + hash text not null, + created_at bigint + ) + `;await t.execute(n);let o=(await t.all(g.i6`select id, hash, created_at from ${g.i6.identifier(i)} order by created_at desc limit 1`))[0];await t.transaction(async t=>{for(let r of e)if(!o||Number(o.created_at){let o=e[m.iA.Symbol.Columns][t],s=g.i6`${g.i6.identifier(o.name)} = ${r}`;return n{let n=[];if((0,u.is)(e,g.$s.Aliased)&&e.isSelectionField)n.push(g.i6.identifier(e.fieldAlias));else if((0,u.is)(e,g.$s.Aliased)||(0,u.is)(e,g.$s)){let r=(0,u.is)(e,g.$s.Aliased)?e.sql:e;t?n.push(new g.$s(r.queryChunks.map(e=>(0,u.is)(e,$)?g.i6.identifier(e.name):e))):n.push(r),(0,u.is)(e,g.$s.Aliased)&&n.push(g.i6` as ${g.i6.identifier(e.fieldAlias)}`)}else(0,u.is)(e,f.s)&&(t?n.push(g.i6.identifier(e.name)):n.push(e));return ie===(O[m.iA.Symbol.IsAlias]?m.SP(O):O[m.iA.Symbol.BaseName])))){let t=(0,m.SP)(e.field.table);throw Error(`Your "${e.path.join("->")}" field references a column "${t}"."${e.field.name}", but the table "${t}" is not part of the query! Did you forget to join it?`)}}let T=!s||0===s.length;if(e?.length){let t=[g.i6`with `];for(let[r,i]of e.entries())t.push(g.i6`${g.i6.identifier(i[h.g1].alias)} as (${i[h.g1].sql})`),r0&&(S=g.i6` order by ${g.i6.join(a,g.i6`, `)}`),l&&l.length>0&&(k=g.i6` group by ${g.i6.join(l,g.i6`, `)}`);let R=c?g.i6` limit ${c}`:void 0,W=d?g.i6` offset ${d}`:void 0;if(p){let{config:e,strength:t}=p;A=g.i6` for ${g.i6.raw(t)}`,e.noWait?A.append(g.i6` no wait`):e.skipLocked&&A.append(g.i6` skip locked`)}let K=g.i6`${b}select${P} ${j} from ${C}${$}${J}${k}${M}${S}${R}${W}${A}`;return w.length>0?this.buildSetOperations(K,w):K}buildSetOperations(e,t){let[r,...i]=t;if(!r)throw Error("Cannot pass undefined values to any set operator");return 0===i.length?this.buildSetOperationQuery({leftSelect:e,setOperator:r}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:e,setOperator:r}),i)}buildSetOperationQuery({leftSelect:e,setOperator:{type:t,isAll:r,rightSelect:i,limit:n,orderBy:o,offset:s}}){let a;let l=g.i6`(${e.getSQL()}) `,c=g.i6`(${i.getSQL()})`;if(o&&o.length>0){let e=[];for(let t of o)if((0,u.is)(t,$))e.push(g.i6.identifier(t.name));else if((0,u.is)(t,g.$s)){for(let e=0;eg.i6.identifier(e.name));for(let[e,r]of t.entries()){let i=[];for(let[e,t]of o){let n=r[e];if(void 0===n||(0,u.is)(n,g.dO)&&void 0===n.value){if(void 0!==t.defaultFn){let e=t.defaultFn(),r=(0,u.is)(e,g.$s)?e:g.i6.param(e,t);i.push(r)}else i.push(g.i6`default`)}else i.push(n)}n.push(i),e({dbKey:t.name,tsKey:e,field:(0,p.lw)(t,s),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let i=Object.fromEntries(Object.entries(n.columns).map(([e,t])=>[e,(0,p.lw)(t,s)]));if(o.where){let e="function"==typeof o.where?o.where(i,(0,y.vU)()):o.where;v=e&&(0,p.UI)(e,s)}let a=[],l=[];if(o.columns){let e=!1;for(let[t,r]of Object.entries(o.columns))void 0!==r&&t in n.columns&&(e||!0!==r||(e=!0),l.push(t));l.length>0&&(l=e?l.filter(e=>o.columns?.[e]===!0):Object.keys(n.columns).filter(e=>!l.includes(e)))}else l=Object.keys(n.columns);for(let e of l){let t=n.columns[e];a.push({tsKey:e,value:t})}let b=[];if(o.with&&(b=Object.entries(o.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:n.relations[e]}))),o.extras)for(let[e,t]of Object.entries("function"==typeof o.extras?o.extras(i,{sql:g.i6}):o.extras))a.push({tsKey:e,value:(0,p.qD)(t,s)});for(let{tsKey:e,value:t}of a)k.push({dbKey:(0,u.is)(t,g.$s.Aliased)?t.fieldAlias:n.columns[e].name,tsKey:e,field:(0,u.is)(t,f.s)?(0,p.lw)(t,s):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let S="function"==typeof o.orderBy?o.orderBy(i,(0,y.pl)()):o.orderBy??[];for(let{tsKey:i,queryConfig:n,relation:a}of(Array.isArray(S)||(S=[S]),_=S.map(e=>(0,u.is)(e,f.s)?(0,p.lw)(e,s):(0,p.UI)(e,s)),c=o.limit,d=o.offset,b)){let o=(0,y.wG)(t,r,a),l=r[a.referencedTable[m.iA.Symbol.Name]],c=`${s}_${i}`,d=(0,w.xD)(...o.fields.map((e,t)=>(0,w.eq)((0,p.lw)(o.references[t],c),(0,p.lw)(e,s)))),f=this.buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:r,table:e[l],tableConfig:t[l],queryConfig:(0,u.is)(a,y.fh)?!0===n?{limit:1}:{...n,limit:1}:n,tableAlias:c,joinOn:d,nestedQueryRelation:a}),_=g.i6`${g.i6.identifier(c)}.${g.i6.identifier("data")}`.as(i);A.push({on:g.i6`true`,table:new h.k(f.sql,{},c),alias:c,joinType:"left",lateral:!0}),k.push({dbKey:i,tsKey:i,field:_,relationTableTsKey:l,isJson:!0,selection:f.selection})}}if(0===k.length)throw new b.k({message:`No fields selected for table "${n.tsName}" ("${s}")`});if(v=(0,w.xD)(l,v),a){let e=g.i6`json_array(${g.i6.join(k.map(({field:e,tsKey:t,isJson:r})=>r?g.i6`${g.i6.identifier(`${s}_${t}`)}.${g.i6.identifier("data")}`:(0,u.is)(e,g.$s.Aliased)?e.sql:e),g.i6`, `)})`;(0,u.is)(a,y.sj)&&(e=g.i6`coalesce(json_arrayagg(${e}), json_array())`);let t=[{dbKey:"data",tsKey:"data",field:e.as("data"),isJson:!0,relationTableTsKey:n.tsName,selection:k}];void 0!==c||void 0!==d||(_?.length??0)>0?(S=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:[{path:[],field:g.i6.raw("*")},...(_?.length??0)>0?[{path:[],field:g.i6`row_number() over (order by ${g.i6.join(_,g.i6`, `)})`}]:[]],where:v,limit:c,offset:d,setOperators:[]}),v=void 0,c=void 0,d=void 0,_=void 0):S=(0,p.RQ)(i,s),S=this.buildSelectQuery({table:(0,u.is)(S,E)?S:new h.k(S,{},s),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),joins:A,where:v,limit:c,offset:d,orderBy:_,setOperators:[]})}else S=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:k.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),joins:A,where:v,limit:c,offset:d,orderBy:_,setOperators:[]});return{tableTsKey:n.tsName,sql:S,selection:k}}buildRelationalQueryWithoutLateralSubqueries({fullSchema:e,schema:t,tableNamesMap:r,table:i,tableConfig:n,queryConfig:o,tableAlias:s,nestedQueryRelation:a,joinOn:l}){let c,d=[],_,v,S=[],k;if(!0===o)d=Object.entries(n.columns).map(([e,t])=>({dbKey:t.name,tsKey:e,field:(0,p.lw)(t,s),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let i=Object.fromEntries(Object.entries(n.columns).map(([e,t])=>[e,(0,p.lw)(t,s)]));if(o.where){let e="function"==typeof o.where?o.where(i,(0,y.vU)()):o.where;k=e&&(0,p.UI)(e,s)}let a=[],l=[];if(o.columns){let e=!1;for(let[t,r]of Object.entries(o.columns))void 0!==r&&t in n.columns&&(e||!0!==r||(e=!0),l.push(t));l.length>0&&(l=e?l.filter(e=>o.columns?.[e]===!0):Object.keys(n.columns).filter(e=>!l.includes(e)))}else l=Object.keys(n.columns);for(let e of l){let t=n.columns[e];a.push({tsKey:e,value:t})}let c=[];if(o.with&&(c=Object.entries(o.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:n.relations[e]}))),o.extras)for(let[e,t]of Object.entries("function"==typeof o.extras?o.extras(i,{sql:g.i6}):o.extras))a.push({tsKey:e,value:(0,p.qD)(t,s)});for(let{tsKey:e,value:t}of a)d.push({dbKey:(0,u.is)(t,g.$s.Aliased)?t.fieldAlias:n.columns[e].name,tsKey:e,field:(0,u.is)(t,f.s)?(0,p.lw)(t,s):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let h="function"==typeof o.orderBy?o.orderBy(i,(0,y.pl)()):o.orderBy??[];for(let{tsKey:i,queryConfig:n,relation:a}of(Array.isArray(h)||(h=[h]),S=h.map(e=>(0,u.is)(e,f.s)?(0,p.lw)(e,s):(0,p.UI)(e,s)),_=o.limit,v=o.offset,c)){let o=(0,y.wG)(t,r,a),l=r[a.referencedTable[m.iA.Symbol.Name]],c=`${s}_${i}`,h=(0,w.xD)(...o.fields.map((e,t)=>(0,w.eq)((0,p.lw)(o.references[t],c),(0,p.lw)(e,s)))),f=this.buildRelationalQueryWithoutLateralSubqueries({fullSchema:e,schema:t,tableNamesMap:r,table:e[l],tableConfig:t[l],queryConfig:(0,u.is)(a,y.fh)?!0===n?{limit:1}:{...n,limit:1}:n,tableAlias:c,joinOn:h,nestedQueryRelation:a}),_=g.i6`(${f.sql})`;(0,u.is)(a,y.sj)&&(_=g.i6`coalesce(${_}, json_array())`);let v=_.as(i);d.push({dbKey:i,tsKey:i,field:v,relationTableTsKey:l,isJson:!0,selection:f.selection})}}if(0===d.length)throw new b.k({message:`No fields selected for table "${n.tsName}" ("${s}"). You need to have at least one item in "columns", "with" or "extras". If you need to select all columns, omit the "columns" key or set it to undefined.`});if(k=(0,w.xD)(l,k),a){let e=g.i6`json_array(${g.i6.join(d.map(({field:e})=>(0,u.is)(e,$)?g.i6.identifier(e.name):(0,u.is)(e,g.$s.Aliased)?e.sql:e),g.i6`, `)})`;(0,u.is)(a,y.sj)&&(e=g.i6`json_arrayagg(${e})`);let t=[{dbKey:"data",tsKey:"data",field:e,isJson:!0,relationTableTsKey:n.tsName,selection:d}];void 0!==_||void 0!==v||S.length>0?(c=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:[{path:[],field:g.i6.raw("*")},...S.length>0?[{path:[],field:g.i6`row_number() over (order by ${g.i6.join(S,g.i6`, `)})`}]:[]],where:k,limit:_,offset:v,setOperators:[]}),k=void 0,_=void 0,v=void 0,S=void 0):c=(0,p.RQ)(i,s),c=this.buildSelectQuery({table:(0,u.is)(c,E)?c:new h.k(c,{},s),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),where:k,limit:_,offset:v,orderBy:S,setOperators:[]})}else c=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:d.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),where:k,limit:_,offset:v,orderBy:S,setOperators:[]});return{tableTsKey:n.tsName,sql:c,selection:d}}}var W=r(6834),K=r(2852);class U{static{this[u.Q]="MySqlSelectBuilder"}constructor(e){this.withList=[],this.fields=e.fields,this.session=e.session,this.dialect=e.dialect,e.withList&&(this.withList=e.withList),this.distinct=e.distinct}from(e){let t;let r=!!this.fields;return t=this.fields?this.fields:(0,u.is)(e,h.k)?Object.fromEntries(Object.keys(e[h.g1].selection).map(t=>[t,e[t]])):(0,u.is)(e,N)?e[v.d].selectedFields:(0,u.is)(e,g.$s)?{}:(0,_.SS)(e),new D({table:e,fields:t,isPartialSelect:r,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct})}}class H extends W.b{static{this[u.Q]="MySqlSelectQueryBuilder"}constructor({table:e,fields:t,isPartialSelect:r,session:i,dialect:n,withList:o,distinct:s}){super(),this.leftJoin=this.createJoin("left"),this.rightJoin=this.createJoin("right"),this.innerJoin=this.createJoin("inner"),this.fullJoin=this.createJoin("full"),this.union=this.createSetOperator("union",!1),this.unionAll=this.createSetOperator("union",!0),this.intersect=this.createSetOperator("intersect",!1),this.intersectAll=this.createSetOperator("intersect",!0),this.except=this.createSetOperator("except",!1),this.exceptAll=this.createSetOperator("except",!0),this.config={withList:o,table:e,fields:{...t},distinct:s,setOperators:[]},this.isPartialSelect=r,this.session=i,this.dialect=n,this._={selectedFields:t},this.tableName=(0,_.dP)(e),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}createJoin(e){return(t,r)=>{let i=this.tableName,n=(0,_.dP)(t);if("string"==typeof n&&this.config.joins?.some(e=>e.alias===n))throw Error(`Alias "${n}" is already used in this query`);if(!this.isPartialSelect&&(1===Object.keys(this.joinsNotNullableMap).length&&"string"==typeof i&&(this.config.fields={[i]:this.config.fields}),"string"==typeof n&&!(0,u.is)(t,g.$s))){let e=(0,u.is)(t,h.k)?t[h.g1].selection:(0,u.is)(t,g.G7)?t[v.d].selectedFields:t[m.iA.Symbol.Columns];this.config.fields[n]=e}if("function"==typeof r&&(r=r(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:r,table:t,joinType:e,alias:n}),"string"==typeof n)switch(e){case"left":this.joinsNotNullableMap[n]=!1;break;case"right":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[n]=!0;break;case"inner":this.joinsNotNullableMap[n]=!0;break;case"full":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[n]=!1}return this}}createSetOperator(e,t){return r=>{let i="function"==typeof r?r(L()):r;if(!(0,_.ux)(this.getSelectedFields(),i.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:e,isAll:t,rightSelect:i}),this}}addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=e,this}having(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.having=e,this}groupBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(t)?t:[t]}else this.config.groupBy=e;return this}orderBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),r=Array.isArray(t)?t:[t];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=r:this.config.orderBy=r}else this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=e:this.config.orderBy=e;return this}limit(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=e:this.config.limit=e,this}offset(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=e:this.config.offset=e,this}for(e,t={}){return this.config.lockingClause={strength:e,config:t},this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}as(e){return new Proxy(new h.k(this.getSQL(),this.config.fields,e),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new d.e({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}}class D extends H{static{this[u.Q]="MySqlSelect"}prepare(){if(!this.session)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");let e=(0,_.ZS)(this.config.fields),t=this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),e);return t.joinsNotNullableMap=this.joinsNotNullableMap,t}constructor(...e){super(...e),this.execute=e=>this.prepare().execute(e),this.createIterator=()=>{let e=this;return async function*(t){yield*e.prepare().iterator(t)}},this.iterator=this.createIterator()}}function q(e,t){return(r,i,...n)=>{let o=[i,...n].map(r=>({type:e,isAll:t,rightSelect:r}));for(let e of o)if(!(0,_.ux)(r.getSelectedFields(),e.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return r.addSetOperators(o)}}(0,_.ef)(D,[K.N]);let L=()=>({union:B,unionAll:Q,intersect:z,intersectAll:F,except:V,exceptAll:G}),B=q("union",!1),Q=q("union",!0),z=q("intersect",!1),F=q("intersect",!0),V=q("except",!1),G=q("except",!0);class X{static{this[u.Q]="MySqlQueryBuilder"}$with(e){let t=this;return{as:r=>("function"==typeof r&&(r=r(t)),new Proxy(new h.SC(r.getSQL(),r.getSelectedFields(),e,!0),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new U({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e})},selectDistinct:function(r){return new U({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e,distinct:!0})}}}select(e){return new U({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new U({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}getDialect(){return this.dialect||(this.dialect=new R),this.dialect}}class Y{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[u.Q]="MySqlUpdateBuilder"}set(e){return new Z(this.table,(0,_.M6)(this.table,e),this.session,this.dialect)}}class Z extends K.N{constructor(e,t,r,i){super(),this.execute=e=>this.prepare().execute(e),this.createIterator=()=>{let e=this;return async function*(t){yield*e.prepare().iterator(t)}},this.iterator=this.createIterator(),this.session=r,this.dialect=i,this.config={set:t,table:e}}static{this[u.Q]="MySqlUpdate"}where(e){return this.config.where=e,this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(){return this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning)}$dynamic(){return this}}class ee{constructor(e,t,r){this.shouldIgnore=!1,this.table=e,this.session=t,this.dialect=r}static{this[u.Q]="MySqlInsertBuilder"}ignore(){return this.shouldIgnore=!0,this}values(e){if(0===(e=Array.isArray(e)?e:[e]).length)throw Error("values() must be called with at least one value");let t=e.map(e=>{let t={},r=this.table[m.iA.Symbol.Columns];for(let i of Object.keys(e)){let n=e[i];t[i]=(0,u.is)(n,g.$s)?n:new g.dO(n,r[i])}return t});return new et(this.table,t,this.shouldIgnore,this.session,this.dialect)}}class et extends K.N{constructor(e,t,r,i,n){super(),this.execute=e=>this.prepare().execute(e),this.createIterator=()=>{let e=this;return async function*(t){yield*e.prepare().iterator(t)}},this.iterator=this.createIterator(),this.session=i,this.dialect=n,this.config={table:e,values:t,ignore:r}}static{this[u.Q]="MySqlInsert"}onDuplicateKeyUpdate(e){let t=this.dialect.buildUpdateSet(this.config.table,(0,_.M6)(this.config.table,e.set));return this.config.onConflict=g.i6`update ${t}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(){return this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0)}$dynamic(){return this}}class er extends K.N{constructor(e,t,r){super(),this.execute=e=>this.prepare().execute(e),this.createIterator=()=>{let e=this;return async function*(t){yield*e.prepare().iterator(t)}},this.iterator=this.createIterator(),this.table=e,this.session=t,this.dialect=r,this.config={table:e}}static{this[u.Q]="MySqlDelete"}where(e){return this.config.where=e,this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(){return this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning)}$dynamic(){return this}}class ei{constructor(e,t,r,i,n,o,s,a){this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=o,this.session=s,this.mode=a}static{this[u.Q]="MySqlRelationalQueryBuilder"}findMany(e){return new en(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many",this.mode)}findFirst(e){return new en(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first",this.mode)}}class en extends K.N{constructor(e,t,r,i,n,o,s,a,l,c){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=o,this.session=s,this.config=a,this.queryMode=l,this.mode=c}static{this[u.Q]="MySqlRelationalQuery"}prepare(){let{query:e,builtQuery:t}=this._toSQL();return this.session.prepareQuery(t,void 0,t=>{let r=t.map(t=>(0,y.WX)(this.schema,this.tableConfig,t,e.selection));return"first"===this.queryMode?r[0]:r})}_getQuery(){return"planetscale"===this.mode?this.dialect.buildRelationalQueryWithoutLateralSubqueries({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName}):this.dialect.buildRelationalQuery({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName})}_toSQL(){let e=this._getQuery();return{builtQuery:this.dialect.sqlToQuery(e.sql),query:e}}getSQL(){return this._getQuery().sql}toSQL(){return this._toSQL().builtQuery}execute(){return this.prepare().execute()}}class eo{constructor(e,t,r,i){if(this.dialect=e,this.session=t,this.mode=i,this._=r?{schema:r.schema,tableNamesMap:r.tableNamesMap}:{schema:void 0,tableNamesMap:{}},this.query={},this._.schema)for(let[i,n]of Object.entries(this._.schema))this.query[i]=new ei(r.fullSchema,this._.schema,this._.tableNamesMap,r.fullSchema[i],n,e,t,this.mode)}static{this[u.Q]="MySqlDatabase"}$with(e){return{as:t=>("function"==typeof t&&(t=t(new X)),new Proxy(new h.SC(t.getSQL(),t.getSelectedFields(),e,!0),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new U({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e})},selectDistinct:function(r){return new U({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})}}}select(e){return new U({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new U({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}update(e){return new Y(e,this.session,this.dialect)}insert(e){return new ee(e,this.session,this.dialect)}delete(e){return new er(e,this.session,this.dialect)}execute(e){return this.session.execute(e.getSQL())}transaction(e,t){return this.session.transaction(e,t)}}var es=r(3851);class ea{static{this[u.Q]="PgForeignKeyBuilder"}constructor(e,t){this._onUpdate="no action",this._onDelete="no action",this.reference=()=>{let{name:t,columns:r,foreignColumns:i}=e();return{name:t,columns:r,foreignTable:i[0].table,foreignColumns:i}},t&&(this._onUpdate=t.onUpdate,this._onDelete=t.onDelete)}onUpdate(e){return this._onUpdate=void 0===e?"no action":e,this}onDelete(e){return this._onDelete=void 0===e?"no action":e,this}build(e){return new el(e,this)}}class el{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static{this[u.Q]="PgForeignKey"}getName(){let{name:e,columns:t,foreignColumns:r}=this.reference(),i=t.map(e=>e.name),n=r.map(e=>e.name),o=[this.table[es.YA.Symbol.Name],...i,r[0].table[es.YA.Symbol.Name],...n];return e??`${o.join("_")}_fk`}}function ec(e,t){return`${e[es.YA.Symbol.Name]}_${t.join("_")}_unique`}class eu{constructor(e,t){this.nullsNotDistinctConfig=!1,this.name=t,this.columns=e}static{this[u.Q]="PgUniqueConstraintBuilder"}nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(e){return new eh(e,this.columns,this.nullsNotDistinctConfig,this.name)}}class ed{static{this[u.Q]="PgUniqueOnConstraintBuilder"}constructor(e){this.name=e}on(...e){return new eu(e,this.name)}}class eh{constructor(e,t,r,i){this.nullsNotDistinct=!1,this.table=e,this.columns=t,this.name=i??ec(this.table,this.columns.map(e=>e.name)),this.nullsNotDistinct=r}static{this[u.Q]="PgUniqueConstraint"}getName(){return this.name}}function ep(e,t,r){for(let i=t;i(0,ef.t)((r,i)=>{let n=new ea(()=>({columns:[e],foreignColumns:[r()]}));return i.onUpdate&&n.onUpdate(i.onUpdate),i.onDelete&&n.onDelete(i.onDelete),n.build(t)},r,i))}constructor(...e){super(...e),this.foreignKeyConfigs=[]}}class eg extends f.s{constructor(e,t){t.uniqueName||(t.uniqueName=ec(e,[t.name])),super(e,t),this.table=e}static{this[u.Q]="PgColumn"}}class em extends ey{static{this[u.Q]="PgArrayBuilder"}constructor(e,t,r){super(e,"array","PgArray"),this.config.baseBuilder=t,this.config.size=r}build(e){let t=this.config.baseBuilder.build(e);return new e_(e,this.config,t)}}class e_ extends eg{constructor(e,t,r,i){super(e,t),this.baseColumn=r,this.range=i,this.size=t.size}static{this[u.Q]="PgArray"}getSQLType(){return`${this.baseColumn.getSQLType()}[${"number"==typeof this.size?this.size:""}]`}mapFromDriverValue(e){return"string"==typeof e&&(e=function(e){let[t]=function e(t,r=0){let i=[],n=r,o=!1;for(;nthis.baseColumn.mapFromDriverValue(e))}mapToDriverValue(e,t=!1){let r=e.map(e=>null===e?null:(0,u.is)(this.baseColumn,e_)?this.baseColumn.mapToDriverValue(e,!0):this.baseColumn.mapToDriverValue(e));return t?r:function e(t){return`{${t.map(t=>Array.isArray(t)?e(t):"string"==typeof t?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}(r)}}class ev extends ey{static{this[u.Q]="PgJsonbBuilder"}constructor(e){super(e,"json","PgJsonb")}build(e){return new ew(e,this.config)}}class ew extends eg{static{this[u.Q]="PgJsonb"}constructor(e,t){super(e,t)}getSQLType(){return"jsonb"}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){if("string"==typeof e)try{return JSON.parse(e)}catch{}return e}}class eb extends ey{static{this[u.Q]="PgJsonBuilder"}constructor(e){super(e,"json","PgJson")}build(e){return new eS(e,this.config)}}class eS extends eg{static{this[u.Q]="PgJson"}constructor(e,t){super(e,t)}getSQLType(){return"json"}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){if("string"==typeof e)try{return JSON.parse(e)}catch{}return e}}class ek extends ey{static{this[u.Q]="PgNumericBuilder"}constructor(e,t,r){super(e,"string","PgNumeric"),this.config.precision=t,this.config.scale=r}build(e){return new eE(e,this.config)}}class eE extends eg{static{this[u.Q]="PgNumeric"}constructor(e,t){super(e,t),this.precision=t.precision,this.scale=t.scale}getSQLType(){return void 0!==this.precision&&void 0!==this.scale?`numeric(${this.precision}, ${this.scale})`:void 0===this.precision?"numeric":`numeric(${this.precision})`}}class eA extends ey{static{this[u.Q]="PgDateColumnBaseBuilder"}defaultNow(){return this.default(g.i6`now()`)}}class ex extends eA{constructor(e,t,r){super(e,"string","PgTime"),this.withTimezone=t,this.precision=r,this.config.withTimezone=t,this.config.precision=r}static{this[u.Q]="PgTimeBuilder"}build(e){return new eO(e,this.config)}}class eO extends eg{static{this[u.Q]="PgTime"}constructor(e,t){super(e,t),this.withTimezone=t.withTimezone,this.precision=t.precision}getSQLType(){let e=void 0===this.precision?"":`(${this.precision})`;return`time${e}${this.withTimezone?" with time zone":""}`}}class eT extends eA{static{this[u.Q]="PgTimestampBuilder"}constructor(e,t,r){super(e,"date","PgTimestamp"),this.config.withTimezone=t,this.config.precision=r}build(e){return new eP(e,this.config)}}class eP extends eg{static{this[u.Q]="PgTimestamp"}constructor(e,t){super(e,t),this.mapFromDriverValue=e=>new Date(this.withTimezone?e:e+"+0000"),this.mapToDriverValue=e=>this.withTimezone?e.toUTCString():e.toISOString(),this.withTimezone=t.withTimezone,this.precision=t.precision}getSQLType(){let e=void 0===this.precision?"":` (${this.precision})`;return`timestamp${e}${this.withTimezone?" with time zone":""}`}}class ej extends eA{static{this[u.Q]="PgTimestampStringBuilder"}constructor(e,t,r){super(e,"string","PgTimestampString"),this.config.withTimezone=t,this.config.precision=r}build(e){return new eC(e,this.config)}}class eC extends eg{static{this[u.Q]="PgTimestampString"}constructor(e,t){super(e,t),this.withTimezone=t.withTimezone,this.precision=t.precision}getSQLType(){let e=void 0===this.precision?"":`(${this.precision})`;return`timestamp${e}${this.withTimezone?" with time zone":""}`}}function eI(e,t={}){return"string"===t.mode?new ej(e,t.withTimezone??!1,t.precision):new eT(e,t.withTimezone??!1,t.precision)}class e$ extends eA{static{this[u.Q]="PgDateBuilder"}constructor(e){super(e,"date","PgDate")}build(e){return new eJ(e,this.config)}}class eJ extends eg{static{this[u.Q]="PgDate"}getSQLType(){return"date"}mapFromDriverValue(e){return new Date(e)}mapToDriverValue(e){return e.toISOString()}}class eM extends eA{static{this[u.Q]="PgDateStringBuilder"}constructor(e){super(e,"string","PgDateString")}build(e){return new eN(e,this.config)}}class eN extends eg{static{this[u.Q]="PgDateString"}getSQLType(){return"date"}}class eR extends ey{static{this[u.Q]="PgUUIDBuilder"}constructor(e){super(e,"string","PgUUID")}defaultRandom(){return this.default(g.i6`gen_random_uuid()`)}build(e){return new eW(e,this.config)}}class eW extends eg{static{this[u.Q]="PgUUID"}getSQLType(){return"uuid"}}class eK extends g.G7{static{this[u.Q]="PgViewBase"}}class eU{static{this[u.Q]="PgDialect"}async migrate(e,t){let r=g.i6` + CREATE TABLE IF NOT EXISTS "drizzle"."__drizzle_migrations" ( + id SERIAL PRIMARY KEY, + hash text NOT NULL, + created_at bigint + ) + `;await t.execute(g.i6`CREATE SCHEMA IF NOT EXISTS "drizzle"`),await t.execute(r);let i=(await t.all(g.i6`select id, hash, created_at from "drizzle"."__drizzle_migrations" order by created_at desc limit 1`))[0];await t.transaction(async t=>{for await(let r of e)if(!i||Number(i.created_at){let o=e[m.iA.Symbol.Columns][t],s=g.i6`${g.i6.identifier(o.name)} = ${r}`;return n{let n=[];if((0,u.is)(e,g.$s.Aliased)&&e.isSelectionField)n.push(g.i6.identifier(e.fieldAlias));else if((0,u.is)(e,g.$s.Aliased)||(0,u.is)(e,g.$s)){let r=(0,u.is)(e,g.$s.Aliased)?e.sql:e;t?n.push(new g.$s(r.queryChunks.map(e=>(0,u.is)(e,eg)?g.i6.identifier(e.name):e))):n.push(r),(0,u.is)(e,g.$s.Aliased)&&n.push(g.i6` as ${g.i6.identifier(e.fieldAlias)}`)}else(0,u.is)(e,f.s)&&(t?n.push(g.i6.identifier(e.name)):n.push(e));return ie===(x[m.iA.Symbol.IsAlias]?m.SP(x):x[m.iA.Symbol.BaseName])))){let t=(0,m.SP)(e.field.table);throw Error(`Your "${e.path.join("->")}" field references a column "${t}"."${e.field.name}", but the table "${t}" is not part of the query! Did you forget to join it?`)}}let O=!s||0===s.length;if(e?.length){let t=[g.i6`with `];for(let[r,i]of e.entries())t.push(g.i6`${g.i6.identifier(i[h.g1].alias)} as (${i[h.g1].sql})`),r{if((0,u.is)(o,m.iA)&&o[m.iA.Symbol.OriginalName]!==o[m.iA.Symbol.Name]){let e=g.i6`${g.i6.identifier(o[m.iA.Symbol.OriginalName])}`;return o[m.iA.Symbol.Schema]&&(e=g.i6`${g.i6.identifier(o[m.iA.Symbol.Schema])}.${e}`),g.i6`${e} ${g.i6.identifier(o[m.iA.Symbol.Name])}`}return o})(),j=[];if(s)for(let[e,t]of s.entries()){0===e&&j.push(g.i6` `);let r=t.table,i=t.lateral?g.i6` lateral`:void 0;if((0,u.is)(r,es.YA)){let e=r[es.YA.Symbol.Name],n=r[es.YA.Symbol.Schema],o=r[es.YA.Symbol.OriginalName],s=e===o?void 0:t.alias;j.push(g.i6`${g.i6.raw(t.joinType)} join${i} ${n?g.i6`${g.i6.identifier(n)}.`:void 0}${g.i6.identifier(o)}${s&&g.i6` ${g.i6.identifier(s)}`} on ${t.on}`)}else if((0,u.is)(r,g.G7)){let e=r[v.d].name,n=r[v.d].schema,o=r[v.d].originalName,s=e===o?void 0:t.alias;j.push(g.i6`${g.i6.raw(t.joinType)} join${i} ${n?g.i6`${g.i6.identifier(n)}.`:void 0}${g.i6.identifier(o)}${s&&g.i6` ${g.i6.identifier(s)}`} on ${t.on}`)}else j.push(g.i6`${g.i6.raw(t.joinType)} join${i} ${r} on ${t.on}`);e0&&(k=g.i6` order by ${g.i6.join(a,g.i6`, `)}`),l&&l.length>0&&(E=g.i6` group by ${g.i6.join(l,g.i6`, `)}`);let J=c?g.i6` limit ${c}`:void 0,M=d?g.i6` offset ${d}`:void 0,N=g.i6.empty();if(p){let e=g.i6` for ${g.i6.raw(p.strength)}`;p.config.of&&e.append(g.i6` of ${g.i6.join(Array.isArray(p.config.of)?p.config.of:[p.config.of],g.i6`, `)}`),p.config.noWait?e.append(g.i6` no wait`):p.config.skipLocked&&e.append(g.i6` skip locked`),N.append(e)}let R=g.i6`${b}select${S} ${T} from ${P}${C}${I}${E}${$}${k}${J}${M}${N}`;return w.length>0?this.buildSetOperations(R,w):R}buildSetOperations(e,t){let[r,...i]=t;if(!r)throw Error("Cannot pass undefined values to any set operator");return 0===i.length?this.buildSetOperationQuery({leftSelect:e,setOperator:r}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:e,setOperator:r}),i)}buildSetOperationQuery({leftSelect:e,setOperator:{type:t,isAll:r,rightSelect:i,limit:n,orderBy:o,offset:s}}){let a;let l=g.i6`(${e.getSQL()}) `,c=g.i6`(${i.getSQL()})`;if(o&&o.length>0){let e=[];for(let t of o)if((0,u.is)(t,eg))e.push(g.i6.identifier(t.name));else if((0,u.is)(t,g.$s)){for(let e=0;eg.i6.identifier(e.name));for(let[e,r]of t.entries()){let i=[];for(let[e,t]of o){let n=r[e];if(void 0===n||(0,u.is)(n,g.dO)&&void 0===n.value){if(void 0!==t.defaultFn){let e=t.defaultFn(),r=(0,u.is)(e,g.$s)?e:g.i6.param(e,t);i.push(r)}else i.push(g.i6`default`)}else i.push(n)}n.push(i),e({dbKey:t.name,tsKey:e,field:(0,p.lw)(t,s),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let i=Object.fromEntries(Object.entries(n.columns).map(([e,t])=>[e,(0,p.lw)(t,s)]));if(o.where){let e="function"==typeof o.where?o.where(i,(0,y.vU)()):o.where;k=e&&(0,p.UI)(e,s)}let a=[],l=[];if(o.columns){let e=!1;for(let[t,r]of Object.entries(o.columns))void 0!==r&&t in n.columns&&(e||!0!==r||(e=!0),l.push(t));l.length>0&&(l=e?l.filter(e=>o.columns?.[e]===!0):Object.keys(n.columns).filter(e=>!l.includes(e)))}else l=Object.keys(n.columns);for(let e of l){let t=n.columns[e];a.push({tsKey:e,value:t})}let c=[];if(o.with&&(c=Object.entries(o.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:n.relations[e]}))),o.extras)for(let[e,t]of Object.entries("function"==typeof o.extras?o.extras(i,{sql:g.i6}):o.extras))a.push({tsKey:e,value:(0,p.qD)(t,s)});for(let{tsKey:e,value:t}of a)d.push({dbKey:(0,u.is)(t,g.$s.Aliased)?t.fieldAlias:n.columns[e].name,tsKey:e,field:(0,u.is)(t,f.s)?(0,p.lw)(t,s):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let b="function"==typeof o.orderBy?o.orderBy(i,(0,y.pl)()):o.orderBy??[];for(let{tsKey:i,queryConfig:n,relation:a}of(Array.isArray(b)||(b=[b]),S=b.map(e=>(0,u.is)(e,f.s)?(0,p.lw)(e,s):(0,p.UI)(e,s)),_=o.limit,v=o.offset,c)){let o=(0,y.wG)(t,r,a),l=r[a.referencedTable[m.iA.Symbol.Name]],c=`${s}_${i}`,f=(0,w.xD)(...o.fields.map((e,t)=>(0,w.eq)((0,p.lw)(o.references[t],c),(0,p.lw)(e,s)))),_=this.buildRelationalQueryWithoutPK({fullSchema:e,schema:t,tableNamesMap:r,table:e[l],tableConfig:t[l],queryConfig:(0,u.is)(a,y.fh)?!0===n?{limit:1}:{...n,limit:1}:n,tableAlias:c,joinOn:f,nestedQueryRelation:a}),v=g.i6`${g.i6.identifier(c)}.${g.i6.identifier("data")}`.as(i);E.push({on:g.i6`true`,table:new h.k(_.sql,{},c),alias:c,joinType:"left",lateral:!0}),d.push({dbKey:i,tsKey:i,field:v,relationTableTsKey:l,isJson:!0,selection:_.selection})}}if(0===d.length)throw new b.k({message:`No fields selected for table "${n.tsName}" ("${s}")`});if(k=(0,w.xD)(l,k),a){let e=g.i6`json_build_array(${g.i6.join(d.map(({field:e,tsKey:t,isJson:r})=>r?g.i6`${g.i6.identifier(`${s}_${t}`)}.${g.i6.identifier("data")}`:(0,u.is)(e,g.$s.Aliased)?e.sql:e),g.i6`, `)})`;(0,u.is)(a,y.sj)&&(e=g.i6`coalesce(json_agg(${e}${S.length>0?g.i6` order by ${g.i6.join(S,g.i6`, `)}`:void 0}), '[]'::json)`);let t=[{dbKey:"data",tsKey:"data",field:e.as("data"),isJson:!0,relationTableTsKey:n.tsName,selection:d}];void 0!==_||void 0!==v||S.length>0?(c=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:[{path:[],field:g.i6.raw("*")}],where:k,limit:_,offset:v,orderBy:S,setOperators:[]}),k=void 0,_=void 0,v=void 0,S=[]):c=(0,p.RQ)(i,s),c=this.buildSelectQuery({table:(0,u.is)(c,es.YA)?c:new h.k(c,{},s),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),joins:E,where:k,limit:_,offset:v,orderBy:S,setOperators:[]})}else c=this.buildSelectQuery({table:(0,p.RQ)(i,s),fields:{},fieldsFlat:d.map(({field:e})=>({path:[],field:(0,u.is)(e,f.s)?(0,p.lw)(e,s):e})),joins:E,where:k,limit:_,offset:v,orderBy:S,setOperators:[]});return{tableTsKey:n.tsName,sql:c,selection:d}}}var eH=r(7415);class eD{static{this[u.Q]="PgSelectBuilder"}constructor(e){this.withList=[],this.fields=e.fields,this.session=e.session,this.dialect=e.dialect,e.withList&&(this.withList=e.withList),this.distinct=e.distinct}from(e){let t;let r=!!this.fields;return t=this.fields?this.fields:(0,u.is)(e,h.k)?Object.fromEntries(Object.keys(e[h.g1].selection).map(t=>[t,e[t]])):(0,u.is)(e,eK)?e[v.d].selectedFields:(0,u.is)(e,g.$s)?{}:(0,_.SS)(e),new eL({table:e,fields:t,isPartialSelect:r,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct})}}class eq extends W.b{static{this[u.Q]="PgSelectQueryBuilder"}constructor({table:e,fields:t,isPartialSelect:r,session:i,dialect:n,withList:o,distinct:s}){super(),this.leftJoin=this.createJoin("left"),this.rightJoin=this.createJoin("right"),this.innerJoin=this.createJoin("inner"),this.fullJoin=this.createJoin("full"),this.union=this.createSetOperator("union",!1),this.unionAll=this.createSetOperator("union",!0),this.intersect=this.createSetOperator("intersect",!1),this.intersectAll=this.createSetOperator("intersect",!0),this.except=this.createSetOperator("except",!1),this.exceptAll=this.createSetOperator("except",!0),this.config={withList:o,table:e,fields:{...t},distinct:s,setOperators:[]},this.isPartialSelect=r,this.session=i,this.dialect=n,this._={selectedFields:t},this.tableName=(0,_.dP)(e),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}createJoin(e){return(t,r)=>{let i=this.tableName,n=(0,_.dP)(t);if("string"==typeof n&&this.config.joins?.some(e=>e.alias===n))throw Error(`Alias "${n}" is already used in this query`);if(!this.isPartialSelect&&(1===Object.keys(this.joinsNotNullableMap).length&&"string"==typeof i&&(this.config.fields={[i]:this.config.fields}),"string"==typeof n&&!(0,u.is)(t,g.$s))){let e=(0,u.is)(t,h.k)?t[h.g1].selection:(0,u.is)(t,g.G7)?t[v.d].selectedFields:t[m.iA.Symbol.Columns];this.config.fields[n]=e}if("function"==typeof r&&(r=r(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:r,table:t,joinType:e,alias:n}),"string"==typeof n)switch(e){case"left":this.joinsNotNullableMap[n]=!1;break;case"right":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[n]=!0;break;case"inner":this.joinsNotNullableMap[n]=!0;break;case"full":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[n]=!1}return this}}createSetOperator(e,t){return r=>{let i="function"==typeof r?r(eQ()):r;if(!(0,_.ux)(this.getSelectedFields(),i.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:e,isAll:t,rightSelect:i}),this}}addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=e,this}having(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.having=e,this}groupBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(t)?t:[t]}else this.config.groupBy=e;return this}orderBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new d.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),r=Array.isArray(t)?t:[t];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=r:this.config.orderBy=r}else this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=e:this.config.orderBy=e;return this}limit(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=e:this.config.limit=e,this}offset(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=e:this.config.offset=e,this}for(e,t={}){return this.config.lockingClause={strength:e,config:t},this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}as(e){return new Proxy(new h.k(this.getSQL(),this.config.fields,e),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new d.e({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}}class eL extends eq{static{this[u.Q]="PgSelect"}_prepare(e){let{session:t,config:r,dialect:i,joinsNotNullableMap:n}=this;if(!t)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");return eH.Z.startActiveSpan("drizzle.prepareQuery",()=>{let o=(0,_.ZS)(r.fields),s=t.prepareQuery(i.sqlToQuery(this.getSQL()),o,e);return s.joinsNotNullableMap=n,s})}prepare(e){return this._prepare(e)}constructor(...e){super(...e),this.execute=e=>eH.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e))}}function eB(e,t){return(r,i,...n)=>{let o=[i,...n].map(r=>({type:e,isAll:t,rightSelect:r}));for(let e of o)if(!(0,_.ux)(r.getSelectedFields(),e.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return r.addSetOperators(o)}}(0,_.ef)(eL,[K.N]);let eQ=()=>({union:ez,unionAll:eF,intersect:eV,intersectAll:eG,except:eX,exceptAll:eY}),ez=eB("union",!1),eF=eB("union",!0),eV=eB("intersect",!1),eG=eB("intersect",!0),eX=eB("except",!1),eY=eB("except",!0);class eZ{static{this[u.Q]="PgQueryBuilder"}$with(e){let t=this;return{as:r=>("function"==typeof r&&(r=r(t)),new Proxy(new h.SC(r.getSQL(),r.getSelectedFields(),e,!0),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new eD({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e})},selectDistinct:function(e){return new eD({fields:e??void 0,session:void 0,dialect:t.getDialect(),distinct:!0})},selectDistinctOn:function(e,r){return new eD({fields:r??void 0,session:void 0,dialect:t.getDialect(),distinct:{on:e}})}}}select(e){return new eD({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new eD({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}selectDistinctOn(e,t){return new eD({fields:t??void 0,session:void 0,dialect:this.getDialect(),distinct:{on:e}})}getDialect(){return this.dialect||(this.dialect=new eU),this.dialect}}class e0{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[u.Q]="PgUpdateBuilder"}set(e){return new e1(this.table,(0,_.M6)(this.table,e),this.session,this.dialect)}}class e1 extends K.N{constructor(e,t,r,i){super(),this.execute=e=>this._prepare().execute(e),this.session=r,this.dialect=i,this.config={set:t,table:e}}static{this[u.Q]="PgUpdate"}where(e){return this.config.where=e,this}returning(e=this.config.table[m.iA.Symbol.Columns]){return this.config.returning=(0,_.ZS)(e),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e)}prepare(e){return this._prepare(e)}$dynamic(){return this}}class e2{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[u.Q]="PgInsertBuilder"}values(e){if(0===(e=Array.isArray(e)?e:[e]).length)throw Error("values() must be called with at least one value");let t=e.map(e=>{let t={},r=this.table[m.iA.Symbol.Columns];for(let i of Object.keys(e)){let n=e[i];t[i]=(0,u.is)(n,g.$s)?n:new g.dO(n,r[i])}return t});return new e6(this.table,t,this.session,this.dialect)}}class e6 extends K.N{constructor(e,t,r,i){super(),this.execute=e=>eH.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e)),this.session=r,this.dialect=i,this.config={table:e,values:t}}static{this[u.Q]="PgInsert"}returning(e=this.config.table[m.iA.Symbol.Columns]){return this.config.returning=(0,_.ZS)(e),this}onConflictDoNothing(e={}){if(void 0===e.target)this.config.onConflict=g.i6`do nothing`;else{let t="";t=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(e.name)).join(","):this.dialect.escapeName(e.target.name);let r=e.where?g.i6` where ${e.where}`:void 0;this.config.onConflict=g.i6`(${g.i6.raw(t)}) do nothing${r}`}return this}onConflictDoUpdate(e){let t=e.where?g.i6` where ${e.where}`:void 0,r=this.dialect.buildUpdateSet(this.config.table,(0,_.M6)(this.config.table,e.set)),i="";return i=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(e.name)).join(","):this.dialect.escapeName(e.target.name),this.config.onConflict=g.i6`(${g.i6.raw(i)}) do update set ${r}${t}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return eH.Z.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e))}prepare(e){return this._prepare(e)}$dynamic(){return this}}class e5 extends K.N{constructor(e,t,r){super(),this.execute=e=>eH.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e)),this.session=t,this.dialect=r,this.config={table:e}}static{this[u.Q]="PgDelete"}where(e){return this.config.where=e,this}returning(e=this.config.table[m.iA.Symbol.Columns]){return this.config.returning=(0,_.ZS)(e),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return eH.Z.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e))}prepare(e){return this._prepare(e)}$dynamic(){return this}}class e8{constructor(e,t,r,i,n,o,s){this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=o,this.session=s}static{this[u.Q]="PgRelationalQueryBuilder"}findMany(e){return new e4(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many")}findFirst(e){return new e4(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first")}}class e4 extends K.N{constructor(e,t,r,i,n,o,s,a,l){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=o,this.session=s,this.config=a,this.mode=l}static{this[u.Q]="PgRelationalQuery"}_prepare(e){return eH.Z.startActiveSpan("drizzle.prepareQuery",()=>{let{query:t,builtQuery:r}=this._toSQL();return this.session.prepareQuery(r,void 0,e,(e,r)=>{let i=e.map(e=>(0,y.WX)(this.schema,this.tableConfig,e,t.selection,r));return"first"===this.mode?i[0]:i})})}prepare(e){return this._prepare(e)}_getQuery(){return this.dialect.buildRelationalQueryWithoutPK({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName})}getSQL(){return this._getQuery().sql}_toSQL(){let e=this._getQuery(),t=this.dialect.sqlToQuery(e.sql);return{query:e,builtQuery:t}}toSQL(){return this._toSQL().builtQuery}execute(){return eH.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute())}}class e3 extends K.N{constructor(e,t,r){super(),this.execute=e=>eH.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e)),this.session=t,this.dialect=r,this.config={view:e}}static{this[u.Q]="PgRefreshMaterializedView"}concurrently(){if(void 0!==this.config.withNoData)throw Error("Cannot use concurrently and withNoData together");return this.config.concurrently=!0,this}withNoData(){if(void 0!==this.config.concurrently)throw Error("Cannot use concurrently and withNoData together");return this.config.withNoData=!0,this}getSQL(){return this.dialect.buildRefreshMaterializedViewQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return eH.Z.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0,e))}prepare(e){return this._prepare(e)}}class e9{constructor(e,t,r){if(this.dialect=e,this.session=t,this._=r?{schema:r.schema,tableNamesMap:r.tableNamesMap}:{schema:void 0,tableNamesMap:{}},this.query={},this._.schema)for(let[i,n]of Object.entries(this._.schema))this.query[i]=new e8(r.fullSchema,this._.schema,this._.tableNamesMap,r.fullSchema[i],n,e,t)}static{this[u.Q]="PgDatabase"}$with(e){return{as:t=>("function"==typeof t&&(t=t(new eZ)),new Proxy(new h.SC(t.getSQL(),t.getSelectedFields(),e,!0),new d.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new eD({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e})}}}select(e){return new eD({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new eD({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}selectDistinctOn(e,t){return new eD({fields:t??void 0,session:this.session,dialect:this.dialect,distinct:{on:e}})}update(e){return new e0(e,this.session,this.dialect)}insert(e){return new e2(e,this.session,this.dialect)}delete(e){return new e5(e,this.session,this.dialect)}refreshMaterializedView(e){return new e3(e,this.session,this.dialect)}execute(e){return this.session.execute(e.getSQL())}transaction(e,t){return this.session.transaction(e,t)}}var e7=r(8728);class te extends I{static{this[u.Q]="MySqlVarCharBuilder"}constructor(e,t){super(e,"string","MySqlVarChar"),this.config.length=t.length,this.config.enum=t.enum}build(e){return new tt(e,this.config)}}class tt extends ${static{this[u.Q]="MySqlVarChar"}getSQLType(){return void 0===this.length?"varchar":`varchar(${this.length})`}constructor(...e){super(...e),this.length=this.config.length,this.enumValues=this.config.enum}}function tr(e,t){return new te(e,t)}class ti extends I{static{this[u.Q]="MySqlDateColumnBuilder"}defaultNow(){return this.default(g.i6`(now())`)}onUpdateNow(){return this.config.hasOnUpdateNow=!0,this.config.hasDefault=!0,this}}class tn extends ${static{this[u.Q]="MySqlDateColumn"}constructor(...e){super(...e),this.hasOnUpdateNow=this.config.hasOnUpdateNow}}class to extends ti{static{this[u.Q]="MySqlTimestampBuilder"}constructor(e,t){super(e,"date","MySqlTimestamp"),this.config.fsp=t?.fsp}build(e){return new ts(e,this.config)}}class ts extends tn{static{this[u.Q]="MySqlTimestamp"}getSQLType(){let e=void 0===this.fsp?"":`(${this.fsp})`;return`timestamp${e}`}mapFromDriverValue(e){return new Date(e+"+0000")}mapToDriverValue(e){return e.toISOString().slice(0,-1).replace("T"," ")}constructor(...e){super(...e),this.fsp=this.config.fsp}}class ta extends ti{static{this[u.Q]="MySqlTimestampStringBuilder"}constructor(e,t){super(e,"string","MySqlTimestampString"),this.config.fsp=t?.fsp}build(e){return new tl(e,this.config)}}class tl extends tn{static{this[u.Q]="MySqlTimestampString"}getSQLType(){let e=void 0===this.fsp?"":`(${this.fsp})`;return`timestamp${e}`}constructor(...e){super(...e),this.fsp=this.config.fsp}}function tc(e,t={}){return"string"===t.mode?new ta(e,t):new to(e,t)}class tu extends J{static{this[u.Q]="MySqlIntBuilder"}constructor(e,t){super(e,"number","MySqlInt"),this.config.unsigned=!!t&&t.unsigned}build(e){return new td(e,this.config)}}class td extends M{static{this[u.Q]="MySqlInt"}getSQLType(){return`int${this.config.unsigned?" unsigned":""}`}mapFromDriverValue(e){return"string"==typeof e?Number(e):e}}function th(...e){return e[0].columns?new tp(e[0].columns,e[0].name):new tp(e)}class tp{static{this[u.Q]="MySqlPrimaryKeyBuilder"}constructor(e,t){this.columns=e,this.name=t}build(e){return new tf(e,this.columns,this.name)}}class tf{constructor(e,t,r){this.table=e,this.columns=t,this.name=r}static{this[u.Q]="MySqlPrimaryKey"}getName(){return this.name??`${this.table[E.Symbol.Name]}_${this.columns.map(e=>e.name).join("_")}_pk`}}class ty extends ey{static{this[u.Q]="PgTextBuilder"}constructor(e,t){super(e,"string","PgText"),this.config.enumValues=t.enum}build(e){return new tg(e,this.config)}}class tg extends eg{static{this[u.Q]="PgText"}getSQLType(){return"text"}constructor(...e){super(...e),this.enumValues=this.config.enumValues}}function tm(e,t={}){return new ty(e,t)}class t_ extends ey{static{this[u.Q]="PgIntegerBuilder"}constructor(e){super(e,"number","PgInteger")}build(e){return new tv(e,this.config)}}class tv extends eg{static{this[u.Q]="PgInteger"}getSQLType(){return"integer"}mapFromDriverValue(e){return"string"==typeof e?Number.parseInt(e):e}}var tw=r(6655);function tb(e){let t={};for(let r in e)void 0!==e[r]&&(t[r]=e[r]);return t}var tS=r(440),tk=r(9415),tE=r(7357),tA=r(5225),tx=r(4569),tO=r(8654),tT=r(5054),tP=r(246);let tj={callbacks:{session:({session:e,token:t})=>({...e,user:{...e.user,id:t.id,token:t}})},adapter:function(e,t){if((0,u.is)(e,eo))return function(e,t=A){let{users:r,accounts:i,sessions:n,verificationTokens:o}=function(e){let t=e("user",{id:tr("id",{length:255}).notNull().primaryKey(),name:tr("name",{length:255}),email:tr("email",{length:255}).notNull(),emailVerified:tc("emailVerified",{mode:"date",fsp:3}).defaultNow(),image:tr("image",{length:255})}),r=e("account",{userId:tr("userId",{length:255}).notNull().references(()=>t.id,{onDelete:"cascade"}),type:tr("type",{length:255}).$type().notNull(),provider:tr("provider",{length:255}).notNull(),providerAccountId:tr("providerAccountId",{length:255}).notNull(),refresh_token:tr("refresh_token",{length:255}),access_token:tr("access_token",{length:255}),expires_at:new tu("expires_at",void 0),token_type:tr("token_type",{length:255}),scope:tr("scope",{length:255}),id_token:tr("id_token",{length:255}),session_state:tr("session_state",{length:255})},e=>({compoundKey:th(e.provider,e.providerAccountId)})),i=e("session",{sessionToken:tr("sessionToken",{length:255}).notNull().primaryKey(),userId:tr("userId",{length:255}).notNull().references(()=>t.id,{onDelete:"cascade"}),expires:tc("expires",{mode:"date"}).notNull()});return{users:t,accounts:r,sessions:i,verificationTokens:e("verificationToken",{identifier:tr("identifier",{length:255}).notNull(),token:tr("token",{length:255}).notNull(),expires:tc("expires",{mode:"date"}).notNull()},e=>({compoundKey:th(e.identifier,e.token)}))}}(t);return{async createUser(t){let i=crypto.randomUUID();return await e.insert(r).values({...t,id:i}),await e.select().from(r).where((0,w.eq)(r.id,i)).then(e=>e[0])},getUser:async t=>await e.select().from(r).where((0,w.eq)(r.id,t)).then(e=>e[0])??null,getUserByEmail:async t=>await e.select().from(r).where((0,w.eq)(r.email,t)).then(e=>e[0])??null,createSession:async t=>(await e.insert(n).values(t),await e.select().from(n).where((0,w.eq)(n.sessionToken,t.sessionToken)).then(e=>e[0])),getSessionAndUser:async t=>await e.select({session:n,user:r}).from(n).where((0,w.eq)(n.sessionToken,t)).innerJoin(r,(0,w.eq)(r.id,n.userId)).then(e=>e[0])??null,async updateUser(t){if(!t.id)throw Error("No user id.");return await e.update(r).set(t).where((0,w.eq)(r.id,t.id)),await e.select().from(r).where((0,w.eq)(r.id,t.id)).then(e=>e[0])},updateSession:async t=>(await e.update(n).set(t).where((0,w.eq)(n.sessionToken,t.sessionToken)),await e.select().from(n).where((0,w.eq)(n.sessionToken,t.sessionToken)).then(e=>e[0])),async linkAccount(t){await e.insert(i).values(t)},async getUserByAccount(t){let n=await e.select().from(i).where((0,w.xD)((0,w.eq)(i.providerAccountId,t.providerAccountId),(0,w.eq)(i.provider,t.provider))).leftJoin(r,(0,w.eq)(i.userId,r.id)).then(e=>e[0])??null;return n?n.user:null},async deleteSession(t){let r=await e.select().from(n).where((0,w.eq)(n.sessionToken,t)).then(e=>e[0])??null;return await e.delete(n).where((0,w.eq)(n.sessionToken,t)),r},createVerificationToken:async t=>(await e.insert(o).values(t),await e.select().from(o).where((0,w.eq)(o.identifier,t.identifier)).then(e=>e[0])),async useVerificationToken(t){try{let r=await e.select().from(o).where((0,w.xD)((0,w.eq)(o.identifier,t.identifier),(0,w.eq)(o.token,t.token))).then(e=>e[0])??null;return await e.delete(o).where((0,w.xD)((0,w.eq)(o.identifier,t.identifier),(0,w.eq)(o.token,t.token))),r}catch(e){throw Error("No verification token found.")}},async deleteUser(t){let i=await e.select().from(r).where((0,w.eq)(r.id,t)).then(e=>e[0]??null);return await e.delete(r).where((0,w.eq)(r.id,t)),i},async unlinkAccount(t){await e.delete(i).where((0,w.xD)((0,w.eq)(i.providerAccountId,t.providerAccountId),(0,w.eq)(i.provider,t.provider)))}}}(e,t);if((0,u.is)(e,e9))return function(e,t=es.af){let{users:r,accounts:i,sessions:n,verificationTokens:o}=function(e){let t=e("user",{id:tm("id").notNull().primaryKey(),name:tm("name"),email:tm("email").notNull(),emailVerified:eI("emailVerified",{mode:"date"}),image:tm("image")}),r=e("account",{userId:tm("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),type:tm("type").$type().notNull(),provider:tm("provider").notNull(),providerAccountId:tm("providerAccountId").notNull(),refresh_token:tm("refresh_token"),access_token:tm("access_token"),expires_at:new t_("expires_at"),token_type:tm("token_type"),scope:tm("scope"),id_token:tm("id_token"),session_state:tm("session_state")},e=>({compoundKey:(0,tw.CK)(e.provider,e.providerAccountId)})),i=e("session",{sessionToken:tm("sessionToken").notNull().primaryKey(),userId:tm("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),expires:eI("expires",{mode:"date"}).notNull()});return{users:t,accounts:r,sessions:i,verificationTokens:e("verificationToken",{identifier:tm("identifier").notNull(),token:tm("token").notNull(),expires:eI("expires",{mode:"date"}).notNull()},e=>({compoundKey:(0,tw.CK)(e.identifier,e.token)}))}}(t);return{createUser:async t=>await e.insert(r).values({...t,id:crypto.randomUUID()}).returning().then(e=>e[0]??null),getUser:async t=>await e.select().from(r).where((0,w.eq)(r.id,t)).then(e=>e[0]??null),getUserByEmail:async t=>await e.select().from(r).where((0,w.eq)(r.email,t)).then(e=>e[0]??null),createSession:async t=>await e.insert(n).values(t).returning().then(e=>e[0]),getSessionAndUser:async t=>await e.select({session:n,user:r}).from(n).where((0,w.eq)(n.sessionToken,t)).innerJoin(r,(0,w.eq)(r.id,n.userId)).then(e=>e[0]??null),async updateUser(t){if(!t.id)throw Error("No user id.");return await e.update(r).set(t).where((0,w.eq)(r.id,t.id)).returning().then(e=>e[0])},updateSession:async t=>await e.update(n).set(t).where((0,w.eq)(n.sessionToken,t.sessionToken)).returning().then(e=>e[0]),linkAccount:async t=>tb(await e.insert(i).values(t).returning().then(e=>e[0])),async getUserByAccount(t){let n=await e.select().from(i).where((0,w.xD)((0,w.eq)(i.providerAccountId,t.providerAccountId),(0,w.eq)(i.provider,t.provider))).leftJoin(r,(0,w.eq)(i.userId,r.id)).then(e=>e[0])??null;return n?.user??null},deleteSession:async t=>await e.delete(n).where((0,w.eq)(n.sessionToken,t)).returning().then(e=>e[0]??null),createVerificationToken:async t=>await e.insert(o).values(t).returning().then(e=>e[0]),async useVerificationToken(t){try{return await e.delete(o).where((0,w.xD)((0,w.eq)(o.identifier,t.identifier),(0,w.eq)(o.token,t.token))).returning().then(e=>e[0]??null)}catch(e){throw Error("No verification token found.")}},async deleteUser(t){await e.delete(r).where((0,w.eq)(r.id,t)).returning().then(e=>e[0]??null)},async unlinkAccount(t){let{type:r,provider:n,providerAccountId:o,userId:s}=await e.delete(i).where((0,w.xD)((0,w.eq)(i.providerAccountId,t.providerAccountId),(0,w.eq)(i.provider,t.provider))).returning().then(e=>e[0]??null);return{provider:n,type:r,providerAccountId:o,userId:s}}}}(e,t);if((0,u.is)(e,e7.z))return function(e,t=tA.Px){let{users:r,accounts:i,sessions:n,verificationTokens:o}=function(e){let t=e("user",{id:(0,tS.fL)("id").notNull().primaryKey(),name:(0,tS.fL)("name"),email:(0,tS.fL)("email").notNull(),emailVerified:(0,tk._L)("emailVerified",{mode:"timestamp_ms"}),image:(0,tS.fL)("image")}),r=e("account",{userId:(0,tS.fL)("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),type:(0,tS.fL)("type").$type().notNull(),provider:(0,tS.fL)("provider").notNull(),providerAccountId:(0,tS.fL)("providerAccountId").notNull(),refresh_token:(0,tS.fL)("refresh_token"),access_token:(0,tS.fL)("access_token"),expires_at:(0,tk._L)("expires_at"),token_type:(0,tS.fL)("token_type"),scope:(0,tS.fL)("scope"),id_token:(0,tS.fL)("id_token"),session_state:(0,tS.fL)("session_state")},e=>({compoundKey:(0,tE.CK)(e.provider,e.providerAccountId)})),i=e("session",{sessionToken:(0,tS.fL)("sessionToken").notNull().primaryKey(),userId:(0,tS.fL)("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),expires:(0,tk._L)("expires",{mode:"timestamp_ms"}).notNull()});return{users:t,accounts:r,sessions:i,verificationTokens:e("verificationToken",{identifier:(0,tS.fL)("identifier").notNull(),token:(0,tS.fL)("token").notNull(),expires:(0,tk._L)("expires",{mode:"timestamp_ms"}).notNull()},e=>({compoundKey:(0,tE.CK)(e.identifier,e.token)}))}}(t);return{createUser:async t=>await e.insert(r).values({...t,id:crypto.randomUUID()}).returning().get(),getUser:async t=>await e.select().from(r).where((0,w.eq)(r.id,t)).get()??null,getUserByEmail:async t=>await e.select().from(r).where((0,w.eq)(r.email,t)).get()??null,createSession:t=>e.insert(n).values(t).returning().get(),getSessionAndUser:async t=>await e.select({session:n,user:r}).from(n).where((0,w.eq)(n.sessionToken,t)).innerJoin(r,(0,w.eq)(r.id,n.userId)).get()??null,async updateUser(t){if(!t.id)throw Error("No user id.");return await e.update(r).set(t).where((0,w.eq)(r.id,t.id)).returning().get()??null},updateSession:async t=>await e.update(n).set(t).where((0,w.eq)(n.sessionToken,t.sessionToken)).returning().get()??null,linkAccount:async t=>tb(await e.insert(i).values(t).returning().get()),async getUserByAccount(t){let n=await e.select().from(i).leftJoin(r,(0,w.eq)(r.id,i.userId)).where((0,w.xD)((0,w.eq)(i.provider,t.provider),(0,w.eq)(i.providerAccountId,t.providerAccountId))).get();return n?Promise.resolve(n).then(e=>e.user):null},deleteSession:async t=>await e.delete(n).where((0,w.eq)(n.sessionToken,t)).returning().get()??null,createVerificationToken:async t=>await e.insert(o).values(t).returning().get()??null,async useVerificationToken(t){try{return await e.delete(o).where((0,w.xD)((0,w.eq)(o.identifier,t.identifier),(0,w.eq)(o.token,t.token))).returning().get()??null}catch(e){throw Error("No verification token found.")}},deleteUser:async t=>await e.delete(r).where((0,w.eq)(r.id,t)).returning().get()??null,async unlinkAccount(t){await e.delete(i).where((0,w.xD)((0,w.eq)(i.providerAccountId,t.providerAccountId),(0,w.eq)(i.provider,t.provider))).run()}}}(e,t);throw Error(`Unsupported database type (${typeof e}) in Auth.js Drizzle adapter.`)}(tT.db,tP.createTable),providers:[(0,tx.Z)({clientId:tO.O.GOOGLE_CLIENT_ID,clientSecret:tO.O.GOOGLE_CLIENT_SECRET})]},tC=c()(tj),tI=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/auth/[...nextauth]/route",pathname:"/api/auth/[...nextauth]",filename:"route",bundlePath:"app/api/auth/[...nextauth]/route"},resolvedPagePath:"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/api/auth/[...nextauth]/route.ts",nextConfigOutput:"",userland:n}),{requestAsyncStorage:t$,staticGenerationAsyncStorage:tJ,serverHooks:tM,headerHooks:tN,staticGenerationBailout:tR}=tI,tW="/api/auth/[...nextauth]/route";function tK(){return(0,a.patchFetch)({serverHooks:tM,staticGenerationAsyncStorage:tJ})}},5054:(e,t,r)=>{"use strict";r.d(t,{db:()=>l});let i=require("better-sqlite3");var n=r.n(i),o=r(9404),s=r(8654),a=r(246);let l=(0,o.t)(new(n())(s.O.DATABASE_URL,{fileMustExist:!1}),{schema:a})},246:(e,t,r)=>{"use strict";r.r(t),r.d(t,{accounts:()=>f,accountsRelations:()=>y,createTable:()=>u,posts:()=>d,sessions:()=>g,sessionsRelations:()=>m,users:()=>h,usersRelations:()=>p,verificationTokens:()=>_});var i=r(2393),n=r(9349),o=r(5225),s=r(9415),a=r(440),l=r(7591),c=r(7357);let u=(0,o._9)(e=>`anycontext_${e}`),d=u("post",{id:(0,s.e$)("id",{mode:"number"}).primaryKey({autoIncrement:!0}),name:(0,a.fL)("name",{length:256}),createdById:(0,a.fL)("createdById",{length:255}).notNull().references(()=>h.id),createdAt:(0,s.e$)("created_at",{mode:"timestamp"}).default(i.i6`CURRENT_TIMESTAMP`).notNull(),updatedAt:(0,s.e$)("updatedAt",{mode:"timestamp"})},e=>({createdByIdIdx:(0,l.Kz)("createdById_idx").on(e.createdById),nameIndex:(0,l.Kz)("name_idx").on(e.name)})),h=u("user",{id:(0,a.fL)("id",{length:255}).notNull().primaryKey(),name:(0,a.fL)("name",{length:255}),email:(0,a.fL)("email",{length:255}).notNull(),emailVerified:(0,s.e$)("emailVerified",{mode:"timestamp"}).default(i.i6`CURRENT_TIMESTAMP`),image:(0,a.fL)("image",{length:255})}),p=(0,n.lE)(h,({many:e})=>({accounts:e(f)})),f=u("account",{userId:(0,a.fL)("userId",{length:255}).notNull().references(()=>h.id),type:(0,a.fL)("type",{length:255}).$type().notNull(),provider:(0,a.fL)("provider",{length:255}).notNull(),providerAccountId:(0,a.fL)("providerAccountId",{length:255}).notNull(),refresh_token:(0,a.fL)("refresh_token"),access_token:(0,a.fL)("access_token"),expires_at:(0,s.e$)("expires_at"),token_type:(0,a.fL)("token_type",{length:255}),scope:(0,a.fL)("scope",{length:255}),id_token:(0,a.fL)("id_token"),session_state:(0,a.fL)("session_state",{length:255})},e=>({compoundKey:(0,c.CK)({columns:[e.provider,e.providerAccountId]}),userIdIdx:(0,l.Kz)("account_userId_idx").on(e.userId)})),y=(0,n.lE)(f,({one:e})=>({user:e(h,{fields:[f.userId],references:[h.id]})})),g=u("session",{sessionToken:(0,a.fL)("sessionToken",{length:255}).notNull().primaryKey(),userId:(0,a.fL)("userId",{length:255}).notNull().references(()=>h.id),expires:(0,s.e$)("expires",{mode:"timestamp"}).notNull()},e=>({userIdIdx:(0,l.Kz)("session_userId_idx").on(e.userId)})),m=(0,n.lE)(g,({one:e})=>({user:e(h,{fields:[g.userId],references:[h.id]})})),_=u("verificationToken",{identifier:(0,a.fL)("identifier",{length:255}).notNull(),token:(0,a.fL)("token",{length:255}).notNull(),expires:(0,s.e$)("expires",{mode:"timestamp"}).notNull()},e=>({compoundKey:(0,c.CK)({columns:[e.identifier,e.token]})}))},217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.hkdf=void 0;let i=r(3153);function n(e,t){if("string"==typeof e)return new TextEncoder().encode(e);if(!(e instanceof Uint8Array))throw TypeError(`"${t}"" must be an instance of Uint8Array or a string`);return e}async function o(e,t,r,o,s){return(0,i.default)(function(e){switch(e){case"sha256":case"sha384":case"sha512":case"sha1":return e;default:throw TypeError('unsupported "digest" value')}}(e),function(e){let t=n(e,"ikm");if(!t.byteLength)throw TypeError('"ikm" must be at least one byte in length');return t}(t),n(r,"salt"),function(e){let t=n(e,"info");if(t.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return t}(o),function(e,t){if("number"!=typeof e||!Number.isInteger(e)||e<1)throw TypeError('"keylen" must be a positive integer');if(e>255*(parseInt(t.substr(3),10)>>3||20))throw TypeError('"keylen" too large');return e}(s,e))}t.hkdf=o,t.default=o},4483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113);t.default=(e,t,r,n,o)=>{let s=parseInt(e.substr(3),10)>>3||20,a=(0,i.createHmac)(e,r.byteLength?r:new Uint8Array(s)).update(t).digest(),l=Math.ceil(o/s),c=new Uint8Array(s*l+n.byteLength+1),u=0,d=0;for(let t=1;t<=l;t++)c.set(n,d),c[d+n.byteLength]=t,c.set((0,i.createHmac)(e,a).update(c.subarray(u,d+n.byteLength+1)).digest(),d),u=d,d+=s;return c.slice(0,o)}},3153:(e,t,r)=>{"use strict";let i;Object.defineProperty(t,"__esModule",{value:!0});let n=r(6113),o=r(4483);"function"!=typeof n.hkdf||process.versions.electron||(i=async(...e)=>new Promise((t,r)=>{n.hkdf(...e,(e,i)=>{e?r(e):t(new Uint8Array(i))})})),t.default=async(e,t,r,n,s)=>(i||o.default)(e,t,r,n,s)},7162:(e,t)=>{"use strict";/*! + * cookie + * Copyright(c) 2012-2014 Roman Shtylman + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},i=(t||{}).decode||n,o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cryptoRuntime=t.base64url=t.generateSecret=t.generateKeyPair=t.errors=t.decodeJwt=t.decodeProtectedHeader=t.importJWK=t.importX509=t.importPKCS8=t.importSPKI=t.exportJWK=t.exportSPKI=t.exportPKCS8=t.UnsecuredJWT=t.createRemoteJWKSet=t.createLocalJWKSet=t.EmbeddedJWK=t.calculateJwkThumbprintUri=t.calculateJwkThumbprint=t.EncryptJWT=t.SignJWT=t.GeneralSign=t.FlattenedSign=t.CompactSign=t.FlattenedEncrypt=t.CompactEncrypt=t.jwtDecrypt=t.jwtVerify=t.generalVerify=t.flattenedVerify=t.compactVerify=t.GeneralEncrypt=t.generalDecrypt=t.flattenedDecrypt=t.compactDecrypt=void 0;var i=r(1222);Object.defineProperty(t,"compactDecrypt",{enumerable:!0,get:function(){return i.compactDecrypt}});var n=r(1531);Object.defineProperty(t,"flattenedDecrypt",{enumerable:!0,get:function(){return n.flattenedDecrypt}});var o=r(658);Object.defineProperty(t,"generalDecrypt",{enumerable:!0,get:function(){return o.generalDecrypt}});var s=r(4186);Object.defineProperty(t,"GeneralEncrypt",{enumerable:!0,get:function(){return s.GeneralEncrypt}});var a=r(9751);Object.defineProperty(t,"compactVerify",{enumerable:!0,get:function(){return a.compactVerify}});var l=r(1330);Object.defineProperty(t,"flattenedVerify",{enumerable:!0,get:function(){return l.flattenedVerify}});var c=r(2553);Object.defineProperty(t,"generalVerify",{enumerable:!0,get:function(){return c.generalVerify}});var u=r(913);Object.defineProperty(t,"jwtVerify",{enumerable:!0,get:function(){return u.jwtVerify}});var d=r(3621);Object.defineProperty(t,"jwtDecrypt",{enumerable:!0,get:function(){return d.jwtDecrypt}});var h=r(8369);Object.defineProperty(t,"CompactEncrypt",{enumerable:!0,get:function(){return h.CompactEncrypt}});var p=r(210);Object.defineProperty(t,"FlattenedEncrypt",{enumerable:!0,get:function(){return p.FlattenedEncrypt}});var f=r(524);Object.defineProperty(t,"CompactSign",{enumerable:!0,get:function(){return f.CompactSign}});var y=r(9988);Object.defineProperty(t,"FlattenedSign",{enumerable:!0,get:function(){return y.FlattenedSign}});var g=r(6755);Object.defineProperty(t,"GeneralSign",{enumerable:!0,get:function(){return g.GeneralSign}});var m=r(9252);Object.defineProperty(t,"SignJWT",{enumerable:!0,get:function(){return m.SignJWT}});var _=r(8255);Object.defineProperty(t,"EncryptJWT",{enumerable:!0,get:function(){return _.EncryptJWT}});var v=r(5811);Object.defineProperty(t,"calculateJwkThumbprint",{enumerable:!0,get:function(){return v.calculateJwkThumbprint}}),Object.defineProperty(t,"calculateJwkThumbprintUri",{enumerable:!0,get:function(){return v.calculateJwkThumbprintUri}});var w=r(4191);Object.defineProperty(t,"EmbeddedJWK",{enumerable:!0,get:function(){return w.EmbeddedJWK}});var b=r(8085);Object.defineProperty(t,"createLocalJWKSet",{enumerable:!0,get:function(){return b.createLocalJWKSet}});var S=r(6190);Object.defineProperty(t,"createRemoteJWKSet",{enumerable:!0,get:function(){return S.createRemoteJWKSet}});var k=r(9752);Object.defineProperty(t,"UnsecuredJWT",{enumerable:!0,get:function(){return k.UnsecuredJWT}});var E=r(510);Object.defineProperty(t,"exportPKCS8",{enumerable:!0,get:function(){return E.exportPKCS8}}),Object.defineProperty(t,"exportSPKI",{enumerable:!0,get:function(){return E.exportSPKI}}),Object.defineProperty(t,"exportJWK",{enumerable:!0,get:function(){return E.exportJWK}});var A=r(7989);Object.defineProperty(t,"importSPKI",{enumerable:!0,get:function(){return A.importSPKI}}),Object.defineProperty(t,"importPKCS8",{enumerable:!0,get:function(){return A.importPKCS8}}),Object.defineProperty(t,"importX509",{enumerable:!0,get:function(){return A.importX509}}),Object.defineProperty(t,"importJWK",{enumerable:!0,get:function(){return A.importJWK}});var x=r(9472);Object.defineProperty(t,"decodeProtectedHeader",{enumerable:!0,get:function(){return x.decodeProtectedHeader}});var O=r(9541);Object.defineProperty(t,"decodeJwt",{enumerable:!0,get:function(){return O.decodeJwt}}),t.errors=r(3885);var T=r(1399);Object.defineProperty(t,"generateKeyPair",{enumerable:!0,get:function(){return T.generateKeyPair}});var P=r(8259);Object.defineProperty(t,"generateSecret",{enumerable:!0,get:function(){return P.generateSecret}}),t.base64url=r(3225);var j=r(6537);Object.defineProperty(t,"cryptoRuntime",{enumerable:!0,get:function(){return j.default}})},1222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactDecrypt=void 0;let i=r(1531),n=r(3885),o=r(3004);async function s(e,t,r){if(e instanceof Uint8Array&&(e=o.decoder.decode(e)),"string"!=typeof e)throw new n.JWEInvalid("Compact JWE must be a string or Uint8Array");let{0:s,1:a,2:l,3:c,4:u,length:d}=e.split(".");if(5!==d)throw new n.JWEInvalid("Invalid Compact JWE");let h=await (0,i.flattenedDecrypt)({ciphertext:c,iv:l||void 0,protected:s||void 0,tag:u||void 0,encrypted_key:a||void 0},t,r),p={plaintext:h.plaintext,protectedHeader:h.protectedHeader};return"function"==typeof t?{...p,key:h.key}:p}t.compactDecrypt=s},8369:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactEncrypt=void 0;let i=r(210);class n{constructor(e){this._flattened=new i.FlattenedEncrypt(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}t.CompactEncrypt=n},1531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenedDecrypt=void 0;let i=r(5803),n=r(7287),o=r(4652),s=r(3885),a=r(7944),l=r(8906),c=r(3682),u=r(3004),d=r(2794),h=r(9277),p=r(2561);async function f(e,t,r){var f;let y,g,m,_,v,w,b;if(!(0,l.default)(e))throw new s.JWEInvalid("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new s.JWEInvalid("JOSE Header missing");if("string"!=typeof e.iv)throw new s.JWEInvalid("JWE Initialization Vector missing or incorrect type");if("string"!=typeof e.ciphertext)throw new s.JWEInvalid("JWE Ciphertext missing or incorrect type");if("string"!=typeof e.tag)throw new s.JWEInvalid("JWE Authentication Tag missing or incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new s.JWEInvalid("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new s.JWEInvalid("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new s.JWEInvalid("JWE AAD incorrect type");if(void 0!==e.header&&!(0,l.default)(e.header))throw new s.JWEInvalid("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!(0,l.default)(e.unprotected))throw new s.JWEInvalid("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=(0,i.decode)(e.protected);y=JSON.parse(u.decoder.decode(t))}catch{throw new s.JWEInvalid("JWE Protected Header is invalid")}if(!(0,a.default)(y,e.header,e.unprotected))throw new s.JWEInvalid("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let S={...y,...e.header,...e.unprotected};if((0,h.default)(s.JWEInvalid,new Map,null==r?void 0:r.crit,y,S),void 0!==S.zip){if(!y||!y.zip)throw new s.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==S.zip)throw new s.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:k,enc:E}=S;if("string"!=typeof k||!k)throw new s.JWEInvalid("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof E||!E)throw new s.JWEInvalid("missing JWE Encryption Algorithm (enc) in JWE Header");let A=r&&(0,p.default)("keyManagementAlgorithms",r.keyManagementAlgorithms),x=r&&(0,p.default)("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(A&&!A.has(k))throw new s.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed');if(x&&!x.has(E))throw new s.JOSEAlgNotAllowed('"enc" (Encryption Algorithm) Header Parameter not allowed');if(void 0!==e.encrypted_key)try{g=(0,i.decode)(e.encrypted_key)}catch{throw new s.JWEInvalid("Failed to base64url decode the encrypted_key")}let O=!1;"function"==typeof t&&(t=await t(y,e),O=!0);try{m=await (0,c.default)(k,t,g,S,r)}catch(e){if(e instanceof TypeError||e instanceof s.JWEInvalid||e instanceof s.JOSENotSupported)throw e;m=(0,d.default)(E)}try{_=(0,i.decode)(e.iv)}catch{throw new s.JWEInvalid("Failed to base64url decode the iv")}try{v=(0,i.decode)(e.tag)}catch{throw new s.JWEInvalid("Failed to base64url decode the tag")}let T=u.encoder.encode(null!==(f=e.protected)&&void 0!==f?f:"");w=void 0!==e.aad?(0,u.concat)(T,u.encoder.encode("."),u.encoder.encode(e.aad)):T;try{b=(0,i.decode)(e.ciphertext)}catch{throw new s.JWEInvalid("Failed to base64url decode the ciphertext")}let P=await (0,n.default)(E,m,b,_,v,w);"DEF"===S.zip&&(P=await ((null==r?void 0:r.inflateRaw)||o.inflate)(P));let j={plaintext:P};if(void 0!==e.protected&&(j.protectedHeader=y),void 0!==e.aad)try{j.additionalAuthenticatedData=(0,i.decode)(e.aad)}catch{throw new s.JWEInvalid("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(j.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(j.unprotectedHeader=e.header),O)?{...j,key:t}:j}t.flattenedDecrypt=f},210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FlattenedEncrypt=t.unprotected=void 0;let i=r(5803),n=r(7359),o=r(4652),s=r(5183),a=r(5405),l=r(3885),c=r(7944),u=r(3004),d=r(9277);t.unprotected=Symbol();class h{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,r){let h,p,f,y,g,m,_;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new l.JWEInvalid("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!(0,c.default)(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new l.JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let v={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if((0,d.default)(l.JWEInvalid,new Map,null==r?void 0:r.crit,this._protectedHeader,v),void 0!==v.zip){if(!this._protectedHeader||!this._protectedHeader.zip)throw new l.JWEInvalid('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==v.zip)throw new l.JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:w,enc:b}=v;if("string"!=typeof w||!w)throw new l.JWEInvalid('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof b||!b)throw new l.JWEInvalid('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if("dir"===w){if(this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}else if("ECDH-ES"===w&&this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement");{let i;({cek:p,encryptedKey:h,parameters:i}=await (0,a.default)(w,b,e,this._cek,this._keyManagementParameters)),i&&(r&&t.unprotected in r?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...i}:this.setUnprotectedHeader(i):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...i}:this.setProtectedHeader(i))}if(this._iv||(this._iv=(0,s.default)(b)),y=this._protectedHeader?u.encoder.encode((0,i.encode)(JSON.stringify(this._protectedHeader))):u.encoder.encode(""),this._aad?(g=(0,i.encode)(this._aad),f=(0,u.concat)(y,u.encoder.encode("."),u.encoder.encode(g))):f=y,"DEF"===v.zip){let e=await ((null==r?void 0:r.deflateRaw)||o.deflate)(this._plaintext);({ciphertext:m,tag:_}=await (0,n.default)(b,e,p,this._iv,f))}else({ciphertext:m,tag:_}=await (0,n.default)(b,this._plaintext,p,this._iv,f));let S={ciphertext:(0,i.encode)(m),iv:(0,i.encode)(this._iv),tag:(0,i.encode)(_)};return h&&(S.encrypted_key=(0,i.encode)(h)),g&&(S.aad=g),this._protectedHeader&&(S.protected=u.decoder.decode(y)),this._sharedUnprotectedHeader&&(S.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(S.header=this._unprotectedHeader),S}}t.FlattenedEncrypt=h},658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generalDecrypt=void 0;let i=r(1531),n=r(3885),o=r(8906);async function s(e,t,r){if(!(0,o.default)(e))throw new n.JWEInvalid("General JWE must be an object");if(!Array.isArray(e.recipients)||!e.recipients.every(o.default))throw new n.JWEInvalid("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new n.JWEInvalid("JWE Recipients has no members");for(let n of e.recipients)try{return await (0,i.flattenedDecrypt)({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch{}throw new n.JWEDecryptionFailed}t.generalDecrypt=s},4186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralEncrypt=void 0;let i=r(210),n=r(3885),o=r(2794),s=r(7944),a=r(5405),l=r(5803),c=r(9277);class u{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addRecipient(...e){return this.parent.addRecipient(...e)}encrypt(...e){return this.parent.encrypt(...e)}done(){return this.parent}}class d{constructor(e){this._recipients=[],this._plaintext=e}addRecipient(e,t){let r=new u(this,e,{crit:null==t?void 0:t.crit});return this._recipients.push(r),r}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}async encrypt(e){var t,r,u;let d;if(!this._recipients.length)throw new n.JWEInvalid("at least one recipient must be added");if(e={deflateRaw:null==e?void 0:e.deflateRaw},1===this._recipients.length){let[t]=this._recipients,r=await new i.FlattenedEncrypt(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(t.unprotectedHeader).encrypt(t.key,{...t.options,...e}),n={ciphertext:r.ciphertext,iv:r.iv,recipients:[{}],tag:r.tag};return r.aad&&(n.aad=r.aad),r.protected&&(n.protected=r.protected),r.unprotected&&(n.unprotected=r.unprotected),r.encrypted_key&&(n.recipients[0].encrypted_key=r.encrypted_key),r.header&&(n.recipients[0].header=r.header),n}for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmbeddedJWK=void 0;let i=r(7989),n=r(8906),o=r(3885);async function s(e,t){let r={...e,...null==t?void 0:t.header};if(!(0,n.default)(r.jwk))throw new o.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let s=await (0,i.importJWK)({...r.jwk,ext:!0},r.alg,!0);if(s instanceof Uint8Array||"public"!==s.type)throw new o.JWSInvalid('"jwk" (JSON Web Key) Header Parameter must be a public key');return s}t.EmbeddedJWK=s},5811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateJwkThumbprintUri=t.calculateJwkThumbprint=void 0;let i=r(3730),n=r(5803),o=r(3885),s=r(3004),a=r(8906),l=(e,t)=>{if("string"!=typeof e||!e)throw new o.JWKInvalid(`${t} missing or invalid`)};async function c(e,t){let r;if(!(0,a.default)(e))throw TypeError("JWK must be an object");if(null!=t||(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":l(e.crv,'"crv" (Curve) Parameter'),l(e.x,'"x" (X Coordinate) Parameter'),l(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":l(e.crv,'"crv" (Subtype of Key Pair) Parameter'),l(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":l(e.e,'"e" (Exponent) Parameter'),l(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":l(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new o.JOSENotSupported('"kty" (Key Type) Parameter missing or unsupported')}let c=s.encoder.encode(JSON.stringify(r));return(0,n.encode)(await (0,i.default)(t,c))}async function u(e,t){null!=t||(t="sha256");let r=await c(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}t.calculateJwkThumbprint=c,t.calculateJwkThumbprintUri=u},8085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLocalJWKSet=t.LocalJWKSet=t.isJWKSLike=void 0;let i=r(7989),n=r(3885),o=r(8906);function s(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(a)}function a(e){return(0,o.default)(e)}t.isJWKSLike=s;class l{constructor(e){if(this._cached=new WeakMap,!s(e))throw new n.JWKSInvalid("JSON Web Key Set malformed");this._jwks=function(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}(e)}async getKey(e,t){let{alg:r,kid:i}={...e,...null==t?void 0:t.header},o=function(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new n.JOSENotSupported('Unsupported "alg" value for a JSON Web Key Set')}}(r),s=this._jwks.keys.filter(e=>{let t=o===e.kty;if(t&&"string"==typeof i&&(t=i===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t&&"EdDSA"===r&&(t="Ed25519"===e.crv||"Ed448"===e.crv),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv}return t}),{0:a,length:l}=s;if(0===l)throw new n.JWKSNoMatchingKey;if(1!==l){let e=new n.JWKSMultipleMatchingKeys,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(let e of s)try{yield await c(t,e,r)}catch{continue}},e}return c(this._cached,a,r)}}async function c(e,t,r){let o=e.get(t)||e.set(t,{}).get(t);if(void 0===o[r]){let e=await (0,i.importJWK)({...t,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new n.JWKSInvalid("JSON Web Key Set members must be public keys");o[r]=e}return o[r]}t.LocalJWKSet=l,t.createLocalJWKSet=function(e){let t=new l(e);return async function(e,r){return t.getKey(e,r)}}},6190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRemoteJWKSet=void 0;let i=r(1537),n=r(3885),o=r(8085);class s extends o.LocalJWKSet{constructor(e,t){if(super({keys:[]}),this._jwks=void 0,!(e instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(e.href),this._options={agent:null==t?void 0:t.agent,headers:null==t?void 0:t.headers},this._timeoutDuration="number"==typeof(null==t?void 0:t.timeoutDuration)?null==t?void 0:t.timeoutDuration:5e3,this._cooldownDuration="number"==typeof(null==t?void 0:t.cooldownDuration)?null==t?void 0:t.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof(null==t?void 0:t.cacheMaxAge)?null==t?void 0:t.cacheMaxAge:6e5}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now(){if(!(0,o.isJWKSLike)(e))throw new n.JWKSInvalid("JSON Web Key Set malformed");this._jwks={keys:e.keys},this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}t.createRemoteJWKSet=function(e,t){let r=new s(e,t);return async function(e,t){return r.getKey(e,t)}}},524:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactSign=void 0;let i=r(9988);class n{constructor(e){this._flattened=new i.FlattenedSign(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}t.CompactSign=n},9751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactVerify=void 0;let i=r(1330),n=r(3885),o=r(3004);async function s(e,t,r){if(e instanceof Uint8Array&&(e=o.decoder.decode(e)),"string"!=typeof e)throw new n.JWSInvalid("Compact JWS must be a string or Uint8Array");let{0:s,1:a,2:l,length:c}=e.split(".");if(3!==c)throw new n.JWSInvalid("Invalid Compact JWS");let u=await (0,i.flattenedVerify)({payload:a,protected:s,signature:l},t,r),d={payload:u.payload,protectedHeader:u.protectedHeader};return"function"==typeof t?{...d,key:u.key}:d}t.compactVerify=s},9988:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FlattenedSign=void 0;let i=r(5803),n=r(7385),o=r(7944),s=r(3885),a=r(3004),l=r(8201),c=r(9277);class u{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new s.JWSInvalid("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!(0,o.default)(this._protectedHeader,this._unprotectedHeader))throw new s.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let u={...this._protectedHeader,...this._unprotectedHeader},d=(0,c.default)(s.JWSInvalid,new Map([["b64",!0]]),null==t?void 0:t.crit,this._protectedHeader,u),h=!0;if(d.has("b64")&&"boolean"!=typeof(h=this._protectedHeader.b64))throw new s.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:p}=u;if("string"!=typeof p||!p)throw new s.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid');(0,l.default)(p,e,"sign");let f=this._payload;h&&(f=a.encoder.encode((0,i.encode)(f))),r=this._protectedHeader?a.encoder.encode((0,i.encode)(JSON.stringify(this._protectedHeader))):a.encoder.encode("");let y=(0,a.concat)(r,a.encoder.encode("."),f),g=await (0,n.default)(p,e,y),m={signature:(0,i.encode)(g),payload:""};return h&&(m.payload=a.decoder.decode(f)),this._unprotectedHeader&&(m.header=this._unprotectedHeader),this._protectedHeader&&(m.protected=a.decoder.decode(r)),m}}t.FlattenedSign=u},1330:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenedVerify=void 0;let i=r(5803),n=r(3458),o=r(3885),s=r(3004),a=r(7944),l=r(8906),c=r(8201),u=r(9277),d=r(2561);async function h(e,t,r){var h;let p,f;if(!(0,l.default)(e))throw new o.JWSInvalid("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new o.JWSInvalid('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new o.JWSInvalid("JWS Protected Header incorrect type");if(void 0===e.payload)throw new o.JWSInvalid("JWS Payload missing");if("string"!=typeof e.signature)throw new o.JWSInvalid("JWS Signature missing or incorrect type");if(void 0!==e.header&&!(0,l.default)(e.header))throw new o.JWSInvalid("JWS Unprotected Header incorrect type");let y={};if(e.protected)try{let t=(0,i.decode)(e.protected);y=JSON.parse(s.decoder.decode(t))}catch{throw new o.JWSInvalid("JWS Protected Header is invalid")}if(!(0,a.default)(y,e.header))throw new o.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let g={...y,...e.header},m=(0,u.default)(o.JWSInvalid,new Map([["b64",!0]]),null==r?void 0:r.crit,y,g),_=!0;if(m.has("b64")&&"boolean"!=typeof(_=y.b64))throw new o.JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:v}=g;if("string"!=typeof v||!v)throw new o.JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid');let w=r&&(0,d.default)("algorithms",r.algorithms);if(w&&!w.has(v))throw new o.JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter not allowed');if(_){if("string"!=typeof e.payload)throw new o.JWSInvalid("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new o.JWSInvalid("JWS Payload must be a string or an Uint8Array instance");let b=!1;"function"==typeof t&&(t=await t(y,e),b=!0),(0,c.default)(v,t,"verify");let S=(0,s.concat)(s.encoder.encode(null!==(h=e.protected)&&void 0!==h?h:""),s.encoder.encode("."),"string"==typeof e.payload?s.encoder.encode(e.payload):e.payload);try{p=(0,i.decode)(e.signature)}catch{throw new o.JWSInvalid("Failed to base64url decode the signature")}if(!await (0,n.default)(v,t,p,S))throw new o.JWSSignatureVerificationFailed;if(_)try{f=(0,i.decode)(e.payload)}catch{throw new o.JWSInvalid("Failed to base64url decode the payload")}else f="string"==typeof e.payload?s.encoder.encode(e.payload):e.payload;let k={payload:f};return(void 0!==e.protected&&(k.protectedHeader=y),void 0!==e.header&&(k.unprotectedHeader=e.header),b)?{...k,key:t}:k}t.flattenedVerify=h},6755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralSign=void 0;let i=r(9988),n=r(3885);class o{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setProtectedHeader(e){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=e,this}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addSignature(...e){return this.parent.addSignature(...e)}sign(...e){return this.parent.sign(...e)}done(){return this.parent}}class s{constructor(e){this._signatures=[],this._payload=e}addSignature(e,t){let r=new o(this,e,t);return this._signatures.push(r),r}async sign(){if(!this._signatures.length)throw new n.JWSInvalid("at least one signature must be added");let e={signatures:[],payload:""};for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generalVerify=void 0;let i=r(1330),n=r(3885),o=r(8906);async function s(e,t,r){if(!(0,o.default)(e))throw new n.JWSInvalid("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(o.default))throw new n.JWSInvalid("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await (0,i.flattenedVerify)({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch{}throw new n.JWSSignatureVerificationFailed}t.generalVerify=s},3621:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwtDecrypt=void 0;let i=r(1222),n=r(6641),o=r(3885);async function s(e,t,r){let s=await (0,i.compactDecrypt)(e,t,r),a=(0,n.default)(s.protectedHeader,s.plaintext,r),{protectedHeader:l}=s;if(void 0!==l.iss&&l.iss!==a.iss)throw new o.JWTClaimValidationFailed('replicated "iss" claim header parameter mismatch',"iss","mismatch");if(void 0!==l.sub&&l.sub!==a.sub)throw new o.JWTClaimValidationFailed('replicated "sub" claim header parameter mismatch',"sub","mismatch");if(void 0!==l.aud&&JSON.stringify(l.aud)!==JSON.stringify(a.aud))throw new o.JWTClaimValidationFailed('replicated "aud" claim header parameter mismatch',"aud","mismatch");let c={payload:a,protectedHeader:l};return"function"==typeof t?{...c,key:s.key}:c}t.jwtDecrypt=s},8255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EncryptJWT=void 0;let i=r(8369),n=r(3004),o=r(8417);class s extends o.ProduceJWT{setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(e,t){let r=new i.CompactEncrypt(n.encoder.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),r.setProtectedHeader(this._protectedHeader),this._iv&&r.setInitializationVector(this._iv),this._cek&&r.setContentEncryptionKey(this._cek),this._keyManagementParameters&&r.setKeyManagementParameters(this._keyManagementParameters),r.encrypt(e,t)}}t.EncryptJWT=s},8417:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProduceJWT=void 0;let i=r(7977),n=r(8906),o=r(4505);class s{constructor(e){if(!(0,n.default)(e))throw TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:e}:this._payload={...this._payload,nbf:(0,i.default)(new Date)+(0,o.default)(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:e}:this._payload={...this._payload,exp:(0,i.default)(new Date)+(0,o.default)(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:(0,i.default)(new Date)}:this._payload={...this._payload,iat:e},this}}t.ProduceJWT=s},9252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignJWT=void 0;let i=r(524),n=r(3885),o=r(3004),s=r(8417);class a extends s.ProduceJWT{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){var r;let s=new i.CompactSign(o.encoder.encode(JSON.stringify(this._payload)));if(s.setProtectedHeader(this._protectedHeader),Array.isArray(null===(r=this._protectedHeader)||void 0===r?void 0:r.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new n.JWTInvalid("JWTs MUST NOT use unencoded payload");return s.sign(e,t)}}t.SignJWT=a},9752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsecuredJWT=void 0;let i=r(5803),n=r(3004),o=r(3885),s=r(6641),a=r(8417);class l extends a.ProduceJWT{encode(){let e=i.encode(JSON.stringify({alg:"none"})),t=i.encode(JSON.stringify(this._payload));return`${e}.${t}.`}static decode(e,t){let r;if("string"!=typeof e)throw new o.JWTInvalid("Unsecured JWT must be a string");let{0:a,1:l,2:c,length:u}=e.split(".");if(3!==u||""!==c)throw new o.JWTInvalid("Invalid Unsecured JWT");try{if(r=JSON.parse(n.decoder.decode(i.decode(a))),"none"!==r.alg)throw Error()}catch{throw new o.JWTInvalid("Invalid Unsecured JWT")}return{payload:(0,s.default)(r,i.decode(l),t),header:r}}}t.UnsecuredJWT=l},913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwtVerify=void 0;let i=r(9751),n=r(6641),o=r(3885);async function s(e,t,r){var s;let a=await (0,i.compactVerify)(e,t,r);if((null===(s=a.protectedHeader.crit)||void 0===s?void 0:s.includes("b64"))&&!1===a.protectedHeader.b64)throw new o.JWTInvalid("JWTs MUST NOT use unencoded payload");let l={payload:(0,n.default)(a.protectedHeader,a.payload,r),protectedHeader:a.protectedHeader};return"function"==typeof t?{...l,key:a.key}:l}t.jwtVerify=s},510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportJWK=t.exportPKCS8=t.exportSPKI=void 0;let i=r(9645),n=r(9645),o=r(7);async function s(e){return(0,i.toSPKI)(e)}async function a(e){return(0,n.toPKCS8)(e)}async function l(e){return(0,o.default)(e)}t.exportSPKI=s,t.exportPKCS8=a,t.exportJWK=l},1399:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateKeyPair=void 0;let i=r(8428);async function n(e,t){return(0,i.generateKeyPair)(e,t)}t.generateKeyPair=n},8259:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateSecret=void 0;let i=r(8428);async function n(e,t){return(0,i.generateSecret)(e,t)}t.generateSecret=n},7989:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.importJWK=t.importPKCS8=t.importX509=t.importSPKI=void 0;let i=r(5803),n=r(9645),o=r(9453),s=r(3885),a=r(8906);async function l(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return(0,n.fromSPKI)(e,t,r)}async function c(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');return(0,n.fromX509)(e,t,r)}async function u(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return(0,n.fromPKCS8)(e,t,r)}async function d(e,t,r){var n;if(!(0,a.default)(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');if(null!=r||(r=!0!==e.ext),r)return(0,o.default)({...e,alg:t,ext:null!==(n=e.ext)&&void 0!==n&&n});return(0,i.decode)(e.k);case"RSA":if(void 0!==e.oth)throw new s.JOSENotSupported('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return(0,o.default)({...e,alg:t});default:throw new s.JOSENotSupported('Unsupported "kty" (Key Type) Parameter value')}}t.importSPKI=l,t.importX509=c,t.importPKCS8=u,t.importJWK=d},7414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwrap=t.wrap=void 0;let i=r(7359),n=r(7287),o=r(5183),s=r(5803);async function a(e,t,r,n){let a=e.slice(0,7);n||(n=(0,o.default)(a));let{ciphertext:l,tag:c}=await (0,i.default)(a,r,t,n,new Uint8Array(0));return{encryptedKey:l,iv:(0,s.encode)(n),tag:(0,s.encode)(c)}}async function l(e,t,r,i,o){let s=e.slice(0,7);return(0,n.default)(s,t,r,i,o,new Uint8Array(0))}t.wrap=a,t.unwrap=l},3004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatKdf=t.lengthAndInput=t.uint32be=t.uint64be=t.p2s=t.concat=t.decoder=t.encoder=void 0;let i=r(3730);function n(...e){let t=e.reduce((e,{length:t})=>e+t,0),r=new Uint8Array(t),i=0;return e.forEach(e=>{r.set(e,i),i+=e.length}),r}function o(e,t,r){if(t<0||t>=4294967296)throw RangeError(`value must be >= 0 and <= ${4294967296-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function s(e){let t=new Uint8Array(4);return o(t,e),t}async function a(e,t,r){let n=Math.ceil((t>>3)/32),o=new Uint8Array(32*n);for(let t=0;t>3)}t.encoder=new TextEncoder,t.decoder=new TextDecoder,t.concat=n,t.p2s=function(e,r){return n(t.encoder.encode(e),new Uint8Array([0]),r)},t.uint64be=function(e){let t=new Uint8Array(8);return o(t,Math.floor(e/4294967296),0),o(t,e%4294967296,4),t},t.uint32be=s,t.lengthAndInput=function(e){return n(s(e.length),e)},t.concatKdf=a},2794:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitLength=void 0;let i=r(3885),n=r(2088);function o(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new i.JOSENotSupported(`Unsupported JWE Algorithm: ${e}`)}}t.bitLength=o,t.default=e=>(0,n.default)(new Uint8Array(o(e)>>3))},3450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885),n=r(5183);t.default=(e,t)=>{if(t.length<<3!==(0,n.bitLength)(e))throw new i.JWEInvalid("Invalid Initialization Vector length")}},8201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(8289),n=r(2964),o=(e,t)=>{if(!(t instanceof Uint8Array)){if(!(0,n.default)(t))throw TypeError((0,i.withAlg)(e,t,...n.types,"Uint8Array"));if("secret"!==t.type)throw TypeError(`${n.types.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},s=(e,t,r)=>{if(!(0,n.default)(t))throw TypeError((0,i.withAlg)(e,t,...n.types));if("secret"===t.type)throw TypeError(`${n.types.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${n.types.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${n.types.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${n.types.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${n.types.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)};t.default=(e,t,r)=>{e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?o(e,t):s(e,t,r)}},2617:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885);t.default=function(e){if(!(e instanceof Uint8Array)||e.length<8)throw new i.JWEInvalid("PBES2 Salt Input must be 8 or more octets")}},1347:(e,t)=>{"use strict";function r(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function i(e,t){return e.name===t}function n(e){return parseInt(e.name.slice(4),10)}function o(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.checkEncCryptoKey=t.checkSigCryptoKey=void 0,t.checkSigCryptoKey=function(e,t,...s){switch(t){case"HS256":case"HS384":case"HS512":{if(!i(e.algorithm,"HMAC"))throw r("HMAC");let o=parseInt(t.slice(2),10);if(n(e.algorithm.hash)!==o)throw r(`SHA-${o}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!i(e.algorithm,"RSASSA-PKCS1-v1_5"))throw r("RSASSA-PKCS1-v1_5");let o=parseInt(t.slice(2),10);if(n(e.algorithm.hash)!==o)throw r(`SHA-${o}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!i(e.algorithm,"RSA-PSS"))throw r("RSA-PSS");let o=parseInt(t.slice(2),10);if(n(e.algorithm.hash)!==o)throw r(`SHA-${o}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw r("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!i(e.algorithm,"ECDSA"))throw r("ECDSA");let n=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}(t);if(e.algorithm.namedCurve!==n)throw r(n,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}o(e,s)},t.checkEncCryptoKey=function(e,t,...s){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!i(e.algorithm,"AES-GCM"))throw r("AES-GCM");let n=parseInt(t.slice(1,4),10);if(e.algorithm.length!==n)throw r(n,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!i(e.algorithm,"AES-KW"))throw r("AES-KW");let n=parseInt(t.slice(1,4),10);if(e.algorithm.length!==n)throw r(n,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw r("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!i(e.algorithm,"PBKDF2"))throw r("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!i(e.algorithm,"RSA-OAEP"))throw r("RSA-OAEP");let o=parseInt(t.slice(9),10)||1;if(n(e.algorithm.hash)!==o)throw r(`SHA-${o}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}o(e,s)}},3682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(9647),n=r(806),o=r(4290),s=r(5730),a=r(5803),l=r(3885),c=r(2794),u=r(7989),d=r(8201),h=r(8906),p=r(7414);async function f(e,t,r,f,y){switch((0,d.default)(e,t,"decrypt"),e){case"dir":if(void 0!==r)throw new l.JWEInvalid("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new l.JWEInvalid("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let o,s;if(!(0,h.default)(f.epk))throw new l.JWEInvalid('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!n.ecdhAllowed(t))throw new l.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime");let d=await (0,u.importJWK)(f.epk,e);if(void 0!==f.apu){if("string"!=typeof f.apu)throw new l.JWEInvalid('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{o=(0,a.decode)(f.apu)}catch{throw new l.JWEInvalid("Failed to base64url decode the apu")}}if(void 0!==f.apv){if("string"!=typeof f.apv)throw new l.JWEInvalid('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{s=(0,a.decode)(f.apv)}catch{throw new l.JWEInvalid("Failed to base64url decode the apv")}}let p=await n.deriveKey(d,t,"ECDH-ES"===e?f.enc:e,"ECDH-ES"===e?(0,c.bitLength)(f.enc):parseInt(e.slice(-5,-2),10),o,s);if("ECDH-ES"===e)return p;if(void 0===r)throw new l.JWEInvalid("JWE Encrypted Key missing");return(0,i.unwrap)(e.slice(-6),p,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new l.JWEInvalid("JWE Encrypted Key missing");return(0,s.decrypt)(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let i;if(void 0===r)throw new l.JWEInvalid("JWE Encrypted Key missing");if("number"!=typeof f.p2c)throw new l.JWEInvalid('JOSE Header "p2c" (PBES2 Count) missing or invalid');let n=(null==y?void 0:y.maxPBES2Count)||1e4;if(f.p2c>n)throw new l.JWEInvalid('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof f.p2s)throw new l.JWEInvalid('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{i=(0,a.decode)(f.p2s)}catch{throw new l.JWEInvalid("Failed to base64url decode the p2s")}return(0,o.decrypt)(e,t,r,f.p2c,i)}case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new l.JWEInvalid("JWE Encrypted Key missing");return(0,i.unwrap)(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let i,n;if(void 0===r)throw new l.JWEInvalid("JWE Encrypted Key missing");if("string"!=typeof f.iv)throw new l.JWEInvalid('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof f.tag)throw new l.JWEInvalid('JOSE Header "tag" (Authentication Tag) missing or invalid');try{i=(0,a.decode)(f.iv)}catch{throw new l.JWEInvalid("Failed to base64url decode the iv")}try{n=(0,a.decode)(f.tag)}catch{throw new l.JWEInvalid("Failed to base64url decode the tag")}return(0,p.unwrap)(e,t,r,i,n)}default:throw new l.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}}t.default=f},5405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(9647),n=r(806),o=r(4290),s=r(5730),a=r(5803),l=r(2794),c=r(3885),u=r(510),d=r(8201),h=r(7414);async function p(e,t,r,p,f={}){let y,g,m;switch((0,d.default)(e,r,"encrypt"),e){case"dir":m=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!n.ecdhAllowed(r))throw new c.JOSENotSupported("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:o,apv:s}=f,{epk:d}=f;d||(d=(await n.generateEpk(r)).privateKey);let{x:h,y:_,crv:v,kty:w}=await (0,u.exportJWK)(d),b=await n.deriveKey(r,d,"ECDH-ES"===e?t:e,"ECDH-ES"===e?(0,l.bitLength)(t):parseInt(e.slice(-5,-2),10),o,s);if(g={epk:{x:h,crv:v,kty:w}},"EC"===w&&(g.epk.y=_),o&&(g.apu=(0,a.encode)(o)),s&&(g.apv=(0,a.encode)(s)),"ECDH-ES"===e){m=b;break}m=p||(0,l.default)(t);let S=e.slice(-6);y=await (0,i.wrap)(S,b,m);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":m=p||(0,l.default)(t),y=await (0,s.encrypt)(e,r,m);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{m=p||(0,l.default)(t);let{p2c:i,p2s:n}=f;({encryptedKey:y,...g}=await (0,o.encrypt)(e,r,m,i,n));break}case"A128KW":case"A192KW":case"A256KW":m=p||(0,l.default)(t),y=await (0,i.wrap)(e,r,m);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{m=p||(0,l.default)(t);let{iv:i}=f;({encryptedKey:y,...g}=await (0,h.wrap)(e,r,m,i));break}default:throw new c.JOSENotSupported('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:m,encryptedKey:y,parameters:g}}t.default=p},7977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=e=>Math.floor(e.getTime()/1e3)},8289:(e,t)=>{"use strict";function r(e,t,...i){if(i.length>2){let t=i.pop();e+=`one of type ${i.join(", ")}, or ${t}.`}else 2===i.length?e+=`one of type ${i[0]} or ${i[1]}.`:e+=`of type ${i[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor&&t.constructor.name&&(e+=` Received an instance of ${t.constructor.name}`),e}Object.defineProperty(t,"__esModule",{value:!0}),t.withAlg=void 0,t.default=(e,...t)=>r("Key must be ",e,...t),t.withAlg=function(e,t,...i){return r(`Key for the ${e} algorithm must be `,t,...i)}},7944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(...e)=>{let t;let r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0}},8906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("object"==typeof e&&null!==e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},5183:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitLength=void 0;let i=r(3885),n=r(2088);function o(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new i.JOSENotSupported(`Unsupported JWE Algorithm: ${e}`)}}t.bitLength=o,t.default=e=>(0,n.default)(new Uint8Array(o(e)>>3))},6641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885),n=r(3004),o=r(7977),s=r(4505),a=r(8906),l=e=>e.toLowerCase().replace(/^application\//,""),c=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e)));t.default=(e,t,r={})=>{let u,d;let{typ:h}=r;if(h&&("string"!=typeof e.typ||l(e.typ)!==l(h)))throw new i.JWTClaimValidationFailed('unexpected "typ" JWT header value',"typ","check_failed");try{u=JSON.parse(n.decoder.decode(t))}catch{}if(!(0,a.default)(u))throw new i.JWTInvalid("JWT Claims Set must be a top-level JSON object");let{requiredClaims:p=[],issuer:f,subject:y,audience:g,maxTokenAge:m}=r;for(let e of(void 0!==m&&p.push("iat"),void 0!==g&&p.push("aud"),void 0!==y&&p.push("sub"),void 0!==f&&p.push("iss"),new Set(p.reverse())))if(!(e in u))throw new i.JWTClaimValidationFailed(`missing required "${e}" claim`,e,"missing");if(f&&!(Array.isArray(f)?f:[f]).includes(u.iss))throw new i.JWTClaimValidationFailed('unexpected "iss" claim value',"iss","check_failed");if(y&&u.sub!==y)throw new i.JWTClaimValidationFailed('unexpected "sub" claim value',"sub","check_failed");if(g&&!c(u.aud,"string"==typeof g?[g]:g))throw new i.JWTClaimValidationFailed('unexpected "aud" claim value',"aud","check_failed");switch(typeof r.clockTolerance){case"string":d=(0,s.default)(r.clockTolerance);break;case"number":d=r.clockTolerance;break;case"undefined":d=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:_}=r,v=(0,o.default)(_||new Date);if((void 0!==u.iat||m)&&"number"!=typeof u.iat)throw new i.JWTClaimValidationFailed('"iat" claim must be a number',"iat","invalid");if(void 0!==u.nbf){if("number"!=typeof u.nbf)throw new i.JWTClaimValidationFailed('"nbf" claim must be a number',"nbf","invalid");if(u.nbf>v+d)throw new i.JWTClaimValidationFailed('"nbf" claim timestamp check failed',"nbf","check_failed")}if(void 0!==u.exp){if("number"!=typeof u.exp)throw new i.JWTClaimValidationFailed('"exp" claim must be a number',"exp","invalid");if(u.exp<=v-d)throw new i.JWTExpired('"exp" claim timestamp check failed',"exp","check_failed")}if(m){let e=v-u.iat;if(e-d>("number"==typeof m?m:(0,s.default)(m)))throw new i.JWTExpired('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed");if(e<0-d)throw new i.JWTClaimValidationFailed('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}return u}},4505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;t.default=e=>{let t=r.exec(e);if(!t)throw TypeError("Invalid time period format");let i=parseFloat(t[1]);switch(t[2].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(i);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(60*i);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(3600*i);case"day":case"days":case"d":return Math.round(86400*i);case"week":case"weeks":case"w":return Math.round(604800*i);default:return Math.round(31557600*i)}}},2561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)}},9277:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885);t.default=function(e,t,r,n,o){let s;if(void 0!==o.crit&&void 0===n.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(s=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!s.has(a))throw new i.JOSENotSupported(`Extension Header Parameter "${a}" is not recognized`);if(void 0===o[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(s.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)}},9647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwrap=t.wrap=void 0;let i=r(4300),n=r(6113),o=r(3885),s=r(3004),a=r(6261),l=r(1347),c=r(4841),u=r(8289),d=r(3755),h=r(2964);function p(e,t){if(e.symmetricKeySize<<3!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function f(e,t,r){if((0,c.default)(e))return e;if(e instanceof Uint8Array)return(0,n.createSecretKey)(e);if((0,a.isCryptoKey)(e))return(0,l.checkEncCryptoKey)(e,t,r),n.KeyObject.from(e);throw TypeError((0,u.default)(e,...h.types,"Uint8Array"))}t.wrap=(e,t,r)=>{let a=parseInt(e.slice(1,4),10),l=`aes${a}-wrap`;if(!(0,d.default)(l))throw new o.JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`);let c=f(t,e,"wrapKey");p(c,e);let u=(0,n.createCipheriv)(l,c,i.Buffer.alloc(8,166));return(0,s.concat)(u.update(r),u.final())},t.unwrap=(e,t,r)=>{let a=parseInt(e.slice(1,4),10),l=`aes${a}-wrap`;if(!(0,d.default)(l))throw new o.JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`);let c=f(t,e,"unwrapKey");p(c,e);let u=(0,n.createDecipheriv)(l,c,i.Buffer.alloc(8,166));return(0,s.concat)(u.update(r),u.final())}},9645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromX509=t.fromSPKI=t.fromPKCS8=t.toPKCS8=t.toSPKI=void 0;let i=r(6113),n=r(4300),o=r(6261),s=r(4841),a=r(8289),l=r(2964),c=(e,t,r)=>{let n;if((0,o.isCryptoKey)(r)){if(!r.extractable)throw TypeError("CryptoKey is not extractable");n=i.KeyObject.from(r)}else if((0,s.default)(r))n=r;else throw TypeError((0,a.default)(r,...l.types));if(n.type!==e)throw TypeError(`key is not a ${e} key`);return n.export({format:"pem",type:t})};t.toSPKI=e=>c("public","spki",e),t.toPKCS8=e=>c("private","pkcs8",e),t.fromPKCS8=e=>(0,i.createPrivateKey)({key:n.Buffer.from(e.replace(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,""),"base64"),type:"pkcs8",format:"der"}),t.fromSPKI=e=>(0,i.createPublicKey)({key:n.Buffer.from(e.replace(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,""),"base64"),type:"spki",format:"der"}),t.fromX509=e=>(0,i.createPublicKey)({key:e,type:"spki",format:"pem"})},8367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){if(48!==e[0]||(this.buffer=e,this.offset=1,this.decodeLength()!==e.length-this.offset))throw TypeError()}decodeLength(){let e=this.buffer[this.offset++];if(128&e){let t=-129&e;e=0;for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(4300),n=r(3885),o=i.Buffer.from([0]),s=i.Buffer.from([2]),a=i.Buffer.from([3]),l=i.Buffer.from([48]),c=i.Buffer.from([4]),u=e=>{if(e<128)return i.Buffer.from([e]);let t=i.Buffer.alloc(5);t.writeUInt32BE(e,1);let r=1;for(;0===t[r];)r++;return t[r-1]=128|5-r,t.slice(r-1)},d=new Map([["P-256",i.Buffer.from("06 08 2A 86 48 CE 3D 03 01 07".replace(/ /g,""),"hex")],["secp256k1",i.Buffer.from("06 05 2B 81 04 00 0A".replace(/ /g,""),"hex")],["P-384",i.Buffer.from("06 05 2B 81 04 00 22".replace(/ /g,""),"hex")],["P-521",i.Buffer.from("06 05 2B 81 04 00 23".replace(/ /g,""),"hex")],["ecPublicKey",i.Buffer.from("06 07 2A 86 48 CE 3D 02 01".replace(/ /g,""),"hex")],["X25519",i.Buffer.from("06 03 2B 65 6E".replace(/ /g,""),"hex")],["X448",i.Buffer.from("06 03 2B 65 6F".replace(/ /g,""),"hex")],["Ed25519",i.Buffer.from("06 03 2B 65 70".replace(/ /g,""),"hex")],["Ed448",i.Buffer.from("06 03 2B 65 71".replace(/ /g,""),"hex")]]);class h{constructor(){this.length=0,this.elements=[]}oidFor(e){let t=d.get(e);if(!t)throw new n.JOSENotSupported("Invalid or unsupported OID");this.elements.push(t),this.length+=t.length}zero(){this.elements.push(s,i.Buffer.from([1]),o),this.length+=3}one(){this.elements.push(s,i.Buffer.from([1]),i.Buffer.from([1])),this.length+=3}unsignedInteger(e){if(128&e[0]){let t=u(e.length+1);this.elements.push(s,t,o,e),this.length+=2+t.length+e.length}else{let t=0;for(;0===e[t]&&(128&e[t+1])==0;)t++;let r=u(e.length-t);this.elements.push(s,u(e.length-t),e.slice(t)),this.length+=1+r.length+e.length-t}}octStr(e){let t=u(e.length);this.elements.push(c,u(e.length),e),this.length+=1+t.length+e.length}bitStr(e){let t=u(e.length+1);this.elements.push(a,u(e.length+1),o,e),this.length+=1+t.length+e.length+1}add(e){this.elements.push(e),this.length+=e.length}end(e=l){let t=u(this.length);return i.Buffer.concat([e,t,...this.elements],1+t.length+this.length)}}t.default=h},5803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=t.encodeBase64=t.decodeBase64=void 0;let i=r(4300),n=r(3004);i.Buffer.isEncoding("base64url")?t.encode=e=>i.Buffer.from(e).toString("base64url"):t.encode=e=>i.Buffer.from(e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),t.decodeBase64=e=>i.Buffer.from(e,"base64"),t.encodeBase64=e=>i.Buffer.from(e).toString("base64"),t.decode=e=>i.Buffer.from(function(e){let t=e;return t instanceof Uint8Array&&(t=n.decoder.decode(t)),t}(e),"base64")},692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(3004);t.default=function(e,t,r,o,s,a){let l=(0,n.concat)(e,t,r,(0,n.uint64be)(e.length<<3)),c=(0,i.createHmac)(`sha${o}`,s);return c.update(l),c.digest().slice(0,a>>3)}},9888:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885),n=r(4841);t.default=(e,t)=>{let r;switch(e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":r=parseInt(e.slice(-3),10);break;case"A128GCM":case"A192GCM":case"A256GCM":r=parseInt(e.slice(1,4),10);break;default:throw new i.JOSENotSupported(`Content Encryption Algorithm ${e} is not supported either by JOSE or your javascript runtime`)}if(t instanceof Uint8Array){let e=t.byteLength<<3;if(e!==r)throw new i.JWEInvalid(`Invalid Content Encryption Key length. Expected ${r} bits, got ${e} bits`);return}if((0,n.default)(t)&&"secret"===t.type){let e=t.symmetricKeySize<<3;if(e!==r)throw new i.JWEInvalid(`Invalid Content Encryption Key length. Expected ${r} bits, got ${e} bits`);return}throw TypeError("Invalid Content Encryption Key type")}},6459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setModulusLength=t.weakMap=void 0,t.weakMap=new WeakMap;let r=(e,t)=>{let i=e.readUInt8(1);if((128&i)==0)return 0===t?i:r(e.subarray(2+i),t-1);let n=127&i;i=0;for(let t=0;t{let i=e.readUInt8(1);return(128&i)==0?r(e.subarray(2),t):r(e.subarray(2+(127&i)),t)},n=e=>{var r,n;if(t.weakMap.has(e))return t.weakMap.get(e);let o=null!==(n=null===(r=e.asymmetricKeyDetails)||void 0===r?void 0:r.modulusLength)&&void 0!==n?n:i(e.export({format:"der",type:"pkcs1"}),"private"===e.type?1:0)-1<<3;return t.weakMap.set(e,o),o};t.setModulusLength=(e,r)=>{t.weakMap.set(e,r)},t.default=(e,t)=>{if(2048>n(e))throw TypeError(`${t} requires key modulusLength to be 2048 bits or larger`)}},3755:(e,t,r)=>{"use strict";let i;Object.defineProperty(t,"__esModule",{value:!0});let n=r(6113);t.default=e=>(i||(i=new Set((0,n.getCiphers)())),i.has(e))},7287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(3450),o=r(9888),s=r(3004),a=r(3885),l=r(7292),c=r(692),u=r(6261),d=r(1347),h=r(4841),p=r(8289),f=r(3755),y=r(2964);t.default=(e,t,r,g,m,_)=>{let v;if((0,u.isCryptoKey)(t))(0,d.checkEncCryptoKey)(t,e,"decrypt"),v=i.KeyObject.from(t);else if(t instanceof Uint8Array||(0,h.default)(t))v=t;else throw TypeError((0,p.default)(t,...y.types,"Uint8Array"));switch((0,o.default)(e,v),(0,n.default)(e,g),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return function(e,t,r,n,o,u){let d,p;let y=parseInt(e.slice(1,4),10);(0,h.default)(t)&&(t=t.export());let g=t.subarray(y>>3),m=t.subarray(0,y>>3),_=parseInt(e.slice(-3),10),v=`aes-${y}-cbc`;if(!(0,f.default)(v))throw new a.JOSENotSupported(`alg ${e} is not supported by your javascript runtime`);let w=(0,c.default)(u,n,r,_,m,y);try{d=(0,l.default)(o,w)}catch{}if(!d)throw new a.JWEDecryptionFailed;try{let e=(0,i.createDecipheriv)(v,g,n);p=(0,s.concat)(e.update(r),e.final())}catch{}if(!p)throw new a.JWEDecryptionFailed;return p}(e,v,r,g,m,_);case"A128GCM":case"A192GCM":case"A256GCM":return function(e,t,r,n,o,s){let l=parseInt(e.slice(1,4),10),c=`aes-${l}-gcm`;if(!(0,f.default)(c))throw new a.JOSENotSupported(`alg ${e} is not supported by your javascript runtime`);try{let e=(0,i.createDecipheriv)(c,t,n,{authTagLength:16});e.setAuthTag(o),s.byteLength&&e.setAAD(s,{plaintextLength:r.length});let a=e.update(r);return e.final(),a}catch{throw new a.JWEDecryptionFailed}}(e,v,r,g,m,_);default:throw new a.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}}},3730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113);t.default=(e,t)=>(0,i.createHash)(e).update(t).digest()},9583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885);t.default=function(e){switch(e){case"PS256":case"RS256":case"ES256":case"ES256K":return"sha256";case"PS384":case"RS384":case"ES384":return"sha384";case"PS512":case"RS512":case"ES512":return"sha512";case"EdDSA":return;default:throw new i.JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}},806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhAllowed=t.generateEpk=t.deriveKey=void 0;let i=r(6113),n=r(3849),o=r(5922),s=r(3004),a=r(3885),l=r(6261),c=r(1347),u=r(4841),d=r(8289),h=r(2964),p=(0,n.promisify)(i.generateKeyPair);async function f(e,t,r,n,o=new Uint8Array(0),a=new Uint8Array(0)){let p,f;if((0,l.isCryptoKey)(e))(0,c.checkEncCryptoKey)(e,"ECDH"),p=i.KeyObject.from(e);else if((0,u.default)(e))p=e;else throw TypeError((0,d.default)(e,...h.types));if((0,l.isCryptoKey)(t))(0,c.checkEncCryptoKey)(t,"ECDH","deriveBits"),f=i.KeyObject.from(t);else if((0,u.default)(t))f=t;else throw TypeError((0,d.default)(t,...h.types));let y=(0,s.concat)((0,s.lengthAndInput)(s.encoder.encode(r)),(0,s.lengthAndInput)(o),(0,s.lengthAndInput)(a),(0,s.uint32be)(n)),g=(0,i.diffieHellman)({privateKey:f,publicKey:p});return(0,s.concatKdf)(g,n,y)}async function y(e){let t;if((0,l.isCryptoKey)(e))t=i.KeyObject.from(e);else if((0,u.default)(e))t=e;else throw TypeError((0,d.default)(e,...h.types));switch(t.asymmetricKeyType){case"x25519":return p("x25519");case"x448":return p("x448");case"ec":return p("ec",{namedCurve:(0,o.default)(t)});default:throw new a.JOSENotSupported("Invalid or unsupported EPK")}}t.deriveKey=f,t.generateEpk=y,t.ecdhAllowed=e=>["P-256","P-384","P-521","X25519","X448"].includes((0,o.default)(e))},7359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(3450),o=r(9888),s=r(3004),a=r(692),l=r(6261),c=r(1347),u=r(4841),d=r(8289),h=r(3885),p=r(3755),f=r(2964);t.default=(e,t,r,y,g)=>{let m;if((0,l.isCryptoKey)(r))(0,c.checkEncCryptoKey)(r,e,"encrypt"),m=i.KeyObject.from(r);else if(r instanceof Uint8Array||(0,u.default)(r))m=r;else throw TypeError((0,d.default)(r,...f.types,"Uint8Array"));switch((0,o.default)(e,m),(0,n.default)(e,y),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return function(e,t,r,n,o){let l=parseInt(e.slice(1,4),10);(0,u.default)(r)&&(r=r.export());let c=r.subarray(l>>3),d=r.subarray(0,l>>3),f=`aes-${l}-cbc`;if(!(0,p.default)(f))throw new h.JOSENotSupported(`alg ${e} is not supported by your javascript runtime`);let y=(0,i.createCipheriv)(f,c,n),g=(0,s.concat)(y.update(t),y.final()),m=parseInt(e.slice(-3),10),_=(0,a.default)(o,n,g,m,d,l);return{ciphertext:g,tag:_}}(e,t,m,y,g);case"A128GCM":case"A192GCM":case"A256GCM":return function(e,t,r,n,o){let s=parseInt(e.slice(1,4),10),a=`aes-${s}-gcm`;if(!(0,p.default)(a))throw new h.JOSENotSupported(`alg ${e} is not supported by your javascript runtime`);let l=(0,i.createCipheriv)(a,r,n,{authTagLength:16});o.byteLength&&l.setAAD(o,{plaintextLength:t.length});let c=l.update(t);return l.final(),{ciphertext:c,tag:l.getAuthTag()}}(e,t,m,y,g);default:throw new h.JOSENotSupported("Unsupported JWE Content Encryption Algorithm")}}},1537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3685),n=r(5687),o=r(2361),s=r(3885),a=r(3004),l=async(e,t,r)=>{let l;switch(e.protocol){case"https:":l=n.get;break;case"http:":l=i.get;break;default:throw TypeError("Unsupported URL protocol.")}let{agent:c,headers:u}=r,d=l(e.href,{agent:c,timeout:t,headers:u}),[h]=await Promise.race([(0,o.once)(d,"response"),(0,o.once)(d,"timeout")]);if(!h)throw d.destroy(),new s.JWKSTimeout;if(200!==h.statusCode)throw new s.JOSEError("Expected 200 OK from the JSON Web Key Set HTTP response");let p=[];for await(let e of h)p.push(e);try{return JSON.parse(a.decoder.decode((0,a.concat)(...p)))}catch{throw new s.JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON")}};t.default=l},7572:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwkImport=t.jwkExport=t.rsaPssParams=t.oneShotCallback=void 0;let[r,i]=process.versions.node.split(".").map(e=>parseInt(e,10));t.oneShotCallback=r>=16||15===r&&i>=13,t.rsaPssParams=!("electron"in process.versions)&&(r>=17||16===r&&i>=9),t.jwkExport=r>=16||15===r&&i>=9,t.jwkImport=r>=16||15===r&&i>=12},8428:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateKeyPair=t.generateSecret=void 0;let i=r(6113),n=r(3849),o=r(2088),s=r(6459),a=r(3885),l=(0,n.promisify)(i.generateKeyPair);async function c(e,t){let r;switch(e){case"HS256":case"HS384":case"HS512":case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":r=parseInt(e.slice(-3),10);break;case"A128KW":case"A192KW":case"A256KW":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":r=parseInt(e.slice(1,4),10);break;default:throw new a.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return(0,i.createSecretKey)((0,o.default)(new Uint8Array(r>>3)))}async function u(e,t){var r,i;switch(e){case"RS256":case"RS384":case"RS512":case"PS256":case"PS384":case"PS512":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":case"RSA1_5":{let e=null!==(r=null==t?void 0:t.modulusLength)&&void 0!==r?r:2048;if("number"!=typeof e||e<2048)throw new a.JOSENotSupported("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");let i=await l("rsa",{modulusLength:e,publicExponent:65537});return(0,s.setModulusLength)(i.privateKey,e),(0,s.setModulusLength)(i.publicKey,e),i}case"ES256":return l("ec",{namedCurve:"P-256"});case"ES256K":return l("ec",{namedCurve:"secp256k1"});case"ES384":return l("ec",{namedCurve:"P-384"});case"ES512":return l("ec",{namedCurve:"P-521"});case"EdDSA":switch(null==t?void 0:t.crv){case void 0:case"Ed25519":return l("ed25519");case"Ed448":return l("ed448");default:throw new a.JOSENotSupported("Invalid or unsupported crv option provided, supported values are Ed25519 and Ed448")}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":let n=null!==(i=null==t?void 0:t.crv)&&void 0!==i?i:"P-256";switch(n){case void 0:case"P-256":case"P-384":case"P-521":return l("ec",{namedCurve:n});case"X25519":return l("x25519");case"X448":return l("x448");default:throw new a.JOSENotSupported("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}default:throw new a.JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}}t.generateSecret=c,t.generateKeyPair=u},5922:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setCurve=t.weakMap=void 0;let i=r(4300),n=r(6113),o=r(3885),s=r(6261),a=r(4841),l=r(8289),c=r(2964),u=i.Buffer.from([42,134,72,206,61,3,1,7]),d=i.Buffer.from([43,129,4,0,34]),h=i.Buffer.from([43,129,4,0,35]),p=i.Buffer.from([43,129,4,0,10]);t.weakMap=new WeakMap;let f=e=>{switch(e){case"prime256v1":return"P-256";case"secp384r1":return"P-384";case"secp521r1":return"P-521";case"secp256k1":return"secp256k1";default:throw new o.JOSENotSupported("Unsupported key curve for this operation")}},y=(e,r)=>{var i;let g;if((0,s.isCryptoKey)(e))g=n.KeyObject.from(e);else if((0,a.default)(e))g=e;else throw TypeError((0,l.default)(e,...c.types));if("secret"===g.type)throw TypeError('only "private" or "public" type keys can be used for this operation');switch(g.asymmetricKeyType){case"ed25519":case"ed448":return`Ed${g.asymmetricKeyType.slice(2)}`;case"x25519":case"x448":return`X${g.asymmetricKeyType.slice(1)}`;case"ec":{if(t.weakMap.has(g))return t.weakMap.get(g);let e=null===(i=g.asymmetricKeyDetails)||void 0===i?void 0:i.namedCurve;if(e||"private"!==g.type){if(!e){let t=g.export({format:"der",type:"spki"}),r=t[1]<128?14:15,i=t[r],n=t.slice(r+1,r+1+i);if(n.equals(u))e="prime256v1";else if(n.equals(d))e="secp384r1";else if(n.equals(h))e="secp521r1";else if(n.equals(p))e="secp256k1";else throw new o.JOSENotSupported("Unsupported key curve for this operation")}}else e=y((0,n.createPublicKey)(g),!0);if(r)return e;let s=f(e);return t.weakMap.set(g,s),s}default:throw TypeError("Invalid asymmetric key type for this operation")}};t.setCurve=function(e,r){t.weakMap.set(e,r)},t.default=y},8069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(6261),o=r(1347),s=r(8289),a=r(2964);t.default=function(e,t,r){if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError((0,s.default)(t,...a.types));return(0,i.createSecretKey)(t)}if(t instanceof i.KeyObject)return t;if((0,n.isCryptoKey)(t))return(0,o.checkSigCryptoKey)(t,e,r),i.KeyObject.from(t);throw TypeError((0,s.default)(t,...a.types,"Uint8Array"))}},2614:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3885);t.default=function(e){switch(e){case"HS256":return"sha256";case"HS384":return"sha384";case"HS512":return"sha512";default:throw new i.JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}},2964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.types=void 0;let i=r(6261),n=r(4841);t.default=e=>(0,n.default)(e)||(0,i.isCryptoKey)(e);let o=["KeyObject"];t.types=o,(globalThis.CryptoKey||(null===i.default||void 0===i.default?void 0:i.default.CryptoKey))&&o.push("CryptoKey")},4841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(3849);t.default=n.types.isKeyObject?e=>n.types.isKeyObject(e):e=>null!=e&&e instanceof i.KeyObject},9453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(4300),n=r(6113),o=r(5803),s=r(3885),a=r(5922),l=r(6459),c=r(6217),u=r(7572);t.default=e=>{if(u.jwkImport&&"oct"!==e.kty)return e.d?(0,n.createPrivateKey)({format:"jwk",key:e}):(0,n.createPublicKey)({format:"jwk",key:e});switch(e.kty){case"oct":return(0,n.createSecretKey)((0,o.decode)(e.k));case"RSA":{let t=new c.default,r=void 0!==e.d,o=i.Buffer.from(e.n,"base64"),s=i.Buffer.from(e.e,"base64");r?(t.zero(),t.unsignedInteger(o),t.unsignedInteger(s),t.unsignedInteger(i.Buffer.from(e.d,"base64")),t.unsignedInteger(i.Buffer.from(e.p,"base64")),t.unsignedInteger(i.Buffer.from(e.q,"base64")),t.unsignedInteger(i.Buffer.from(e.dp,"base64")),t.unsignedInteger(i.Buffer.from(e.dq,"base64")),t.unsignedInteger(i.Buffer.from(e.qi,"base64"))):(t.unsignedInteger(o),t.unsignedInteger(s));let a={key:t.end(),format:"der",type:"pkcs1"},u=r?(0,n.createPrivateKey)(a):(0,n.createPublicKey)(a);return(0,l.setModulusLength)(u,o.length<<3),u}case"EC":{let t=new c.default,r=void 0!==e.d,o=i.Buffer.concat([i.Buffer.alloc(1,4),i.Buffer.from(e.x,"base64"),i.Buffer.from(e.y,"base64")]);if(r){t.zero();let r=new c.default;r.oidFor("ecPublicKey"),r.oidFor(e.crv),t.add(r.end());let s=new c.default;s.one(),s.octStr(i.Buffer.from(e.d,"base64"));let l=new c.default;l.bitStr(o);let u=l.end(i.Buffer.from([161]));s.add(u);let d=s.end(),h=new c.default;h.add(d);let p=h.end(i.Buffer.from([4]));t.add(p);let f=t.end(),y=(0,n.createPrivateKey)({key:f,format:"der",type:"pkcs8"});return(0,a.setCurve)(y,e.crv),y}let s=new c.default;s.oidFor("ecPublicKey"),s.oidFor(e.crv),t.add(s.end()),t.bitStr(o);let l=t.end(),u=(0,n.createPublicKey)({key:l,format:"der",type:"spki"});return(0,a.setCurve)(u,e.crv),u}case"OKP":{let t=new c.default;if(void 0!==e.d){t.zero();let r=new c.default;r.oidFor(e.crv),t.add(r.end());let o=new c.default;o.octStr(i.Buffer.from(e.d,"base64"));let s=o.end(i.Buffer.from([4]));t.add(s);let a=t.end();return(0,n.createPrivateKey)({key:a,format:"der",type:"pkcs8"})}let r=new c.default;r.oidFor(e.crv),t.add(r.end()),t.bitStr(i.Buffer.from(e.x,"base64"));let o=t.end();return(0,n.createPublicKey)({key:o,format:"der",type:"spki"})}default:throw new s.JOSENotSupported('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}}},7:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(5803),o=r(8367),s=r(3885),a=r(5922),l=r(6261),c=r(4841),u=r(8289),d=r(2964),h=r(7572),p=e=>{let t;if((0,l.isCryptoKey)(e)){if(!e.extractable)throw TypeError("CryptoKey is not extractable");t=i.KeyObject.from(e)}else if((0,c.default)(e))t=e;else if(e instanceof Uint8Array)return{kty:"oct",k:(0,n.encode)(e)};else throw TypeError((0,u.default)(e,...d.types,"Uint8Array"));if(h.jwkExport){if("secret"!==t.type&&!["rsa","ec","ed25519","x25519","ed448","x448"].includes(t.asymmetricKeyType))throw new s.JOSENotSupported("Unsupported key asymmetricKeyType");return t.export({format:"jwk"})}switch(t.type){case"secret":return{kty:"oct",k:(0,n.encode)(t.export())};case"private":case"public":switch(t.asymmetricKeyType){case"rsa":{let e;let r=t.export({format:"der",type:"pkcs1"}),i=new o.default(r);"private"===t.type&&i.unsignedInteger();let s=(0,n.encode)(i.unsignedInteger()),a=(0,n.encode)(i.unsignedInteger());return"private"===t.type&&(e={d:(0,n.encode)(i.unsignedInteger()),p:(0,n.encode)(i.unsignedInteger()),q:(0,n.encode)(i.unsignedInteger()),dp:(0,n.encode)(i.unsignedInteger()),dq:(0,n.encode)(i.unsignedInteger()),qi:(0,n.encode)(i.unsignedInteger())}),i.end(),{kty:"RSA",n:s,e:a,...e}}case"ec":{let e,r,o;let l=(0,a.default)(t);switch(l){case"secp256k1":e=64,r=33,o=-1;break;case"P-256":e=64,r=36,o=-1;break;case"P-384":e=96,r=35,o=-3;break;case"P-521":e=132,r=35,o=-3;break;default:throw new s.JOSENotSupported("Unsupported curve")}if("public"===t.type){let r=t.export({type:"spki",format:"der"});return{kty:"EC",crv:l,x:(0,n.encode)(r.subarray(-e,-e/2)),y:(0,n.encode)(r.subarray(-e/2))}}let c=t.export({type:"pkcs8",format:"der"});return c.length<100&&(r+=o),{...p((0,i.createPublicKey)(t)),d:(0,n.encode)(c.subarray(r,r+e/2))}}case"ed25519":case"x25519":{let e=(0,a.default)(t);if("public"===t.type){let r=t.export({type:"spki",format:"der"});return{kty:"OKP",crv:e,x:(0,n.encode)(r.subarray(-32))}}let r=t.export({type:"pkcs8",format:"der"});return{...p((0,i.createPublicKey)(t)),d:(0,n.encode)(r.subarray(-32))}}case"ed448":case"x448":{let e=(0,a.default)(t);if("public"===t.type){let r=t.export({type:"spki",format:"der"});return{kty:"OKP",crv:e,x:(0,n.encode)(r.subarray("Ed448"===e?-57:-56))}}let r=t.export({type:"pkcs8",format:"der"});return{...p((0,i.createPublicKey)(t)),d:(0,n.encode)(r.subarray("Ed448"===e?-57:-56))}}default:throw new s.JOSENotSupported("Unsupported key asymmetricKeyType")}default:throw new s.JOSENotSupported("Unsupported key type")}};t.default=p},3583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113),n=r(5922),o=r(3885),s=r(6459),a=r(7572),l={padding:i.constants.RSA_PKCS1_PSS_PADDING,saltLength:i.constants.RSA_PSS_SALTLEN_DIGEST},c=new Map([["ES256","P-256"],["ES256K","secp256k1"],["ES384","P-384"],["ES512","P-521"]]);t.default=function(e,t){switch(e){case"EdDSA":if(!["ed25519","ed448"].includes(t.asymmetricKeyType))throw TypeError("Invalid key for this operation, its asymmetricKeyType must be ed25519 or ed448");return t;case"RS256":case"RS384":case"RS512":if("rsa"!==t.asymmetricKeyType)throw TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa");return(0,s.default)(t,e),t;case a.rsaPssParams&&"PS256":case a.rsaPssParams&&"PS384":case a.rsaPssParams&&"PS512":if("rsa-pss"===t.asymmetricKeyType){let{hashAlgorithm:r,mgf1HashAlgorithm:i,saltLength:n}=t.asymmetricKeyDetails,o=parseInt(e.slice(-3),10);if(void 0!==r&&(r!==`sha${o}`||i!==r))throw TypeError(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}`);if(void 0!==n&&n>o>>3)throw TypeError(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}`)}else if("rsa"!==t.asymmetricKeyType)throw TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa or rsa-pss");return(0,s.default)(t,e),{key:t,...l};case!a.rsaPssParams&&"PS256":case!a.rsaPssParams&&"PS384":case!a.rsaPssParams&&"PS512":if("rsa"!==t.asymmetricKeyType)throw TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa");return(0,s.default)(t,e),{key:t,...l};case"ES256":case"ES256K":case"ES384":case"ES512":{if("ec"!==t.asymmetricKeyType)throw TypeError("Invalid key for this operation, its asymmetricKeyType must be ec");let r=(0,n.default)(t),i=c.get(e);if(r!==i)throw TypeError(`Invalid key curve for the algorithm, its curve must be ${i}, got ${r}`);return{dsaEncoding:"ieee-p1363",key:t}}default:throw new o.JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}},4290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;let i=r(3849),n=r(6113),o=r(2088),s=r(3004),a=r(5803),l=r(9647),c=r(2617),u=r(6261),d=r(1347),h=r(4841),p=r(8289),f=r(2964),y=(0,i.promisify)(n.pbkdf2);function g(e,t){if((0,h.default)(e))return e.export();if(e instanceof Uint8Array)return e;if((0,u.isCryptoKey)(e))return(0,d.checkEncCryptoKey)(e,t,"deriveBits","deriveKey"),n.KeyObject.from(e).export();throw TypeError((0,p.default)(e,...f.types,"Uint8Array"))}let m=async(e,t,r,i=2048,n=(0,o.default)(new Uint8Array(16)))=>{(0,c.default)(n);let u=(0,s.p2s)(e,n),d=parseInt(e.slice(13,16),10)>>3,h=g(t,e),p=await y(h,u,i,d,`sha${e.slice(8,11)}`);return{encryptedKey:await (0,l.wrap)(e.slice(-6),p,r),p2c:i,p2s:(0,a.encode)(n)}};t.encrypt=m;let _=async(e,t,r,i,n)=>{(0,c.default)(n);let o=(0,s.p2s)(e,n),a=parseInt(e.slice(13,16),10)>>3,u=g(t,e),d=await y(u,o,i,a,`sha${e.slice(8,11)}`);return(0,l.unwrap)(e.slice(-6),d,r)};t.decrypt=_},2088:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(6113);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.randomFillSync}})},5730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;let i=r(6113),n=r(6459),o=r(6261),s=r(1347),a=r(4841),l=r(8289),c=r(2964),u=(e,t)=>{if("rsa"!==e.asymmetricKeyType)throw TypeError("Invalid key for this operation, its asymmetricKeyType must be rsa");(0,n.default)(e,t)},d=e=>{switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return i.constants.RSA_PKCS1_OAEP_PADDING;case"RSA1_5":return i.constants.RSA_PKCS1_PADDING;default:return}},h=e=>{switch(e){case"RSA-OAEP":return"sha1";case"RSA-OAEP-256":return"sha256";case"RSA-OAEP-384":return"sha384";case"RSA-OAEP-512":return"sha512";default:return}};function p(e,t,...r){if((0,a.default)(e))return e;if((0,o.isCryptoKey)(e))return(0,s.checkEncCryptoKey)(e,t,...r),i.KeyObject.from(e);throw TypeError((0,l.default)(e,...c.types))}t.encrypt=(e,t,r)=>{let n=d(e),o=h(e),s=p(t,e,"wrapKey","encrypt");return u(s,e),(0,i.publicEncrypt)({key:s,oaepHash:o,padding:n},r)},t.decrypt=(e,t,r)=>{let n=d(e),o=h(e),s=p(t,e,"unwrapKey","decrypt");return u(s,e),(0,i.privateDecrypt)({key:s,oaepHash:o,padding:n},r)}},9822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="node:crypto"},7385:(e,t,r)=>{"use strict";let i;Object.defineProperty(t,"__esModule",{value:!0});let n=r(6113),o=r(3849),s=r(9583),a=r(2614),l=r(3583),c=r(8069);i=n.sign.length>3?(0,o.promisify)(n.sign):n.sign;let u=async(e,t,r)=>{let o=(0,c.default)(e,t,"sign");if(e.startsWith("HS")){let t=n.createHmac((0,a.default)(e),o);return t.update(r),t.digest()}return i((0,s.default)(e),r,(0,l.default)(e,o))};t.default=u},7292:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(6113).timingSafeEqual;t.default=i},3458:(e,t,r)=>{"use strict";let i;Object.defineProperty(t,"__esModule",{value:!0});let n=r(6113),o=r(3849),s=r(9583),a=r(3583),l=r(7385),c=r(8069),u=r(7572);i=n.verify.length>4&&u.oneShotCallback?(0,o.promisify)(n.verify):n.verify;let d=async(e,t,r,o)=>{let u=(0,c.default)(e,t,"verify");if(e.startsWith("HS")){let t=await (0,l.default)(e,u,o);try{return n.timingSafeEqual(r,t)}catch{return!1}}let d=(0,s.default)(e),h=(0,a.default)(e,u);try{return await i(d,o,h,r)}catch{return!1}};t.default=d},6261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCryptoKey=void 0;let i=r(6113),n=r(3849),o=i.webcrypto;t.default=o,t.isCryptoKey=n.types.isCryptoKey?e=>n.types.isCryptoKey(e):e=>!1},4652:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deflate=t.inflate=void 0;let i=r(3849),n=r(9796),o=(0,i.promisify)(n.inflateRaw),s=(0,i.promisify)(n.deflateRaw);t.inflate=e=>o(e),t.deflate=e=>s(e)},3225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;let i=r(5803);t.encode=i.encode,t.decode=i.decode},9541:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeJwt=void 0;let i=r(3225),n=r(3004),o=r(8906),s=r(3885);t.decodeJwt=function(e){let t,r;if("string"!=typeof e)throw new s.JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");let{1:a,length:l}=e.split(".");if(5===l)throw new s.JWTInvalid("Only JWTs using Compact JWS serialization can be decoded");if(3!==l)throw new s.JWTInvalid("Invalid JWT");if(!a)throw new s.JWTInvalid("JWTs must contain a payload");try{t=(0,i.decode)(a)}catch{throw new s.JWTInvalid("Failed to base64url decode the payload")}try{r=JSON.parse(n.decoder.decode(t))}catch{throw new s.JWTInvalid("Failed to parse the decoded payload as JSON")}if(!(0,o.default)(r))throw new s.JWTInvalid("Invalid JWT Claims Set");return r}},9472:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeProtectedHeader=void 0;let i=r(3225),n=r(3004),o=r(8906);t.decodeProtectedHeader=function(e){let t;if("string"==typeof e){let r=e.split(".");(3===r.length||5===r.length)&&([t]=r)}else if("object"==typeof e&&e){if("protected"in e)t=e.protected;else throw TypeError("Token does not contain a Protected Header")}try{if("string"!=typeof t||!t)throw Error();let e=JSON.parse(n.decoder.decode((0,i.decode)(t)));if(!(0,o.default)(e))throw Error();return e}catch{throw TypeError("Invalid Token or Protected Header formatting")}}},3885:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JWSSignatureVerificationFailed=t.JWKSTimeout=t.JWKSMultipleMatchingKeys=t.JWKSNoMatchingKey=t.JWKSInvalid=t.JWKInvalid=t.JWTInvalid=t.JWSInvalid=t.JWEInvalid=t.JWEDecryptionFailed=t.JOSENotSupported=t.JOSEAlgNotAllowed=t.JWTExpired=t.JWTClaimValidationFailed=t.JOSEError=void 0;class r extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null===(t=Error.captureStackTrace)||void 0===t||t.call(Error,this,this.constructor)}}t.JOSEError=r;class i extends r{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=t,this.reason=r}}t.JWTClaimValidationFailed=i;class n extends r{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=t,this.reason=r}}t.JWTExpired=n;class o extends r{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}t.JOSEAlgNotAllowed=o;class s extends r{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}t.JOSENotSupported=s;class a extends r{constructor(){super(...arguments),this.code="ERR_JWE_DECRYPTION_FAILED",this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}t.JWEDecryptionFailed=a;class l extends r{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}t.JWEInvalid=l;class c extends r{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}t.JWSInvalid=c;class u extends r{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}t.JWTInvalid=u;class d extends r{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}t.JWKInvalid=d;class h extends r{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}t.JWKSInvalid=h;class p extends r{constructor(){super(...arguments),this.code="ERR_JWKS_NO_MATCHING_KEY",this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}t.JWKSNoMatchingKey=p;class f extends r{constructor(){super(...arguments),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}t.JWKSMultipleMatchingKeys=f,Symbol.asyncIterator;class y extends r{constructor(){super(...arguments),this.code="ERR_JWKS_TIMEOUT",this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}t.JWKSTimeout=y;class g extends r{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}t.JWSSignatureVerificationFailed=g},6537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(9822);t.default=i.default},8852:(e,t,r)=>{"use strict";let i=r(4634),n=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),h=Symbol("cache"),p=Symbol("updateAgeOnGet"),f=()=>1;class y{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[s]="function"!=typeof t?f:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,_(this)}get max(){return this[n]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,_(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[s]&&(this[s]=e,this[o]=0,this[d].forEach(e=>{e.length=this[s](e.value,e.key),this[o]+=e.length})),_(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){let i=r.prev;b(this,e,r,t),r=i}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){let i=r.next;b(this,e,r,t),r=i}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[c]&&this[d]&&this[d].length&&this[d].forEach(e=>this[c](e.key,e.value)),this[h]=new Map,this[d]=new i,this[o]=0}dump(){return this[d].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let i=r?Date.now():0,a=this[s](t,e);if(this[h].has(e)){if(a>this[n])return v(this,this[h].get(e)),!1;let s=this[h].get(e).value;return this[c]&&!this[u]&&this[c](e,s.value),s.now=i,s.maxAge=r,s.value=t,this[o]+=a-s.length,s.length=a,this.get(e),_(this),!0}let p=new w(e,t,a,i,r);return p.length>this[n]?(this[c]&&this[c](e,t),!1):(this[o]+=p.length,this[d].unshift(p),this[h].set(e,this[d].head),_(this),!0)}has(e){return!!this[h].has(e)&&!m(this,this[h].get(e).value)}get(e){return g(this,e,!0)}peek(e){return g(this,e,!1)}pop(){let e=this[d].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[h].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let i=e[r],n=i.e||0;if(0===n)this.set(i.k,i.v);else{let e=n-t;e>0&&this.set(i.k,i.v,e)}}}prune(){this[h].forEach((e,t)=>g(this,t,!1))}}let g=(e,t,r)=>{let i=e[h].get(t);if(i){let t=i.value;if(m(e,t)){if(v(e,i),!e[a])return}else r&&(e[p]&&(i.value.now=Date.now()),e[d].unshiftNode(i));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},_=e=>{if(e[o]>e[n])for(let t=e[d].tail;e[o]>e[n]&&null!==t;){let r=t.prev;v(e,t),t=r}},v=(e,t)=>{if(t){let r=t.value;e[c]&&e[c](r.key,r.value),e[o]-=r.length,e[h].delete(r.key),e[d].removeNode(t)}};class w{constructor(e,t,r,i,n){this.key=e,this.value=t,this.length=r,this.now=i,this.maxAge=n||0}}let b=(e,t,r,i)=>{let n=r.value;m(e,n)&&(v(e,r),e[a]||(n=void 0)),n&&t.call(i,n.value,n.key,e)};e.exports=y},2394:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedStrategy=t.UnknownError=t.OAuthCallbackError=t.MissingSecret=t.MissingAuthorize=t.MissingAdapterMethods=t.MissingAdapter=t.MissingAPIRoute=t.InvalidCallbackUrl=t.AccountNotLinkedError=void 0,t.adapterErrorHandler=function(e,t){if(e)return Object.keys(e).reduce(function(r,i){return r[i]=(0,o.default)(n.default.mark(function r(){var o,s,a,l,c,u=arguments;return n.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(r.prev=0,s=Array(o=u.length),a=0;a{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.AuthHandler=g;var n=p(r(5387)),o=r(7885),s=p(r(8024)),a=i(r(5858)),l=r(3833),c=r(4538),u=r(2486),d=r(7162);function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=n?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}async function f(e){try{return await e.json()}catch(e){}}async function y(e){var t,r,i,n;if(e instanceof Request){let t=new URL(e.url),s=t.pathname.split("/").slice(3),a=Object.fromEntries(e.headers),l=Object.fromEntries(t.searchParams);return l.nextauth=s,{action:s[0],method:e.method,headers:a,body:await f(e),cookies:(0,d.parse)(null!==(r=e.headers.get("cookie"))&&void 0!==r?r:""),providerId:s[1],error:null!==(i=t.searchParams.get("error"))&&void 0!==i?i:s[1],origin:(0,o.detectOrigin)(null!==(n=a["x-forwarded-host"])&&void 0!==n?n:a.host,a["x-forwarded-proto"]),query:l}}let{headers:s}=e,a=null!==(t=null==s?void 0:s["x-forwarded-host"])&&void 0!==t?t:null==s?void 0:s.host;return e.origin=(0,o.detectOrigin)(a,null==s?void 0:s["x-forwarded-proto"]),e}async function g(e){var t,r,i,o,d,h,p,f;let{options:g,req:m}=e,_=await y(m);(0,n.setLogger)(g.logger,g.debug);let v=(0,c.assertConfig)({options:g,req:_});if(Array.isArray(v))v.forEach(n.default.warn);else if(v instanceof Error){if(n.default.error(v.code,v),!["signin","signout","error","verify-request"].includes(_.action)||"GET"!==_.method)return{status:500,headers:[{key:"Content-Type",value:"application/json"}],body:{message:"There is a problem with the server configuration. Check the server logs for more information."}};let{pages:e,theme:t}=g,r=(null==e?void 0:e.error)&&(null===(d=_.query)||void 0===d?void 0:null===(h=d.callbackUrl)||void 0===h?void 0:h.startsWith(e.error));return!(null!=e&&e.error)||r?(r&&n.default.error("AUTH_ON_ERROR_PAGE_ERROR",Error(`The error page ${null==e?void 0:e.error} should not require authentication`)),(0,a.default)({theme:t}).error({error:"configuration"})):{redirect:`${e.error}?error=Configuration`}}let{action:w,providerId:b,error:S,method:k="GET"}=_,{options:E,cookies:A}=await (0,l.init)({authOptions:g,action:w,providerId:b,origin:_.origin,callbackUrl:null!==(t=null===(r=_.body)||void 0===r?void 0:r.callbackUrl)&&void 0!==t?t:null===(i=_.query)||void 0===i?void 0:i.callbackUrl,csrfToken:null===(o=_.body)||void 0===o?void 0:o.csrfToken,cookies:_.cookies,isPost:"POST"===k}),x=new u.SessionStore(E.cookies.sessionToken,_,E.logger);if("GET"===k){let e=(0,a.default)({...E,query:_.query,cookies:A}),{pages:t}=E;switch(w){case"providers":return await s.providers(E.providers);case"session":{let e=await s.session({options:E,sessionStore:x});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}case"csrf":return{headers:[{key:"Content-Type",value:"application/json"}],body:{csrfToken:E.csrfToken},cookies:A};case"signin":if(t.signIn){let e=`${t.signIn}${t.signIn.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(E.callbackUrl)}`;return S&&(e=`${e}&error=${encodeURIComponent(S)}`),{redirect:e,cookies:A}}return e.signin();case"signout":if(t.signOut)return{redirect:t.signOut,cookies:A};return e.signout();case"callback":if(E.provider){let e=await s.callback({body:_.body,query:_.query,headers:_.headers,cookies:_.cookies,method:k,options:E,sessionStore:x});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}break;case"verify-request":if(t.verifyRequest)return{redirect:t.verifyRequest,cookies:A};return e.verifyRequest();case"error":if(["Signin","OAuthSignin","OAuthCallback","OAuthCreateAccount","EmailCreateAccount","Callback","OAuthAccountNotLinked","EmailSignin","CredentialsSignin","SessionRequired"].includes(S))return{redirect:`${E.url}/signin?error=${S}`,cookies:A};if(t.error)return{redirect:`${t.error}${t.error.includes("?")?"&":"?"}error=${S}`,cookies:A};return e.error({error:S})}}else if("POST"===k)switch(w){case"signin":if(E.csrfTokenVerified&&E.provider){let e=await s.signin({query:_.query,body:_.body,options:E});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}return{redirect:`${E.url}/signin?csrf=true`,cookies:A};case"signout":if(E.csrfTokenVerified){let e=await s.signout({options:E,sessionStore:x});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}return{redirect:`${E.url}/signout?csrf=true`,cookies:A};case"callback":if(E.provider){if("credentials"===E.provider.type&&!E.csrfTokenVerified)return{redirect:`${E.url}/signin?csrf=true`,cookies:A};let e=await s.callback({body:_.body,query:_.query,headers:_.headers,cookies:_.cookies,method:k,options:E,sessionStore:x});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}break;case"_log":if(g.logger)try{let{code:e,level:t,...r}=null!==(p=_.body)&&void 0!==p?p:{};n.default[t](e,r)}catch(e){n.default.error("LOGGER_ERROR",e)}return{};case"session":if(E.csrfTokenVerified){let e=await s.session({options:E,sessionStore:x,newSession:null===(f=_.body)||void 0===f?void 0:f.data,isUpdate:!0});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}return{status:400,body:{},cookies:A}}return{status:400,body:`Error: This action with HTTP ${k} is not supported by NextAuth.js`}}},3833:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.init=m;var n=r(6113),o=i(r(5387)),s=r(2394),a=i(r(412)),l=r(9001),c=g(r(2486)),u=g(r(1609)),d=r(6599),h=r(3378),p=r(3266),f=i(r(550));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=n?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}async function m({authOptions:e,providerId:t,action:r,origin:i,cookies:y,callbackUrl:g,csrfToken:m,isPost:_}){var v,w;let b=(0,f.default)(i),S=(0,l.createSecret)({authOptions:e,url:b}),{providers:k,provider:E}=(0,a.default)({providers:e.providers,url:b,providerId:t}),A={debug:!1,pages:{},theme:{colorScheme:"auto",logo:"",brandColor:"",buttonText:""},...e,url:b,action:r,provider:E,cookies:{...c.defaultCookies(null!==(v=e.useSecureCookies)&&void 0!==v?v:b.base.startsWith("https://")),...e.cookies},secret:S,providers:k,session:{strategy:e.adapter?"database":"jwt",maxAge:2592e3,updateAge:86400,generateSessionToken:()=>{var e;return null!==(e=null===n.randomUUID||void 0===n.randomUUID?void 0:(0,n.randomUUID)())&&void 0!==e?e:(0,n.randomBytes)(32).toString("hex")},...e.session},jwt:{secret:S,maxAge:2592e3,encode:u.encode,decode:u.decode,...e.jwt},events:(0,s.eventsErrorHandler)(null!==(w=e.events)&&void 0!==w?w:{},o.default),adapter:(0,s.adapterErrorHandler)(e.adapter,o.default),callbacks:{...d.defaultCallbacks,...e.callbacks},logger:o.default,callbackUrl:b.origin},x=[],{csrfToken:O,cookie:T,csrfTokenVerified:P}=(0,h.createCSRFToken)({options:A,cookieValue:null==y?void 0:y[A.cookies.csrfToken.name],isPost:_,bodyValue:m});A.csrfToken=O,A.csrfTokenVerified=P,T&&x.push({name:A.cookies.csrfToken.name,value:T,options:A.cookies.csrfToken.options});let{callbackUrl:j,callbackUrlCookie:C}=await (0,p.createCallbackUrl)({options:A,cookieValue:null==y?void 0:y[A.cookies.callbackUrl.name],paramValue:g});return A.callbackUrl=j,C&&x.push({name:A.cookies.callbackUrl.name,value:C,options:A.cookies.callbackUrl.options}),{options:A,cookies:x}}},4538:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.assertConfig=function(e){var t,r,i,c,u,d,h,p;let f,y,g;let{options:m,req:_}=e,v=[];if(!a&&(_.origin||v.push("NEXTAUTH_URL"),m.secret,m.debug&&v.push("DEBUG_ENABLED")),!m.secret)return new n.MissingSecret("Please define a `secret` in production.");if(!(null!==(t=_.query)&&void 0!==t&&t.nextauth)&&!_.action)return new n.MissingAPIRoute("Cannot find [...nextauth].{js,ts} in `/pages/api/auth`. Make sure the filename is written correctly.");let w=null===(r=_.query)||void 0===r?void 0:r.callbackUrl,b=(0,o.default)(_.origin);if(w&&!l(w,b.base))return new n.InvalidCallbackUrl(`Invalid callback URL. Received: ${w}`);let{callbackUrl:S}=(0,s.defaultCookies)(null!==(i=m.useSecureCookies)&&void 0!==i?i:b.base.startsWith("https://")),k=null===(c=_.cookies)||void 0===c?void 0:c[null!==(u=null===(d=m.cookies)||void 0===d?void 0:null===(h=d.callbackUrl)||void 0===h?void 0:h.name)&&void 0!==u?u:S.name];if(k&&!l(k,b.base))return new n.InvalidCallbackUrl(`Invalid callback URL. Received: ${k}`);for(let e of m.providers)"credentials"===e.type?f=!0:"email"===e.type?y=!0:"twitter"===e.id&&"2.0"===e.version&&(g=!0);if(f){let e=(null===(p=m.session)||void 0===p?void 0:p.strategy)==="database",t=!m.providers.some(e=>"credentials"!==e.type);if(e&&t)return new n.UnsupportedStrategy("Signin in with credentials only supported if JWT strategy is enabled");if(m.providers.some(e=>"credentials"===e.type&&!e.authorize))return new n.MissingAuthorize("Must define an authorize() handler to use credentials authentication provider")}if(y){let{adapter:e}=m;if(!e)return new n.MissingAdapter("E-mail login requires an adapter.");let t=["createVerificationToken","useVerificationToken","getUserByEmail"].filter(t=>!e[t]);if(t.length)return new n.MissingAdapterMethods(`Required adapter methods were missing: ${t.join(", ")}`)}return a||(g&&v.push("TWITTER_OAUTH_2_BETA"),a=!0),v};var n=r(2394),o=i(r(550)),s=r(2486);let a=!1;function l(e,t){try{return/^https?:/.test(new URL(e,e.startsWith("/")?t:void 0).protocol)}catch(e){return!1}}},1553:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=r(2394),n=r(9001);async function o(e){var t,r,o,s,a,l;let{sessionToken:c,profile:u,account:d,options:h}=e;if(!(null!=d&&d.providerAccountId)||!d.type)throw Error("Missing or invalid provider account");if(!["email","oauth"].includes(d.type))throw Error("Provider not supported");let{adapter:p,jwt:f,events:y,session:{strategy:g,generateSessionToken:m}}=h;if(!p)return{user:u,account:d};let{createUser:_,updateUser:v,getUser:w,getUserByAccount:b,getUserByEmail:S,linkAccount:k,createSession:E,getSessionAndUser:A,deleteSession:x}=p,O=null,T=null,P=!1,j="jwt"===g;if(c){if(j)try{(O=await f.decode({...f,token:c}))&&"sub"in O&&O.sub&&(T=await w(O.sub))}catch(e){}else{let e=await A(c);e&&(O=e.session,T=e.user)}}if("email"===d.type){let e=await S(u.email);if(e)(null===(t=T)||void 0===t?void 0:t.id)!==e.id&&!j&&c&&await x(c),T=await v({id:e.id,emailVerified:new Date}),await (null===(r=y.updateUser)||void 0===r?void 0:r.call(y,{user:T}));else{let{id:e,...t}={...u,emailVerified:new Date};T=await _(t),await (null===(o=y.createUser)||void 0===o?void 0:o.call(y,{user:T})),P=!0}return{session:O=j?{}:await E({sessionToken:await m(),userId:T.id,expires:(0,n.fromDate)(h.session.maxAge)}),user:T,isNewUser:P}}if("oauth"===d.type){let e=await b({providerAccountId:d.providerAccountId,provider:d.provider});if(e){if(T){if(e.id===T.id)return{session:O,user:T,isNewUser:P};throw new i.AccountNotLinkedError("The account is already associated with another user")}return{session:O=j?{}:await E({sessionToken:await m(),userId:e.id,expires:(0,n.fromDate)(h.session.maxAge)}),user:e,isNewUser:P}}{if(T)return await k({...d,userId:T.id}),await (null===(l=y.linkAccount)||void 0===l?void 0:l.call(y,{user:T,account:d,profile:u})),{session:O,user:T,isNewUser:P};let e=u.email?await S(u.email):null;if(e){let t=h.provider;if(null!=t&&t.allowDangerousEmailAccountLinking)T=e;else throw new i.AccountNotLinkedError("Another account already exists with the same e-mail address")}else{let{id:e,...t}={...u,emailVerified:null};T=await _(t)}return await (null===(s=y.createUser)||void 0===s?void 0:s.call(y,{user:T})),await k({...d,userId:T.id}),await (null===(a=y.linkAccount)||void 0===a?void 0:a.call(y,{user:T,account:d,profile:u})),{session:O=j?{}:await E({sessionToken:await m(),userId:T.id,expires:(0,n.fromDate)(h.session.maxAge)}),user:T,isNewUser:!0}}}throw Error("Unsupported account type")}},3266:(e,t)=>{"use strict";async function r({options:e,paramValue:t,cookieValue:r}){let{url:i,callbacks:n}=e,o=i.origin;return t?o=await n.redirect({url:t,baseUrl:i.origin}):r&&(o=await n.redirect({url:r,baseUrl:i.origin})),{callbackUrl:o,callbackUrlCookie:o!==r?o:void 0}}Object.defineProperty(t,"__esModule",{value:!0}),t.createCallbackUrl=r},2486:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStore=void 0,t.defaultCookies=function(e){let t=e?"__Secure-":"";return{sessionToken:{name:`${t}next-auth.session-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},callbackUrl:{name:`${t}next-auth.callback-url`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},csrfToken:{name:`${e?"__Host-":""}next-auth.csrf-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},pkceCodeVerifier:{name:`${t}next-auth.pkce.code_verifier`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},state:{name:`${t}next-auth.state`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},nonce:{name:`${t}next-auth.nonce`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}}}};var n=i(r(7972)),o=i(r(3203));function s(e,t){l(e,t),t.add(e)}function a(e,t,r){l(e,t),t.set(e,r)}function l(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function c(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}var u=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakSet,f=new WeakSet;class y{constructor(e,t,r){s(this,f),s(this,p),a(this,u,{writable:!0,value:{}}),a(this,d,{writable:!0,value:void 0}),a(this,h,{writable:!0,value:void 0}),(0,o.default)(this,h,r),(0,o.default)(this,d,e);let{cookies:i}=t,{name:l}=e;if("function"==typeof(null==i?void 0:i.getAll))for(let{name:e,value:t}of i.getAll())e.startsWith(l)&&((0,n.default)(this,u)[e]=t);else if(i instanceof Map)for(let e of i.keys())e.startsWith(l)&&((0,n.default)(this,u)[e]=i.get(e));else for(let e in i)e.startsWith(l)&&((0,n.default)(this,u)[e]=i[e])}get value(){return Object.keys((0,n.default)(this,u)).sort((e,t)=>{var r,i;return parseInt(null!==(r=e.split(".").pop())&&void 0!==r?r:"0")-parseInt(null!==(i=t.split(".").pop())&&void 0!==i?i:"0")}).map(e=>(0,n.default)(this,u)[e]).join("")}chunk(e,t){let r=c(this,f,m).call(this);for(let i of c(this,p,g).call(this,{name:(0,n.default)(this,d).name,value:e,options:{...(0,n.default)(this,d).options,...t}}))r[i.name]=i;return Object.values(r)}clean(){return Object.values(c(this,f,m).call(this))}}function g(e){let t=Math.ceil(e.value.length/3933);if(1===t)return(0,n.default)(this,u)[e.name]=e.value,[e];let r=[];for(let i=0;ie.value.length+163)}),r}function m(){let e={};for(let r in(0,n.default)(this,u)){var t;null===(t=(0,n.default)(this,u))||void 0===t||delete t[r],e[r]={name:r,value:"",options:{...(0,n.default)(this,d).options,maxAge:0}}}return e}t.SessionStore=y},3378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCSRFToken=function({options:e,cookieValue:t,isPost:r,bodyValue:n}){if(t){let[o,s]=t.split("|");if(s===(0,i.createHash)("sha256").update(`${o}${e.secret}`).digest("hex"))return{csrfTokenVerified:r&&o===n,csrfToken:o}}let o=(0,i.randomBytes)(32).toString("hex"),s=(0,i.createHash)("sha256").update(`${o}${e.secret}`).digest("hex");return{cookie:`${o}|${s}`,csrfToken:o}};var i=r(6113)},6599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCallbacks=void 0,t.defaultCallbacks={signIn:()=>!0,redirect:({url:e,baseUrl:t})=>e.startsWith("/")?`${t}${e}`:new URL(e).origin===t?e:t,session:({session:e})=>e,jwt:({token:e})=>e}},8832:(e,t)=>{"use strict";async function r({email:e,adapter:t}){let{getUserByEmail:r}=t;return(e?await r(e):null)||{id:e,email:e,emailVerified:null}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},9278:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=r(6113),n=r(9001);async function o(e,t){var r,o,s,a;let{url:l,adapter:c,provider:u,callbackUrl:d,theme:h}=t,p=null!==(r=await (null===(o=u.generateVerificationToken)||void 0===o?void 0:o.call(u)))&&void 0!==r?r:(0,i.randomBytes)(32).toString("hex"),f=new Date(Date.now()+(null!==(s=u.maxAge)&&void 0!==s?s:86400)*1e3),y=new URLSearchParams({callbackUrl:d,token:p,email:e}),g=`${l}/callback/${u.id}?${y}`;return await Promise.all([u.sendVerificationRequest({identifier:e,token:p,expires:f,url:g,provider:u,theme:h}),null===(a=c.createVerificationToken)||void 0===a?void 0:a.call(c,{identifier:e,token:(0,n.hashToken)(p,t),expires:f})]),`${l}/verify-request?${new URLSearchParams({provider:u.id,type:u.type})}`}},9581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var i=r(1934),n=r(7801),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(i,o,a):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}(r(7681));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}async function a({options:e,query:t}){var r,s,a;let{logger:l,provider:c}=e,u={};if("string"==typeof c.authorization){let e=Object.fromEntries(new URL(c.authorization).searchParams);u={...u,...e}}else u={...u,...null===(s=c.authorization)||void 0===s?void 0:s.params};if(u={...u,...t},null!==(r=c.version)&&void 0!==r&&r.startsWith("1.")){let t=(0,n.oAuth1Client)(e),r=await t.getOAuthRequestToken(u),i=`${null===(a=c.authorization)||void 0===a?void 0:a.url}?${new URLSearchParams({oauth_token:r.oauth_token,oauth_token_secret:r.oauth_token_secret,...r.params})}`;return n.oAuth1TokenStore.set(r.oauth_token,r.oauth_token_secret),l.debug("GET_AUTHORIZATION_URL",{url:i,provider:c}),{redirect:i}}let d=await (0,i.openidClient)(e),h=u,p=[];await o.state.create(e,p,h),await o.pkce.create(e,p,h),await o.nonce.create(e,p,h);let f=d.authorizationUrl(h);return l.debug("GET_AUTHORIZATION_URL",{url:f,cookies:p,provider:c}),{redirect:f,cookies:p}}},9656:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var i=r(5684),n=r(1934),o=r(7801),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=n?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}(r(7681)),a=r(2394);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}async function c(e){var t,r,l,c,d,h;let{options:p,query:f,body:y,method:g,cookies:m}=e,{logger:_,provider:v}=p,w=null!==(t=null==y?void 0:y.error)&&void 0!==t?t:null==f?void 0:f.error;if(w){let e=Error(w);throw _.error("OAUTH_CALLBACK_HANDLER_ERROR",{error:e,error_description:null==f?void 0:f.error_description,providerId:v.id}),_.debug("OAUTH_CALLBACK_HANDLER_ERROR",{body:y}),e}if(null!==(r=v.version)&&void 0!==r&&r.startsWith("1."))try{let e=await (0,o.oAuth1Client)(p),{oauth_token:t,oauth_verifier:r}=null!=f?f:{},i=await e.getOAuthAccessToken(t,o.oAuth1TokenStore.get(t),r),n=await e.get(v.profileUrl,i.oauth_token,i.oauth_token_secret);return"string"==typeof n&&(n=JSON.parse(n)),{...await u({profile:n,tokens:i,provider:v,logger:_}),cookies:[]}}catch(e){throw _.error("OAUTH_V1_GET_ACCESS_TOKEN_ERROR",e),e}null!=f&&f.oauth_token&&o.oAuth1TokenStore.delete(f.oauth_token);try{let e,t;let r=await (0,n.openidClient)(p),o={},a=[];await s.state.use(m,a,p,o),await s.pkce.use(m,a,p,o),await s.nonce.use(m,a,p,o);let w={...r.callbackParams({url:`http://n?${new URLSearchParams(f)}`,body:y,method:g}),...null===(l=v.token)||void 0===l?void 0:l.params};if(null!==(c=v.token)&&void 0!==c&&c.request){let t=await v.token.request({provider:v,params:w,checks:o,client:r});e=new i.TokenSet(t.tokens)}else e=v.idToken?await r.callback(v.callbackUrl,w,o):await r.oauthCallback(v.callbackUrl,w,o);return Array.isArray(e.scope)&&(e.scope=e.scope.join(" ")),t=null!==(d=v.userinfo)&&void 0!==d&&d.request?await v.userinfo.request({provider:v,tokens:e,client:r}):v.idToken?e.claims():await r.userinfo(e,{params:null===(h=v.userinfo)||void 0===h?void 0:h.params}),{...await u({profile:t,provider:v,tokens:e,logger:_}),cookies:a}}catch(e){throw new a.OAuthCallbackError(e)}}async function u({profile:e,tokens:t,provider:r,logger:i}){try{var n;i.debug("PROFILE_DATA",{OAuthProfile:e});let o=await r.profile(e,t);if(o.email=null===(n=o.email)||void 0===n?void 0:n.toLowerCase(),!o.id)throw TypeError(`Profile id is missing in ${r.name} OAuth profile response`);return{profile:o,account:{provider:r.id,type:r.type,providerAccountId:o.id.toString(),...t},OAuthProfile:e}}catch(t){i.error("OAUTH_PARSE_PROFILE_ERROR",{error:t,OAuthProfile:e})}}},7681:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkce=t.nonce=t.PKCE_CODE_CHALLENGE_METHOD=void 0,t.signCookie=s,t.state=void 0;var i=r(5684),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=n?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=e[s]}return i.default=e,r&&r.set(e,i),i}(r(1609));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}async function s(e,t,r,i){let{cookies:o,logger:s}=i;s.debug(`CREATE_${e.toUpperCase()}`,{value:t,maxAge:r});let{name:a}=o[e],l=new Date;return l.setTime(l.getTime()+1e3*r),{name:a,value:await n.encode({...i.jwt,maxAge:r,token:{value:t},salt:a}),options:{...o[e].options,expires:l}}}let a="S256";t.PKCE_CODE_CHALLENGE_METHOD=a,t.pkce={async create(e,t,r){var n,o,l;if(!(null!==(n=e.provider)&&void 0!==n&&null!==(o=n.checks)&&void 0!==o&&o.includes("pkce")))return;let c=i.generators.codeVerifier(),u=i.generators.codeChallenge(c);r.code_challenge=u,r.code_challenge_method=a;let d=null!==(l=e.cookies.pkceCodeVerifier.options.maxAge)&&void 0!==l?l:900;t.push(await s("pkceCodeVerifier",c,d,e))},async use(e,t,r,i){var o,s;if(!(null!==(o=r.provider)&&void 0!==o&&null!==(s=o.checks)&&void 0!==s&&s.includes("pkce")))return;let a=null==e?void 0:e[r.cookies.pkceCodeVerifier.name];if(!a)throw TypeError("PKCE code_verifier cookie was missing.");let{name:l}=r.cookies.pkceCodeVerifier,c=await n.decode({...r.jwt,token:a,salt:l});if(!(null!=c&&c.value))throw TypeError("PKCE code_verifier value could not be parsed.");t.push({name:l,value:"",options:{...r.cookies.pkceCodeVerifier.options,maxAge:0}}),i.code_verifier=c.value}},t.state={async create(e,t,r){var n,o;if(!(null!==(n=e.provider.checks)&&void 0!==n&&n.includes("state")))return;let a=i.generators.state();r.state=a;let l=null!==(o=e.cookies.state.options.maxAge)&&void 0!==o?o:900;t.push(await s("state",a,l,e))},async use(e,t,r,i){var o;if(!(null!==(o=r.provider.checks)&&void 0!==o&&o.includes("state")))return;let s=null==e?void 0:e[r.cookies.state.name];if(!s)throw TypeError("State cookie was missing.");let{name:a}=r.cookies.state,l=await n.decode({...r.jwt,token:s,salt:a});if(!(null!=l&&l.value))throw TypeError("State value could not be parsed.");t.push({name:a,value:"",options:{...r.cookies.state.options,maxAge:0}}),i.state=l.value}},t.nonce={async create(e,t,r){var n,o;if(!(null!==(n=e.provider.checks)&&void 0!==n&&n.includes("nonce")))return;let a=i.generators.nonce();r.nonce=a;let l=null!==(o=e.cookies.nonce.options.maxAge)&&void 0!==o?o:900;t.push(await s("nonce",a,l,e))},async use(e,t,r,i){var o,s;if(!(null!==(o=r.provider)&&void 0!==o&&null!==(s=o.checks)&&void 0!==s&&s.includes("nonce")))return;let a=null==e?void 0:e[r.cookies.nonce.name];if(!a)throw TypeError("Nonce cookie was missing.");let{name:l}=r.cookies.nonce,c=await n.decode({...r.jwt,token:a,salt:l});if(!(null!=c&&c.value))throw TypeError("Nonce value could not be parsed.");t.push({name:l,value:"",options:{...r.cookies.nonce.options,maxAge:0}}),i.nonce=c.value}}},7801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oAuth1Client=function(e){var t,r;let n=e.provider,o=new i.OAuth(n.requestTokenUrl,n.accessTokenUrl,n.clientId,n.clientSecret,null!==(t=n.version)&&void 0!==t?t:"1.0",n.callbackUrl,null!==(r=n.encoding)&&void 0!==r?r:"HMAC-SHA1"),s=o.get.bind(o);o.get=async(...e)=>await new Promise((t,r)=>{s(...e,(e,i)=>{if(e)return r(e);t(i)})});let a=o.getOAuthAccessToken.bind(o);o.getOAuthAccessToken=async(...e)=>await new Promise((t,r)=>{a(...e,(e,i,n)=>{if(e)return r(e);t({oauth_token:i,oauth_token_secret:n})})});let l=o.getOAuthRequestToken.bind(o);return o.getOAuthRequestToken=async(e={})=>await new Promise((t,r)=>{l(e,(e,i,n,o)=>{if(e)return r(e);t({oauth_token:i,oauth_token_secret:n,params:o})})}),o},t.oAuth1TokenStore=void 0;var i=r(3990);let n=new Map;t.oAuth1TokenStore=n},1934:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openidClient=n;var i=r(5684);async function n(e){let t;let r=e.provider;if(r.httpOptions&&i.custom.setHttpOptionsDefaults(r.httpOptions),r.wellKnown)t=await i.Issuer.discover(r.wellKnown);else{var n,o,s;t=new i.Issuer({issuer:r.issuer,authorization_endpoint:null===(n=r.authorization)||void 0===n?void 0:n.url,token_endpoint:null===(o=r.token)||void 0===o?void 0:o.url,userinfo_endpoint:null===(s=r.userinfo)||void 0===s?void 0:s.url,jwks_uri:r.jwks_endpoint})}let a=new t.Client({client_id:r.clientId,client_secret:r.clientSecret,redirect_uris:[r.callbackUrl],...r.client},r.jwks);return a[i.custom.clock_tolerance]=10,a}},412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{url:t,providerId:r}=e,o=e.providers.map(({options:e,...r})=>{var o,s;if("oauth"===r.type){let o=n(r),a=n(e,!0),l=null!==(s=null==a?void 0:a.id)&&void 0!==s?s:r.id;return(0,i.merge)(o,{...a,signinUrl:`${t}/signin/${l}`,callbackUrl:`${t}/callback/${l}`})}let a=null!==(o=null==e?void 0:e.id)&&void 0!==o?o:r.id;return(0,i.merge)(r,{...e,signinUrl:`${t}/signin/${a}`,callbackUrl:`${t}/callback/${a}`})});return{providers:o,provider:o.find(({id:e})=>e===r)}};var i=r(7838);function n(e,t=!1){var r,i,n,o,s,a,l;if(!e)return;let c=Object.entries(e).reduce((e,[t,r])=>{if(["authorization","token","userinfo"].includes(t)&&"string"==typeof r){var i;let n=new URL(r);e[t]={url:`${n.origin}${n.pathname}`,params:Object.fromEntries(null!==(i=n.searchParams)&&void 0!==i?i:[])}}else e[t]=r;return e},{});return t||null!==(r=c.version)&&void 0!==r&&r.startsWith("1.")||(c.idToken=!!(null!==(i=null!==(n=c.idToken)&&void 0!==n?n:null===(o=c.wellKnown)||void 0===o?void 0:o.includes("openid-configuration"))&&void 0!==i?i:null===(s=c.authorization)||void 0===s?void 0:null===(a=s.params)||void 0===a?void 0:null===(l=a.scope)||void 0===l?void 0:l.includes("openid")),c.checks||(c.checks=["state"])),c}},9001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSecret=function(e){var t;let{authOptions:r,url:n}=e;return null!==(t=r.secret)&&void 0!==t?t:(0,i.createHash)("sha256").update(JSON.stringify({...n,...r})).digest("hex")},t.fromDate=function(e,t=Date.now()){return new Date(t+1e3*e)},t.hashToken=function(e,t){var r;let{provider:n,secret:o}=t;return(0,i.createHash)("sha256").update(`${e}${null!==(r=n.secret)&&void 0!==r?r:o}`).digest("hex")};var i=r(6113)},1329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let{url:r,error:n="default",theme:o}=e,s=`${r}/signin`,a={default:{status:200,heading:"Error",message:(0,i.h)("p",null,(0,i.h)("a",{className:"site",href:null==r?void 0:r.origin},null==r?void 0:r.host))},configuration:{status:500,heading:"Server error",message:(0,i.h)("div",null,(0,i.h)("p",null,"There is a problem with the server configuration."),(0,i.h)("p",null,"Check the server logs for more information."))},accessdenied:{status:403,heading:"Access Denied",message:(0,i.h)("div",null,(0,i.h)("p",null,"You do not have permission to sign in."),(0,i.h)("p",null,(0,i.h)("a",{className:"button",href:s},"Sign in")))},verification:{status:403,heading:"Unable to sign in",message:(0,i.h)("div",null,(0,i.h)("p",null,"The sign in link is no longer valid."),(0,i.h)("p",null,"It may have been used already or it may have expired.")),signin:(0,i.h)("a",{className:"button",href:s},"Sign in")}},{status:l,heading:c,message:u,signin:d}=null!==(t=a[n.toLowerCase()])&&void 0!==t?t:a.default;return{status:l,html:(0,i.h)("div",{className:"error"},(null==o?void 0:o.brandColor)&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --brand-color: ${null==o?void 0:o.brandColor} + } + `}}),(0,i.h)("div",{className:"card"},(null==o?void 0:o.logo)&&(0,i.h)("img",{src:o.logo,alt:"Logo",className:"logo"}),(0,i.h)("h1",null,c),(0,i.h)("div",{className:"message"},u),d))}};var i=r(2806)},5858:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{url:t,theme:r,query:i,cookies:u}=e;function d({html:e,title:t,status:i}){var o;return{cookies:u,status:i,headers:[{key:"Content-Type",value:"text/html"}],body:`${t}
${(0,n.default)(e)}
`}}return{signin:t=>d({html:(0,o.default)({csrfToken:e.csrfToken,providers:e.providers,callbackUrl:e.callbackUrl,theme:r,...i,...t}),title:"Sign In"}),signout:i=>d({html:(0,s.default)({csrfToken:e.csrfToken,url:t,theme:r,...i}),title:"Sign Out"}),verifyRequest:e=>d({html:(0,a.default)({url:t,theme:r,...e}),title:"Verify Request"}),error:e=>d({...(0,l.default)({url:t,theme:r,...e}),title:"Error"})}};var n=i(r(2824)),o=i(r(337)),s=i(r(9241)),a=i(r(9776)),l=i(r(1329)),c=i(r(8053))},337:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let{csrfToken:r,providers:i,callbackUrl:a,theme:l,email:c,error:u}=e,d=i.filter(e=>"oauth"===e.type||"email"===e.type||"credentials"===e.type&&!!e.credentials);"undefined"!=typeof document&&l.buttonText&&document.documentElement.style.setProperty("--button-text-color",l.buttonText),"undefined"!=typeof document&&l.brandColor&&document.documentElement.style.setProperty("--brand-color",l.brandColor);let h={Signin:"Try signing in with a different account.",OAuthSignin:"Try signing in with a different account.",OAuthCallback:"Try signing in with a different account.",OAuthCreateAccount:"Try signing in with a different account.",EmailCreateAccount:"Try signing in with a different account.",Callback:"Try signing in with a different account.",OAuthAccountNotLinked:"To confirm your identity, sign in with the same account you used originally.",EmailSignin:"The e-mail could not be sent.",CredentialsSignin:"Sign in failed. Check the details you provided are correct.",SessionRequired:"Please sign in to access this page.",default:"Unable to sign in."},p=u&&(null!==(t=h[u])&&void 0!==t?t:h.default),f="https://authjs.dev/img/providers";return(0,n.h)("div",{className:"signin"},l.brandColor&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --brand-color: ${l.brandColor} + } + `}}),l.buttonText&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --button-text-color: ${l.buttonText} + } + `}}),(0,n.h)("div",{className:"card"},l.logo&&(0,n.h)("img",{src:l.logo,alt:"Logo",className:"logo"}),p&&(0,n.h)("div",{className:"error"},(0,n.h)("p",null,p)),d.map((e,t)=>{let i,l,u,h,p,y;if("oauth"===e.type){var g;({bg:i="",text:l="",logo:u="",bgDark:p=i,textDark:y=l,logoDark:h=""}=null!==(g=e.style)&&void 0!==g?g:{}),u=u.startsWith("/")?`${f}${u}`:u,(h=h.startsWith("/")?`${f}${h}`:h||u)||(h=u)}return(0,n.h)("div",{key:e.id,className:"provider"},"oauth"===e.type&&(0,n.h)("form",{action:e.signinUrl,method:"POST"},(0,n.h)("input",{type:"hidden",name:"csrfToken",value:r}),a&&(0,n.h)("input",{type:"hidden",name:"callbackUrl",value:a}),(0,n.h)("button",{type:"submit",className:"button",style:{"--provider-bg":i,"--provider-dark-bg":p,"--provider-color":l,"--provider-dark-color":y,"--provider-bg-hover":s(i,.8),"--provider-dark-bg-hover":s(p,.8)}},u&&(0,n.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo",src:`${u.startsWith("/")?f:""}${u}`}),h&&(0,n.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo-dark",src:`${u.startsWith("/")?f:""}${h}`}),(0,n.h)("span",null,"Sign in with ",e.name))),("email"===e.type||"credentials"===e.type)&&t>0&&"email"!==d[t-1].type&&"credentials"!==d[t-1].type&&(0,n.h)("hr",null),"email"===e.type&&(0,n.h)("form",{action:e.signinUrl,method:"POST"},(0,n.h)("input",{type:"hidden",name:"csrfToken",value:r}),(0,n.h)("label",{className:"section-header",htmlFor:`input-email-for-${e.id}-provider`},"Email"),(0,n.h)("input",{id:`input-email-for-${e.id}-provider`,autoFocus:!0,type:"email",name:"email",value:c,placeholder:"email@example.com",required:!0}),(0,n.h)("button",{id:"submitButton",type:"submit"},"Sign in with ",e.name)),"credentials"===e.type&&(0,n.h)("form",{action:e.callbackUrl,method:"POST"},(0,n.h)("input",{type:"hidden",name:"csrfToken",value:r}),Object.keys(e.credentials).map(t=>{var r,i,s;return(0,n.h)("div",{key:`input-group-${e.id}`},(0,n.h)("label",{className:"section-header",htmlFor:`input-${t}-for-${e.id}-provider`},null!==(r=e.credentials[t].label)&&void 0!==r?r:t),(0,n.h)("input",(0,o.default)({name:t,id:`input-${t}-for-${e.id}-provider`,type:null!==(i=e.credentials[t].type)&&void 0!==i?i:"text",placeholder:null!==(s=e.credentials[t].placeholder)&&void 0!==s?s:""},e.credentials[t])))}),(0,n.h)("button",{type:"submit"},"Sign in with ",e.name)),("email"===e.type||"credentials"===e.type)&&t+1>16&255}, ${r>>8&255}, ${255&r}, ${t})`}},9241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{url:t,csrfToken:r,theme:n}=e;return(0,i.h)("div",{className:"signout"},n.brandColor&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --brand-color: ${n.brandColor} + } + `}}),n.buttonText&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --button-text-color: ${n.buttonText} + } + `}}),(0,i.h)("div",{className:"card"},n.logo&&(0,i.h)("img",{src:n.logo,alt:"Logo",className:"logo"}),(0,i.h)("h1",null,"Signout"),(0,i.h)("p",null,"Are you sure you want to sign out?"),(0,i.h)("form",{action:`${t}/signout`,method:"POST"},(0,i.h)("input",{type:"hidden",name:"csrfToken",value:r}),(0,i.h)("button",{id:"submitButton",type:"submit"},"Sign out"))))};var i=r(2806)},9776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{url:t,theme:r}=e;return(0,i.h)("div",{className:"verify-request"},r.brandColor&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:` + :root { + --brand-color: ${r.brandColor} + } + `}}),(0,i.h)("div",{className:"card"},r.logo&&(0,i.h)("img",{src:r.logo,alt:"Logo",className:"logo"}),(0,i.h)("h1",null,"Check your email"),(0,i.h)("p",null,"A sign in link has been sent to your email address."),(0,i.h)("p",null,(0,i.h)("a",{className:"site",href:t.origin},t.host))))};var i=r(2806)},8538:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=i(r(9656)),o=i(r(1553)),s=r(9001),a=i(r(8832));async function l(e){var t,r,i,l,c,u;let{options:d,query:h,body:p,method:f,headers:y,sessionStore:g}=e,{provider:m,adapter:_,url:v,callbackUrl:w,pages:b,jwt:S,events:k,callbacks:E,session:{strategy:A,maxAge:x},logger:O}=d,T=[],P="jwt"===A;if("oauth"===m.type)try{let{profile:i,account:s,OAuthProfile:a,cookies:l}=await (0,n.default)({query:h,body:p,method:f,options:d,cookies:e.cookies});l.length&&T.push(...l);try{if(O.debug("OAUTH_CALLBACK_RESPONSE",{profile:i,account:s,OAuthProfile:a}),!i||!s||!a)return{redirect:`${v}/signin`,cookies:T};let e=i;if(_){let{getUserByAccount:t}=_,r=await t({providerAccountId:s.providerAccountId,provider:m.id});r&&(e=r)}try{let t=await E.signIn({user:e,account:s,profile:a});if(!t)return{redirect:`${v}/error?error=AccessDenied`,cookies:T};if("string"==typeof t)return{redirect:t,cookies:T}}catch(e){return{redirect:`${v}/error?error=${encodeURIComponent(e.message)}`,cookies:T}}let{user:n,session:l,isNewUser:c}=await (0,o.default)({sessionToken:g.value,profile:i,account:s,options:d});if(P){let e={name:n.name,email:n.email,picture:n.image,sub:null===(r=n.id)||void 0===r?void 0:r.toString()},t=await E.jwt({token:e,user:n,account:s,profile:a,isNewUser:c,trigger:c?"signUp":"signIn"}),i=await S.encode({...S,token:t}),o=new Date;o.setTime(o.getTime()+1e3*x);let l=g.chunk(i,{expires:o});T.push(...l)}else T.push({name:d.cookies.sessionToken.name,value:l.sessionToken,options:{...d.cookies.sessionToken.options,expires:l.expires}});if(await (null===(t=k.signIn)||void 0===t?void 0:t.call(k,{user:n,account:s,profile:i,isNewUser:c})),c&&b.newUser)return{redirect:`${b.newUser}${b.newUser.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(w)}`,cookies:T};return{redirect:w,cookies:T}}catch(e){if("AccountNotLinkedError"===e.name)return{redirect:`${v}/error?error=OAuthAccountNotLinked`,cookies:T};if("CreateUserError"===e.name)return{redirect:`${v}/error?error=OAuthCreateAccount`,cookies:T};return O.error("OAUTH_CALLBACK_HANDLER_ERROR",e),{redirect:`${v}/error?error=Callback`,cookies:T}}}catch(e){if("OAuthCallbackError"===e.name)return O.error("OAUTH_CALLBACK_ERROR",{error:e,providerId:m.id}),{redirect:`${v}/error?error=OAuthCallback`,cookies:T};return O.error("OAUTH_CALLBACK_ERROR",e),{redirect:`${v}/error?error=Callback`,cookies:T}}else if("email"===m.type)try{let e=null==h?void 0:h.token,t=null==h?void 0:h.email;if(!e||!t)return{redirect:`${v}/error?error=configuration`,cookies:T};let r=await _.useVerificationToken({identifier:t,token:(0,s.hashToken)(e,d)});if(!r||r.expires.valueOf(){"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callback",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"providers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"session",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"signin",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"signout",{enumerable:!0,get:function(){return s.default}});var n=i(r(8538)),o=i(r(4125)),s=i(r(4611)),a=i(r(7181)),l=i(r(9344))},9344:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{headers:[{key:"Content-Type",value:"application/json"}],body:e.reduce((e,{id:t,name:r,type:i,signinUrl:n,callbackUrl:o})=>(e[t]={id:t,name:r,type:i,signinUrl:n,callbackUrl:o},e),{})}}},7181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=r(9001);async function n(e){var t,r,n,o,s,a;let{options:l,sessionStore:c,newSession:u,isUpdate:d}=e,{adapter:h,jwt:p,events:f,callbacks:y,logger:g,session:{strategy:m,maxAge:_}}=l,v={body:{},headers:[{key:"Content-Type",value:"application/json"}],cookies:[]},w=c.value;if(!w)return v;if("jwt"===m)try{let e=await p.decode({...p,token:w});if(!e)throw Error("JWT invalid");let n=await y.jwt({token:e,...d&&{trigger:"update"},session:u}),o=(0,i.fromDate)(_),s=await y.session({session:{user:{name:null==e?void 0:e.name,email:null==e?void 0:e.email,image:null==e?void 0:e.picture},expires:o.toISOString()},token:n});v.body=s;let a=await p.encode({...p,token:n,maxAge:l.session.maxAge}),h=c.chunk(a,{expires:o});null===(t=v.cookies)||void 0===t||t.push(...h),await (null===(r=f.session)||void 0===r?void 0:r.call(f,{session:s,token:n}))}catch(e){g.error("JWT_SESSION_ERROR",e),null===(n=v.cookies)||void 0===n||n.push(...c.clean())}else try{let{getSessionAndUser:e,deleteSession:t,updateSession:r}=h,n=await e(w);if(n&&n.session.expires.valueOf(){"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(r(9581)),o=i(r(9278)),s=i(r(8832));async function a(e){let{options:t,query:r,body:i}=e,{url:a,callbacks:l,logger:c,provider:u}=t;if(!u.type)return{status:500,text:`Error: Type not specified for ${u.name}`};if("oauth"===u.type)try{return await (0,n.default)({options:t,query:r})}catch(e){return c.error("SIGNIN_OAUTH_ERROR",{error:e,providerId:u.id}),{redirect:`${a}/error?error=OAuthSignin`}}else if("email"===u.type){var d;let e=null==i?void 0:i.email;if(!e)return{redirect:`${a}/error?error=EmailSignin`};let r=null!==(d=u.normalizeIdentifier)&&void 0!==d?d:e=>{let[t,r]=e.toLowerCase().trim().split("@");return r=r.split(",")[0],`${t}@${r}`};try{e=r(null==i?void 0:i.email)}catch(e){return c.error("SIGNIN_EMAIL_ERROR",{error:e,providerId:u.id}),{redirect:`${a}/error?error=EmailSignin`}}let n=await (0,s.default)({email:e,adapter:t.adapter}),h={providerAccountId:e,userId:e,type:"email",provider:u.id};try{let e=await l.signIn({user:n,account:h,email:{verificationRequest:!0}});if(!e)return{redirect:`${a}/error?error=AccessDenied`};if("string"==typeof e)return{redirect:e}}catch(e){return{redirect:`${a}/error?${new URLSearchParams({error:e})}`}}try{return{redirect:await (0,o.default)(e,t)}}catch(e){return c.error("SIGNIN_EMAIL_ERROR",{error:e,providerId:u.id}),{redirect:`${a}/error?error=EmailSignin`}}}return{redirect:`${a}/signin`}}},4611:(e,t)=>{"use strict";async function r(e){var t,r;let{options:i,sessionStore:n}=e,{adapter:o,events:s,jwt:a,callbackUrl:l,logger:c,session:u}=i,d=null==n?void 0:n.value;if(!d)return{redirect:l};if("jwt"===u.strategy)try{let e=await a.decode({...a,token:d});await (null===(t=s.signOut)||void 0===t?void 0:t.call(s,{token:e}))}catch(e){c.error("SIGNOUT_ERROR",e)}else try{let e=await o.deleteSession(d);await (null===(r=s.signOut)||void 0===r?void 0:r.call(s,{session:e}))}catch(e){c.error("SIGNOUT_ERROR",e)}return{redirect:l,cookies:n.clean()}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},4395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8053:e=>{"use strict";e.exports=function(){return':root{--border-width:1px;--border-radius:0.5rem;--color-error:#c94b4b;--color-info:#157efb;--color-info-hover:#0f6ddb;--color-info-text:#fff}.__next-auth-theme-auto,.__next-auth-theme-light{--color-background:#ececec;--color-background-hover:hsla(0,0%,93%,.8);--color-background-card:#fff;--color-text:#000;--color-primary:#444;--color-control-border:#bbb;--color-button-active-background:#f9f9f9;--color-button-active-border:#aaa;--color-separator:#ccc}.__next-auth-theme-dark{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}@media (prefers-color-scheme:dark){.__next-auth-theme-auto{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}a.button,button{background-color:var(--provider-dark-bg,var(--color-background));color:var(--provider-dark-color,var(--color-primary))}a.button:hover,button:hover{background-color:var(--provider-dark-bg-hover,var(--color-background-hover))!important}#provider-logo{display:none!important}#provider-logo-dark{display:block!important;width:25px}}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit;margin:0;padding:0}body{background-color:var(--color-background);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;margin:0;padding:0}h1{font-weight:400}h1,p{color:var(--color-text);margin-bottom:1.5rem;padding:0 1rem}form{margin:0;padding:0}label{font-weight:500;margin-bottom:.25rem;text-align:left}input[type],label{color:var(--color-text);display:block}input[type]{background:var(--color-background-card);border:var(--border-width) solid var(--color-control-border);border-radius:var(--border-radius);box-sizing:border-box;font-size:1rem;padding:.5rem 1rem;width:100%}input[type]:focus{box-shadow:none}p{font-size:1.1rem;line-height:2rem}a.button{line-height:1rem;text-decoration:none}a.button:link,a.button:visited{background-color:var(--color-background);color:var(--color-primary)}button span{flex-grow:1}a.button,button{align-items:center;background-color:var(--provider-bg);border-color:rgba(0,0,0,.1);border-radius:var(--border-radius);color:var(--provider-color,var(--color-primary));display:flex;font-size:1.1rem;font-weight:500;justify-content:center;min-height:62px;padding:.75rem 1rem;position:relative;transition:all .1s ease-in-out}a.button:hover,button:hover{background-color:var(--provider-bg-hover,var(--color-background-hover));cursor:pointer}a.button:active,button:active{cursor:pointer}a.button #provider-logo,button #provider-logo{display:block;width:25px}a.button #provider-logo-dark,button #provider-logo-dark{display:none}#submitButton{background-color:var(--brand-color,var(--color-info));color:var(--button-text-color,var(--color-info-text));width:100%}#submitButton:hover{background-color:var(--button-hover-bg,var(--color-info-hover))!important}a.site{color:var(--color-primary);font-size:1rem;line-height:2rem;text-decoration:none}a.site:hover{text-decoration:underline}.page{box-sizing:border-box;display:grid;height:100%;margin:0;padding:0;place-items:center;position:absolute;width:100%}.page>div{text-align:center}.error a.button{margin-top:.5rem;padding-left:2rem;padding-right:2rem}.error .message{margin-bottom:1.5rem}.signin input[type=text]{display:block;margin-left:auto;margin-right:auto}.signin hr{border:0;border-top:1px solid var(--color-separator);display:block;margin:2rem auto 1rem;overflow:visible}.signin hr:before{background:var(--color-background-card);color:#888;content:"or";padding:0 .4rem;position:relative;top:-.7rem}.signin .error{background:#f5f5f5;background:var(--color-error);border-radius:.3rem;font-weight:500}.signin .error p{color:var(--color-info-text);font-size:.9rem;line-height:1.2rem;padding:.5rem 1rem;text-align:left}.signin form,.signin>div{display:block}.signin form input[type],.signin>div input[type]{margin-bottom:.5rem}.signin form button,.signin>div button{width:100%}.signin .provider+.provider{margin-top:1rem}.logo{display:inline-block;margin:1.25rem 0;max-height:70px;max-width:150px}.card{background-color:var(--color-background-card);border-radius:2rem;padding:1.25rem 2rem}.card .header{color:var(--color-primary)}.section-header{color:var(--color-text)}@media screen and (min-width:450px){.card{margin:2rem 0;width:368px}}@media screen and (max-width:450px){.card{margin:1rem 0;width:343px}}'}},7345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var n=r(4395);Object.keys(n).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(i,e))&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))});var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(i,o,a):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}(r(6590));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}Object.keys(o).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(i,e))&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))})},1609:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0});var n={encode:!0,decode:!0,getToken:!0};t.decode=h,t.encode=d,t.getToken=p;var o=r(5100),s=i(r(217)),a=r(2295),l=r(2486),c=r(266);Object.keys(c).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))});let u=()=>Date.now()/1e3|0;async function d(e){let{token:t={},secret:r,maxAge:i=2592e3,salt:n=""}=e,s=await f(r,n);return await new o.EncryptJWT(t).setProtectedHeader({alg:"dir",enc:"A256GCM"}).setIssuedAt().setExpirationTime(u()+i).setJti((0,a.v4)()).encrypt(s)}async function h(e){let{token:t,secret:r,salt:i=""}=e;if(!t)return null;let n=await f(r,i),{payload:s}=await (0,o.jwtDecrypt)(t,n,{clockTolerance:15});return s}async function p(e){var t,r,i;let{req:n,secureCookie:o=null!==(t=null===(r=process.env.NEXTAUTH_URL)||void 0===r?void 0:r.startsWith("https://"))&&void 0!==t?t:!!process.env.VERCEL,cookieName:s=o?"__Secure-next-auth.session-token":"next-auth.session-token",raw:a,decode:c=h,logger:u=console,secret:d=process.env.NEXTAUTH_SECRET}=e;if(!n)throw Error("Must pass `req` to JWT getToken()");let p=new l.SessionStore({name:s,options:{secure:o}},{cookies:n.cookies,headers:n.headers},u).value,f=n.headers instanceof Headers?n.headers.get("authorization"):null===(i=n.headers)||void 0===i?void 0:i.authorization;if(p||(null==f?void 0:f.split(" ")[0])!=="Bearer"||(p=decodeURIComponent(f.split(" ")[1])),!p)return null;if(a)return p;try{return await c({token:p,secret:d})}catch(e){return null}}async function f(e,t){return await (0,s.default)("sha256",e,t,`NextAuth.js Generated Encryption Key${t?` (${t})`:""}`,32)}},266:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getServerSession=a,t.unstable_getServerSession=l;var i=r(7919),n=r(8017);async function o(e,t,r){var o,s,a,l,c,u,d,h;let{nextauth:p,...f}=e.query;null!==(o=r.secret)&&void 0!==o||(r.secret=null!==(s=null===(a=r.jwt)||void 0===a?void 0:a.secret)&&void 0!==s?s:process.env.NEXTAUTH_SECRET);let y=await (0,i.AuthHandler)({req:{body:e.body,query:f,cookies:e.cookies,headers:e.headers,method:e.method,action:null==p?void 0:p[0],providerId:null==p?void 0:p[1],error:null!==(l=e.query.error)&&void 0!==l?l:null==p?void 0:p[1]},options:r});if(t.status(null!==(c=y.status)&&void 0!==c?c:200),null===(u=y.cookies)||void 0===u||u.forEach(e=>(0,n.setCookie)(t,e)),null===(d=y.headers)||void 0===d||d.forEach(e=>t.setHeader(e.key,e.value)),y.redirect){if((null===(h=e.body)||void 0===h?void 0:h.json)!=="true"){t.status(302).setHeader("Location",y.redirect),t.end();return}return t.json({url:y.redirect})}return t.send(y.body)}async function s(e,t,o){var s,a,l;null!==(s=o.secret)&&void 0!==s||(o.secret=process.env.NEXTAUTH_SECRET);let{headers:c,cookies:u}=r(7167),d=null===(a=t.params)||void 0===a?void 0:a.nextauth,h=Object.fromEntries(e.nextUrl.searchParams),p=await (0,n.getBody)(e),f=await (0,i.AuthHandler)({req:{body:p,query:h,cookies:Object.fromEntries(u().getAll().map(e=>[e.name,e.value])),headers:Object.fromEntries(c()),method:e.method,action:null==d?void 0:d[0],providerId:null==d?void 0:d[1],error:null!==(l=h.error)&&void 0!==l?l:null==d?void 0:d[1]},options:o}),y=(0,n.toResponse)(f),g=y.headers.get("Location");return(null==p?void 0:p.json)==="true"&&g?(y.headers.delete("Location"),y.headers.set("Content-Type","application/json"),new Response(JSON.stringify({url:g}),{status:f.status,headers:y.headers})):y}async function a(...e){var t,o;let s,l,c;let u=0===e.length||1===e.length;if(u){c=Object.assign({},e[0],{providers:[]});let{headers:t,cookies:i}=r(7167);s={headers:Object.fromEntries(t()),cookies:Object.fromEntries(i().getAll().map(e=>[e.name,e.value]))},l={getHeader(){},setCookie(){},setHeader(){}}}else s=e[0],l=e[1],c=Object.assign({},e[2],{providers:[]});null!==(o=(t=c).secret)&&void 0!==o||(t.secret=process.env.NEXTAUTH_SECRET);let{body:d,cookies:h,status:p=200}=await (0,i.AuthHandler)({options:c,req:{action:"session",method:"GET",cookies:s.cookies,headers:s.headers}});if(null==h||h.forEach(e=>(0,n.setCookie)(l,e)),d&&"string"!=typeof d&&Object.keys(d).length){if(200===p)return u&&delete d.expires,d;throw Error(d.message)}return null}async function l(...e){return await a(...e)}t.default=function(...e){var t;return 1===e.length?async(t,r)=>null!=r&&r.params?await s(t,r,e[0]):await o(t,r,e[0]):null!==(t=e[1])&&void 0!==t&&t.params?s(...e):o(...e)}},8017:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBody=n,t.setCookie=function(e,t){var r;let n=null!==(r=e.getHeader("Set-Cookie"))&&void 0!==r?r:[];Array.isArray(n)||(n=[n]);let{name:o,value:s,options:a}=t,l=(0,i.serialize)(o,s,a);n.push(l),e.setHeader("Set-Cookie",n)},t.toResponse=function(e){var t,r,n;let o=new Headers(null===(t=e.headers)||void 0===t?void 0:t.reduce((e,{key:t,value:r})=>(e[t]=r,e),{}));null===(r=e.cookies)||void 0===r||r.forEach(e=>{let{name:t,value:r,options:n}=e,s=(0,i.serialize)(t,r,n);o.has("Set-Cookie")?o.append("Set-Cookie",s):o.set("Set-Cookie",s)});let s=e.body;"application/json"===o.get("content-type")?s=JSON.stringify(e.body):"application/x-www-form-urlencoded"===o.get("content-type")&&(s=new URLSearchParams(e.body).toString());let a=e.redirect?302:null!==(n=e.status)&&void 0!==n?n:200,l=new Response(s,{headers:o,status:a});return e.redirect&&l.headers.set("Location",e.redirect),l};var i=r(7162);async function n(e){if(!("body"in e)||!e.body||"POST"!==e.method)return;let t=e.headers.get("content-type");return null!=t&&t.includes("application/json")?await e.json():null!=t&&t.includes("application/x-www-form-urlencoded")?Object.fromEntries(new URLSearchParams(await e.text())):void 0}},4569:(e,t)=>{"use strict";t.Z=function(e){return{id:"google",name:"Google",type:"oauth",wellKnown:"https://accounts.google.com/.well-known/openid-configuration",authorization:{params:{scope:"openid email profile"}},idToken:!0,checks:["pkce","state"],profile:e=>({id:e.sub,name:e.name,email:e.email,image:e.picture}),style:{logo:"/google.svg",bg:"#fff",text:"#000"},options:e}}},7885:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectOrigin=function(e,t){var r;return(null!==(r=process.env.VERCEL)&&void 0!==r?r:process.env.AUTH_TRUST_HOST)?`${"http"===t?"http":"https"}://${e}`:process.env.NEXTAUTH_URL}},5387:(e,t,r)=>{"use strict";var i=r(6718);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.proxyLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;arguments.length>1&&arguments[1];try{return e}catch(e){return o}},t.setLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t||(o.debug=function(){}),e.error&&(o.error=e.error),e.warn&&(o.warn=e.warn),e.debug&&(o.debug=e.debug)},i(r(2485));var n=r(2394),o={error:function(e,t){t=function e(t){var r;return t instanceof Error&&!(t instanceof n.UnknownError)?{message:t.message,stack:t.stack,name:t.name}:(null!=t&&t.error&&(t.error=e(t.error),t.message=null!==(r=t.message)&&void 0!==r?r:t.error.message),t)}(t),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),t.message,t)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,t){console.log("[next-auth][debug][".concat(e,"]"),t)}};t.default=o},7838:(e,t)=>{"use strict";function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function e(t,...i){if(!i.length)return t;let n=i.shift();if(r(t)&&r(n))for(let i in n)r(n[i])?(t[i]||Object.assign(t,{[i]:{}}),e(t[i],n[i])):Object.assign(t,{[i]:n[i]});return e(t,...i)}},550:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let r=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let i=new URL(null!==(t=e)&&void 0!==t?t:r),n=("/"===i.pathname?r.pathname:i.pathname).replace(/\/$/,""),o=`${i.origin}${n}`;return{origin:i.origin,host:i.host,path:n,base:o,toString:()=>o}}},7167:(e,t,r)=>{"use strict";r.r(t);var i=r(9767),n={};for(let e in i)"default"!==e&&(n[e]=()=>i[e]);r.d(t,n)},1847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraftMode",{enumerable:!0,get:function(){return n}});let i=r(2936);class n{get isEnabled(){return this._provider.isEnabled}enable(){if(!(0,i.staticGenerationBailout)("draftMode().enable()"))return this._provider.enable()}disable(){if(!(0,i.staticGenerationBailout)("draftMode().disable()"))return this._provider.disable()}constructor(e){this._provider=e}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9767:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{headers:function(){return u},cookies:function(){return d},draftMode:function(){return h}});let i=r(9839),n=r(270),o=r(8005),s=r(4580),a=r(2934),l=r(2936),c=r(1847);function u(){if((0,l.staticGenerationBailout)("headers",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return n.HeadersAdapter.seal(new Headers({}));let e=s.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: headers() expects to have requestAsyncStorage, none available.");return e.headers}function d(){if((0,l.staticGenerationBailout)("cookies",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return i.RequestCookiesAdapter.seal(new o.RequestCookies(new Headers({})));let e=s.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: cookies() expects to have requestAsyncStorage, none available.");let t=a.actionAsyncStorage.getStore();return t&&(t.isAction||t.isAppRoute)?e.mutableCookies:e.cookies}function h(){let e=s.requestAsyncStorage.getStore();if(!e)throw Error("Invariant: draftMode() expects to have requestAsyncStorage, none available.");return new c.DraftMode(e.draftMode)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9625:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return i},isDynamicServerError:function(){return n}});let r="DYNAMIC_SERVER_USAGE";class i extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function n(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isStaticGenBailoutError:function(){return a},staticGenerationBailout:function(){return c}});let i=r(9625),n=r(5869),o="NEXT_STATIC_GEN_BAILOUT";class s extends Error{constructor(...e){super(...e),this.code=o}}function a(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===o}function l(e,t){let{dynamic:r,link:i}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(i?" See more info here: "+i:"")}let c=(e,t)=>{let{dynamic:r,link:o}=void 0===t?{}:t,a=n.staticGenerationAsyncStorage.getStore();if(!a)return!1;if(a.forceStatic)return!0;if(a.dynamicShouldError)throw new s(l(e,{link:o,dynamic:null!=r?r:"error"}));let c=l(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==a.postpone||a.postpone.call(a,e),a.revalidate=0,a.isStaticGeneration){let t=new i.DynamicServerError(c);throw a.dynamicUsageDescription=e,a.dynamicUsageStack=t.stack,t}return!1};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},270:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyHeadersError:function(){return n},HeadersAdapter:function(){return o}});let i=r(5444);class n extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new n}}class o extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return i.ReflectAdapter.get(t,r,n);let o=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===o);if(void 0!==s)return i.ReflectAdapter.get(t,s,n)},set(t,r,n,o){if("symbol"==typeof r)return i.ReflectAdapter.set(t,r,n,o);let s=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===s);return i.ReflectAdapter.set(t,a??r,n,o)},has(t,r){if("symbol"==typeof r)return i.ReflectAdapter.has(t,r);let n=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==o&&i.ReflectAdapter.has(t,o)},deleteProperty(t,r){if("symbol"==typeof r)return i.ReflectAdapter.deleteProperty(t,r);let n=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===o||i.ReflectAdapter.deleteProperty(t,o)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return n.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new o(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,i]of this.entries())e.call(t,i,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},5444:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let i=Reflect.get(e,t,r);return"function"==typeof i?i.bind(e):i}static set(e,t,r,i){return Reflect.set(e,t,r,i)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},9839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyRequestCookiesError:function(){return o},RequestCookiesAdapter:function(){return s},getModifiedCookieValues:function(){return l},appendMutableCookies:function(){return c},MutableRequestCookiesAdapter:function(){return u}});let i=r(8005),n=r(5444);class o extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options")}static callable(){throw new o}}class s{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return o.callable;default:return n.ReflectAdapter.get(e,t,r)}}})}}let a=Symbol.for("next.mutated.cookies");function l(e){let t=e[a];return t&&Array.isArray(t)&&0!==t.length?t:[]}function c(e,t){let r=l(t);if(0===r.length)return!1;let n=new i.ResponseCookies(e),o=n.getAll();for(let e of r)n.set(e);for(let e of o)n.set(e);return!0}class u{static wrap(e,t){let r=new i.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let o=[],s=new Set,l=()=>{var e;let n=null==fetch.__nextGetStaticStore?void 0:null==(e=fetch.__nextGetStaticStore.call(fetch))?void 0:e.getStore();if(n&&(n.pathWasRevalidated=!0),o=r.getAll().filter(e=>s.has(e.name)),t){let e=[];for(let t of o){let r=new i.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case a:return o;case"delete":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{e.delete(...t)}finally{l()}};case"set":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t)}finally{l()}};default:return n.ReflectAdapter.get(e,t,r)}}})}}},3990:(e,t,r)=>{t.OAuth=r(3899).OAuth,t.OAuthEcho=r(3899).OAuthEcho,t.OAuth2=r(5689).OAuth2},5022:e=>{"use strict";e.exports.isAnEarlyCloseHost=function(e){return e&&e.match(".*google(apis)?.com$")}},3899:(e,t,r)=>{var i=r(6113),n=r(1442),o=r(3685),s=r(5687),a=r(7310),l=r(3477),c=r(5022);t.OAuth=function(e,t,r,i,n,o,s,a,l){if(this._isEcho=!1,this._requestUrl=e,this._accessUrl=t,this._consumerKey=r,this._consumerSecret=this._encodeData(i),"RSA-SHA1"==s&&(this._privateKey=i),this._version=n,void 0===o?this._authorize_callback="oob":this._authorize_callback=o,"PLAINTEXT"!=s&&"HMAC-SHA1"!=s&&"RSA-SHA1"!=s)throw Error("Un-supported signature method: "+s);this._signatureMethod=s,this._nonceSize=a||32,this._headers=l||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._clientOptions=this._defaultClientOptions={requestTokenHttpMethod:"POST",accessTokenHttpMethod:"POST",followRedirects:!0},this._oauthParameterSeperator=","},t.OAuthEcho=function(e,t,r,i,n,o,s,a){if(this._isEcho=!0,this._realm=e,this._verifyCredentials=t,this._consumerKey=r,this._consumerSecret=this._encodeData(i),"RSA-SHA1"==o&&(this._privateKey=i),this._version=n,"PLAINTEXT"!=o&&"HMAC-SHA1"!=o&&"RSA-SHA1"!=o)throw Error("Un-supported signature method: "+o);this._signatureMethod=o,this._nonceSize=s||32,this._headers=a||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._oauthParameterSeperator=","},t.OAuthEcho.prototype=t.OAuth.prototype,t.OAuth.prototype._getTimestamp=function(){return Math.floor(new Date().getTime()/1e3)},t.OAuth.prototype._encodeData=function(e){return null==e||""==e?"":encodeURIComponent(e).replace(/\!/g,"%21").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},t.OAuth.prototype._decodeData=function(e){return null!=e&&(e=e.replace(/\+/g," ")),decodeURIComponent(e)},t.OAuth.prototype._getSignature=function(e,t,r,i){var n=this._createSignatureBase(e,t,r);return this._createSignature(n,i)},t.OAuth.prototype._normalizeUrl=function(e){var t=a.parse(e,!0),r="";return t.port&&("http:"==t.protocol&&"80"!=t.port||"https:"==t.protocol&&"443"!=t.port)&&(r=":"+t.port),t.pathname&&""!=t.pathname||(t.pathname="/"),t.protocol+"//"+t.hostname+r+t.pathname},t.OAuth.prototype._isParameterNameAnOAuthParameter=function(e){var t=e.match("^oauth_");return!!t&&"oauth_"===t[0]},t.OAuth.prototype._buildAuthorizationHeaders=function(e){var t="OAuth ";this._isEcho&&(t+='realm="'+this._realm+'",');for(var r=0;r=200&&i.statusCode<=299?u(null,v,i):(301==i.statusCode||302==i.statusCode)&&_.followRedirects&&i.headers&&i.headers.location?w._performSecureRequest(e,t,r,i.headers.location,n,o,s,u):u({statusCode:i.statusCode,data:v},v,i))};h.on("response",function(e){e.setEncoding("utf8"),e.on("data",function(e){v+=e}),e.on("end",function(){k(e)}),e.on("close",function(){b&&k(e)})}),h.on("error",function(e){S||(S=!0,u(e))}),("POST"==r||"PUT"==r)&&null!=o&&""!=o&&h.write(o),h.end()},t.OAuth.prototype.setClientOptions=function(e){var t,r={},i=Object.prototype.hasOwnProperty;for(t in this._defaultClientOptions)i.call(e,t)?r[t]=e[t]:r[t]=this._defaultClientOptions[t];this._clientOptions=r},t.OAuth.prototype.getOAuthAccessToken=function(e,t,r,i){var n={};"function"==typeof r?i=r:n.oauth_verifier=r,this._performSecureRequest(e,t,this._clientOptions.accessTokenHttpMethod,this._accessUrl,n,null,null,function(e,t,r){if(e)i(e);else{var n=l.parse(t),o=n.oauth_token;delete n.oauth_token;var s=n.oauth_token_secret;delete n.oauth_token_secret,i(null,o,s,n)}})},t.OAuth.prototype.getProtectedResource=function(e,t,r,i,n){this._performSecureRequest(r,i,t,e,null,"",null,n)},t.OAuth.prototype.delete=function(e,t,r,i){return this._performSecureRequest(t,r,"DELETE",e,null,"",null,i)},t.OAuth.prototype.get=function(e,t,r,i){return this._performSecureRequest(t,r,"GET",e,null,"",null,i)},t.OAuth.prototype._putOrPost=function(e,t,r,i,n,o,s){var a=null;return"function"==typeof o&&(s=o,o=null),"string"==typeof n||Buffer.isBuffer(n)||(o="application/x-www-form-urlencoded",a=n,n=null),this._performSecureRequest(r,i,e,t,a,n,o,s)},t.OAuth.prototype.put=function(e,t,r,i,n,o){return this._putOrPost("PUT",e,t,r,i,n,o)},t.OAuth.prototype.post=function(e,t,r,i,n,o){return this._putOrPost("POST",e,t,r,i,n,o)},t.OAuth.prototype.getOAuthRequestToken=function(e,t){"function"==typeof e&&(t=e,e={}),this._authorize_callback&&(e.oauth_callback=this._authorize_callback),this._performSecureRequest(null,null,this._clientOptions.requestTokenHttpMethod,this._requestUrl,e,null,null,function(e,r,i){if(e)t(e);else{var n=l.parse(r),o=n.oauth_token,s=n.oauth_token_secret;delete n.oauth_token,delete n.oauth_token_secret,t(null,o,s,n)}})},t.OAuth.prototype.signUrl=function(e,t,r,i){if(void 0===i)var i="GET";for(var n=this._prepareParameters(t,r,i,e,{}),o=a.parse(e,!1),s="",l=0;l{var i=r(3477),n=(r(6113),r(5687)),o=r(3685),s=r(7310),a=r(5022);t.OAuth2=function(e,t,r,i,n,o){this._clientId=e,this._clientSecret=t,this._baseSite=r,this._authorizeUrl=i||"/oauth/authorize",this._accessTokenUrl=n||"/oauth/access_token",this._accessTokenName="access_token",this._authMethod="Bearer",this._customHeaders=o||{},this._useAuthorizationHeaderForGET=!1,this._agent=void 0},t.OAuth2.prototype.setAgent=function(e){this._agent=e},t.OAuth2.prototype.setAccessTokenName=function(e){this._accessTokenName=e},t.OAuth2.prototype.setAuthMethod=function(e){this._authMethod=e},t.OAuth2.prototype.useAuthorizationHeaderforGET=function(e){this._useAuthorizationHeaderForGET=e},t.OAuth2.prototype._getAccessTokenUrl=function(){return this._baseSite+this._accessTokenUrl},t.OAuth2.prototype.buildAuthHeader=function(e){return this._authMethod+" "+e},t.OAuth2.prototype._chooseHttpLibrary=function(e){var t=n;return"https:"!=e.protocol&&(t=o),t},t.OAuth2.prototype._request=function(e,t,r,n,o,a){var l=s.parse(t,!0);"https:"!=l.protocol||l.port||(l.port=443);var c=this._chooseHttpLibrary(l),u={};for(var d in this._customHeaders)u[d]=this._customHeaders[d];if(r)for(var d in r)u[d]=r[d];u.Host=l.host,u["User-Agent"]||(u["User-Agent"]="Node-oauth"),n?Buffer.isBuffer(n)?u["Content-Length"]=n.length:u["Content-Length"]=Buffer.byteLength(n):u["Content-length"]=0,!o||"Authorization"in u||(l.query||(l.query={}),l.query[this._accessTokenName]=o);var h=i.stringify(l.query);h&&(h="?"+h);var p={host:l.hostname,port:l.port,path:l.pathname+h,method:e,headers:u};this._executeRequest(c,p,n,a)},t.OAuth2.prototype._executeRequest=function(e,t,r,i){var n=a.isAnEarlyCloseHost(t.host),o=!1;function s(e,t){o||(o=!0,e.statusCode>=200&&e.statusCode<=299||301==e.statusCode||302==e.statusCode?i(null,t,e):i({statusCode:e.statusCode,data:t}))}var l="";this._agent&&(t.agent=this._agent);var c=e.request(t);c.on("response",function(e){e.on("data",function(e){l+=e}),e.on("close",function(t){n&&s(e,l)}),e.addListener("end",function(){s(e,l)})}),c.on("error",function(e){o=!0,i(e)}),("POST"==t.method||"PUT"==t.method)&&r&&c.write(r),c.end()},t.OAuth2.prototype.getAuthorizeUrl=function(e){var e=e||{};return e.client_id=this._clientId,this._baseSite+this._authorizeUrl+"?"+i.stringify(e)},t.OAuth2.prototype.getOAuthAccessToken=function(e,t,r){var t=t||{};t.client_id=this._clientId,t.client_secret=this._clientSecret;var n="refresh_token"===t.grant_type?"refresh_token":"code";t[n]=e;var o=i.stringify(t);this._request("POST",this._getAccessTokenUrl(),{"Content-Type":"application/x-www-form-urlencoded"},o,null,function(e,t,n){if(e)r(e);else{try{o=JSON.parse(t)}catch(e){o=i.parse(t)}var o,s=o.access_token,a=o.refresh_token;delete o.refresh_token,r(null,s,a,o)}})},t.OAuth2.prototype.getProtectedResource=function(e,t,r){this._request("GET",e,{},"",t,r)},t.OAuth2.prototype.get=function(e,t,r){if(this._useAuthorizationHeaderForGET){var i={Authorization:this.buildAuthHeader(t)};t=null}else i={};this._request("GET",e,i,"",t,r)}},1442:(e,t)=>{function r(e){for(var t,r,i="",n=-1;++n>>6&31,128|63&t):t<=65535?i+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(i+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return i}function i(e){for(var t=Array(e.length>>2),r=0;r>5]|=(255&e.charCodeAt(r/8))<<24-r%32;return t}function n(e,t){e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;for(var r=Array(80),i=1732584193,n=-271733879,a=-1732584194,l=271733878,c=-1009589776,u=0;u>16)+(t>>16)+(r>>16)<<16|65535&r}function s(e,t){return e<>>32-t}t.HMACSHA1=function(e,t){return function(e){for(var t="",r=e.length,i=0;i8*e.length?t+="=":t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>>6*(3-o)&63);return t}(function(e,t){var r=i(e);r.length>16&&(r=n(r,8*e.length));for(var o=Array(16),s=Array(16),a=0;a<16;a++)o[a]=909522486^r[a],s[a]=1549556828^r[a];var l=n(o.concat(i(t)),512+8*t.length);return function(e){for(var t="",r=0;r<32*e.length;r+=8)t+=String.fromCharCode(e[r>>5]>>>24-r%32&255);return t}(n(s.concat(l),672))}(r(e),r(t)))}},4481:(e,t,r)=>{"use strict";let i;let{strict:n}=r(9491),{createHash:o}=r(6113),{format:s}=r(3849),a=r(4986);if(Buffer.isEncoding("base64url"))i=e=>e.toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");i=t=>e(t.toString("base64"))}function l(e,t,r){let n=(function(e,t){switch(e){case"HS256":case"RS256":case"PS256":case"ES256":case"ES256K":return o("sha256");case"HS384":case"RS384":case"PS384":case"ES384":return o("sha384");case"HS512":case"RS512":case"PS512":case"ES512":return o("sha512");case"EdDSA":switch(t){case"Ed25519":return o("sha512");case"Ed448":if(!a)throw TypeError("Ed448 *_hash calculation is not supported in your Node.js runtime version");return o("shake256",{outputLength:114});default:throw TypeError("unrecognized or invalid EdDSA curve provided")}default:throw TypeError("unrecognized or invalid JWS algorithm provided")}})(t,r).update(e).digest();return i(n.slice(0,n.length/2))}e.exports={validate:function(e,t,r,i,o){let a,c;if("string"!=typeof e.claim||!e.claim)throw TypeError("names.claim must be a non-empty string");if("string"!=typeof e.source||!e.source)throw TypeError("names.source must be a non-empty string");n("string"==typeof t&&t,`${e.claim} must be a non-empty string`),n("string"==typeof r&&r,`${e.source} must be a non-empty string`);try{a=l(r,i,o)}catch(t){c=s("%s could not be validated (%s)",e.claim,t.message)}c=c||s("%s mismatch, expected %s, got: %s",e.claim,a,t),n.equal(a,t,c)},generate:l}},4986:(e,t,r)=>{"use strict";let i=r(6113),[n,o]=process.version.substring(1).split(".").map(e=>parseInt(e,10)),s=(n>12||12===n&&o>=8)&&i.getHashes().includes("shake256");e.exports=s},8576:(e,t,r)=>{"use strict";let i;let{inspect:n}=r(3849),o=r(3685),s=r(6113),{strict:a}=r(9491),l=r(3477),c=r(7310),{URL:u,URLSearchParams:d}=r(7310),h=r(5100),p=r(4481),f=r(596),y=r(1773),g=r(5825),m=r(498),_=r(6208),{assertSigningAlgValuesSupport:v,assertIssuerConfiguration:w}=r(905),b=r(6849),S=r(8363),k=r(9527),E=r(2939),{OPError:A,RPError:x}=r(9628),O=r(5976),{random:T}=r(1914),P=r(1065),{CLOCK_TOLERANCE:j}=r(1491),{keystores:C}=r(6207),I=r(2874),$=r(7004),{authenticatedPost:J,resolveResponseType:M,resolveRedirectUri:N}=r(7684),{queryKeyStore:R}=r(4332),W=r(1642),[K,U]=process.version.slice(1).split(".").map(e=>parseInt(e,10)),H=K>=17||16===K&&U>=9,D=Symbol(),q=Symbol(),L=Symbol();function B(e){return b(e,"access_token","code","error_description","error_uri","error","expires_in","id_token","iss","response","session_state","state","token_type")}function Q(e,t="Bearer"){return`${t} ${e}`}function z(e){let t=c.parse(e);return t.search?l.parse(t.search.substring(1)):{}}function F(e,t,r){if(void 0===e[r])throw new x({message:`missing required JWT property ${r}`,jwt:t})}function V(e){let t={client_id:this.client_id,scope:"openid",response_type:M.call(this),redirect_uri:N.call(this),...e};return Object.entries(t).forEach(([e,r])=>{null==r?delete t[e]:"claims"===e&&"object"==typeof r?t[e]=JSON.stringify(r):"resource"===e&&Array.isArray(r)?t[e]=r:"string"!=typeof r&&(t[e]=String(r))}),t}function G(e){if(!S(e)||!Array.isArray(e.keys)||e.keys.some(e=>!S(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");return I.fromJWKS(e,{onlyPrivate:!0})}class X{#e;#t;#r;#i;constructor(e,t,r={},i,n){if(this.#e=new Map,this.#t=e,this.#r=t,"string"!=typeof r.client_id||!r.client_id)throw TypeError("client_id is required");let o={grant_types:["authorization_code"],id_token_signed_response_alg:"RS256",authorization_signed_response_alg:"RS256",response_types:["code"],token_endpoint_auth_method:"client_secret_basic",...this.fapi()?{grant_types:["authorization_code","implicit"],id_token_signed_response_alg:"PS256",authorization_signed_response_alg:"PS256",response_types:["code id_token"],tls_client_certificate_bound_access_tokens:!0,token_endpoint_auth_method:void 0}:void 0,...r};if(this.fapi())switch(o.token_endpoint_auth_method){case"self_signed_tls_client_auth":case"tls_client_auth":break;case"private_key_jwt":if(!i)throw TypeError("jwks is required");break;case void 0:throw TypeError("token_endpoint_auth_method is required");default:throw TypeError("invalid or unsupported token_endpoint_auth_method")}if(function(e,t,r){if(t.token_endpoint_auth_method||function(e,t){try{let r=e.issuer.token_endpoint_auth_methods_supported;!r.includes(t.token_endpoint_auth_method)&&r.includes("client_secret_post")&&(t.token_endpoint_auth_method="client_secret_post")}catch(e){}}(e,r),t.redirect_uri){if(t.redirect_uris)throw TypeError("provide a redirect_uri or redirect_uris, not both");r.redirect_uris=[t.redirect_uri],delete r.redirect_uri}if(t.response_type){if(t.response_types)throw TypeError("provide a response_type or response_types, not both");r.response_types=[t.response_type],delete r.response_type}}(this,r,o),v("token",this.issuer,o),["introspection","revocation"].forEach(e=>{(function(e,t,r){if(!t[`${e}_endpoint`])return;let i=r.token_endpoint_auth_method,n=r.token_endpoint_auth_signing_alg,o=`${e}_endpoint_auth_method`,s=`${e}_endpoint_auth_signing_alg`;void 0===r[o]&&void 0===r[s]&&(void 0!==i&&(r[o]=i),void 0!==n&&(r[s]=n))})(e,this.issuer,o),v(e,this.issuer,o)}),Object.entries(o).forEach(([e,t])=>{this.#e.set(e,t),this[e]||Object.defineProperty(this,e,{get(){return this.#e.get(e)},enumerable:!0})}),void 0!==i){let e=G.call(this,i);C.set(this,e)}null!=n&&n.additionalAuthorizedParties&&(this.#i=$(n.additionalAuthorizedParties)),this[j]=0}authorizationUrl(e={}){if(!S(e))throw TypeError("params must be a plain object");w(this.issuer,"authorization_endpoint");let t=new u(this.issuer.authorization_endpoint);for(let[r,i]of Object.entries(V.call(this,e)))if(Array.isArray(i))for(let e of(t.searchParams.delete(r),i))t.searchParams.append(r,e);else t.searchParams.set(r,i);return t.href.replace(/\+/g,"%20")}authorizationPost(e={}){if(!S(e))throw TypeError("params must be a plain object");let t=V.call(this,e),r=Object.keys(t).map(e=>``).join("\n");return` + +Requesting Authorization + + +
+ ${r} +
+ +`}endSessionUrl(e={}){let t;w(this.issuer,"end_session_endpoint");let{0:r,length:i}=this.post_logout_redirect_uris||[],{post_logout_redirect_uri:n=1===i?r:void 0}=e;if({id_token_hint:t,...e}=e,t instanceof E){if(!t.id_token)throw TypeError("id_token not present in TokenSet");t=t.id_token}let o=c.parse(this.issuer.end_session_endpoint),s=m(z(this.issuer.end_session_endpoint),e,{post_logout_redirect_uri:n,client_id:this.client_id},{id_token_hint:t});return Object.entries(s).forEach(([e,t])=>{null==t&&delete s[e]}),o.search=null,o.query=s,c.format(o)}callbackParams(e){let t=e instanceof o.IncomingMessage||e&&e.method&&e.url;if("string"!=typeof e&&!t)throw TypeError("#callbackParams only accepts string urls, http.IncomingMessage or a lookalike");if(!t)return B(z(e));switch(e.method){case"GET":return B(z(e.url));case"POST":if(void 0===e.body)throw TypeError("incoming message body missing, include a body parser prior to this method call");switch(typeof e.body){case"object":case"string":if(Buffer.isBuffer(e.body))return B(l.parse(e.body.toString("utf-8")));if("string"==typeof e.body)return B(l.parse(e.body));return B(e.body);default:throw TypeError("invalid IncomingMessage body object")}default:throw TypeError("invalid IncomingMessage method")}}async callback(e,t,r={},{exchangeBody:i,clientAssertionPayload:n,DPoP:o}={}){let s=B(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(s.response);s=await this.validateJARM(e)}}else throw new x({message:"expected a JARM response",checks:r,params:s});if(this.default_max_age&&!r.max_age&&(r.max_age=this.default_max_age),s.state&&!r.state)throw TypeError("checks.state argument is missing");if(!s.state&&r.state)throw new x({message:"state missing from the response",checks:r,params:s});if(r.state!==s.state)throw new x({printf:["state mismatch, expected %s, got: %s",r.state,s.state],checks:r,params:s});if("iss"in s){if(w(this.issuer,"issuer"),s.iss!==this.issuer.issuer)throw new x({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,s.iss],params:s})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in s)&&!("response"in t))throw new x({message:"iss missing from the response",params:s});if(s.error)throw new A(s);let a={code:["code"],id_token:["id_token"],token:["access_token","token_type"]};if(r.response_type){for(let e of r.response_type.split(" "))if("none"===e){if(s.code||s.id_token||s.access_token)throw new x({message:'unexpected params encountered for "none" response',checks:r,params:s})}else for(let t of a[e])if(!s[t])throw new x({message:`${t} missing from response`,checks:r,params:s})}if(s.id_token){let e=new E(s);if(await this.decryptIdToken(e),await this.validateIdToken(e,r.nonce,"authorization",r.max_age,r.state),!s.code)return e}if(s.code){let t=await this.grant({...i,grant_type:"authorization_code",code:s.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:n,DPoP:o});return await this.decryptIdToken(t),await this.validateIdToken(t,r.nonce,"token",r.max_age),s.session_state&&(t.session_state=s.session_state),t}return new E(s)}async oauthCallback(e,t,r={},{exchangeBody:i,clientAssertionPayload:n,DPoP:o}={}){let s=B(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(s.response);s=await this.validateJARM(e)}}else throw new x({message:"expected a JARM response",checks:r,params:s});if(s.state&&!r.state)throw TypeError("checks.state argument is missing");if(!s.state&&r.state)throw new x({message:"state missing from the response",checks:r,params:s});if(r.state!==s.state)throw new x({printf:["state mismatch, expected %s, got: %s",r.state,s.state],checks:r,params:s});if("iss"in s){if(w(this.issuer,"issuer"),s.iss!==this.issuer.issuer)throw new x({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,s.iss],params:s})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in s)&&!("response"in t))throw new x({message:"iss missing from the response",params:s});if(s.error)throw new A(s);if("string"==typeof s.id_token&&s.id_token.length)throw new x({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:s});delete s.id_token;let a={code:["code"],token:["access_token","token_type"]};if(r.response_type)for(let e of r.response_type.split(" ")){if("none"===e&&(s.code||s.id_token||s.access_token))throw new x({message:'unexpected params encountered for "none" response',checks:r,params:s});if(a[e]){for(let t of a[e])if(!s[t])throw new x({message:`${t} missing from response`,checks:r,params:s})}}if(s.code){let t=await this.grant({...i,grant_type:"authorization_code",code:s.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:n,DPoP:o});if("string"==typeof t.id_token&&t.id_token.length)throw new x({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:s});return delete t.id_token,t}return new E(s)}async decryptIdToken(e){if(!this.id_token_encrypted_response_alg)return e;let t=e;if(t instanceof E){if(!t.id_token)throw TypeError("id_token not present in TokenSet");t=t.id_token}let r=this.id_token_encrypted_response_alg,i=this.id_token_encrypted_response_enc,n=await this.decryptJWE(t,r,i);return e instanceof E?(e.id_token=n,e):n}async validateJWTUserinfo(e){let t=this.userinfo_signed_response_alg;return this.validateJWT(e,t,[])}async decryptJARM(e){if(!this.authorization_encrypted_response_alg)return e;let t=this.authorization_encrypted_response_alg,r=this.authorization_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWTUserinfo(e){if(!this.userinfo_encrypted_response_alg)return e;let t=this.userinfo_encrypted_response_alg,r=this.userinfo_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWE(e,t,r="A128CBC-HS256"){let i;let n=JSON.parse(g.decode(e.split(".")[0]));if(n.alg!==t)throw new x({printf:["unexpected JWE alg received, expected %s, got: %s",t,n.alg],jwt:e});if(n.enc!==r)throw new x({printf:["unexpected JWE enc received, expected %s, got: %s",r,n.enc],jwt:e});let o=e=>new TextDecoder().decode(e.plaintext);if(t.match(/^(?:RSA|ECDH)/)){let t=await C.get(this),r=h.decodeProtectedHeader(e);for(let n of t.all({...r,use:"enc"}))if(i=await h.compactDecrypt(e,await n.keyObject(r.alg)).then(o,()=>{}))break}else i=await h.compactDecrypt(e,this.secretForAlg("dir"===t?r:t)).then(o,()=>{});if(!i)throw new x({message:"failed to decrypt JWE",jwt:e});return i}async validateIdToken(e,t,r,i,n){let o=e,s=this.id_token_signed_response_alg;if(o instanceof E){if(!o.id_token)throw TypeError("id_token not present in TokenSet");o=o.id_token}o=String(o);let a=O(),{protected:l,payload:c,key:u}=await this.validateJWT(o,s);if("number"==typeof i||i!==L&&this.require_auth_time){if(!c.auth_time)throw new x({message:"missing required JWT property auth_time",jwt:o});if("number"!=typeof c.auth_time)throw new x({message:"JWT auth_time claim must be a JSON numeric value",jwt:o})}if("number"==typeof i&&c.auth_time+il+this[j])throw new x({printf:["JWT not active yet, now %i, nbf %i",l+this[j],n.nbf],now:l,tolerance:this[j],nbf:n.nbf,jwt:e})}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new x({message:"JWT exp claim must be a JSON numeric value",jwt:e});if(l-this[j]>=n.exp)throw new x({printf:["JWT expired, now %i, exp %i",l-this[j],n.exp],now:l,tolerance:this[j],exp:n.exp,jwt:e})}if(void 0!==n.aud){if(Array.isArray(n.aud)){if(n.aud.length>1&&!n.azp)throw new x({message:"missing required JWT property azp",jwt:e});if(!n.aud.includes(this.client_id))throw new x({printf:["aud is missing the client_id, expected %s to be included in %j",this.client_id,n.aud],jwt:e})}else if(n.aud!==this.client_id)throw new x({printf:["aud mismatch, expected %s, got: %s",this.client_id,n.aud],jwt:e})}if(void 0!==n.azp){let t=this.#i;if(!(t="string"==typeof t?[this.client_id,t]:Array.isArray(t)?[this.client_id,...t]:[this.client_id]).includes(n.azp))throw new x({printf:["azp mismatch, got: %s",n.azp],jwt:e})}if(s){try{a(S(n.sub_jwk));let e=await h.importJWK(n.sub_jwk,i.alg);a.equal(e.type,"public"),o=[{keyObject:()=>e}]}catch(t){throw new x({message:"failed to use sub_jwk claim as an asymmetric JSON Web Key",jwt:e})}if(await h.calculateJwkThumbprint(n.sub_jwk)!==n.sub)throw new x({message:"failed to match the subject with sub_jwk",jwt:e})}else i.alg.startsWith("HS")?o=[this.secretForAlg(i.alg)]:"none"!==i.alg&&(o=await R.call(this.issuer,{...i,use:"sig"}));if(!o&&"none"===i.alg)return{protected:i,payload:n};for(let t of o){let r=await h.compactVerify(e,t instanceof Uint8Array?t:await t.keyObject(i.alg)).catch(()=>{});if(r)return{payload:n,protected:r.protectedHeader,key:t}}throw new x({message:"failed to validate JWT signature",jwt:e})}async refresh(e,{exchangeBody:t,clientAssertionPayload:r,DPoP:i}={}){let n=e;if(n instanceof E){if(!n.refresh_token)throw TypeError("refresh_token not present in TokenSet");n=n.refresh_token}let o=await this.grant({...t,grant_type:"refresh_token",refresh_token:String(n)},{clientAssertionPayload:r,DPoP:i});if(o.id_token&&(await this.decryptIdToken(o),await this.validateIdToken(o,q,"token",L),e instanceof E&&e.id_token)){let t=e.claims().sub,r=o.claims().sub;if(r!==t)throw new x({printf:["sub mismatch, expected %s, got: %s",t,r],jwt:o.id_token})}return o}async requestResource(e,t,{method:r,headers:i,body:n,DPoP:o,tokenType:s=o?"DPoP":t instanceof E?t.token_type:"Bearer"}={},a){if(t instanceof E){if(!t.access_token)throw TypeError("access_token not present in TokenSet");t=t.access_token}if(t){if("string"!=typeof t)throw TypeError("invalid access token provided")}else throw TypeError("no access token provided");let l={headers:{Authorization:Q(t,s),...i},body:n},c=!!this.tls_client_certificate_bound_access_tokens,u=await P.call(this,{...l,responseType:"buffer",method:r,url:e},{accessToken:t,mTLS:c,DPoP:o}),d=u.headers["www-authenticate"];return a!==D&&d&&d.toLowerCase().startsWith("dpop ")&&"use_dpop_nonce"===_(d).error?this.requestResource(e,t,{method:r,headers:i,body:n,DPoP:o,tokenType:s}):u}async userinfo(e,{method:t="GET",via:r="header",tokenType:i,params:n,DPoP:o}={}){let s;w(this.issuer,"userinfo_endpoint");let l={tokenType:i,method:String(t).toUpperCase(),DPoP:o};if("GET"!==l.method&&"POST"!==l.method)throw TypeError("#userinfo() method can only be POST or a GET");if("body"===r&&"POST"!==l.method)throw TypeError("can only send body on POST");let c=!!(this.userinfo_signed_response_alg||this.userinfo_encrypted_response_alg);c?l.headers={Accept:"application/jwt"}:l.headers={Accept:"application/json"},this.tls_client_certificate_bound_access_tokens&&this.issuer.mtls_endpoint_aliases&&(s=this.issuer.mtls_endpoint_aliases.userinfo_endpoint),s=new u(s||this.issuer.userinfo_endpoint),"body"===r&&(l.headers.Authorization=void 0,l.headers["Content-Type"]="application/x-www-form-urlencoded",l.body=new d,l.body.append("access_token",e instanceof E?e.access_token:e)),n&&("GET"===l.method?Object.entries(n).forEach(([e,t])=>{s.searchParams.append(e,t)}):l.body?Object.entries(n).forEach(([e,t])=>{l.body.append(e,t)}):(l.body=new d,l.headers["Content-Type"]="application/x-www-form-urlencoded",Object.entries(n).forEach(([e,t])=>{l.body.append(e,t)}))),l.body&&(l.body=l.body.toString());let h=await this.requestResource(s,e,l),p=k(h,{bearer:!0});if(c){if(!/^application\/jwt/.test(h.headers["content-type"]))throw new x({message:"expected application/jwt response from the userinfo_endpoint",response:h});let e=h.body.toString(),t=await this.decryptJWTUserinfo(e);if(this.userinfo_signed_response_alg)({payload:p}=await this.validateJWTUserinfo(t));else try{p=JSON.parse(t),a(S(p))}catch(e){throw new x({message:"failed to parse userinfo JWE payload as JSON",jwt:t})}}else try{p=JSON.parse(h.body)}catch(e){throw Object.defineProperty(e,"response",{value:h}),e}if(e instanceof E&&e.id_token){let t=e.claims().sub;if(p.sub!==t)throw new x({printf:["userinfo sub mismatch, expected %s, got: %s",t,p.sub],body:p,jwt:e.id_token})}return p}encryptionSecret(e){let t=e<=256?"sha256":e<=384?"sha384":e<=512&&"sha512";if(!t)throw Error("unsupported symmetric encryption key derivation");return s.createHash(t).update(this.client_secret).digest().slice(0,e/8)}secretForAlg(e){if(!this.client_secret)throw TypeError("client_secret is required");return/^A(\d{3})(?:GCM)?KW$/.test(e)?this.encryptionSecret(parseInt(RegExp.$1,10)):/^A(\d{3})(?:GCM|CBC-HS(\d{3}))$/.test(e)?this.encryptionSecret(parseInt(RegExp.$2||RegExp.$1,10)):new TextEncoder().encode(this.client_secret)}async grant(e,{clientAssertionPayload:t,DPoP:r}={},i){let n;w(this.issuer,"token_endpoint");let o=await J.call(this,"token",{form:e,responseType:"json"},{clientAssertionPayload:t,DPoP:r});try{n=k(o)}catch(n){if(i!==D&&n instanceof A&&"use_dpop_nonce"===n.error)return this.grant(e,{clientAssertionPayload:t,DPoP:r},D);throw n}return new E(n)}async deviceAuthorization(e={},{exchangeBody:t,clientAssertionPayload:r,DPoP:i}={}){w(this.issuer,"device_authorization_endpoint"),w(this.issuer,"token_endpoint");let n=V.call(this,{client_id:this.client_id,redirect_uri:null,response_type:null,...e}),o=k(await J.call(this,"device_authorization",{responseType:"json",form:n},{clientAssertionPayload:r,endpointAuthMethod:"token"}));return new W({client:this,exchangeBody:t,clientAssertionPayload:r,response:o,maxAge:e.max_age,DPoP:i})}async revoke(e,t,{revokeBody:r,clientAssertionPayload:i}={}){if(w(this.issuer,"revocation_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let n={...r,token:e};t&&(n.token_type_hint=t),k(await J.call(this,"revocation",{form:n},{clientAssertionPayload:i}),{body:!1})}async introspect(e,t,{introspectBody:r,clientAssertionPayload:i}={}){if(w(this.issuer,"introspection_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let n={...r,token:e};return t&&(n.token_type_hint=t),k(await J.call(this,"introspection",{form:n,responseType:"json"},{clientAssertionPayload:i}))}static async register(e,t={}){let{initialAccessToken:r,jwks:i,...n}=t;if(w(this.issuer,"registration_endpoint"),void 0!==i&&!(e.jwks||e.jwks_uri)){let t=await G.call(this,i);e.jwks=t.toJWKS()}return new this(k(await P.call(this,{headers:{Accept:"application/json",...r?{Authorization:Q(r)}:void 0},responseType:"json",json:e,url:this.issuer.registration_endpoint,method:"POST"}),{statusCode:201,bearer:!0}),i,n)}get metadata(){return $(Object.fromEntries(this.#e.entries()))}static async fromUri(e,t,r,i){return new this(k(await P.call(this,{method:"GET",url:e,responseType:"json",headers:{Authorization:Q(t),Accept:"application/json"}}),{bearer:!0}),r,i)}async requestObject(e={},{sign:t=this.request_object_signing_alg||"none",encrypt:{alg:r=this.request_object_encryption_alg,enc:i=this.request_object_encryption_enc||"A128CBC-HS256"}={}}={}){let n,o;if(!S(e))throw TypeError("requestObject must be a plain object");let s=O(),a={alg:t,typ:"oauth-authz-req+jwt"},l=JSON.stringify(m({},e,{iss:this.client_id,aud:this.issuer.issuer,client_id:this.client_id,jti:T(),iat:s,exp:s+300,...this.fapi()?{nbf:s}:void 0}));if("none"===t)n=[g.encode(JSON.stringify(a)),g.encode(l),""].join(".");else{let e=t.startsWith("HS");if(e)o=this.secretForAlg(t);else{let e=await C.get(this);if(!e)throw TypeError(`no keystore present for client, cannot sign using alg ${t}`);if(!(o=e.get({alg:t,use:"sig"})))throw TypeError(`no key to sign with found for alg ${t}`)}n=await new h.CompactSign(new TextEncoder().encode(l)).setProtectedHeader({...a,kid:e?void 0:o.jwk.kid}).sign(e?o:await o.keyObject(t))}if(!r)return n;let c={alg:r,enc:i,cty:"oauth-authz-req+jwt"};return c.alg.match(/^(RSA|ECDH)/)?[o]=await R.call(this.issuer,{alg:c.alg,use:"enc"},{allowMulti:!0}):o=this.secretForAlg("dir"===c.alg?c.enc:c.alg),new h.CompactEncrypt(new TextEncoder().encode(n)).setProtectedHeader({...c,kid:o instanceof Uint8Array?void 0:o.jwk.kid}).encrypt(o instanceof Uint8Array?o:await o.keyObject(c.alg))}async pushedAuthorizationRequest(e={},{clientAssertionPayload:t}={}){w(this.issuer,"pushed_authorization_request_endpoint");let r={..."request"in e?e:V.call(this,e),client_id:this.client_id},i=await J.call(this,"pushed_authorization_request",{responseType:"json",form:r},{clientAssertionPayload:t,endpointAuthMethod:"token"}),n=k(i,{statusCode:201});if(!("expires_in"in n))throw new x({message:"expected expires_in in Pushed Authorization Successful Response",response:i});if("number"!=typeof n.expires_in)throw new x({message:"invalid expires_in value in Pushed Authorization Successful Response",response:i});if(!("request_uri"in n))throw new x({message:"expected request_uri in Pushed Authorization Successful Response",response:i});if("string"!=typeof n.request_uri)throw new x({message:"invalid request_uri value in Pushed Authorization Successful Response",response:i});return n}get issuer(){return this.#t}[n.custom](){return`${this.constructor.name} ${n(this.metadata,{depth:1/0,colors:process.stdout.isTTY,compact:!1,sorted:!0})}`}fapi(){return"FAPI1Client"===this.constructor.name}async validateJARM(e){let t=this.authorization_signed_response_alg,{payload:r}=await this.validateJWT(e,t,["iss","exp","aud"]);return B(r)}async dpopProof(e,t,r){let n;if(!S(e))throw TypeError("payload must be a plain object");if(f(t))n=t;else if("CryptoKey"===t[Symbol.toStringTag])n=t;else if("node:crypto"===h.cryptoRuntime)n=s.createPrivateKey(t);else throw TypeError("unrecognized crypto runtime");if("private"!==n.type)throw TypeError('"DPoP" option must be a private key');let o=i.call(this,n,t);if(!o)throw TypeError("could not determine DPoP JWS Algorithm");return new h.SignJWT({ath:r?g.encode(s.createHash("sha256").update(r).digest()):void 0,...e}).setProtectedHeader({alg:o,typ:"dpop+jwt",jwk:await ee(n,t)}).setIssuedAt().setJti(T()).sign(n)}}function Y(e){switch(e.algorithm.name){case"Ed25519":case"Ed448":return"EdDSA";case"ECDSA":switch(e.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512"}break;case"RSASSA-PKCS1-v1_5":return`RS${e.algorithm.hash.name.slice(4)}`;case"RSA-PSS":return`PS${e.algorithm.hash.name.slice(4)}`;default:throw TypeError("unsupported DPoP private key")}}if("node:crypto"===h.cryptoRuntime){i=function(i,s){if("CryptoKey"===s[Symbol.toStringTag])return Y(i);switch(i.asymmetricKeyType){case"ed25519":case"ed448":return"EdDSA";case"ec":return function(e,i){switch("object"==typeof i&&"object"==typeof i.key&&i.key.crv){case"P-256":return"ES256";case"secp256k1":return"ES256K";case"P-384":return"ES384";case"P-512":return"ES512"}let s=e.export({format:"der",type:"pkcs8"}),a=s[1]<128?17:18,l=s[a],c=s.slice(a+1,a+1+l);if(c.equals(t))return"ES256";if(c.equals(r))return"ES384";if(c.equals(n))return"ES512";if(c.equals(o))return"ES256K";throw TypeError("unsupported DPoP private key curve")}(i,s);case"rsa":case H&&"rsa-pss":return function(t,r,i){if("object"==typeof r&&"jwk"===r.format&&r.key&&r.key.alg)return r.key.alg;if(Array.isArray(i)){let r=i.filter(RegExp.prototype.test.bind(e));return"rsa-pss"===t.asymmetricKeyType&&(r=r.filter(e=>e.startsWith("PS"))),["PS256","PS384","PS512","RS256","RS384","RS384"].find(e=>r.includes(e))}return"PS256"}(i,s,this.issuer.dpop_signing_alg_values_supported);default:throw TypeError("unsupported DPoP private key")}};let e=/^(?:RS|PS)(?:256|384|512)$/,t=Buffer.from([42,134,72,206,61,3,1,7]),r=Buffer.from([43,129,4,0,34]),n=Buffer.from([43,129,4,0,35]),o=Buffer.from([43,129,4,0,10])}else i=Y;let Z=new WeakMap;async function ee(e,t){if("node:crypto"===h.cryptoRuntime&&"object"==typeof t&&"object"==typeof t.key&&"jwk"===t.format)return b(t.key,"kty","crv","x","y","e","n");if(Z.has(t))return Z.get(t);let r=b(await h.exportJWK(e),"kty","crv","x","y","e","n");return(f(t)||"WebCryptoAPI"===h.cryptoRuntime)&&Z.set(t,r),r}e.exports=(e,t=!1)=>class extends X{constructor(...r){super(e,t,...r)}static get issuer(){return e}},e.exports.BaseClient=X},1642:(e,t,r)=>{"use strict";let{inspect:i}=r(3849),{RPError:n,OPError:o}=r(9628),s=r(5976);class a{#n;#o;#s;#a;#l;#c;#u;#d;#h;constructor({client:e,exchangeBody:t,clientAssertionPayload:r,response:i,maxAge:o,DPoP:a}){if(["verification_uri","user_code","device_code"].forEach(e=>{if("string"!=typeof i[e]||!i[e])throw new n(`expected ${e} string to be returned by Device Authorization Response, got %j`,i[e])}),!Number.isSafeInteger(i.expires_in))throw new n("expected expires_in number to be returned by Device Authorization Response, got %j",i.expires_in);this.#c=s()+i.expires_in,this.#o=e,this.#a=a,this.#d=o,this.#l=t,this.#s=r,this.#h=i,this.#u=1e3*i.interval||5e3}abort(){this.#n=!0}async poll({signal:e}={}){let t;if(e&&e.aborted||this.#n)throw new n("polling aborted");if(this.expired())throw new n("the device code %j has expired and the device authorization session has concluded",this.device_code);await new Promise(e=>setTimeout(e,this.#u));try{t=await this.#o.grant({...this.#l,grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:this.device_code},{clientAssertionPayload:this.#s,DPoP:this.#a})}catch(t){switch(t instanceof o&&t.error){case"slow_down":this.#u+=5e3;case"authorization_pending":return this.poll({signal:e});default:throw t}}return"id_token"in t&&(await this.#o.decryptIdToken(t),await this.#o.validateIdToken(t,void 0,"token",this.#d)),t}get device_code(){return this.#h.device_code}get user_code(){return this.#h.user_code}get verification_uri(){return this.#h.verification_uri}get verification_uri_complete(){return this.#h.verification_uri_complete}get expires_in(){return Math.max.apply(null,[this.#c-s(),0])}expired(){return 0===this.expires_in}[i.custom](){return`${this.constructor.name} ${i(this.#h,{depth:1/0,colors:process.stdout.isTTY,compact:!1,sorted:!0})}`}}e.exports=a},9628:(e,t,r)=>{"use strict";let{format:i}=r(3849);class n extends Error{constructor({error_description:e,error:t,error_uri:r,session_state:i,state:n,scope:o},s){super(e?`${t} (${e})`:t),Object.assign(this,{error:t},e&&{error_description:e},r&&{error_uri:r},n&&{state:n},o&&{scope:o},i&&{session_state:i}),s&&Object.defineProperty(this,"response",{value:s}),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}class o extends Error{constructor(...e){if("string"==typeof e[0])super(i(...e));else{let{message:t,printf:r,response:n,...o}=e[0];r?super(i(...r)):super(t),Object.assign(this,o),n&&Object.defineProperty(this,"response",{value:n})}this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}e.exports={OPError:n,RPError:o}},905:e=>{"use strict";e.exports={assertSigningAlgValuesSupport:function(e,t,r){if(!t[`${e}_endpoint`])return;let i=`${e}_endpoint_auth_method`,n=`${e}_endpoint_auth_signing_alg`,o=`${e}_endpoint_auth_signing_alg_values_supported`;if(r[i]&&r[i].endsWith("_jwt")&&!r[n]&&!t[o])throw TypeError(`${o} must be configured on the issuer if ${n} is not defined on a client`)},assertIssuerConfiguration:function(e,t){if(!e[t])throw TypeError(`${t} must be configured on the issuer`)}}},5825:e=>{"use strict";let t;if(Buffer.isEncoding("base64url"))t=(e,t="utf8")=>Buffer.from(e,t).toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");t=(t,r="utf8")=>e(Buffer.from(t,r).toString("base64"))}e.exports.decode=e=>Buffer.from(e,"base64"),e.exports.encode=t},7684:(e,t,r)=>{"use strict";let i=r(5100),{RPError:n}=r(9628),{assertIssuerConfiguration:o}=r(905),{random:s}=r(1914),a=r(5976),l=r(1065),{keystores:c}=r(6207),u=r(3173),d=e=>encodeURIComponent(e).replace(/%20/g,"+");async function h(e,t){let r=this[`${e}_endpoint_auth_signing_alg`];if(r||o(this.issuer,`${e}_endpoint_auth_signing_alg_values_supported`),"client_secret_jwt"===this[`${e}_endpoint_auth_method`]){if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>/^HS(?:256|384|512)/.test(e))}if(!r)throw new n(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);return new i.CompactSign(Buffer.from(JSON.stringify(t))).setProtectedHeader({alg:r}).sign(this.secretForAlg(r))}let s=await c.get(this);if(!s)throw TypeError("no client jwks provided for signing a client assertion with");if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>s.get({alg:e,use:"sig"}))}if(!r)throw new n(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);let a=s.get({alg:r,use:"sig"});if(!a)throw new n(`no key found in client jwks to sign a client assertion with using alg ${r}`);return new i.CompactSign(Buffer.from(JSON.stringify(t))).setProtectedHeader({alg:r,kid:a.jwk&&a.jwk.kid}).sign(await a.keyObject(r))}async function p(e,{clientAssertionPayload:t}={}){switch(this[`${e}_endpoint_auth_method`]){case"self_signed_tls_client_auth":case"tls_client_auth":case"none":return{form:{client_id:this.client_id}};case"client_secret_post":if("string"!=typeof this.client_secret)throw TypeError("client_secret_post client authentication method requires a client_secret");return{form:{client_id:this.client_id,client_secret:this.client_secret}};case"private_key_jwt":case"client_secret_jwt":{let r=a(),i=[...new Set([this.issuer.issuer,this.issuer.token_endpoint].filter(Boolean))],n=await h.call(this,e,{iat:r,exp:r+60,jti:s(),iss:this.client_id,sub:this.client_id,aud:i,...t});return{form:{client_id:this.client_id,client_assertion:n,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}}case"client_secret_basic":{if("string"!=typeof this.client_secret)throw TypeError("client_secret_basic client authentication method requires a client_secret");let e=`${d(this.client_id)}:${d(this.client_secret)}`,t=Buffer.from(e).toString("base64");return{headers:{Authorization:`Basic ${t}`}}}default:throw TypeError(`missing, or unsupported, ${e}_endpoint_auth_method`)}}async function f(e,t,{clientAssertionPayload:r,endpointAuthMethod:i=e,DPoP:n}={}){let o;let s=u(t,await p.call(this,i,{clientAssertionPayload:r})),a=this[`${i}_endpoint_auth_method`].includes("tls_client_auth")||"token"===e&&this.tls_client_certificate_bound_access_tokens;if(a&&this.issuer.mtls_endpoint_aliases&&(o=this.issuer.mtls_endpoint_aliases[`${e}_endpoint`]),o=o||this.issuer[`${e}_endpoint`],"form"in s)for(let[e,t]of Object.entries(s.form))void 0===t&&delete s.form[e];return l.call(this,{...s,method:"POST",url:o,headers:{..."revocation"!==e?{Accept:"application/json"}:void 0,...s.headers}},{mTLS:a,DPoP:n})}e.exports={resolveResponseType:function(){let{length:e,0:t}=this.response_types;if(1===e)return t},resolveRedirectUri:function(){let{length:e,0:t}=this.redirect_uris||[];if(1===e)return t},authFor:p,authenticatedPost:f}},1491:e=>{"use strict";let t=Symbol(),r=Symbol();e.exports={CLOCK_TOLERANCE:r,HTTP_OPTIONS:t}},1773:(e,t,r)=>{"use strict";let i=r(5825);e.exports=e=>{if("string"!=typeof e||!e)throw TypeError("JWT must be a string");let{0:t,1:r,2:n,length:o}=e.split(".");if(5===o)throw TypeError("encrypted JWTs cannot be decoded");if(3!==o)throw Error("JWTs must have three components");try{return{header:JSON.parse(i.decode(t)),payload:JSON.parse(i.decode(r)),signature:n}}catch(e){throw Error("JWT is malformed")}}},7004:e=>{"use strict";e.exports=globalThis.structuredClone||(e=>JSON.parse(JSON.stringify(e)))},498:(e,t,r)=>{"use strict";let i=r(8363);function n(e,t,...r){for(let o of r)if(i(o))for(let[r,s]of Object.entries(o))"__proto__"!==r&&"constructor"!==r&&(void 0===t[r]&&void 0!==s&&(t[r]=s),e&&i(t[r])&&i(s)&&n(!0,t[r],s));return t}e.exports=n.bind(void 0,!1),e.exports.deep=n.bind(void 0,!0)},1914:(e,t,r)=>{"use strict";let{createHash:i,randomBytes:n}=r(6113),o=r(5825),s=(e=32)=>o.encode(n(e));e.exports={random:s,state:s,nonce:s,codeVerifier:s,codeChallenge:e=>o.encode(i("sha256").update(e).digest())}},596:(e,t,r)=>{"use strict";let i=r(3849),n=r(6113);e.exports=i.types.isKeyObject||(e=>e&&e instanceof n.KeyObject)},8363:e=>{"use strict";e.exports=e=>!!e&&e.constructor===Object},4332:(e,t,r)=>{"use strict";let i=r(9394),n=r(8852),{RPError:o}=r(9628),{assertIssuerConfiguration:s}=r(905),a=r(2874),{keystores:l}=r(6207),c=r(9527),u=r(1065),d=new WeakMap,h=new WeakMap,p=e=>(h.has(e)||h.set(e,new n({max:100})),h.get(e));async function f(e=!1){s(this,"jwks_uri");let t=l.get(this),r=p(this);return e||!t?(d.has(this)||(r.reset(),d.set(this,(async()=>{let e=c(await u.call(this,{method:"GET",responseType:"json",url:this.jwks_uri,headers:{Accept:"application/json, application/jwk-set+json"}}).finally(()=>{d.delete(this)})),t=a.fromJWKS(e,{onlyPublic:!0});return r.set("throttle",!0,6e4),l.set(this,t),t})())),d.get(this)):t}async function y({kid:e,kty:t,alg:r,use:n},{allowMulti:s=!1}={}){let a=p(this),l={kid:e,kty:t,alg:r,use:n},c=i(l,{algorithm:"sha256",ignoreUnknown:!0,unorderedArrays:!0,unorderedSets:!0}),u=a.get(c)||a.get("throttle"),d=await f.call(this,!u),h=d.all(l);if(delete l.use,0===h.length)throw new o({printf:["no valid key found in issuer's jwks_uri for key parameters %j",l],jwks:d});if(!s&&h.length>1&&!e)throw new o({printf:["multiple matching keys found in issuer's jwks_uri for key parameters %j, kid must be provided in this case",l],jwks:d});return a.set(c,!0),h}e.exports.queryKeyStore=y,e.exports.keystore=f},2874:(e,t,r)=>{"use strict";let i=r(5100),n=r(7004),o=r(8363),s=Symbol(),a=(e,{alg:t,use:r})=>{let i=0;return t&&e.alg&&i++,r&&e.use&&i++,i};e.exports=class{#p;constructor(e,t){if(e!==s)throw Error("invalid constructor call");this.#p=t}toJWKS(){return{keys:this.map(({jwk:{d:e,p:t,q:r,dp:i,dq:n,qi:o,...s}})=>s)}}all({alg:e,kid:t,use:r}={}){if(!r||!e)throw Error();let i=function(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:return}}(e),n={alg:e,use:r};return this.filter(n=>{let o=!0;return void 0!==i&&n.jwk.kty!==i&&(o=!1),o&&void 0!==t&&n.jwk.kid!==t&&(o=!1),o&&void 0!==r&&void 0!==n.jwk.use&&n.jwk.use!==r&&(o=!1),o&&n.jwk.alg&&n.jwk.alg!==e?o=!1:n.algorithms.has(e)||(o=!1),o}).sort((e,t)=>a(t,n)-a(e,n))}get(...e){return this.all(...e)[0]}static async fromJWKS(e,{onlyPublic:t=!1,onlyPrivate:r=!1}={}){if(!o(e)||!Array.isArray(e.keys)||e.keys.some(e=>!o(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");let a=[];for(let o of e.keys){let{kty:e,kid:s,crv:l}=o=n(o),{alg:c,use:u}=o;if("string"==typeof e&&e&&(void 0===u||"sig"===u||"enc"===u)&&("string"==typeof c||void 0===c)&&("string"==typeof s||void 0===s)){if("EC"===e&&"sig"===u)switch(l){case"P-256":c="ES256";break;case"P-384":c="ES384";break;case"P-521":c="ES512"}if("secp256k1"===l&&(u="sig",c="ES256K"),"OKP"===e)switch(l){case"Ed25519":case"Ed448":u="sig",c="EdDSA";break;case"X25519":case"X448":u="enc"}if(c&&!u)switch(!0){case c.startsWith("ECDH"):case c.startsWith("RSA"):u="enc"}if(r&&("oct"===o.kty||!o.d))throw Error("jwks must only contain private keys");t&&(o.d||o.k)||a.push({jwk:{...o,alg:c,use:u},async keyObject(e){if(this[e])return this[e];let t=await i.importJWK(this.jwk,e);return this[e]=t,t},get algorithms(){return Object.defineProperty(this,"algorithms",{value:function(e,t,r,n){if(t)return new Set([t]);switch(r){case"EC":{let t=[];if(("enc"===e||void 0===e)&&(t=t.concat(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"])),"sig"===e||void 0===e)switch(n){case"P-256":case"P-384":t=t.concat([`ES${n.slice(-3)}`.replace("21","12")]);break;case"P-521":t=t.concat(["ES512"]);break;case"secp256k1":"node:crypto"===i.cryptoRuntime&&(t=t.concat(["ES256K"]))}return new Set(t)}case"OKP":return new Set(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"]);case"RSA":{let t=[];return("enc"===e||void 0===e)&&(t=t.concat(["RSA-OAEP","RSA-OAEP-256","RSA-OAEP-384","RSA-OAEP-512"]),"node:crypto"===i.cryptoRuntime&&(t=t.concat(["RSA1_5"]))),("sig"===e||void 0===e)&&(t=t.concat(["PS256","PS384","PS512","RS256","RS384","RS512"])),new Set(t)}default:throw Error("unreachable")}}(this.jwk.use,this.jwk.alg,this.jwk.kty,this.jwk.crv),enumerable:!0,configurable:!1}),this.algorithms}})}}return new this(s,a)}filter(...e){return this.#p.filter(...e)}find(...e){return this.#p.find(...e)}every(...e){return this.#p.every(...e)}some(...e){return this.#p.some(...e)}map(...e){return this.#p.map(...e)}forEach(...e){return this.#p.forEach(...e)}reduce(...e){return this.#p.reduce(...e)}sort(...e){return this.#p.sort(...e)}*[Symbol.iterator](){for(let e of this.#p)yield e}}},3173:(e,t,r)=>{"use strict";let i=r(8363);e.exports=function e(t,...r){for(let n of r)if(i(n))for(let[r,o]of Object.entries(n))"__proto__"!==r&&"constructor"!==r&&(i(t[r])&&i(o)?t[r]=e(t[r],o):void 0!==o&&(t[r]=o));return t}},6849:e=>{"use strict";e.exports=function(e,...t){let r={};for(let i of t)void 0!==e[i]&&(r[i]=e[i]);return r}},9527:(e,t,r)=>{"use strict";let{STATUS_CODES:i}=r(3685),{format:n}=r(3849),{OPError:o}=r(9628),s=r(6208),a=e=>{let t=s(e.headers["www-authenticate"]);if(t.error)throw new o(t,e)},l=e=>{let t=!1;try{let r;r="object"!=typeof e.body||Buffer.isBuffer(e.body)?JSON.parse(e.body):e.body,(t="string"==typeof r.error&&r.error.length)&&Object.defineProperty(e,"body",{value:r,configurable:!0})}catch(e){}return t};e.exports=function(e,{statusCode:t=200,body:r=!0,bearer:s=!1}={}){if(e.statusCode!==t){if(s&&a(e),l(e))throw new o(e.body,e);throw new o({error:n("expected %i %s, got: %i %s",t,i[t],e.statusCode,i[e.statusCode])},e)}if(r&&!e.body)throw new o({error:n("expected %i %s with body but no body was returned",t,i[t])},e);return e.body}},1065:(e,t,r)=>{"use strict";let i;let n=r(9491),o=r(3477),s=r(3685),a=r(5687),{once:l}=r(2361),{URL:c}=r(7310),u=r(8852),d=r(7605),{RPError:h}=r(9628),p=r(6849),{deep:f}=r(498),{HTTP_OPTIONS:y}=r(1491),g=/^[\x21\x23-\x5B\x5D-\x7E]+$/,m=["agent","ca","cert","crl","headers","key","lookup","passphrase","pfx","timeout"],_=(e,t)=>{i=f({},e.length?p(t,...e):t,i)};function v(e,t,r){r&&(e.removeHeader("content-type"),e.setHeader("content-type",r)),t&&(e.removeHeader("content-length"),e.setHeader("content-length",Buffer.byteLength(t)),e.write(t)),e.end()}_([],{headers:{"User-Agent":`${d.name}/${d.version} (${d.homepage})`,"Accept-Encoding":"identity"},timeout:3500});let w=new u({max:100});e.exports=async function(e,{accessToken:t,mTLS:r=!1,DPoP:u}={}){let d,_,b,S,k,E,A;try{d=new c(e.url),delete e.url,n(/^(https?:)$/.test(d.protocol))}catch(e){throw TypeError("only valid absolute URLs can be requested")}let x=this[y],O=e,T=`${d.origin}${d.pathname}`;if(u&&"dpopProof"in this&&(O.headers=O.headers||{},O.headers.DPoP=await this.dpopProof({htu:`${d.origin}${d.pathname}`,htm:e.method,nonce:w.get(T)},u,t)),x&&(_=p(x.call(this,d,f({},O,i)),...m)),O=f({},_,O,i),r&&!O.pfx&&!(O.key&&O.cert))throw TypeError("mutual-TLS certificate and key not set");if(O.searchParams)for(let[e,t]of Object.entries(O.searchParams))d.searchParams.delete(e),d.searchParams.set(e,t);for(let[e,t]of({form:S,responseType:b,json:k,body:E,...O}=O,Object.entries(O.headers||{})))void 0===t&&delete O.headers[e];let P=("https:"===d.protocol?a.request:s.request)(d.href,O);return(async()=>{if(k?v(P,JSON.stringify(k),"application/json"):S?v(P,o.stringify(S),"application/x-www-form-urlencoded"):E?v(P,E):v(P),[A]=await Promise.race([l(P,"response"),l(P,"timeout")]),!A)throw P.destroy(),new h(`outgoing request timed out after ${O.timeout}ms`);let e=[];for await(let t of A)e.push(t);if(e.length)switch(b){case"json":Object.defineProperty(A,"body",{get(){let t=Buffer.concat(e);try{t=JSON.parse(t)}catch(e){throw Object.defineProperty(e,"response",{value:A}),e}finally{Object.defineProperty(A,"body",{value:t,configurable:!0})}return t},configurable:!0});break;case void 0:case"buffer":Object.defineProperty(A,"body",{get(){let t=Buffer.concat(e);return Object.defineProperty(A,"body",{value:t,configurable:!0}),t},configurable:!0});break;default:throw TypeError("unsupported responseType request option")}return A})().catch(e=>{throw A&&Object.defineProperty(e,"response",{value:A}),e}).finally(()=>{let e=A&&A.headers["dpop-nonce"];e&&g.test(e)&&w.set(T,e)})},e.exports.setDefaults=_.bind(void 0,m)},5976:e=>{"use strict";e.exports=()=>Math.floor(Date.now()/1e3)},6207:e=>{"use strict";e.exports.keystores=new WeakMap},3201:e=>{"use strict";let t=/^\d+$/;e.exports=function(e){if("string"!=typeof e)throw TypeError("input must be a string");return(!function(e){if(e.includes("://"))return!0;let r=e.replace(/(\/|\?)/g,"#").split("#")[0];if(r.includes(":")){let e=r.indexOf(":"),i=r.slice(e+1);if(!t.test(i))return!0}return!1}(e)?!function(e){if(!e.includes("@"))return!1;let t=e.split("@"),r=t[t.length-1];return!(r.includes(":")||r.includes("/")||r.includes("?"))}(e)?`https://${e}`:`acct:${e}`:e).split("#")[0]}},6208:e=>{"use strict";let t=/(\w+)=("[^"]*")/g;e.exports=e=>{let r={};try{for(;null!==t.exec(e);)RegExp.$1&&RegExp.$2&&(r[RegExp.$1]=RegExp.$2.slice(1,-1))}catch(e){}return r}},5684:(e,t,r)=>{"use strict";let i=r(7860),{OPError:n,RPError:o}=r(9628),s=r(6326),a=r(2939),{CLOCK_TOLERANCE:l,HTTP_OPTIONS:c}=r(1491),u=r(1914),{setDefaults:d}=r(1065);e.exports={Issuer:i,Strategy:s,TokenSet:a,errors:{OPError:n,RPError:o},custom:{setHttpOptionsDefaults:d,http_options:c,clock_tolerance:l},generators:u}},7860:(e,t,r)=>{"use strict";let{inspect:i}=r(3849),n=r(7310),{RPError:o}=r(9628),s=r(8576),a=r(2024),l=r(9527),c=r(3201),u=r(1065),d=r(7004),{keystore:h}=r(4332),p=["https://login.microsoftonline.com/common/.well-known/openid-configuration","https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration"],f=Symbol(),y={claim_types_supported:["normal"],claims_parameter_supported:!1,grant_types_supported:["authorization_code","implicit"],request_parameter_supported:!1,request_uri_parameter_supported:!0,require_request_uri_registration:!1,response_modes_supported:["query","fragment"],token_endpoint_auth_methods_supported:["client_secret_basic"]};class g{#e;constructor(e={}){let t=e[f];delete e[f],["introspection","revocation"].forEach(t=>{e[`${t}_endpoint`]&&void 0===e[`${t}_endpoint_auth_methods_supported`]&&void 0===e[`${t}_endpoint_auth_signing_alg_values_supported`]&&(e.token_endpoint_auth_methods_supported&&(e[`${t}_endpoint_auth_methods_supported`]=e.token_endpoint_auth_methods_supported),e.token_endpoint_auth_signing_alg_values_supported&&(e[`${t}_endpoint_auth_signing_alg_values_supported`]=e.token_endpoint_auth_signing_alg_values_supported))}),this.#e=new Map,Object.entries(e).forEach(([e,t])=>{this.#e.set(e,t),this[e]||Object.defineProperty(this,e,{get(){return this.#e.get(e)},enumerable:!0})}),a.set(this.issuer,this);let r=s(this,t);Object.defineProperties(this,{Client:{value:r,enumerable:!0},FAPI1Client:{value:class extends r{},enumerable:!0}})}get metadata(){return d(Object.fromEntries(this.#e.entries()))}static async webfinger(e){let t=c(e),{host:r}=n.parse(t),i=`https://${r}/.well-known/webfinger`,s=l(await u.call(this,{method:"GET",url:i,responseType:"json",searchParams:{resource:t,rel:"http://openid.net/specs/connect/1.0/issuer"},headers:{Accept:"application/json"}})),d=Array.isArray(s.links)&&s.links.find(e=>"object"==typeof e&&"http://openid.net/specs/connect/1.0/issuer"===e.rel&&e.href);if(!d)throw new o({message:"no issuer found in webfinger response",body:s});if("string"!=typeof d.href||!d.href.startsWith("https://"))throw new o({printf:["invalid issuer location %s",d.href],body:s});let h=d.href;if(a.has(h))return a.get(h);let p=await this.discover(h);if(p.issuer!==h)throw a.del(p.issuer),new o("discovered issuer mismatch, expected %s, got: %s",h,p.issuer);return p}static async discover(e){let t=function(e){let t=n.parse(e);if(t.pathname.includes("/.well-known/"))return e;{let e;return e=t.pathname.endsWith("/")?`${t.pathname}.well-known/openid-configuration`:`${t.pathname}/.well-known/openid-configuration`,n.format({...t,pathname:e})}}(e),r=l(await u.call(this,{method:"GET",responseType:"json",url:t,headers:{Accept:"application/json"}}));return new g({...y,...r,[f]:!!p.find(e=>t.startsWith(e))})}async reloadJwksUri(){await h.call(this,!0)}[i.custom](){return`${this.constructor.name} ${i(this.metadata,{depth:1/0,colors:process.stdout.isTTY,compact:!1,sorted:!0})}`}}e.exports=g},2024:(e,t,r)=>{"use strict";let i=r(8852);e.exports=new i({max:100})},6326:(e,t,r)=>{"use strict";let i=r(7310),{format:n}=r(3849),o=r(7004),{RPError:s,OPError:a}=r(9628),{BaseClient:l}=r(8576),{random:c,codeChallenge:u}=r(1914),d=r(6849),{resolveResponseType:h,resolveRedirectUri:p}=r(7684);function f(e,t,r={}){e?this.error(e):t?this.success(t,r):this.fail(r)}function y({client:e,params:t={},passReqToCallback:r=!1,sessionKey:n,usePKCE:s=!0,extras:a={}}={},c){if(!(e instanceof l))throw TypeError("client must be an instance of openid-client Client");if("function"!=typeof c)throw TypeError("verify callback must be a function");if(!e.issuer||!e.issuer.issuer)throw TypeError("client must have an issuer with an identifier");if(this._client=e,this._issuer=e.issuer,this._verify=c,this._passReqToCallback=r,this._usePKCE=s,this._key=n||`oidc:${i.parse(this._issuer.issuer).hostname}`,this._params=o(t),delete this._params.state,delete this._params.nonce,this._extras=o(a),this._params.response_type||(this._params.response_type=h.call(e)),this._params.redirect_uri||(this._params.redirect_uri=p.call(e)),this._params.scope||(this._params.scope="openid"),!0===this._usePKCE){let e=!!Array.isArray(this._issuer.code_challenge_methods_supported)&&this._issuer.code_challenge_methods_supported;if(e&&e.includes("S256"))this._usePKCE="S256";else if(e&&e.includes("plain"))this._usePKCE="plain";else if(e)throw TypeError("neither code_challenge_method supported by the client is supported by the issuer");else this._usePKCE="S256"}else if("string"==typeof this._usePKCE&&!["plain","S256"].includes(this._usePKCE))throw TypeError(`${this._usePKCE} is not valid/implemented PKCE code_challenge_method`);this.name=i.parse(e.issuer.issuer).hostname}y.prototype.authenticate=function(e,t){(async()=>{let r=this._client;if(!e.session)throw TypeError("authentication requires session support");let i=r.callbackParams(e),o=this._key,{0:a,length:l}=Object.keys(i);if(0===l||1===l&&"iss"===a){let i={state:c(),...this._params,...t};if(!i.nonce&&i.response_type.includes("id_token")&&(i.nonce=c()),e.session[o]=d(i,"nonce","state","max_age","response_type"),this._usePKCE&&i.response_type.includes("code")){let t=c();switch(e.session[o].code_verifier=t,this._usePKCE){case"S256":i.code_challenge=u(t),i.code_challenge_method="S256";break;case"plain":i.code_challenge=t}}this.redirect(r.authorizationUrl(i));return}let h=e.session[o];if(0===Object.keys(h||{}).length)throw Error(n('did not find expected authorization request details in session, req.session["%s"] is %j',o,h));let{state:p,nonce:y,max_age:g,code_verifier:m,response_type:_}=h;try{delete e.session[o]}catch(e){}let v={redirect_uri:this._params.redirect_uri,...t},w=await r.callback(v.redirect_uri,i,{state:p,nonce:y,max_age:g,code_verifier:m,response_type:_},this._extras),b=this._passReqToCallback,S=this._verify.length>(b?3:2)&&r.issuer.userinfo_endpoint,k=[w,f.bind(this)];if(S){if(!w.access_token)throw new s({message:"expected access_token to be returned when asking for userinfo in verify callback",tokenset:w});let e=await r.userinfo(w);k.splice(1,0,e)}b&&k.unshift(e),this._verify(...k)})().catch(e=>{e instanceof a&&"server_error"!==e.error&&!e.error.startsWith("invalid")||e instanceof s?this.fail(e):this.error(e)})},e.exports=y},2939:(e,t,r)=>{"use strict";let i=r(5825),n=r(5976);class o{constructor(e){Object.assign(this,e);let{constructor:t,...r}=Object.getOwnPropertyDescriptors(this.constructor.prototype);Object.defineProperties(this,r)}set expires_in(e){this.expires_at=n()+Number(e)}get expires_in(){return Math.max.apply(null,[this.expires_at-n(),0])}expired(){return 0===this.expires_in}claims(){if(!this.id_token)throw TypeError("id_token not present in TokenSet");return JSON.parse(i.decode(this.id_token.split(".")[1]))}}e.exports=o},9394:(e,t,r)=>{"use strict";var i=r(6113);function n(e,t){return t=a(e,t),function(e,t){if(void 0===(r="passthrough"!==t.algorithm?i.createHash(t.algorithm):new u).write&&(r.write=r.update,r.end=r.update),c(t,r).dispatch(e),r.update||r.end(""),r.digest)return r.digest("buffer"===t.encoding?void 0:t.encoding);var r,n=r.read();return"buffer"===t.encoding?n:n.toString(t.encoding)}(e,t)}(t=e.exports=n).sha1=function(e){return n(e)},t.keys=function(e){return n(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},t.MD5=function(e){return n(e,{algorithm:"md5",encoding:"hex"})},t.keysMD5=function(e){return n(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var o=i.getHashes?i.getHashes().slice():["sha1","md5"];o.push("passthrough");var s=["buffer","hex","binary","base64"];function a(e,t){t=t||{};var r={};if(r.algorithm=t.algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=!!t.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=!0===t.ignoreUnknown,r.respectType=!1!==t.respectType,r.respectFunctionNames=!1!==t.respectFunctionNames,r.respectFunctionProperties=!1!==t.respectFunctionProperties,r.unorderedArrays=!0===t.unorderedArrays,r.unorderedSets=!1!==t.unorderedSets,r.unorderedObjects=!1!==t.unorderedObjects,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,void 0===e)throw Error("Object argument required.");for(var i=0;i=0)return this.dispatch("[CIRCULAR:"+s+"]");if(r.push(t),"undefined"!=typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t))return i("buffer:"),i(t);if("object"!==o&&"function"!==o&&"asyncfunction"!==o){if(this["_"+o])this["_"+o](t);else if(e.ignoreUnknown)return i("["+o+"]");else throw Error('Unknown object type "'+o+'"')}else{var a=Object.keys(t);e.unorderedObjects&&(a=a.sort()),!1===e.respectType||l(t)||a.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(a=a.filter(function(t){return!e.excludeKeys(t)})),i("object:"+a.length+":");var c=this;return a.forEach(function(r){c.dispatch(r),i(":"),e.excludeValues||c.dispatch(t[r]),i(",")})}},_array:function(t,n){n=void 0!==n?n:!1!==e.unorderedArrays;var o=this;if(i("array:"+t.length+":"),!n||t.length<=1)return t.forEach(function(e){return o.dispatch(e)});var s=[],a=t.map(function(t){var i=new u,n=r.slice();return c(e,i,n).dispatch(t),s=s.concat(n.slice(r.length)),i.read().toString()});return r=r.concat(s),a.sort(),this._array(a,!1)},_date:function(e){return i("date:"+e.toJSON())},_symbol:function(e){return i("symbol:"+e.toString())},_error:function(e){return i("error:"+e.toString())},_boolean:function(e){return i("bool:"+e.toString())},_string:function(e){i("string:"+e.length+":"),i(e.toString())},_function:function(t){i("fn:"),l(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return i("number:"+e.toString())},_xml:function(e){return i("xml:"+e.toString())},_null:function(){return i("Null")},_undefined:function(){return i("Undefined")},_regexp:function(e){return i("regex:"+e.toString())},_uint8array:function(e){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return i("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return i("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return i("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return i("url:"+e.toString(),"utf8")},_map:function(t){i("map:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_set:function(t){i("set:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_file:function(e){return i("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return i("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return i("domwindow")},_bigint:function(e){return i("bigint:"+e.toString())},_process:function(){return i("process")},_timer:function(){return i("timer")},_pipe:function(){return i("pipe")},_tcp:function(){return i("tcp")},_udp:function(){return i("udp")},_tty:function(){return i("tty")},_statwatcher:function(){return i("statwatcher")},_securecontext:function(){return i("securecontext")},_connection:function(){return i("connection")},_zlib:function(){return i("zlib")},_context:function(){return i("context")},_nodescript:function(){return i("nodescript")},_httpparser:function(){return i("httpparser")},_dataview:function(){return i("dataview")},_signal:function(){return i("signal")},_fsevent:function(){return i("fsevent")},_tlswrap:function(){return i("tlswrap")}}}function u(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}t.writeToStream=function(e,t,r){return void 0===r&&(r=t,t={}),c(t=a(e,t),r).dispatch(e)}},5524:function(e,t,r){(function(e,t){var r=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,i=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,n=/[\s\n\\/='"\0<>]/,o=/^xlink:?./,s=/["&<]/;function a(e){if(!1===s.test(e+=""))return e;for(var t=0,r=0,i="",n="";r(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},u={},d=/([A-Z])/g;function h(e){var t="";for(var i in e){var n=e[i];null!=n&&""!==n&&(t&&(t+=" "),t+="-"==i[0]?i:u[i]||(u[i]=i.replace(d,"-$1").toLowerCase()),t="number"==typeof n&&!1===r.test(i)?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function p(e,t){return Array.isArray(t)?t.reduce(p,e):null!=t&&!1!==t&&e.push(t),e}function f(){this.__d=!0}function y(e,t){return{__v:e,context:t,props:e.props,setState:f,forceUpdate:f,__d:!0,__h:[]}}function g(e,t){var r=e.contextType,i=r&&t[r.__c];return null!=r?i?i.props.value:r.__:t}var m=[],_={shallow:!0};b.render=b;var v=function(e,t){return b(e,t,_)},w=[];function b(e,r,s){r=r||{};var u=t.options.__s;t.options.__s=!0;var d,f=t.h(t.Fragment,null);return f.__k=[e],d=s&&(s.pretty||s.voidElements||s.sortAttributes||s.shallow||s.allAttributes||s.xml||s.attributeHook)?function e(r,s,u,d,f,_){if(null==r||"boolean"==typeof r)return"";if("object"!=typeof r)return"function"==typeof r?"":a(r);var v=u.pretty,w=v&&"string"==typeof v?v:" ";if(Array.isArray(r)){for(var b="",S=0;S0&&(b+="\n"),b+=e(r[S],s,u,d,f,_);return b}if(void 0!==r.constructor)return"";var k,E=r.type,A=r.props,x=!1;if("function"==typeof E){if(x=!0,!u.shallow||!d&&!1!==u.renderRootComponent){if(E===t.Fragment){var O=[];return p(O,r.props.children),e(O,s,u,!1!==u.shallowHighOrder,f,_)}var T,P=r.__c=y(r,s);t.options.__b&&t.options.__b(r);var j=t.options.__r;if(E.prototype&&"function"==typeof E.prototype.render){var C=g(E,s);(P=r.__c=new E(A,C)).__v=r,P._dirty=P.__d=!0,P.props=A,null==P.state&&(P.state={}),null==P._nextState&&null==P.__s&&(P._nextState=P.__s=P.state),P.context=C,E.getDerivedStateFromProps?P.state=Object.assign({},P.state,E.getDerivedStateFromProps(P.props,P.state)):P.componentWillMount&&(P.componentWillMount(),P.state=P._nextState!==P.state?P._nextState:P.__s!==P.state?P.__s:P.state),j&&j(r),T=P.render(P.props,P.state,P.context)}else for(var I=g(E,s),$=0;P.__d&&$++<25;)P.__d=!1,j&&j(r),T=E.call(r.__c,A,I);return P.getChildContext&&(s=Object.assign({},s,P.getChildContext())),t.options.diffed&&t.options.diffed(r),e(T,s,u,!1!==u.shallowHighOrder,f,_)}E=(k=E).displayName||k!==Function&&k.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,i=m.length;i--;)if(m[i]===e){r=i;break}r<0&&(r=m.push(e)-1),t="UnnamedComponent"+r}return t}(k)}var J,M,N="<"+E;if(A){var R=Object.keys(A);u&&!0===u.sortAttributes&&R.sort();for(var W=0;W",n.test(E))throw Error(E+" is not a valid HTML tag name in "+N);var q,L=i.test(E)||u.voidElements&&u.voidElements.test(E),B=[];if(M)v&&c(M)&&(M="\n"+w+l(M,w)),N+=M;else if(null!=J&&p(q=[],J).length){for(var Q=v&&~N.indexOf("\n"),z=!1,F=0;F0&&"<"!=G[0];z&&X?B[B.length-1]+=G:B.push(G),z=X}else B.push(G)}}}if(v&&Q)for(var Y=B.length;Y--;)B[Y]="\n"+w+l(B[Y],w)}if(B.length||M)N+=B.join("");else if(u&&u.xml)return N.substring(0,N.length-1)+" />";return!L||q||M?(v&&~N.indexOf("\n")&&(N+="\n"),N=N+""):N=N.replace(/>$/," />"),N}(e,r,s):function e(r,s,l,c,u){if(null==r||!0===r||!1===r||""===r)return"";if("object"!=typeof r)return"function"==typeof r?"":a(r);if(k(r)){var d="";u.__k=r;for(var p=0;p",n.test(f))throw Error(f+" is not a valid HTML tag name in "+C);var W="",K=!1;if(j)W+=j,K=!0;else if("string"==typeof P)W+=a(P),K=!0;else if(k(P)){r.__k=P;for(var U=0;U";return C+""}(e,r,!1,void 0,f),t.options.__c&&t.options.__c(e,w),t.options.__s=u,w.length=0,d}function S(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?t.h(null,null,e):e}var k=Array.isArray,E=Object.assign;b.shallowRender=v,e.default=b,e.render=b,e.renderToStaticMarkup=b,e.renderToString=b,e.shallowRender=v})(t,r(2806))},2824:(e,t,r)=>{"use strict";e.exports=r(5524).default},2806:(e,t)=>{var r,i,n,o,s,a,l,c,u={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function f(e,t){for(var r in t)e[r]=t[r];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,i){var n,o,s,a={};for(s in t)"key"==s?n=t[s]:"ref"==s?o=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):i),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return m(e,a,n,o,null)}function m(e,t,r,o,s){var a={type:e,props:t,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++n:s,__i:-1,__u:0};return null==s&&null!=i.vnode&&i.vnode(a),a}function _(e){return e.children}function v(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__i+1):null;for(var r;tr?(P(n,t,s),s.length=n.length=0,t=void 0,o.sort(l)):t&&i.__c&&i.__c(t,d));t&&P(n,t,s),S.__r=0}function k(e,t,r,i,n,o,s,a,l,c,h){var f,y,g,v,b,S=i&&i.__k||d,k=t.length;for(r.__d=l,function(e,t,r){var i,n,o,s,a,l=t.length,c=r.length,u=c,d=0;for(e.__k=[],i=0;i0?m(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)?(n.__=e,n.__b=e.__b+1,a=function(e,t,r,i){var n=e.key,o=e.type,s=r-1,a=r+1,l=t[r];if(null===l||l&&n==l.key&&o===l.type)return r;if(i>(null!=l&&0==(131072&l.__u)?1:0))for(;s>=0||a=0){if((l=t[s])&&0==(131072&l.__u)&&n==l.key&&o===l.type)return s;s--}if(as?u>l-s?d+=a-s:d--:d=a2&&(l.children=arguments.length>3?r.call(arguments,2):i),m(e.type,l,n||e.key,o||e.ref,null)},t.createContext=function(e,t){var r={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,i;return this.getChildContext||(r=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some(function(e){e.__e=!0,b(e)})},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,r){$(t,r,e)},t.isValidElement=function(e){return null!=e&&null==e.constructor},t.options=i,t.render=$,t.toChildArray=function e(t,r){return r=r||[],null==t||"boolean"==typeof t||(p(t)?t.some(function(t){e(t,r)}):r.push(t)),r}},2295:(e,t,r)=>{"use strict";let i,n;r.r(t),r.d(t,{NIL:()=>S,parse:()=>m,stringify:()=>p,v1:()=>g,v3:()=>v,v4:()=>w,v5:()=>b,validate:()=>d,version:()=>k});var o=r(6113),s=r.n(o);let a=new Uint8Array(256),l=a.length;function c(){return l>a.length-16&&(s().randomFillSync(a),l=0),a.slice(l,l+=16)}let u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,d=function(e){return"string"==typeof e&&u.test(e)},h=[];for(let e=0;e<256;++e)h.push((e+256).toString(16).substr(1));let p=function(e,t=0){let r=(h[e[t+0]]+h[e[t+1]]+h[e[t+2]]+h[e[t+3]]+"-"+h[e[t+4]]+h[e[t+5]]+"-"+h[e[t+6]]+h[e[t+7]]+"-"+h[e[t+8]]+h[e[t+9]]+"-"+h[e[t+10]]+h[e[t+11]]+h[e[t+12]]+h[e[t+13]]+h[e[t+14]]+h[e[t+15]]).toLowerCase();if(!d(r))throw TypeError("Stringified UUID is invalid");return r},f=0,y=0,g=function(e,t,r){let o=t&&r||0,s=t||Array(16),a=(e=e||{}).node||i,l=void 0!==e.clockseq?e.clockseq:n;if(null==a||null==l){let t=e.random||(e.rng||c)();null==a&&(a=i=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==l&&(l=n=(t[6]<<8|t[7])&16383)}let u=void 0!==e.msecs?e.msecs:Date.now(),d=void 0!==e.nsecs?e.nsecs:y+1,h=u-f+(d-y)/1e4;if(h<0&&void 0===e.clockseq&&(l=l+1&16383),(h<0||u>f)&&void 0===e.nsecs&&(d=0),d>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");f=u,y=d,n=l;let g=((268435455&(u+=122192928e5))*1e4+d)%4294967296;s[o++]=g>>>24&255,s[o++]=g>>>16&255,s[o++]=g>>>8&255,s[o++]=255&g;let m=u/4294967296*1e4&268435455;s[o++]=m>>>8&255,s[o++]=255&m,s[o++]=m>>>24&15|16,s[o++]=m>>>16&255,s[o++]=l>>>8|128,s[o++]=255&l;for(let e=0;e<6;++e)s[o+e]=a[e];return t||p(s)},m=function(e){let t;if(!d(e))throw TypeError("Invalid UUID");let r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function _(e,t,r){function i(e,i,n,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},4634:(e,t,r)=>{"use strict";function i(e){var t=this;if(t instanceof i||(t=new i),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,n=arguments.length;r1)r=t;else if(this.head)i=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var n=0;null!==i;n++)r=e(r,i.value,n),i=i.next;return r},i.prototype.reduceReverse=function(e,t){var r,i=this.tail;if(arguments.length>1)r=t;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;null!==i;n--)r=e(r,i.value,n),i=i.prev;return r},i.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},i.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},i.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new i;if(tthis.length&&(t=this.length);for(var n=0,o=this.head;null!==o&&nthis.length&&(t=this.length);for(var n=this.length,o=this.tail;null!==o&&n>t;n--)o=o.prev;for(;null!==o&&n>e;n--,o=o.prev)r.push(o.value);return r},i.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i{"use strict";e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6255:e=>{"use strict";function t(e,t,r,i,n,o,s){try{var a=e[o](s),l=a.value}catch(e){r(e);return}a.done?t(l):Promise.resolve(l).then(i,n)}e.exports=function(e){return function(){var r=this,i=arguments;return new Promise(function(n,o){var s=e.apply(r,i);function a(e){t(s,n,o,a,l,"next",e)}function l(e){t(s,n,o,a,l,"throw",e)}a(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},1193:e=>{"use strict";e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},9544:e=>{"use strict";e.exports=function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}},e.exports.__esModule=!0,e.exports.default=e.exports},430:e=>{"use strict";e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},628:e=>{"use strict";e.exports=function(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7972:(e,t,r)=>{"use strict";var i=r(1193),n=r(628);e.exports=function(e,t){var r=n(e,t,"get");return i(e,r)},e.exports.__esModule=!0,e.exports.default=e.exports},3203:(e,t,r)=>{"use strict";var i=r(9544),n=r(628);e.exports=function(e,t,r){var o=n(e,t,"set");return i(e,o,r),r},e.exports.__esModule=!0,e.exports.default=e.exports},7862:(e,t,r)=>{"use strict";var i=r(1178),n=r(569);e.exports=function(e,t,r){if(n())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var s=new(e.bind.apply(e,o));return r&&i(s,r.prototype),s},e.exports.__esModule=!0,e.exports.default=e.exports},7821:(e,t,r)=>{"use strict";var i=r(6584);function n(e,t){for(var r=0;r{"use strict";var i=r(6584);e.exports=function(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},7701:e=>{"use strict";function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},162:(e,t,r)=>{"use strict";var i=r(1178);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},6718:e=>{"use strict";e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},2808:e=>{"use strict";e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},569:e=>{"use strict";function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3144:(e,t,r)=>{"use strict";var i=r(2332).default,n=r(1721);e.exports=function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7531:(e,t,r)=>{"use strict";var i=r(2332).default;function n(){e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},o=Object.prototype,s=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,r){return e[t]=r}}function p(e,r,i,n){var o,s,l=Object.create((r&&r.prototype instanceof v?r:v).prototype);return a(l,"_invoke",{value:(o=new j(n||[]),s=y,function(r,n){if(s===g)throw Error("Generator is already running");if(s===m){if("throw"===r)throw n;return{value:t,done:!0}}for(o.method=r,o.arg=n;;){var a=o.delegate;if(a){var l=function e(r,i){var n=i.method,o=r.iterator[n];if(o===t)return i.delegate=null,"throw"===n&&r.iterator.return&&(i.method="return",i.arg=t,e(r,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=TypeError("The iterator does not provide a '"+n+"' method")),_;var s=f(o,r.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,_;var a=s.arg;return a?a.done?(i[r.resultName]=a.value,i.next=r.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,_):a:(i.method="throw",i.arg=TypeError("iterator result is not an object"),i.delegate=null,_)}(a,o);if(l){if(l===_)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===y)throw s=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=g;var c=f(e,i,o);if("normal"===c.type){if(s=o.done?m:"suspendedYield",c.arg===_)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(s=m,o.method="throw",o.arg=c.arg)}})}),l}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var y="suspendedStart",g="executing",m="completed",_={};function v(){}function w(){}function b(){}var S={};h(S,c,function(){return this});var k=Object.getPrototypeOf,E=k&&k(k(C([])));E&&E!==o&&s.call(E,c)&&(S=E);var A=b.prototype=v.prototype=Object.create(S);function x(e){["next","throw","return"].forEach(function(t){h(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){var r;a(this,"_invoke",{value:function(n,o){function a(){return new t(function(r,a){!function r(n,o,a,l){var c=f(e[n],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==i(d)&&s.call(d,"__await")?t.resolve(d.__await).then(function(e){r("next",e,a,l)},function(e){r("throw",e,a,l)}):t.resolve(d).then(function(e){u.value=e,a(u)},function(e){return r("throw",e,a,l)})}l(c.arg)}(n,o,r,a)})}return r=r?r.then(a,a):a()}})}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function r(){for(;++n=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var n=i.arg;P(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,r,i){return this.delegate={iterator:C(e),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),_}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},1178:e=>{"use strict";function t(r,i){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7371:(e,t,r)=>{"use strict";var i=r(2332).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6584:(e,t,r)=>{"use strict";var i=r(2332).default,n=r(7371);e.exports=function(e){var t=n(e,"string");return"symbol"==i(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},2332:e=>{"use strict";function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},148:(e,t,r)=>{"use strict";var i=r(1100),n=r(1178),o=r(2808),s=r(7862);function a(t){var r="function"==typeof Map?new Map:void 0;return e.exports=a=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return s(e,arguments,i(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},7315:(e,t,r)=>{"use strict";var i=r(7531)();e.exports=i;try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},8654:(e,t,r)=>{"use strict";r.d(t,{O:()=>o});var i=r(1671),n=r(3251);let o=(0,i.D)({server:{DATABASE_URL:n.z.string().refine(e=>!e.includes("YOUR_MYSQL_URL_HERE"),"You forgot to change the default URL"),NODE_ENV:n.z.enum(["development","test","production"]).default("development"),NEXTAUTH_SECRET:n.z.string(),NEXTAUTH_URL:n.z.preprocess(e=>process.env.VERCEL_URL??e,process.env.VERCEL?n.z.string():n.z.string().url()),GOOGLE_CLIENT_ID:n.z.string(),GOOGLE_CLIENT_SECRET:n.z.string()},client:{},runtimeEnv:{DATABASE_URL:process.env.DATABASE_URL,NODE_ENV:"production",NEXTAUTH_SECRET:process.env.NEXTAUTH_SECRET,NEXTAUTH_URL:process.env.NEXTAUTH_URL,GOOGLE_CLIENT_ID:process.env.GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET:process.env.GOOGLE_CLIENT_SECRET},skipValidation:!!process.env.SKIP_ENV_VALIDATION,emptyStringAsUndefined:!0})},7605:e=>{"use strict";e.exports=JSON.parse('{"name":"openid-client","version":"5.6.4","description":"OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs","keywords":["auth","authentication","basic","certified","client","connect","dynamic","electron","hybrid","identity","implicit","oauth","oauth2","oidc","openid","passport","relying party","strategy"],"homepage":"https://github.com/panva/node-openid-client","repository":"panva/node-openid-client","funding":{"url":"https://github.com/sponsors/panva"},"license":"MIT","author":"Filip Skokan ","exports":{"types":"./types/index.d.ts","import":"./lib/index.mjs","require":"./lib/index.js"},"main":"./lib/index.js","types":"./types/index.d.ts","files":["lib","types/index.d.ts"],"scripts":{"format":"npx prettier --loglevel silent --write ./lib ./test ./certification ./types","test":"mocha test/**/*.test.js"},"dependencies":{"jose":"^4.15.4","lru-cache":"^6.0.0","object-hash":"^2.2.0","oidc-token-hash":"^5.0.3"},"devDependencies":{"@types/node":"^16.18.59","@types/passport":"^1.0.14","base64url":"^3.0.1","chai":"^4.3.10","mocha":"^10.2.0","nock":"^13.3.6","prettier":"^2.8.8","readable-mock-req":"^0.2.2","sinon":"^9.2.4","timekeeper":"^2.3.1"},"standard-version":{"scripts":{"postchangelog":"sed -i \'\' -e \'s/### \\\\[/## [/g\' CHANGELOG.md"},"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Fixes"},{"type":"chore","hidden":true},{"type":"docs","hidden":true},{"type":"style","hidden":true},{"type":"refactor","section":"Refactor","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"test","hidden":true}]}}')}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[369,917],()=>r(2789));module.exports=i})(); \ No newline at end of file diff --git a/apps/web/.next/server/app/api/auth/[...nextauth]/route.js.nft.json b/apps/web/.next/server/app/api/auth/[...nextauth]/route.js.nft.json new file mode 100644 index 00000000..c8e17b9b --- /dev/null +++ b/apps/web/.next/server/app/api/auth/[...nextauth]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../package.json","../../../../../package.json","../../../../chunks/369.js","../../../../chunks/917.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/apps/web/.next/server/app/api/store/route.js b/apps/web/.next/server/app/api/store/route.js new file mode 100644 index 00000000..975b3dad --- /dev/null +++ b/apps/web/.next/server/app/api/store/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=745,e.ids=[745],e.modules={517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},5626:(e,t,r)=>{r.r(t),r.d(t,{headerHooks:()=>g,originalPathname:()=>P,patchFetch:()=>v,requestAsyncStorage:()=>f,routeModule:()=>c,serverHooks:()=>m,staticGenerationAsyncStorage:()=>p,staticGenerationBailout:()=>b});var n={};r.r(n),r.d(n,{GET:()=>h});var s=r(2390),o=r(1498),a=r(9308),i=r(5054),l=r(4990),u=r(246),d=r(7024);async function h(e){try{let t=e.cookies.get("next-auth.session-token")?.value??e.headers.get("Authorization")?.replace("Bearer ",""),r=await i.db.select().from(u.sessions).where((0,l.eq)(u.sessions.sessionToken,t)).leftJoin(u.users,(0,l.eq)(u.sessions.userId,u.users.id));if(!r||0===r.length)return d.Z.json({message:"Invalid Key, session not found."},{status:404});return d.Z.json({message:"OK",data:r[0]},{status:200})}catch(e){return d.Z.json({message:"Error",error:e},{status:500})}}let c=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/store/route",pathname:"/api/store",filename:"route",bundlePath:"app/api/store/route"},resolvedPagePath:"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/api/store/route.ts",nextConfigOutput:"",userland:n}),{requestAsyncStorage:f,staticGenerationAsyncStorage:p,serverHooks:m,headerHooks:g,staticGenerationBailout:b}=c,P="/api/store/route";function v(){return(0,a.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:p})}},5054:(e,t,r)=>{r.d(t,{db:()=>l});let n=require("better-sqlite3");var s=r.n(n),o=r(9404),a=r(8654),i=r(246);let l=(0,o.t)(new(s())(a.O.DATABASE_URL,{fileMustExist:!1}),{schema:i})},246:(e,t,r)=>{r.r(t),r.d(t,{accounts:()=>p,accountsRelations:()=>m,createTable:()=>d,posts:()=>h,sessions:()=>g,sessionsRelations:()=>b,users:()=>c,usersRelations:()=>f,verificationTokens:()=>P});var n=r(2393),s=r(9349),o=r(5225),a=r(9415),i=r(440),l=r(7591),u=r(7357);let d=(0,o._9)(e=>`anycontext_${e}`),h=d("post",{id:(0,a.e$)("id",{mode:"number"}).primaryKey({autoIncrement:!0}),name:(0,i.fL)("name",{length:256}),createdById:(0,i.fL)("createdById",{length:255}).notNull().references(()=>c.id),createdAt:(0,a.e$)("created_at",{mode:"timestamp"}).default(n.i6`CURRENT_TIMESTAMP`).notNull(),updatedAt:(0,a.e$)("updatedAt",{mode:"timestamp"})},e=>({createdByIdIdx:(0,l.Kz)("createdById_idx").on(e.createdById),nameIndex:(0,l.Kz)("name_idx").on(e.name)})),c=d("user",{id:(0,i.fL)("id",{length:255}).notNull().primaryKey(),name:(0,i.fL)("name",{length:255}),email:(0,i.fL)("email",{length:255}).notNull(),emailVerified:(0,a.e$)("emailVerified",{mode:"timestamp"}).default(n.i6`CURRENT_TIMESTAMP`),image:(0,i.fL)("image",{length:255})}),f=(0,s.lE)(c,({many:e})=>({accounts:e(p)})),p=d("account",{userId:(0,i.fL)("userId",{length:255}).notNull().references(()=>c.id),type:(0,i.fL)("type",{length:255}).$type().notNull(),provider:(0,i.fL)("provider",{length:255}).notNull(),providerAccountId:(0,i.fL)("providerAccountId",{length:255}).notNull(),refresh_token:(0,i.fL)("refresh_token"),access_token:(0,i.fL)("access_token"),expires_at:(0,a.e$)("expires_at"),token_type:(0,i.fL)("token_type",{length:255}),scope:(0,i.fL)("scope",{length:255}),id_token:(0,i.fL)("id_token"),session_state:(0,i.fL)("session_state",{length:255})},e=>({compoundKey:(0,u.CK)({columns:[e.provider,e.providerAccountId]}),userIdIdx:(0,l.Kz)("account_userId_idx").on(e.userId)})),m=(0,s.lE)(p,({one:e})=>({user:e(c,{fields:[p.userId],references:[c.id]})})),g=d("session",{sessionToken:(0,i.fL)("sessionToken",{length:255}).notNull().primaryKey(),userId:(0,i.fL)("userId",{length:255}).notNull().references(()=>c.id),expires:(0,a.e$)("expires",{mode:"timestamp"}).notNull()},e=>({userIdIdx:(0,l.Kz)("session_userId_idx").on(e.userId)})),b=(0,s.lE)(g,({one:e})=>({user:e(c,{fields:[g.userId],references:[c.id]})})),P=d("verificationToken",{identifier:(0,i.fL)("identifier",{length:255}).notNull(),token:(0,i.fL)("token",{length:255}).notNull(),expires:(0,a.e$)("expires",{mode:"timestamp"}).notNull()},e=>({compoundKey:(0,u.CK)({columns:[e.identifier,e.token]})}))},7024:(e,t,r)=>{Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return n.NextResponse}});let n=r(8681)},5535:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NextURL",{enumerable:!0,get:function(){return d}});let n=r(1309),s=r(3570),o=r(1858),a=r(8375),i=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function l(e,t){return new URL(String(e).replace(i,"localhost"),t&&String(t).replace(i,"localhost"))}let u=Symbol("NextURLInternal");class d{constructor(e,t,r){let n,s;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,s=r||{}):s=r||t||{},this[u]={url:l(e,n??s.base),options:s,basePath:""},this.analyze()}analyze(){var e,t,r,s,i;let l=(0,a.getNextPathnameInfo)(this[u].url.pathname,{nextConfig:this[u].options.nextConfig,parseData:!0,i18nProvider:this[u].options.i18nProvider}),d=(0,o.getHostname)(this[u].url,this[u].options.headers);this[u].domainLocale=this[u].options.i18nProvider?this[u].options.i18nProvider.detectDomainLocale(d):(0,n.detectDomainLocale)(null==(t=this[u].options.nextConfig)?void 0:null==(e=t.i18n)?void 0:e.domains,d);let h=(null==(r=this[u].domainLocale)?void 0:r.defaultLocale)||(null==(i=this[u].options.nextConfig)?void 0:null==(s=i.i18n)?void 0:s.defaultLocale);this[u].url.pathname=l.pathname,this[u].defaultLocale=h,this[u].basePath=l.basePath??"",this[u].buildId=l.buildId,this[u].locale=l.locale??h,this[u].trailingSlash=l.trailingSlash}formatPathname(){return(0,s.formatNextPathnameInfo)({basePath:this[u].basePath,buildId:this[u].buildId,defaultLocale:this[u].options.forceLocale?void 0:this[u].defaultLocale,locale:this[u].locale,pathname:this[u].url.pathname,trailingSlash:this[u].trailingSlash})}formatSearch(){return this[u].url.search}get buildId(){return this[u].buildId}set buildId(e){this[u].buildId=e}get locale(){return this[u].locale??""}set locale(e){var t,r;if(!this[u].locale||!(null==(r=this[u].options.nextConfig)?void 0:null==(t=r.i18n)?void 0:t.locales.includes(e)))throw TypeError(`The NextURL configuration includes no locale "${e}"`);this[u].locale=e}get defaultLocale(){return this[u].defaultLocale}get domainLocale(){return this[u].domainLocale}get searchParams(){return this[u].url.searchParams}get host(){return this[u].url.host}set host(e){this[u].url.host=e}get hostname(){return this[u].url.hostname}set hostname(e){this[u].url.hostname=e}get port(){return this[u].url.port}set port(e){this[u].url.port=e}get protocol(){return this[u].url.protocol}set protocol(e){this[u].url.protocol=e}get href(){let e=this.formatPathname(),t=this.formatSearch();return`${this.protocol}//${this.host}${e}${t}${this.hash}`}set href(e){this[u].url=l(e),this.analyze()}get origin(){return this[u].url.origin}get pathname(){return this[u].url.pathname}set pathname(e){this[u].url.pathname=e}get hash(){return this[u].url.hash}set hash(e){this[u].url.hash=e}get search(){return this[u].url.search}set search(e){this[u].url.search=e}get password(){return this[u].url.password}set password(e){this[u].url.password=e}get username(){return this[u].url.username}set username(e){this[u].url.username=e}get basePath(){return this[u].basePath}set basePath(e){this[u].basePath=e.startsWith("/")?e:`/${e}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new d(String(this),this[u].options)}}},8681:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NextResponse",{enumerable:!0,get:function(){return u}});let n=r(5535),s=r(9960),o=r(8005),a=Symbol("internal response"),i=new Set([301,302,303,307,308]);function l(e,t){var r;if(null==e?void 0:null==(r=e.request)?void 0:r.headers){if(!(e.request.headers instanceof Headers))throw Error("request.headers must be an instance of Headers");let r=[];for(let[n,s]of e.request.headers)t.set("x-middleware-request-"+n,s),r.push(n);t.set("x-middleware-override-headers",r.join(","))}}class u extends Response{constructor(e,t={}){super(e,t),this[a]={cookies:new o.ResponseCookies(this.headers),url:t.url?new n.NextURL(t.url,{headers:(0,s.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:t.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[a].cookies}static json(e,t){let r=Response.json(e,t);return new u(r.body,r)}static redirect(e,t){let r="number"==typeof t?t:(null==t?void 0:t.status)??307;if(!i.has(r))throw RangeError('Failed to execute "redirect" on "response": Invalid status code');let n="object"==typeof t?t:{},o=new Headers(null==n?void 0:n.headers);return o.set("Location",(0,s.validateURL)(e)),new u(null,{...n,headers:o,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,s.validateURL)(e)),l(t,r),new u(null,{...t,headers:r})}static next(e){let t=new Headers(null==e?void 0:e.headers);return t.set("x-middleware-next","1"),l(e,t),new u(null,{...e,headers:t})}}},9960:(e,t)=>{function r(e){let t=new Headers;for(let[r,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])void 0!==e&&("number"==typeof e&&(e=e.toString()),t.append(r,e));return t}function n(e){var t,r,n,s,o,a=[],i=0;function l(){for(;i=e.length)&&a.push(e.substring(t,e.length))}return a}function s(e){let t={},r=[];if(e)for(let[s,o]of e.entries())"set-cookie"===s.toLowerCase()?(r.push(...n(o)),t[s]=1===r.length?r[0]:r):t[s]=o;return t}function o(e){try{return String(new URL(String(e)))}catch(t){throw Error(`URL is malformed "${String(e)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:t})}}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{fromNodeOutgoingHttpHeaders:function(){return r},splitCookiesString:function(){return n},toNodeOutgoingHttpHeaders:function(){return s},validateURL:function(){return o}})},1858:(e,t)=>{function r(e,t){let r;if((null==t?void 0:t.host)&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getHostname",{enumerable:!0,get:function(){return r}})},1309:(e,t)=>{function r(e,t,r){if(e)for(let o of(r&&(r=r.toLowerCase()),e)){var n,s;if(t===(null==(n=o.domain)?void 0:n.split(":",1)[0].toLowerCase())||r===o.defaultLocale.toLowerCase()||(null==(s=o.locales)?void 0:s.some(e=>e.toLowerCase()===r)))return o}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}})},4429:(e,t)=>{function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},8606:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});let n=r(6553),s=r(1562);function o(e,t,r,o){if(!t||t===r)return e;let a=e.toLowerCase();return!o&&((0,s.pathHasPrefix)(a,"/api")||(0,s.pathHasPrefix)(a,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},6553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return s}});let n=r(4774);function s(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:s,hash:o}=(0,n.parsePath)(e);return""+t+r+s+o}},726:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return s}});let n=r(4774);function s(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:s,hash:o}=(0,n.parsePath)(e);return""+r+t+s+o}},3570:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(3662),s=r(6553),o=r(726),a=r(8606);function i(e){let t=(0,a.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,o.addPathSuffix)((0,s.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,s.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,o.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},8375:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return a}});let n=r(4429),s=r(2487),o=r(1562);function a(e,t){var r,a;let{basePath:i,i18n:l,trailingSlash:u}=null!=(r=t.nextConfig)?r:{},d={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};i&&(0,o.pathHasPrefix)(d.pathname,i)&&(d.pathname=(0,s.removePathPrefix)(d.pathname,i),d.basePath=i);let h=d.pathname;if(d.pathname.startsWith("/_next/data/")&&d.pathname.endsWith(".json")){let e=d.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];d.buildId=r,h="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(d.pathname=h)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(d.pathname):(0,n.normalizeLocalePath)(d.pathname,l.locales);d.locale=e.detectedLocale,d.pathname=null!=(a=e.pathname)?a:d.pathname,!e.detectedLocale&&d.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(h):(0,n.normalizeLocalePath)(h,l.locales)).detectedLocale&&(d.locale=e.detectedLocale)}return d}},4774:(e,t)=>{function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},1562:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return s}});let n=r(4774);function s(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},2487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return s}});let n=r(1562);function s(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},3662:(e,t)=>{function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},8654:(e,t,r)=>{r.d(t,{O:()=>o});var n=r(1671),s=r(3251);let o=(0,n.D)({server:{DATABASE_URL:s.z.string().refine(e=>!e.includes("YOUR_MYSQL_URL_HERE"),"You forgot to change the default URL"),NODE_ENV:s.z.enum(["development","test","production"]).default("development"),NEXTAUTH_SECRET:s.z.string(),NEXTAUTH_URL:s.z.preprocess(e=>process.env.VERCEL_URL??e,process.env.VERCEL?s.z.string():s.z.string().url()),GOOGLE_CLIENT_ID:s.z.string(),GOOGLE_CLIENT_SECRET:s.z.string()},client:{},runtimeEnv:{DATABASE_URL:process.env.DATABASE_URL,NODE_ENV:"production",NEXTAUTH_SECRET:process.env.NEXTAUTH_SECRET,NEXTAUTH_URL:process.env.NEXTAUTH_URL,GOOGLE_CLIENT_ID:process.env.GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET:process.env.GOOGLE_CLIENT_SECRET},skipValidation:!!process.env.SKIP_ENV_VALIDATION,emptyStringAsUndefined:!0})}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[369,917],()=>r(5626));module.exports=n})(); \ No newline at end of file diff --git a/apps/web/.next/server/app/api/store/route.js.nft.json b/apps/web/.next/server/app/api/store/route.js.nft.json new file mode 100644 index 00000000..242e1670 --- /dev/null +++ b/apps/web/.next/server/app/api/store/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../package.json","../../../../package.json","../../../chunks/369.js","../../../chunks/917.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/apps/web/.next/server/app/index.html b/apps/web/.next/server/app/index.html new file mode 100644 index 00000000..b1c4e90d --- /dev/null +++ b/apps/web/.next/server/app/index.html @@ -0,0 +1 @@ +Create T3 App
hi
\ No newline at end of file diff --git a/apps/web/.next/server/app/index.meta b/apps/web/.next/server/app/index.meta new file mode 100644 index 00000000..4bb66762 --- /dev/null +++ b/apps/web/.next/server/app/index.meta @@ -0,0 +1,5 @@ +{ + "headers": { + "x-next-cache-tags": "_N_T_/layout,_N_T_/page,_N_T_/" + } +} \ No newline at end of file diff --git a/apps/web/.next/server/app/index.rsc b/apps/web/.next/server/app/index.rsc new file mode 100644 index 00000000..0c3c9b35 --- /dev/null +++ b/apps/web/.next/server/app/index.rsc @@ -0,0 +1,5 @@ +2:I[2172,[],""] +3:I[2533,[],""] +0:["NZ5J5THZSIm48Kb9Sw_O9",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","main",null,{"children":"hi"}],null]]},[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"font-sans __variable_aaf875","children":["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/6c15d7e3526590b3.css","precedence":"next","crossOrigin":""}]],"$L4"]]]] +4:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Create T3 App"}],["$","meta","3",{"name":"description","content":"Generated by create-t3-app"}],["$","link","4",{"rel":"icon","href":"/favicon.ico"}],["$","meta","5",{"name":"next-size-adjust"}]] +1:null diff --git a/apps/web/.next/server/app/page.js b/apps/web/.next/server/app/page.js new file mode 100644 index 00000000..7cfd2492 --- /dev/null +++ b/apps/web/.next/server/app/page.js @@ -0,0 +1 @@ +(()=>{var e={};e.id=931,e.ids=[931],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},3190:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>o.a,__next_app__:()=>u,originalPathname:()=>p,pages:()=>d,routeModule:()=>x,tree:()=>l});var s=r(9441),n=r(1498),a=r(6580),o=r.n(a),i=r(5511),c={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(c[e]=()=>i[e]);r.d(t,c);let l=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,9475)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(r.bind(r,8205)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,3250,23)),"next/dist/client/components/not-found-error"]}],d=["/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page.tsx"],p="/page",u={require:r,loadChunk:()=>Promise.resolve()},x=new s.AppPageRouteModule({definition:{kind:n.x.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:l}})},7422:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,9489,23)),Promise.resolve().then(r.t.bind(r,6225,23)),Promise.resolve().then(r.t.bind(r,5964,23)),Promise.resolve().then(r.t.bind(r,5804,23)),Promise.resolve().then(r.t.bind(r,7255,23)),Promise.resolve().then(r.t.bind(r,1021,23))},5722:()=>{},3245:()=>{},8205:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,metadata:()=>o});var s=r(6491),n=r(1608),a=r.n(n);r(1603);let o={title:"Create T3 App",description:"Generated by create-t3-app",icons:[{rel:"icon",url:"/favicon.ico"}]};function i({children:e}){return s.jsx("html",{lang:"en",children:s.jsx("body",{className:`font-sans ${a().variable}`,children:e})})}},9475:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var s=r(6491);function n(){return s.jsx("main",{children:"hi"})}},1603:()=>{}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[369,38],()=>r(3190));module.exports=s})(); \ No newline at end of file diff --git a/apps/web/.next/server/app/page.js.nft.json b/apps/web/.next/server/app/page.js.nft.json new file mode 100644 index 00000000..4249385f --- /dev/null +++ b/apps/web/.next/server/app/page.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../package.json","../chunks/369.js","../chunks/38.js","../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/apps/web/.next/server/app/page_client-reference-manifest.js b/apps/web/.next/server/app/page_client-reference-manifest.js new file mode 100644 index 00000000..c3ebea85 --- /dev/null +++ b/apps/web/.next/server/app/page_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"2172":{"*":{"id":"5964","name":"*","chunks":[],"async":false}},"2533":{"*":{"id":"7255","name":"*","chunks":[],"async":false}},"3398":{"*":{"id":"5804","name":"*","chunks":[],"async":false}},"5119":{"*":{"id":"6225","name":"*","chunks":[],"async":false}},"8950":{"*":{"id":"9489","name":"*","chunks":[],"async":false}},"9256":{"*":{"id":"1021","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/app-router.js":{"id":8950,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":5119,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/layout-router.js":{"id":2172,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":3398,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":2533,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/static-generation-searchparams-bailout-provider.js":{"id":9256,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\"}],\"variableName\":\"inter\"}":{"id":425,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false},"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/styles/globals.css":{"id":3744,"name":"*","chunks":["185","static/chunks/app/layout-d03d6a3648fc999a.js"],"async":false}},"entryCSSFiles":{"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/_not-found":[],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout":["static/css/6c15d7e3526590b3.css"],"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page":[]}} \ No newline at end of file diff --git a/apps/web/.next/server/chunks/296.js b/apps/web/.next/server/chunks/296.js new file mode 100644 index 00000000..00f073f0 --- /dev/null +++ b/apps/web/.next/server/chunks/296.js @@ -0,0 +1,6 @@ +"use strict";exports.id=296,exports.ids=[296],exports.modules={5871:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Head:function(){return E},NextScript:function(){return y},Html:function(){return S},Main:function(){return I},default:function(){return T}});let r=n(997),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(6689)),o=n(4653),s=n(5383),a=n(2809),l=function(e){return e&&e.__esModule?e:{default:e}}(n(274)),u=n(3577);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}let p=new Set;function f(e,t,n){let r=(0,s.getPageFiles)(e,"/_app"),i=n?[]:(0,s.getPageFiles)(e,t);return{sharedFiles:r,pageFiles:i,allFiles:[...new Set([...r,...i])]}}function d(e,t){let{assetPrefix:n,buildManifest:i,assetQueryString:o,disableOptimizedLoading:s,crossOrigin:a}=e;return i.polyfillFiles.filter(e=>e.endsWith(".js")&&!e.endsWith(".module.js")).map(e=>(0,r.jsx)("script",{defer:!s,nonce:t.nonce,crossOrigin:t.crossOrigin||a,noModule:!0,src:`${n}/_next/${e}${o}`},e))}function h({styles:e}){if(!e)return null;let t=Array.isArray(e)?e:[];if(e.props&&Array.isArray(e.props.children)){let n=e=>{var t,n;return null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html};e.props.children.forEach(e=>{Array.isArray(e)?e.forEach(e=>n(e)&&t.push(e)):n(e)&&t.push(e)})}return(0,r.jsx)("style",{"amp-custom":"",dangerouslySetInnerHTML:{__html:t.map(e=>e.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g,"").replace(/\/\*@ sourceURL=.*?\*\//g,"")}})}function m(e,t,n){let{dynamicImports:i,assetPrefix:o,isDevelopment:s,assetQueryString:a,disableOptimizedLoading:l,crossOrigin:u}=e;return i.map(e=>!e.endsWith(".js")||n.allFiles.includes(e)?null:(0,r.jsx)("script",{async:!s&&l,defer:!l,src:`${o}/_next/${encodeURI(e)}${a}`,nonce:t.nonce,crossOrigin:t.crossOrigin||u},e))}function _(e,t,n){var i;let{assetPrefix:o,buildManifest:s,isDevelopment:a,assetQueryString:l,disableOptimizedLoading:u,crossOrigin:c}=e;return[...n.allFiles.filter(e=>e.endsWith(".js")),...null==(i=s.lowPriorityFiles)?void 0:i.filter(e=>e.endsWith(".js"))].map(e=>(0,r.jsx)("script",{src:`${o}/_next/${encodeURI(e)}${l}`,nonce:t.nonce,async:!a&&u,defer:!u,crossOrigin:t.crossOrigin||c},e))}function g(e,t){let{scriptLoader:n,disableOptimizedLoading:o,crossOrigin:s}=e,a=function(e,t){let{assetPrefix:n,scriptLoader:o,crossOrigin:s,nextScriptWorkers:a}=e;if(!a)return null;try{let{partytownSnippet:e}=require("@builder.io/partytown/integration"),a=(Array.isArray(t.children)?t.children:[t.children]).find(e=>{var t,n;return!!e&&!!e.props&&(null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html.length)&&"data-partytown-config"in e.props});return(0,r.jsxs)(r.Fragment,{children:[!a&&(0,r.jsx)("script",{"data-partytown-config":"",dangerouslySetInnerHTML:{__html:` + partytown = { + lib: "${n}/_next/static/~partytown/" + }; + `}}),(0,r.jsx)("script",{"data-partytown":"",dangerouslySetInnerHTML:{__html:e()}}),(o.worker||[]).map((e,n)=>{let{strategy:r,src:o,children:a,dangerouslySetInnerHTML:l,...u}=e,c={};if(o)c.src=o;else if(l&&l.__html)c.dangerouslySetInnerHTML={__html:l.__html};else if(a)c.dangerouslySetInnerHTML={__html:"string"==typeof a?a:Array.isArray(a)?a.join(""):""};else throw Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script");return(0,i.createElement)("script",{...c,...u,type:"text/partytown",key:o||n,nonce:t.nonce,"data-nscript":"worker",crossOrigin:t.crossOrigin||s})})]})}catch(e){return(0,l.default)(e)&&"MODULE_NOT_FOUND"!==e.code&&console.warn(`Warning: ${e.message}`),null}}(e,t),u=(n.beforeInteractive||[]).filter(e=>e.src).map((e,n)=>{let{strategy:r,...a}=e;return(0,i.createElement)("script",{...a,key:a.src||n,defer:a.defer??!o,nonce:t.nonce,"data-nscript":"beforeInteractive",crossOrigin:t.crossOrigin||s})});return(0,r.jsxs)(r.Fragment,{children:[a,u]})}class E extends i.default.Component{static #e=this.contextType=u.HtmlContext;getCssLinks(e){let{assetPrefix:t,assetQueryString:n,dynamicImports:i,crossOrigin:o,optimizeCss:s,optimizeFonts:a}=this.context,l=e.allFiles.filter(e=>e.endsWith(".css")),u=new Set(e.sharedFiles),c=new Set([]),p=Array.from(new Set(i.filter(e=>e.endsWith(".css"))));if(p.length){let e=new Set(l);p=p.filter(t=>!(e.has(t)||u.has(t))),c=new Set(p),l.push(...p)}let f=[];return l.forEach(e=>{let i=u.has(e);s||f.push((0,r.jsx)("link",{nonce:this.props.nonce,rel:"preload",href:`${t}/_next/${encodeURI(e)}${n}`,as:"style",crossOrigin:this.props.crossOrigin||o},`${e}-preload`));let a=c.has(e);f.push((0,r.jsx)("link",{nonce:this.props.nonce,rel:"stylesheet",href:`${t}/_next/${encodeURI(e)}${n}`,crossOrigin:this.props.crossOrigin||o,"data-n-g":a?void 0:i?"":void 0,"data-n-p":a?void 0:i?void 0:""},e))}),a&&(f=this.makeStylesheetInert(f)),0===f.length?null:f}getPreloadDynamicChunks(){let{dynamicImports:e,assetPrefix:t,assetQueryString:n,crossOrigin:i}=this.context;return e.map(e=>e.endsWith(".js")?(0,r.jsx)("link",{rel:"preload",href:`${t}/_next/${encodeURI(e)}${n}`,as:"script",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||i},e):null).filter(Boolean)}getPreloadMainLinks(e){let{assetPrefix:t,assetQueryString:n,scriptLoader:i,crossOrigin:o}=this.context,s=e.allFiles.filter(e=>e.endsWith(".js"));return[...(i.beforeInteractive||[]).map(e=>(0,r.jsx)("link",{nonce:this.props.nonce,rel:"preload",href:e.src,as:"script",crossOrigin:this.props.crossOrigin||o},e.src)),...s.map(e=>(0,r.jsx)("link",{nonce:this.props.nonce,rel:"preload",href:`${t}/_next/${encodeURI(e)}${n}`,as:"script",crossOrigin:this.props.crossOrigin||o},e))]}getBeforeInteractiveInlineScripts(){let{scriptLoader:e}=this.context,{nonce:t,crossOrigin:n}=this.props;return(e.beforeInteractive||[]).filter(e=>!e.src&&(e.dangerouslySetInnerHTML||e.children)).map((e,r)=>{let{strategy:o,children:s,dangerouslySetInnerHTML:a,src:l,...u}=e,c="";return a&&a.__html?c=a.__html:s&&(c="string"==typeof s?s:Array.isArray(s)?s.join(""):""),(0,i.createElement)("script",{...u,dangerouslySetInnerHTML:{__html:c},key:u.id||r,nonce:t,"data-nscript":"beforeInteractive",crossOrigin:n||void 0})})}getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return _(this.context,this.props,e)}getPolyfillScripts(){return d(this.context,this.props)}makeStylesheetInert(e){return i.default.Children.map(e,e=>{var t,n;if((null==e?void 0:e.type)==="link"&&(null==e?void 0:null==(t=e.props)?void 0:t.href)&&o.OPTIMIZED_FONT_PROVIDERS.some(({url:t})=>{var n,r;return null==e?void 0:null==(r=e.props)?void 0:null==(n=r.href)?void 0:n.startsWith(t)})){let t={...e.props||{},"data-href":e.props.href,href:void 0};return i.default.cloneElement(e,t)}if(null==e?void 0:null==(n=e.props)?void 0:n.children){let t={...e.props||{},children:this.makeStylesheetInert(e.props.children)};return i.default.cloneElement(e,t)}return e}).filter(Boolean)}render(){let{styles:e,ampPath:t,inAmpMode:o,hybridAmp:s,canonicalBase:a,__NEXT_DATA__:l,dangerousAsPath:u,headTags:c,unstable_runtimeJS:p,unstable_JsPreload:d,disableOptimizedLoading:m,optimizeCss:_,optimizeFonts:g,assetPrefix:E,nextFontManifest:y}=this.context,S=!1===p,I=!1===d||!m;this.context.docComponentsRendered.Head=!0;let{head:T}=this.context,x=[],P=[];T&&(T.forEach(e=>{let t;this.context.strictNextHead&&(t=i.default.createElement("meta",{name:"next-head",content:"1"})),e&&"link"===e.type&&"preload"===e.props.rel&&"style"===e.props.as?(t&&x.push(t),x.push(e)):e&&(t&&("meta"!==e.type||!e.props.charSet)&&P.push(t),P.push(e))}),T=x.concat(P));let O=i.default.Children.toArray(this.props.children).filter(Boolean);g&&!o&&(O=this.makeStylesheetInert(O));let v=!1,b=!1;T=i.default.Children.map(T||[],e=>{if(!e)return e;let{type:t,props:n}=e;if(o){let r="";if("meta"===t&&"viewport"===n.name?r='name="viewport"':"link"===t&&"canonical"===n.rel?b=!0:"script"===t&&(n.src&&-1>n.src.indexOf("ampproject")||n.dangerouslySetInnerHTML&&(!n.type||"text/javascript"===n.type))&&(r="{r+=` ${e}="${n[e]}"`}),r+="/>"),r)return console.warn(`Found conflicting amp tag "${e.type}" with conflicting prop ${r} in ${l.page}. https://nextjs.org/docs/messages/conflicting-amp-tag`),null}else"link"===t&&"amphtml"===n.rel&&(v=!0);return e});let j=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,o),N=function(e,t,n=""){if(!e)return{preconnect:null,preload:null};let i=e.pages["/_app"],o=e.pages[t],s=[...i??[],...o??[]];return{preconnect:0===s.length&&(i||o)?(0,r.jsx)("link",{"data-next-font":e.pagesUsingSizeAdjust?"size-adjust":"",rel:"preconnect",href:"/",crossOrigin:"anonymous"}):null,preload:s?s.map(e=>{let t=/\.(woff|woff2|eot|ttf|otf)$/.exec(e)[1];return(0,r.jsx)("link",{rel:"preload",href:`${n}/_next/${encodeURI(e)}`,as:"font",type:`font/${t}`,crossOrigin:"anonymous","data-next-font":e.includes("-s")?"size-adjust":""},e)}):null}}(y,u,E);return(0,r.jsxs)("head",{...function(e){let{crossOrigin:t,nonce:n,...r}=e;return r}(this.props),children:[this.context.isDevelopment&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{"data-next-hide-fouc":!0,"data-ampdevmode":o?"true":void 0,dangerouslySetInnerHTML:{__html:"body{display:none}"}}),(0,r.jsx)("noscript",{"data-next-hide-fouc":!0,"data-ampdevmode":o?"true":void 0,children:(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{display:block}"}})})]}),T,this.context.strictNextHead?null:(0,r.jsx)("meta",{name:"next-head-count",content:i.default.Children.count(T||[]).toString()}),O,g&&(0,r.jsx)("meta",{name:"next-font-preconnect"}),N.preconnect,N.preload,o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"}),!b&&(0,r.jsx)("link",{rel:"canonical",href:a+n(9505).cleanAmpPath(u)}),(0,r.jsx)("link",{rel:"preload",as:"script",href:"https://cdn.ampproject.org/v0.js"}),(0,r.jsx)(h,{styles:e}),(0,r.jsx)("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}"}}),(0,r.jsx)("noscript",{children:(0,r.jsx)("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}"}})}),(0,r.jsx)("script",{async:!0,src:"https://cdn.ampproject.org/v0.js"})]}),!o&&(0,r.jsxs)(r.Fragment,{children:[!v&&s&&(0,r.jsx)("link",{rel:"amphtml",href:a+(t||`${u}${u.includes("?")?"&":"?"}amp=1`)}),this.getBeforeInteractiveInlineScripts(),!_&&this.getCssLinks(j),!_&&(0,r.jsx)("noscript",{"data-n-css":this.props.nonce??""}),!S&&!I&&this.getPreloadDynamicChunks(),!S&&!I&&this.getPreloadMainLinks(j),!m&&!S&&this.getPolyfillScripts(),!m&&!S&&this.getPreNextScripts(),!m&&!S&&this.getDynamicChunks(j),!m&&!S&&this.getScripts(j),_&&this.getCssLinks(j),_&&(0,r.jsx)("noscript",{"data-n-css":this.props.nonce??""}),this.context.isDevelopment&&(0,r.jsx)("noscript",{id:"__next_css__DO_NOT_USE__"}),e||null]}),i.default.createElement(i.default.Fragment,{},...c||[])]})}}class y extends i.default.Component{static #e=this.contextType=u.HtmlContext;getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return _(this.context,this.props,e)}getPolyfillScripts(){return d(this.context,this.props)}static getInlineScriptSource(e){let{__NEXT_DATA__:t,largePageDataBytes:r}=e;try{let i=JSON.stringify(t);if(p.has(t.page))return(0,a.htmlEscapeJsonString)(i);let o=Buffer.from(i).byteLength,s=n(6549).Z;return r&&o>r&&(p.add(t.page),console.warn(`Warning: data for page "${t.page}"${t.page===e.dangerousAsPath?"":` (path "${e.dangerousAsPath}")`} is ${s(o)} which exceeds the threshold of ${s(r)}, this amount of data can reduce performance. +See more info here: https://nextjs.org/docs/messages/large-page-data`)),(0,a.htmlEscapeJsonString)(i)}catch(e){if((0,l.default)(e)&&-1!==e.message.indexOf("circular structure"))throw Error(`Circular structure in "getInitialProps" result of page "${t.page}". https://nextjs.org/docs/messages/circular-structure`);throw e}}render(){let{assetPrefix:e,inAmpMode:t,buildManifest:n,unstable_runtimeJS:i,docComponentsRendered:o,assetQueryString:s,disableOptimizedLoading:a,crossOrigin:l}=this.context,u=!1===i;if(o.NextScript=!0,t)return null;let c=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,t);return(0,r.jsxs)(r.Fragment,{children:[!u&&n.devFiles?n.devFiles.map(t=>(0,r.jsx)("script",{src:`${e}/_next/${encodeURI(t)}${s}`,nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l},t)):null,u?null:(0,r.jsx)("script",{id:"__NEXT_DATA__",type:"application/json",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l,dangerouslySetInnerHTML:{__html:y.getInlineScriptSource(this.context)}}),a&&!u&&this.getPolyfillScripts(),a&&!u&&this.getPreNextScripts(),a&&!u&&this.getDynamicChunks(c),a&&!u&&this.getScripts(c)]})}}function S(e){let{inAmpMode:t,docComponentsRendered:n,locale:o,scriptLoader:s,__NEXT_DATA__:a}=(0,u.useHtmlContext)();return n.Html=!0,function(e,t,n){var r,o,s,a;if(!n.children)return;let l=[],u=Array.isArray(n.children)?n.children:[n.children],c=null==(o=u.find(e=>e.type===E))?void 0:null==(r=o.props)?void 0:r.children,p=null==(a=u.find(e=>"body"===e.type))?void 0:null==(s=a.props)?void 0:s.children,f=[...Array.isArray(c)?c:[c],...Array.isArray(p)?p:[p]];i.default.Children.forEach(f,t=>{var n;if(t&&(null==(n=t.type)?void 0:n.__nextScript)){if("beforeInteractive"===t.props.strategy){e.beforeInteractive=(e.beforeInteractive||[]).concat([{...t.props}]);return}if(["lazyOnload","afterInteractive","worker"].includes(t.props.strategy)){l.push(t.props);return}}}),t.scriptLoader=l}(s,a,e),(0,r.jsx)("html",{...e,lang:e.lang||o||void 0,amp:t?"":void 0,"data-ampdevmode":void 0})}function I(){let{docComponentsRendered:e}=(0,u.useHtmlContext)();return e.Main=!0,(0,r.jsx)("next-js-internal-body-render-target",{})}class T extends i.default.Component{static getInitialProps(e){return e.defaultGetInitialProps(e)}render(){return(0,r.jsxs)(S,{children:[(0,r.jsx)(E,{}),(0,r.jsxs)("body",{children:[(0,r.jsx)(I,{}),(0,r.jsx)(y,{})]})]})}}T[o.NEXT_BUILTIN_DOCUMENT]=function(){return(0,r.jsxs)(S,{children:[(0,r.jsx)(E,{}),(0,r.jsxs)("body",{children:[(0,r.jsx)(I,{}),(0,r.jsx)(y,{})]})]})}},4653:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{MODERN_BROWSERSLIST_TARGET:function(){return r.default},COMPILER_NAMES:function(){return i},INTERNAL_HEADERS:function(){return o},COMPILER_INDEXES:function(){return s},PHASE_EXPORT:function(){return a},PHASE_PRODUCTION_BUILD:function(){return l},PHASE_PRODUCTION_SERVER:function(){return u},PHASE_DEVELOPMENT_SERVER:function(){return c},PHASE_TEST:function(){return p},PHASE_INFO:function(){return f},PAGES_MANIFEST:function(){return d},APP_PATHS_MANIFEST:function(){return h},APP_PATH_ROUTES_MANIFEST:function(){return m},BUILD_MANIFEST:function(){return _},APP_BUILD_MANIFEST:function(){return g},FUNCTIONS_CONFIG_MANIFEST:function(){return E},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return y},NEXT_FONT_MANIFEST:function(){return S},EXPORT_MARKER:function(){return I},EXPORT_DETAIL:function(){return T},PRERENDER_MANIFEST:function(){return x},ROUTES_MANIFEST:function(){return P},IMAGES_MANIFEST:function(){return O},SERVER_FILES_MANIFEST:function(){return v},DEV_CLIENT_PAGES_MANIFEST:function(){return b},MIDDLEWARE_MANIFEST:function(){return j},DEV_MIDDLEWARE_MANIFEST:function(){return N},REACT_LOADABLE_MANIFEST:function(){return A},FONT_MANIFEST:function(){return R},SERVER_DIRECTORY:function(){return M},CONFIG_FILES:function(){return L},BUILD_ID_FILE:function(){return C},BLOCKED_PAGES:function(){return w},CLIENT_PUBLIC_FILES_PATH:function(){return F},CLIENT_STATIC_FILES_PATH:function(){return D},STRING_LITERAL_DROP_BUNDLE:function(){return k},NEXT_BUILTIN_DOCUMENT:function(){return U},BARREL_OPTIMIZATION_PREFIX:function(){return $},CLIENT_REFERENCE_MANIFEST:function(){return B},SERVER_REFERENCE_MANIFEST:function(){return W},MIDDLEWARE_BUILD_MANIFEST:function(){return H},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return G},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return z},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return Y},APP_CLIENT_INTERNALS:function(){return V},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return X},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return q},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return K},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return Z},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return J},EDGE_RUNTIME_WEBPACK:function(){return Q},STATIC_PROPS_ID:function(){return ee},SERVER_PROPS_ID:function(){return et},GOOGLE_FONT_PROVIDER:function(){return en},OPTIMIZED_FONT_PROVIDERS:function(){return er},DEFAULT_SERIF_FONT:function(){return ei},DEFAULT_SANS_SERIF_FONT:function(){return eo},STATIC_STATUS_PAGES:function(){return es},TRACE_OUTPUT_VERSION:function(){return ea},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return el},RSC_MODULE_TYPES:function(){return eu},EDGE_UNSUPPORTED_NODE_APIS:function(){return ec},SYSTEM_ENTRYPOINTS:function(){return ep}});let r=n(7083)._(n(1668)),i={client:"client",server:"server",edgeServer:"edge-server"},o=["x-invoke-error","x-invoke-output","x-invoke-path","x-invoke-query","x-invoke-status","x-middleware-invoke"],s={[i.client]:0,[i.server]:1,[i.edgeServer]:2},a="phase-export",l="phase-production-build",u="phase-production-server",c="phase-development-server",p="phase-test",f="phase-info",d="pages-manifest.json",h="app-paths-manifest.json",m="app-path-routes-manifest.json",_="build-manifest.json",g="app-build-manifest.json",E="functions-config-manifest.json",y="subresource-integrity-manifest",S="next-font-manifest",I="export-marker.json",T="export-detail.json",x="prerender-manifest.json",P="routes-manifest.json",O="images-manifest.json",v="required-server-files.json",b="_devPagesManifest.json",j="middleware-manifest.json",N="_devMiddlewareManifest.json",A="react-loadable-manifest.json",R="font-manifest.json",M="server",L=["next.config.js","next.config.mjs"],C="BUILD_ID",w=["/_document","/_app","/_error"],F="public",D="static",k="__NEXT_DROP_CLIENT_FILE__",U="__NEXT_BUILTIN_DOCUMENT__",$="__barrel_optimize__",B="client-reference-manifest",W="server-reference-manifest",H="middleware-build-manifest",G="middleware-react-loadable-manifest",z="main",Y=""+z+"-app",V="app-pages-internals",X="react-refresh",q="amp",K="webpack",Z="polyfills",J=Symbol(Z),Q="edge-runtime-webpack",ee="__N_SSG",et="__N_SSP",en="https://fonts.googleapis.com/",er=[{url:en,preconnect:"https://fonts.gstatic.com"},{url:"https://use.typekit.net",preconnect:"https://use.typekit.net"}],ei={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},eo={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},es=["/500"],ea=1,el=6e3,eu={client:"client",server:"server"},ec=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],ep=new Set([z,X,q,Y]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8357:(e,t)=>{function n(e){return Object.prototype.toString.call(e)}function r(e){if("[object Object]"!==n(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getObjectClassLabel:function(){return n},isPlainObject:function(){return r}})},1668:e=>{e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},8911:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return o}});let r=n(2919),i=n(7960);function o(e){let t=(0,i.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,r.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},1633:(e,t)=>{function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},7889:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePagePath",{enumerable:!0,get:function(){return s}});let r=n(1633),i=n(2919),o=n(2404);function s(e){let t=/^\/index(\/|$)/.test(e)&&!(0,i.isDynamicRoute)(e)?"/index"+e:"/"===e?"/index":(0,r.ensureLeadingSlash)(e);{let{posix:e}=n(1017),r=e.normalize(t);if(r!==t)throw new o.NormalizeError("Requested and resolved page mismatch: "+t+" "+r)}return t}},7960:(e,t)=>{function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return n}})},8462:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return s}});let r=n(1633),i=n(8664);function o(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce((e,t,n,r)=>!t||(0,i.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===r.length-1?e:e+"/"+t,""))}function s(e){return e.replace(/\.rsc($|\?)/,"$1")}},2919:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(4681),i=n(7078)},7078:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(6520),i=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},4681:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),s=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),s=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function o(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(s){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');o(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');o(this.restSlugName,n),this.restSlugName=n,i="[...]"}}else{if(s)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');o(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},8664:(e,t)=>{function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isGroupSegment:function(){return n},PAGE_SEGMENT_KEY:function(){return r},DEFAULT_SEGMENT_KEY:function(){return i}});let r="__PAGE__",i="__DEFAULT__"},2404:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return s},getURL:function(){return a},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return p},SP:function(){return f},ST:function(){return d},DecodeError:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return _},MissingStaticPage:function(){return g},MiddlewareNotFoundError:function(){return E},stringifyError:function(){return y}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;oi.test(e);function s(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function a(){let{href:e}=window.location,t=s();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function p(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,d=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class _ extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},274:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return i},getProperError:function(){return o}});let r=n(8357);function i(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){return i(e)?e:Error((0,r.isPlainObject)(e)?JSON.stringify(e):e+"")}},6549:(e,t)=>{Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return i}});let n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=(e,t)=>{let n=e;return"string"==typeof t?n=e.toLocaleString(t):!0===t&&(n=e.toLocaleString()),n};function i(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);if((t=Object.assign({},t)).signed&&0===e)return" 0 B";let i=e<0,o=i?"-":t.signed?"+":"";if(i&&(e=-e),e<1)return o+r(e,t.locale)+" B";let s=Math.min(Math.floor(Math.log10(e)/3),n.length-1);return o+r(e=Number((e/Math.pow(1e3,s)).toPrecision(3)),t.locale)+" "+n[s]}},6520:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return i},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return s}});let r=n(8462),i=["(..)(..)","(.)","(..)","(...)"];function o(e){return void 0!==e.split("/").find(e=>i.find(t=>e.startsWith(t)))}function s(e){let t,n,o;for(let r of e.split("/"))if(n=i.find(e=>r.startsWith(e))){[t,o]=e.split(n,2);break}if(!t||!n||!o)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":o="/"===t?`/${o}`:t+"/"+o;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);o=t.split("/").slice(0,-1).concat(o).join("/");break;case"(...)":o="/"+o;break;case"(..)(..)":let s=t.split("/");if(s.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);o=s.slice(0,-2).concat(o).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:o}}},8877:(e,t,n)=>{e.exports=n(2785)},3577:(e,t,n)=>{e.exports=n(8877).vendored.contexts.HtmlContext},5383:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPageFiles",{enumerable:!0,get:function(){return o}});let r=n(8911),i=n(7889);function o(e,t){let n=(0,r.denormalizePagePath)((0,i.normalizePagePath)(t));return e.pages[n]||(console.warn(`Could not find files for ${n} in .next/build-manifest.json`),[])}},2809:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ESCAPE_REGEX:function(){return r},htmlEscapeJsonString:function(){return i}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g;function i(e){return e.replace(r,e=>n[e])}},9505:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isBlockedPage:function(){return i},cleanAmpPath:function(){return o},debounce:function(){return s}});let r=n(4653);function i(e){return r.BLOCKED_PAGES.includes(e)}function o(e){return e.match(/\?amp=(y|yes|true|1)/)&&(e=e.replace(/\?amp=(y|yes|true|1)&?/,"?")),e.match(/&=(y|yes|true|1)/)&&(e=e.replace(/&=(y|yes|true|1)/,"")),e=e.replace(/\?$/,"")}function s(e,t,n=1/0){let r,i,o;let s=0,a=0;function l(){let u=Date.now(),c=a+t-u;c<=0||s+n>=u?(r=void 0,e.apply(o,i)):r=setTimeout(l,c)}return function(...e){i=e,o=this,a=Date.now(),void 0===r&&(s=a,r=setTimeout(l,t))}}},7083:(e,t)=>{t._=t._interop_require_default=function(e){return e&&e.__esModule?e:{default:e}}}}; \ No newline at end of file diff --git a/apps/web/.next/server/chunks/369.js b/apps/web/.next/server/chunks/369.js new file mode 100644 index 00000000..176e2246 --- /dev/null +++ b/apps/web/.next/server/chunks/369.js @@ -0,0 +1 @@ +"use strict";exports.id=369,exports.ids=[369],exports.modules={3181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefixes:function(){return a},bootstrap:function(){return l},wait:function(){return s},error:function(){return u},warn:function(){return c},ready:function(){return d},info:function(){return g},event:function(){return p},trace:function(){return f},warnOnce:function(){return v}});let n=r(2761),a={wait:(0,n.white)((0,n.bold)("○")),error:(0,n.red)((0,n.bold)("⨯")),warn:(0,n.yellow)((0,n.bold)("⚠")),ready:"▲",info:(0,n.white)((0,n.bold)(" ")),event:(0,n.green)((0,n.bold)("✓")),trace:(0,n.magenta)((0,n.bold)("\xbb"))},o={log:"log",warn:"warn",error:"error"};function i(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in o?o[e]:"log",n=a[e];0===t.length?console[r](""):console[r](" "+n,...t)}function l(...e){console.log(" ",...e)}function s(...e){i("wait",...e)}function u(...e){i("error",...e)}function c(...e){i("warn",...e)}function d(...e){i("ready",...e)}function g(...e){i("info",...e)}function p(...e){i("event",...e)}function f(...e){i("trace",...e)}let _=new Set;function v(...e){_.has(e[0])||(_.add(e.join(" ")),c(...e))}},1405:e=>{(()=>{var t={491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextAPI=void 0;let n=r(223),a=r(172),o=r(930),i="context",l=new n.NoopContextManager;class s{constructor(){}static getInstance(){return this._instance||(this._instance=new s),this._instance}setGlobalContextManager(e){return(0,a.registerGlobal)(i,e,o.DiagAPI.instance())}active(){return this._getContextManager().active()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,a.getGlobal)(i)||l}disable(){this._getContextManager().disable(),(0,a.unregisterGlobal)(i,o.DiagAPI.instance())}}t.ContextAPI=s},930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagAPI=void 0;let n=r(56),a=r(912),o=r(957),i=r(172);class l{constructor(){function e(e){return function(...t){let r=(0,i.getGlobal)("diag");if(r)return r[e](...t)}}let t=this;t.setLogger=(e,r={logLevel:o.DiagLogLevel.INFO})=>{var n,l,s;if(e===t){let e=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=e.stack)&&void 0!==n?n:e.message),!1}"number"==typeof r&&(r={logLevel:r});let u=(0,i.getGlobal)("diag"),c=(0,a.createLogLevelDiagLogger)(null!==(l=r.logLevel)&&void 0!==l?l:o.DiagLogLevel.INFO,e);if(u&&!r.suppressOverrideMessage){let e=null!==(s=Error().stack)&&void 0!==s?s:"";u.warn(`Current logger will be overwritten from ${e}`),c.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,i.registerGlobal)("diag",c,t,!0)},t.disable=()=>{(0,i.unregisterGlobal)("diag",t)},t.createComponentLogger=e=>new n.DiagComponentLogger(e),t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}static instance(){return this._instance||(this._instance=new l),this._instance}}t.DiagAPI=l},653:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsAPI=void 0;let n=r(660),a=r(172),o=r(930),i="metrics";class l{constructor(){}static getInstance(){return this._instance||(this._instance=new l),this._instance}setGlobalMeterProvider(e){return(0,a.registerGlobal)(i,e,o.DiagAPI.instance())}getMeterProvider(){return(0,a.getGlobal)(i)||n.NOOP_METER_PROVIDER}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,a.unregisterGlobal)(i,o.DiagAPI.instance())}}t.MetricsAPI=l},181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropagationAPI=void 0;let n=r(172),a=r(874),o=r(194),i=r(277),l=r(369),s=r(930),u="propagation",c=new a.NoopTextMapPropagator;class d{constructor(){this.createBaggage=l.createBaggage,this.getBaggage=i.getBaggage,this.getActiveBaggage=i.getActiveBaggage,this.setBaggage=i.setBaggage,this.deleteBaggage=i.deleteBaggage}static getInstance(){return this._instance||(this._instance=new d),this._instance}setGlobalPropagator(e){return(0,n.registerGlobal)(u,e,s.DiagAPI.instance())}inject(e,t,r=o.defaultTextMapSetter){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=o.defaultTextMapGetter){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,n.unregisterGlobal)(u,s.DiagAPI.instance())}_getGlobalPropagator(){return(0,n.getGlobal)(u)||c}}t.PropagationAPI=d},997:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceAPI=void 0;let n=r(172),a=r(846),o=r(139),i=r(607),l=r(930),s="trace";class u{constructor(){this._proxyTracerProvider=new a.ProxyTracerProvider,this.wrapSpanContext=o.wrapSpanContext,this.isSpanContextValid=o.isSpanContextValid,this.deleteSpan=i.deleteSpan,this.getSpan=i.getSpan,this.getActiveSpan=i.getActiveSpan,this.getSpanContext=i.getSpanContext,this.setSpan=i.setSpan,this.setSpanContext=i.setSpanContext}static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalTracerProvider(e){let t=(0,n.registerGlobal)(s,this._proxyTracerProvider,l.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,n.getGlobal)(s)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,n.unregisterGlobal)(s,l.DiagAPI.instance()),this._proxyTracerProvider=new a.ProxyTracerProvider}}t.TraceAPI=u},277:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deleteBaggage=t.setBaggage=t.getActiveBaggage=t.getBaggage=void 0;let n=r(491),a=(0,r(780).createContextKey)("OpenTelemetry Baggage Key");function o(e){return e.getValue(a)||void 0}t.getBaggage=o,t.getActiveBaggage=function(){return o(n.ContextAPI.getInstance().active())},t.setBaggage=function(e,t){return e.setValue(a,t)},t.deleteBaggage=function(e){return e.deleteValue(a)}},993:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaggageImpl=void 0;class r{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries()).map(([e,t])=>[e,t])}setEntry(e,t){let n=new r(this._entries);return n._entries.set(e,t),n}removeEntry(e){let t=new r(this._entries);return t._entries.delete(e),t}removeEntries(...e){let t=new r(this._entries);for(let r of e)t._entries.delete(r);return t}clear(){return new r}}t.BaggageImpl=r},830:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.baggageEntryMetadataSymbol=void 0,t.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.baggageEntryMetadataFromString=t.createBaggage=void 0;let n=r(930),a=r(993),o=r(830),i=n.DiagAPI.instance();t.createBaggage=function(e={}){return new a.BaggageImpl(new Map(Object.entries(e)))},t.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(i.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:o.baggageEntryMetadataSymbol,toString:()=>e}}},67:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.context=void 0;let n=r(491);t.context=n.ContextAPI.getInstance()},223:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopContextManager=void 0;let n=r(780);class a{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.NoopContextManager=a},780:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ROOT_CONTEXT=t.createContextKey=void 0,t.createContextKey=function(e){return Symbol.for(e)};class r{constructor(e){let t=this;t._currentContext=e?new Map(e):new Map,t.getValue=e=>t._currentContext.get(e),t.setValue=(e,n)=>{let a=new r(t._currentContext);return a._currentContext.set(e,n),a},t.deleteValue=e=>{let n=new r(t._currentContext);return n._currentContext.delete(e),n}}}t.ROOT_CONTEXT=new r},506:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diag=void 0;let n=r(930);t.diag=n.DiagAPI.instance()},56:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagComponentLogger=void 0;let n=r(172);class a{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return o("debug",this._namespace,e)}error(...e){return o("error",this._namespace,e)}info(...e){return o("info",this._namespace,e)}warn(...e){return o("warn",this._namespace,e)}verbose(...e){return o("verbose",this._namespace,e)}}function o(e,t,r){let a=(0,n.getGlobal)("diag");if(a)return r.unshift(t),a[e](...r)}t.DiagComponentLogger=a},972:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagConsoleLogger=void 0;let r=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class n{constructor(){for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.createLogLevelDiagLogger=void 0;let n=r(957);t.createLogLevelDiagLogger=function(e,t){function r(r,n){let a=t[r];return"function"==typeof a&&e>=n?a.bind(t):function(){}}return en.DiagLogLevel.ALL&&(e=n.DiagLogLevel.ALL),t=t||{},{error:r("error",n.DiagLogLevel.ERROR),warn:r("warn",n.DiagLogLevel.WARN),info:r("info",n.DiagLogLevel.INFO),debug:r("debug",n.DiagLogLevel.DEBUG),verbose:r("verbose",n.DiagLogLevel.VERBOSE)}}},957:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagLogLevel=void 0,function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(t.DiagLogLevel||(t.DiagLogLevel={}))},172:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unregisterGlobal=t.getGlobal=t.registerGlobal=void 0;let n=r(200),a=r(521),o=r(130),i=a.VERSION.split(".")[0],l=Symbol.for(`opentelemetry.js.api.${i}`),s=n._globalThis;t.registerGlobal=function(e,t,r,n=!1){var o;let i=s[l]=null!==(o=s[l])&&void 0!==o?o:{version:a.VERSION};if(!n&&i[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(i.version!==a.VERSION){let t=Error(`@opentelemetry/api: Registration of version v${i.version} for ${e} does not match previously registered API v${a.VERSION}`);return r.error(t.stack||t.message),!1}return i[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${a.VERSION}.`),!0},t.getGlobal=function(e){var t,r;let n=null===(t=s[l])||void 0===t?void 0:t.version;if(n&&(0,o.isCompatible)(n))return null===(r=s[l])||void 0===r?void 0:r[e]},t.unregisterGlobal=function(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${a.VERSION}.`);let r=s[l];r&&delete r[e]}},130:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isCompatible=t._makeCompatibilityCheck=void 0;let n=r(521),a=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function o(e){let t=new Set([e]),r=new Set,n=e.match(a);if(!n)return()=>!1;let o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=o.prerelease)return function(t){return t===e};function i(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;let n=e.match(a);if(!n)return i(e);let l={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};return null!=l.prerelease||o.major!==l.major?i(e):0===o.major?o.minor===l.minor&&o.patch<=l.patch?(t.add(e),!0):i(e):o.minor<=l.minor?(t.add(e),!0):i(e)}}t._makeCompatibilityCheck=o,t.isCompatible=o(n.VERSION)},886:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.metrics=void 0;let n=r(653);t.metrics=n.MetricsAPI.getInstance()},901:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValueType=void 0,function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"}(t.ValueType||(t.ValueType={}))},102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createNoopMeter=t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=t.NOOP_OBSERVABLE_GAUGE_METRIC=t.NOOP_OBSERVABLE_COUNTER_METRIC=t.NOOP_UP_DOWN_COUNTER_METRIC=t.NOOP_HISTOGRAM_METRIC=t.NOOP_COUNTER_METRIC=t.NOOP_METER=t.NoopObservableUpDownCounterMetric=t.NoopObservableGaugeMetric=t.NoopObservableCounterMetric=t.NoopObservableMetric=t.NoopHistogramMetric=t.NoopUpDownCounterMetric=t.NoopCounterMetric=t.NoopMetric=t.NoopMeter=void 0;class r{constructor(){}createHistogram(e,r){return t.NOOP_HISTOGRAM_METRIC}createCounter(e,r){return t.NOOP_COUNTER_METRIC}createUpDownCounter(e,r){return t.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(e,r){return t.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(e,r){return t.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(e,r){return t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}}t.NoopMeter=r;class n{}t.NoopMetric=n;class a extends n{add(e,t){}}t.NoopCounterMetric=a;class o extends n{add(e,t){}}t.NoopUpDownCounterMetric=o;class i extends n{record(e,t){}}t.NoopHistogramMetric=i;class l{addCallback(e){}removeCallback(e){}}t.NoopObservableMetric=l;class s extends l{}t.NoopObservableCounterMetric=s;class u extends l{}t.NoopObservableGaugeMetric=u;class c extends l{}t.NoopObservableUpDownCounterMetric=c,t.NOOP_METER=new r,t.NOOP_COUNTER_METRIC=new a,t.NOOP_HISTOGRAM_METRIC=new i,t.NOOP_UP_DOWN_COUNTER_METRIC=new o,t.NOOP_OBSERVABLE_COUNTER_METRIC=new s,t.NOOP_OBSERVABLE_GAUGE_METRIC=new u,t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new c,t.createNoopMeter=function(){return t.NOOP_METER}},660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NOOP_METER_PROVIDER=t.NoopMeterProvider=void 0;let n=r(102);class a{getMeter(e,t,r){return n.NOOP_METER}}t.NoopMeterProvider=a,t.NOOP_METER_PROVIDER=new a},200:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(46),t)},651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t._globalThis=void 0,t._globalThis="object"==typeof globalThis?globalThis:global},46:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(651),t)},939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.propagation=void 0;let n=r(181);t.propagation=n.PropagationAPI.getInstance()},874:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTextMapPropagator=void 0;class r{inject(e,t){}extract(e,t){return e}fields(){return[]}}t.NoopTextMapPropagator=r},194:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTextMapSetter=t.defaultTextMapGetter=void 0,t.defaultTextMapGetter={get(e,t){if(null!=e)return e[t]},keys:e=>null==e?[]:Object.keys(e)},t.defaultTextMapSetter={set(e,t,r){null!=e&&(e[t]=r)}}},845:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trace=void 0;let n=r(997);t.trace=n.TraceAPI.getInstance()},403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NonRecordingSpan=void 0;let n=r(476);class a{constructor(e=n.INVALID_SPAN_CONTEXT){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}t.NonRecordingSpan=a},614:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracer=void 0;let n=r(491),a=r(607),o=r(403),i=r(139),l=n.ContextAPI.getInstance();class s{startSpan(e,t,r=l.active()){if(null==t?void 0:t.root)return new o.NonRecordingSpan;let n=r&&(0,a.getSpanContext)(r);return"object"==typeof n&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,i.isSpanContextValid)(n)?new o.NonRecordingSpan(n):new o.NonRecordingSpan}startActiveSpan(e,t,r,n){let o,i,s;if(arguments.length<2)return;2==arguments.length?s=t:3==arguments.length?(o=t,s=r):(o=t,i=r,s=n);let u=null!=i?i:l.active(),c=this.startSpan(e,o,u),d=(0,a.setSpan)(u,c);return l.with(d,s,void 0,c)}}t.NoopTracer=s},124:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracerProvider=void 0;let n=r(614);class a{getTracer(e,t,r){return new n.NoopTracer}}t.NoopTracerProvider=a},125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracer=void 0;let n=new(r(614)).NoopTracer;class a{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,n){let a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):n}}t.ProxyTracer=a},846:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracerProvider=void 0;let n=r(125),a=new(r(124)).NoopTracerProvider;class o{getTracer(e,t,r){var a;return null!==(a=this.getDelegateTracer(e,t,r))&&void 0!==a?a:new n.ProxyTracer(this,e,t,r)}getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:a}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t,r)}}t.ProxyTracerProvider=o},996:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SamplingDecision=void 0,function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(t.SamplingDecision||(t.SamplingDecision={}))},607:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSpanContext=t.setSpanContext=t.deleteSpan=t.setSpan=t.getActiveSpan=t.getSpan=void 0;let n=r(780),a=r(403),o=r(491),i=(0,n.createContextKey)("OpenTelemetry Context Key SPAN");function l(e){return e.getValue(i)||void 0}function s(e,t){return e.setValue(i,t)}t.getSpan=l,t.getActiveSpan=function(){return l(o.ContextAPI.getInstance().active())},t.setSpan=s,t.deleteSpan=function(e){return e.deleteValue(i)},t.setSpanContext=function(e,t){return s(e,new a.NonRecordingSpan(t))},t.getSpanContext=function(e){var t;return null===(t=l(e))||void 0===t?void 0:t.spanContext()}},325:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceStateImpl=void 0;let n=r(564);class a{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+"="+this.get(t)),e),[]).join(",")}_parse(e){!(e.length>512)&&(this._internalState=e.split(",").reverse().reduce((e,t)=>{let r=t.trim(),a=r.indexOf("=");if(-1!==a){let o=r.slice(0,a),i=r.slice(a+1,t.length);(0,n.validateKey)(o)&&(0,n.validateValue)(i)&&e.set(o,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new a;return e._internalState=new Map(this._internalState),e}}t.TraceStateImpl=a},564:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateValue=t.validateKey=void 0;let r="[_0-9a-z-*/]",n=`[a-z]${r}{0,255}`,a=`[a-z0-9]${r}{0,240}@[a-z]${r}{0,13}`,o=RegExp(`^(?:${n}|${a})$`),i=/^[ -~]{0,255}[!-~]$/,l=/,|=/;t.validateKey=function(e){return o.test(e)},t.validateValue=function(e){return i.test(e)&&!l.test(e)}},98:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTraceState=void 0;let n=r(325);t.createTraceState=function(e){return new n.TraceStateImpl(e)}},476:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.INVALID_SPAN_CONTEXT=t.INVALID_TRACEID=t.INVALID_SPANID=void 0;let n=r(475);t.INVALID_SPANID="0000000000000000",t.INVALID_TRACEID="00000000000000000000000000000000",t.INVALID_SPAN_CONTEXT={traceId:t.INVALID_TRACEID,spanId:t.INVALID_SPANID,traceFlags:n.TraceFlags.NONE}},357:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SpanKind=void 0,function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(t.SpanKind||(t.SpanKind={}))},139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapSpanContext=t.isSpanContextValid=t.isValidSpanId=t.isValidTraceId=void 0;let n=r(476),a=r(403),o=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function l(e){return o.test(e)&&e!==n.INVALID_TRACEID}function s(e){return i.test(e)&&e!==n.INVALID_SPANID}t.isValidTraceId=l,t.isValidSpanId=s,t.isSpanContextValid=function(e){return l(e.traceId)&&s(e.spanId)},t.wrapSpanContext=function(e){return new a.NonRecordingSpan(e)}},847:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SpanStatusCode=void 0,function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(t.SpanStatusCode||(t.SpanStatusCode={}))},475:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceFlags=void 0,function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(t.TraceFlags||(t.TraceFlags={}))},521:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=void 0,t.VERSION="1.6.0"}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}},i=!0;try{t[e].call(o.exports,o,o.exports,n),i=!1}finally{i&&delete r[e]}return o.exports}n.ab=__dirname+"/";var a={};(()=>{Object.defineProperty(a,"__esModule",{value:!0}),a.trace=a.propagation=a.metrics=a.diag=a.context=a.INVALID_SPAN_CONTEXT=a.INVALID_TRACEID=a.INVALID_SPANID=a.isValidSpanId=a.isValidTraceId=a.isSpanContextValid=a.createTraceState=a.TraceFlags=a.SpanStatusCode=a.SpanKind=a.SamplingDecision=a.ProxyTracerProvider=a.ProxyTracer=a.defaultTextMapSetter=a.defaultTextMapGetter=a.ValueType=a.createNoopMeter=a.DiagLogLevel=a.DiagConsoleLogger=a.ROOT_CONTEXT=a.createContextKey=a.baggageEntryMetadataFromString=void 0;var e=n(369);Object.defineProperty(a,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return e.baggageEntryMetadataFromString}});var t=n(780);Object.defineProperty(a,"createContextKey",{enumerable:!0,get:function(){return t.createContextKey}}),Object.defineProperty(a,"ROOT_CONTEXT",{enumerable:!0,get:function(){return t.ROOT_CONTEXT}});var r=n(972);Object.defineProperty(a,"DiagConsoleLogger",{enumerable:!0,get:function(){return r.DiagConsoleLogger}});var o=n(957);Object.defineProperty(a,"DiagLogLevel",{enumerable:!0,get:function(){return o.DiagLogLevel}});var i=n(102);Object.defineProperty(a,"createNoopMeter",{enumerable:!0,get:function(){return i.createNoopMeter}});var l=n(901);Object.defineProperty(a,"ValueType",{enumerable:!0,get:function(){return l.ValueType}});var s=n(194);Object.defineProperty(a,"defaultTextMapGetter",{enumerable:!0,get:function(){return s.defaultTextMapGetter}}),Object.defineProperty(a,"defaultTextMapSetter",{enumerable:!0,get:function(){return s.defaultTextMapSetter}});var u=n(125);Object.defineProperty(a,"ProxyTracer",{enumerable:!0,get:function(){return u.ProxyTracer}});var c=n(846);Object.defineProperty(a,"ProxyTracerProvider",{enumerable:!0,get:function(){return c.ProxyTracerProvider}});var d=n(996);Object.defineProperty(a,"SamplingDecision",{enumerable:!0,get:function(){return d.SamplingDecision}});var g=n(357);Object.defineProperty(a,"SpanKind",{enumerable:!0,get:function(){return g.SpanKind}});var p=n(847);Object.defineProperty(a,"SpanStatusCode",{enumerable:!0,get:function(){return p.SpanStatusCode}});var f=n(475);Object.defineProperty(a,"TraceFlags",{enumerable:!0,get:function(){return f.TraceFlags}});var _=n(98);Object.defineProperty(a,"createTraceState",{enumerable:!0,get:function(){return _.createTraceState}});var v=n(139);Object.defineProperty(a,"isSpanContextValid",{enumerable:!0,get:function(){return v.isSpanContextValid}}),Object.defineProperty(a,"isValidTraceId",{enumerable:!0,get:function(){return v.isValidTraceId}}),Object.defineProperty(a,"isValidSpanId",{enumerable:!0,get:function(){return v.isValidSpanId}});var S=n(476);Object.defineProperty(a,"INVALID_SPANID",{enumerable:!0,get:function(){return S.INVALID_SPANID}}),Object.defineProperty(a,"INVALID_TRACEID",{enumerable:!0,get:function(){return S.INVALID_TRACEID}}),Object.defineProperty(a,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return S.INVALID_SPAN_CONTEXT}});let b=n(67);Object.defineProperty(a,"context",{enumerable:!0,get:function(){return b.context}});let h=n(506);Object.defineProperty(a,"diag",{enumerable:!0,get:function(){return h.diag}});let E=n(886);Object.defineProperty(a,"metrics",{enumerable:!0,get:function(){return E.metrics}});let O=n(939);Object.defineProperty(a,"propagation",{enumerable:!0,get:function(){return O.propagation}});let P=n(845);Object.defineProperty(a,"trace",{enumerable:!0,get:function(){return P.trace}}),a.default={context:b.context,diag:h.diag,metrics:E.metrics,propagation:O.propagation,trace:P.trace}})(),e.exports=a})()},9226:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NEXT_QUERY_PARAM_PREFIX:function(){return r},PRERENDER_REVALIDATE_HEADER:function(){return n},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},RSC_PREFETCH_SUFFIX:function(){return o},RSC_SUFFIX:function(){return i},NEXT_DATA_SUFFIX:function(){return l},NEXT_META_SUFFIX:function(){return s},NEXT_BODY_SUFFIX:function(){return u},NEXT_CACHE_TAGS_HEADER:function(){return c},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return g},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return p},NEXT_CACHE_TAG_MAX_LENGTH:function(){return f},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return _},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return v},CACHE_ONE_YEAR:function(){return S},MIDDLEWARE_FILENAME:function(){return b},MIDDLEWARE_LOCATION_REGEXP:function(){return h},INSTRUMENTATION_HOOK_FILENAME:function(){return E},PAGES_DIR_ALIAS:function(){return O},DOT_NEXT_ALIAS:function(){return P},ROOT_DIR_ALIAS:function(){return R},APP_DIR_ALIAS:function(){return T},RSC_MOD_REF_PROXY_ALIAS:function(){return m},RSC_ACTION_VALIDATE_ALIAS:function(){return N},RSC_ACTION_PROXY_ALIAS:function(){return x},RSC_ACTION_ENCRYPTION_ALIAS:function(){return y},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return C},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return A},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return I},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return M},SERVER_PROPS_SSG_CONFLICT:function(){return D},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return L},SERVER_PROPS_EXPORT_ERROR:function(){return w},GSP_NO_RETURNED_VALUE:function(){return j},GSSP_NO_RETURNED_VALUE:function(){return V},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return B},GSSP_COMPONENT_MEMBER_ERROR:function(){return G},NON_STANDARD_NODE_ENV:function(){return U},SSG_FALLBACK_EXPORT_ERROR:function(){return H},ESLINT_DEFAULT_DIRS:function(){return F},ESLINT_PROMPT_VALUES:function(){return $},SERVER_RUNTIME:function(){return X},WEBPACK_LAYERS:function(){return K},WEBPACK_RESOURCE_QUERIES:function(){return W}});let r="nxtP",n="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",o=".prefetch.rsc",i=".rsc",l=".json",s=".meta",u=".body",c="x-next-cache-tags",d="x-next-cache-soft-tags",g="x-next-revalidated-tags",p="x-next-revalidate-tag-token",f=256,_=1024,v="_N_T_",S=31536e3,b="middleware",h=`(?:src/)?${b}`,E="instrumentation",O="private-next-pages",P="private-dot-next",R="private-next-root-dir",T="private-next-app-dir",m="next/dist/build/webpack/loaders/next-flight-loader/module-proxy",N="private-next-rsc-action-validate",x="private-next-rsc-action-proxy",y="private-next-rsc-action-encryption",C="private-next-rsc-action-client-wrapper",A="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",I="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",M="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",D="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",L="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",w="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",j="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",V="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",B="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",G="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",U='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',H="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",F=["app","pages","components","lib","src"],$=[{title:"Strict",recommended:!0,config:{extends:"next/core-web-vitals"}},{title:"Base",config:{extends:"next"}},{title:"Cancel",config:null}],X={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},k={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},K={...k,GROUP:{server:[k.reactServerComponents,k.actionBrowser,k.appMetadataRoute,k.appRouteHandler],nonClientServerTarget:[k.middleware,k.api],app:[k.reactServerComponents,k.actionBrowser,k.appMetadataRoute,k.appRouteHandler,k.serverSideRendering,k.appPagesBrowser,k.shared]}},W={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},2761:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{reset:function(){return s},bold:function(){return u},dim:function(){return c},italic:function(){return d},underline:function(){return g},inverse:function(){return p},hidden:function(){return f},strikethrough:function(){return _},black:function(){return v},red:function(){return S},green:function(){return b},yellow:function(){return h},blue:function(){return E},magenta:function(){return O},purple:function(){return P},cyan:function(){return R},white:function(){return T},gray:function(){return m},bgBlack:function(){return N},bgRed:function(){return x},bgGreen:function(){return y},bgYellow:function(){return C},bgBlue:function(){return A},bgMagenta:function(){return I},bgCyan:function(){return M},bgWhite:function(){return D}});let{env:n,stdout:a}=(null==(r=globalThis)?void 0:r.process)??{},o=n&&!n.NO_COLOR&&(n.FORCE_COLOR||(null==a?void 0:a.isTTY)&&!n.CI&&"dumb"!==n.TERM),i=(e,t,r,n)=>{let a=e.substring(0,n)+r,o=e.substring(n+t.length),l=o.indexOf(t);return~l?a+i(o,t,r,l):a+o},l=(e,t,r=e)=>o?n=>{let a=""+n,o=a.indexOf(t,e.length);return~o?e+i(a,t,r,o)+t:e+a+t}:String,s=o?e=>`\x1b[0m${e}\x1b[0m`:String,u=l("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),c=l("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),d=l("\x1b[3m","\x1b[23m"),g=l("\x1b[4m","\x1b[24m"),p=l("\x1b[7m","\x1b[27m"),f=l("\x1b[8m","\x1b[28m"),_=l("\x1b[9m","\x1b[29m"),v=l("\x1b[30m","\x1b[39m"),S=l("\x1b[31m","\x1b[39m"),b=l("\x1b[32m","\x1b[39m"),h=l("\x1b[33m","\x1b[39m"),E=l("\x1b[34m","\x1b[39m"),O=l("\x1b[35m","\x1b[39m"),P=l("\x1b[38;2;173;127;168m","\x1b[39m"),R=l("\x1b[36m","\x1b[39m"),T=l("\x1b[37m","\x1b[39m"),m=l("\x1b[90m","\x1b[39m"),N=l("\x1b[40m","\x1b[49m"),x=l("\x1b[41m","\x1b[49m"),y=l("\x1b[42m","\x1b[49m"),C=l("\x1b[43m","\x1b[49m"),A=l("\x1b[44m","\x1b[49m"),I=l("\x1b[45m","\x1b[49m"),M=l("\x1b[46m","\x1b[49m"),D=l("\x1b[47m","\x1b[49m")},1498:(e,t)=>{var r;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(r||(r={}))},9308:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{validateRevalidate:function(){return s},validateTags:function(){return u},addImplicitTags:function(){return d},patchFetch:function(){return p}});let n=r(7087),a=r(8554),o=r(9226),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(r(3181));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function s(e,t){try{let r;if(!1===e)r=e;else if("number"==typeof e&&!isNaN(e)&&e>-1)r=e;else if(void 0!==e)throw Error(`Invalid revalidate value "${e}" on "${t}", must be a non-negative number or "false"`);return r}catch(e){if(e instanceof Error&&e.message.includes("Invalid revalidate"))throw e;return}}function u(e,t){let r=[],n=[];for(let t of e)"string"!=typeof t?n.push({tag:t,reason:"invalid type, must be a string"}):t.length>o.NEXT_CACHE_TAG_MAX_LENGTH?n.push({tag:t,reason:`exceeded max length of ${o.NEXT_CACHE_TAG_MAX_LENGTH}`}):r.push(t);if(n.length>0)for(let{tag:e,reason:r}of(console.warn(`Warning: invalid tags passed to ${t}: `),n))console.log(`tag: "${e}" ${r}`);return r}let c=e=>{let t=["/layout"];if(e.startsWith("/")){let r=e.split("/");for(let e=1;er.every(r=>e[r]===t[r]))||e.fetchMetrics.push({url:t.url,cacheStatus:t.cacheStatus,cacheReason:t.cacheReason,status:t.status,method:t.method,start:t.start,end:Date.now(),idx:e.nextFetchId||0})}function p({serverHooks:e,staticGenerationAsyncStorage:t}){if(globalThis._nextOriginalFetch||(globalThis._nextOriginalFetch=globalThis.fetch),globalThis.fetch.__nextPatched)return;let{DynamicServerError:r}=e,l=globalThis._nextOriginalFetch;globalThis.fetch=async(e,c)=>{var p,f;let _;try{(_=new URL(e instanceof Request?e.url:e)).username="",_.password=""}catch{_=void 0}let v=(null==_?void 0:_.href)??"",S=Date.now(),b=(null==c?void 0:null==(p=c.method)?void 0:p.toUpperCase())||"GET",h=(null==(f=null==c?void 0:c.next)?void 0:f.internal)===!0,E="1"===process.env.NEXT_OTEL_FETCH_DISABLED;return await (0,a.getTracer)().trace(h?n.NextNodeServerSpan.internalFetch:n.AppRenderSpan.fetch,{hideSpan:E,kind:a.SpanKind.CLIENT,spanName:["fetch",b,v].filter(Boolean).join(" "),attributes:{"http.url":v,"http.method":b,"net.peer.name":null==_?void 0:_.hostname,"net.peer.port":(null==_?void 0:_.port)||void 0}},async()=>{var n;let a,p,f;let _=t.getStore()||(null==fetch.__nextGetStaticStore?void 0:fetch.__nextGetStaticStore.call(fetch)),b=e&&"object"==typeof e&&"string"==typeof e.method,E=t=>(null==c?void 0:c[t])||(b?e[t]:null);if(!_||h||_.isDraftMode)return l(e,c);let O=t=>{var r,n,a;return void 0!==(null==c?void 0:null==(r=c.next)?void 0:r[t])?null==c?void 0:null==(n=c.next)?void 0:n[t]:b?null==(a=e.next)?void 0:a[t]:void 0},P=O("revalidate"),R=u(O("tags")||[],`fetch ${e.toString()}`);if(Array.isArray(R))for(let e of(_.tags||(_.tags=[]),R))_.tags.includes(e)||_.tags.push(e);let T=d(_),m="only-cache"===_.fetchCache,N="force-cache"===_.fetchCache,x="default-cache"===_.fetchCache,y="default-no-store"===_.fetchCache,C="only-no-store"===_.fetchCache,A="force-no-store"===_.fetchCache,I=!!_.isUnstableNoStore,M=E("cache"),D="";"string"==typeof M&&void 0!==P&&(b&&"default"===M||i.warn(`fetch for ${v} on ${_.urlPathname} specified "cache: ${M}" and "revalidate: ${P}", only one should be specified.`),M=void 0),"force-cache"===M?P=!1:("no-cache"===M||"no-store"===M||A||C)&&(P=0),("no-cache"===M||"no-store"===M)&&(D=`cache: ${M}`),f=s(P,_.urlPathname);let L=E("headers"),w="function"==typeof(null==L?void 0:L.get)?L:new Headers(L||{}),j=w.get("authorization")||w.get("cookie"),V=!["get","head"].includes((null==(n=E("method"))?void 0:n.toLowerCase())||"get"),B=(j||V)&&0===_.revalidate;if(A&&(D="fetchCache = force-no-store"),C){if("force-cache"===M||void 0!==f&&(!1===f||f>0))throw Error(`cache: 'force-cache' used on fetch for ${v} with 'export const fetchCache = 'only-no-store'`);D="fetchCache = only-no-store"}if(m&&"no-store"===M)throw Error(`cache: 'no-store' used on fetch for ${v} with 'export const fetchCache = 'only-cache'`);N&&(void 0===P||0===P)&&(D="fetchCache = force-cache",f=!1),void 0===f?x?(f=!1,D="fetchCache = default-cache"):B?(f=0,D="auto no cache"):y?(f=0,D="fetchCache = default-no-store"):I?(f=0,D="noStore call"):(D="auto cache",f="boolean"!=typeof _.revalidate&&void 0!==_.revalidate&&_.revalidate):D||(D=`revalidate: ${f}`),_.forceStatic&&0===f||B||void 0!==_.revalidate&&("number"!=typeof f||!1!==_.revalidate&&("number"!=typeof _.revalidate||!(f<_.revalidate)))||(0===f&&(null==_.postpone||_.postpone.call(_,"revalidate: 0")),_.revalidate=f);let G="number"==typeof f&&f>0||!1===f;if(_.incrementalCache&&G)try{a=await _.incrementalCache.fetchCacheKey(v,b?e:c)}catch(t){console.error("Failed to generate cache key for",e)}let U=_.nextFetchId??1;_.nextFetchId=U+1;let H="number"!=typeof f?o.CACHE_ONE_YEAR:f,F=async(t,r)=>{let n=["cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","window","duplex",...t?[]:["signal"]];if(b){let t=e,r={body:t._ogBody||t.body};for(let e of n)r[e]=t[e];e=new Request(t.url,r)}else if(c){let e=c;for(let t of(c={body:c._ogBody||c.body},n))c[t]=e[t]}let o={...c,next:{...null==c?void 0:c.next,fetchType:"origin",fetchIdx:U}};return l(e,o).then(async n=>{if(t||g(_,{start:S,url:v,cacheReason:r||D,cacheStatus:0===f||r?"skip":"miss",status:n.status,method:o.method||"GET"}),200===n.status&&_.incrementalCache&&a&&G){let t=Buffer.from(await n.arrayBuffer());try{await _.incrementalCache.set(a,{kind:"FETCH",data:{headers:Object.fromEntries(n.headers.entries()),body:t.toString("base64"),status:n.status,url:n.url},revalidate:H},{fetchCache:!0,revalidate:f,fetchUrl:v,fetchIdx:U,tags:R})}catch(t){console.warn("Failed to set fetch cache",e,t)}let r=new Response(t,{headers:new Headers(n.headers),status:n.status});return Object.defineProperty(r,"url",{value:n.url}),r}return n})},$=()=>Promise.resolve();if(a&&_.incrementalCache){$=await _.incrementalCache.lock(a);let e=_.isOnDemandRevalidate?null:await _.incrementalCache.get(a,{kindHint:"fetch",revalidate:f,fetchUrl:v,fetchIdx:U,tags:R,softTags:T});if(e?await $():p="cache-control: no-cache (hard refresh)",(null==e?void 0:e.value)&&"FETCH"===e.value.kind&&!(_.isRevalidate&&e.isStale)){e.isStale&&(_.pendingRevalidates??={},_.pendingRevalidates[a]||(_.pendingRevalidates[a]=F(!0).catch(console.error)));let t=e.value.data;g(_,{start:S,url:v,cacheReason:D,cacheStatus:"hit",status:t.status||200,method:(null==c?void 0:c.method)||"GET"});let r=new Response(Buffer.from(t.body,"base64"),{headers:t.headers,status:t.status});return Object.defineProperty(r,"url",{value:e.value.data.url}),r}}if(_.isStaticGeneration&&c&&"object"==typeof c){let{cache:t}=c;if(!_.forceStatic&&"no-store"===t){let t=`no-store fetch ${e}${_.urlPathname?` ${_.urlPathname}`:""}`;null==_.postpone||_.postpone.call(_,t),_.revalidate=0;let n=new r(t);_.dynamicUsageErr=n,_.dynamicUsageDescription=t}let n="next"in c,{next:a={}}=c;if("number"==typeof a.revalidate&&(void 0===_.revalidate||"number"==typeof _.revalidate&&a.revalidate<_.revalidate)){if(!_.forceDynamic&&!_.forceStatic&&0===a.revalidate){let t=`revalidate: 0 fetch ${e}${_.urlPathname?` ${_.urlPathname}`:""}`;null==_.postpone||_.postpone.call(_,t);let n=new r(t);_.dynamicUsageErr=n,_.dynamicUsageDescription=t}_.forceStatic&&0===a.revalidate||(_.revalidate=a.revalidate)}n&&delete c.next}return F(!1,p).finally($)})},globalThis.fetch.__nextGetStaticStore=()=>t,globalThis.fetch.__nextPatched=!0}},7087:(e,t)=>{var r,n,a,o,i,l,s,u,c,d,g;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NextVanillaSpanAllowlist:function(){return p},BaseServerSpan:function(){return r},LoadComponentsSpan:function(){return n},NextServerSpan:function(){return a},NextNodeServerSpan:function(){return o},StartServerSpan:function(){return i},RenderSpan:function(){return l},RouterSpan:function(){return u},AppRenderSpan:function(){return s},NodeSpan:function(){return c},AppRouteRouteHandlersSpan:function(){return d},ResolveMetadataSpan:function(){return g}}),function(e){e.handleRequest="BaseServer.handleRequest",e.run="BaseServer.run",e.pipe="BaseServer.pipe",e.getStaticHTML="BaseServer.getStaticHTML",e.render="BaseServer.render",e.renderToResponseWithComponents="BaseServer.renderToResponseWithComponents",e.renderToResponse="BaseServer.renderToResponse",e.renderToHTML="BaseServer.renderToHTML",e.renderError="BaseServer.renderError",e.renderErrorToResponse="BaseServer.renderErrorToResponse",e.renderErrorToHTML="BaseServer.renderErrorToHTML",e.render404="BaseServer.render404"}(r||(r={})),function(e){e.loadDefaultErrorComponents="LoadComponents.loadDefaultErrorComponents",e.loadComponents="LoadComponents.loadComponents"}(n||(n={})),function(e){e.getRequestHandler="NextServer.getRequestHandler",e.getServer="NextServer.getServer",e.getServerRequestHandler="NextServer.getServerRequestHandler",e.createServer="createServer.createServer"}(a||(a={})),function(e){e.compression="NextNodeServer.compression",e.getBuildId="NextNodeServer.getBuildId",e.getLayoutOrPageModule="NextNodeServer.getLayoutOrPageModule",e.generateStaticRoutes="NextNodeServer.generateStaticRoutes",e.generateFsStaticRoutes="NextNodeServer.generateFsStaticRoutes",e.generatePublicRoutes="NextNodeServer.generatePublicRoutes",e.generateImageRoutes="NextNodeServer.generateImageRoutes.route",e.sendRenderResult="NextNodeServer.sendRenderResult",e.proxyRequest="NextNodeServer.proxyRequest",e.runApi="NextNodeServer.runApi",e.render="NextNodeServer.render",e.renderHTML="NextNodeServer.renderHTML",e.imageOptimizer="NextNodeServer.imageOptimizer",e.getPagePath="NextNodeServer.getPagePath",e.getRoutesManifest="NextNodeServer.getRoutesManifest",e.findPageComponents="NextNodeServer.findPageComponents",e.getFontManifest="NextNodeServer.getFontManifest",e.getServerComponentManifest="NextNodeServer.getServerComponentManifest",e.getRequestHandler="NextNodeServer.getRequestHandler",e.renderToHTML="NextNodeServer.renderToHTML",e.renderError="NextNodeServer.renderError",e.renderErrorToHTML="NextNodeServer.renderErrorToHTML",e.render404="NextNodeServer.render404",e.route="route",e.onProxyReq="onProxyReq",e.apiResolver="apiResolver",e.internalFetch="internalFetch"}(o||(o={})),(i||(i={})).startServer="startServer.startServer",function(e){e.getServerSideProps="Render.getServerSideProps",e.getStaticProps="Render.getStaticProps",e.renderToString="Render.renderToString",e.renderDocument="Render.renderDocument",e.createBodyResult="Render.createBodyResult"}(l||(l={})),function(e){e.renderToString="AppRender.renderToString",e.renderToReadableStream="AppRender.renderToReadableStream",e.getBodyResult="AppRender.getBodyResult",e.fetch="AppRender.fetch"}(s||(s={})),(u||(u={})).executeRoute="Router.executeRoute",(c||(c={})).runHandler="Node.runHandler",(d||(d={})).runHandler="AppRouteRouteHandlers.runHandler",function(e){e.generateMetadata="ResolveMetadata.generateMetadata",e.generateViewport="ResolveMetadata.generateViewport"}(g||(g={}));let p=["BaseServer.handleRequest","Render.getServerSideProps","Render.getStaticProps","AppRender.fetch","AppRender.getBodyResult","Render.renderDocument","Node.runHandler","AppRouteRouteHandlers.runHandler","ResolveMetadata.generateMetadata","ResolveMetadata.generateViewport","NextNodeServer.findPageComponents","NextNodeServer.getLayoutOrPageModule"]},8554:(e,t,r)=>{let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getTracer:function(){return b},SpanStatusCode:function(){return s},SpanKind:function(){return u}});let a=r(7087);try{n=r(1405)}catch(e){n=r(1405)}let{context:o,propagation:i,trace:l,SpanStatusCode:s,SpanKind:u,ROOT_CONTEXT:c}=n,d=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then,g=(e,t)=>{(null==t?void 0:t.bubble)===!0?e.setAttribute("next.bubble",!0):(t&&e.recordException(t),e.setStatus({code:s.ERROR,message:null==t?void 0:t.message})),e.end()},p=new Map,f=n.createContextKey("next.rootSpanId"),_=0,v=()=>_++;class S{getTracerInstance(){return l.getTracer("next.js","0.0.1")}getContext(){return o}getActiveScopeSpan(){return l.getSpan(null==o?void 0:o.active())}withPropagatedContext(e,t,r){let n=o.active();if(l.getSpanContext(n))return t();let a=i.extract(n,e,r);return o.with(a,t)}trace(...e){var t;let[r,n,i]=e,{fn:s,options:u}="function"==typeof n?{fn:n,options:{}}:{fn:i,options:{...n}};if(!a.NextVanillaSpanAllowlist.includes(r)&&"1"!==process.env.NEXT_OTEL_VERBOSE||u.hideSpan)return s();let _=u.spanName??r,S=this.getSpanContext((null==u?void 0:u.parentSpan)??this.getActiveScopeSpan()),b=!1;S?(null==(t=l.getSpanContext(S))?void 0:t.isRemote)&&(b=!0):(S=c,b=!0);let h=v();return u.attributes={"next.span_name":_,"next.span_type":r,...u.attributes},o.with(S.setValue(f,h),()=>this.getTracerInstance().startActiveSpan(_,u,e=>{let t=()=>{p.delete(h)};b&&p.set(h,new Map(Object.entries(u.attributes??{})));try{if(s.length>1)return s(e,t=>g(e,t));let r=s(e);if(d(r))return r.then(t=>(e.end(),t)).catch(t=>{throw g(e,t),t}).finally(t);return e.end(),t(),r}catch(r){throw g(e,r),t(),r}}))}wrap(...e){let t=this,[r,n,i]=3===e.length?e:[e[0],{},e[1]];return a.NextVanillaSpanAllowlist.includes(r)||"1"===process.env.NEXT_OTEL_VERBOSE?function(){let e=n;"function"==typeof e&&"function"==typeof i&&(e=e.apply(this,arguments));let a=arguments.length-1,l=arguments[a];if("function"!=typeof l)return t.trace(r,e,()=>i.apply(this,arguments));{let n=t.getContext().bind(o.active(),l);return t.trace(r,e,(e,t)=>(arguments[a]=function(e){return null==t||t(e),n.apply(this,arguments)},i.apply(this,arguments)))}}:i}startSpan(...e){let[t,r]=e,n=this.getSpanContext((null==r?void 0:r.parentSpan)??this.getActiveScopeSpan());return this.getTracerInstance().startSpan(t,r,n)}getSpanContext(e){return e?l.setSpan(o.active(),e):void 0}getRootSpanAttributes(){let e=o.active().getValue(f);return p.get(e)}}let b=(()=>{let e=new S;return()=>e})()}}; \ No newline at end of file diff --git a/apps/web/.next/server/chunks/38.js b/apps/web/.next/server/chunks/38.js new file mode 100644 index 00000000..09e84313 --- /dev/null +++ b/apps/web/.next/server/chunks/38.js @@ -0,0 +1 @@ +exports.id=38,exports.ids=[38],exports.modules={1608:e=>{e.exports={style:{fontFamily:"'__Inter_aaf875', '__Inter_Fallback_aaf875'",fontStyle:"normal"},className:"__className_aaf875",variable:"__variable_aaf875"}},9517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return l}});let n=r(8800),o=r(7294);function l(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let n=r(9489);async function o(e,t){let r=(0,n.getServerActionDispatcher)();if(!r)throw Error("Invariant: missing action dispatcher.");return new Promise((n,o)=>{r({actionId:e,actionArgs:t,resolve:n,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return u}});let n=r(3810),o=r(914),l="next-route-announcer";function u(e){let{tree:t}=e,[r,u]=(0,n.useState)(null);(0,n.useEffect)(()=>(u(function(){var e;let t=document.getElementsByName(l)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(l);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(l)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,n.useState)(""),s=(0,n.useRef)();return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==s.current&&s.current!==e&&i(e),s.current=e},[t]),r?(0,o.createPortal)(a,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2848:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RSC_HEADER:function(){return r},ACTION:function(){return n},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_ROUTER_PREFETCH_HEADER:function(){return l},NEXT_URL:function(){return u},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_VARY_HEADER:function(){return i},FLIGHT_PARAMETERS:function(){return s},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_DID_POSTPONE_HEADER:function(){return d}});let r="RSC",n="Next-Action",o="Next-Router-State-Tree",l="Next-Router-Prefetch",u="Next-Url",a="text/x-component",i=r+", "+o+", "+l+", "+u,s=[[r],[o],[l]],c="_rsc",d="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getServerActionDispatcher:function(){return O},urlToUrlWithoutFlightMarker:function(){return S},createEmptyCacheNode:function(){return T},default:function(){return N}});let n=r(4816),o=r(7685),l=n._(r(3810)),u=r(7874),a=r(4967),i=r(5458),s=r(7321),c=r(1274),d=r(6225),f=r(4782),p=r(8866),h=r(9517),y=r(2023),_=r(5369),b=r(3567),g=r(8937),v=r(2848),m=r(5084),j=r(8977),P=null,R=null;function O(){return R}let E={};function S(e){let t=new URL(e,location.origin);return t.searchParams.delete(v.NEXT_RSC_UNION_QUERY),t}function x(e){return e.origin!==window.location.origin}function M(e){let{appRouterState:t,sync:r}=e;return(0,l.useInsertionEffect)(()=>{let{tree:e,pushRef:n,canonicalUrl:o}=t,l={...n.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};n.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(n.pendingPush=!1,window.history.pushState(l,"",o)):window.history.replaceState(l,"",o),r(t)},[t,r]),null}function T(){return{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map}}function w(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let n=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function C(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,o=null!==n?n:r;return(0,l.useDeferredValue)(r,o)}function A(e){let t,{buildId:r,initialHead:n,initialTree:i,initialCanonicalUrl:d,initialSeedData:v,assetPrefix:O,missingSlots:S}=e,T=(0,l.useMemo)(()=>(0,f.createInitialRouterState)({buildId:r,initialSeedData:v,initialCanonicalUrl:d,initialTree:i,initialParallelRoutes:P,isServer:!0,location:null,initialHead:n}),[r,v,d,i,n]),[A,N,U]=(0,c.useReducerWithReduxDevtools)(T);(0,l.useEffect)(()=>{P=null},[]);let{canonicalUrl:F}=(0,c.useUnwrapState)(A),{searchParams:I,pathname:D}=(0,l.useMemo)(()=>{let e=new URL(F,"http://n");return{searchParams:e.searchParams,pathname:(0,j.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[F]),H=(0,l.useCallback)((e,t,r)=>{(0,l.startTransition)(()=>{N({type:a.ACTION_SERVER_PATCH,flightData:t,previousTree:e,overrideCanonicalUrl:r})})},[N]),L=(0,l.useCallback)((e,t,r)=>{let n=new URL((0,h.addBasePath)(e),location.href);return N({type:a.ACTION_NAVIGATE,url:n,isExternalUrl:x(n),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t})},[N]);R=(0,l.useCallback)(e=>{(0,l.startTransition)(()=>{N({...e,type:a.ACTION_SERVER_ACTION})})},[N]);let k=(0,l.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{if((0,p.isBot)(window.navigator.userAgent))return;let r=new URL((0,h.addBasePath)(e),window.location.href);x(r)||(0,l.startTransition)(()=>{var e;N({type:a.ACTION_PREFETCH,url:r,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,l.startTransition)(()=>{var r;L(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,l.startTransition)(()=>{var r;L(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,l.startTransition)(()=>{N({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[N,L]);(0,l.useEffect)(()=>{window.next&&(window.next.router=k)},[k]),(0,l.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&N({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE})}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[N]);let{pushRef:G}=(0,c.useUnwrapState)(A);if(G.mpaNavigation){if(E.pendingMpaPath!==F){let e=window.location;G.pendingPush?e.assign(F):e.replace(F),E.pendingMpaPath=F}(0,l.use)((0,g.createInfinitePromise)())}(0,l.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{let t=window.location.href;(0,l.startTransition)(()=>{N({type:a.ACTION_RESTORE,url:new URL(null!=e?e:t,t),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE})})};window.history.pushState=function(t,n,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=w(t),o&&r(o)),e(t,n,o)},window.history.replaceState=function(e,n,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=w(e),o&&r(o)),t(e,n,o)};let n=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,l.startTransition)(()=>{N({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[N]);let{cache:B,tree:z,nextUrl:W,focusAndScrollRef:K}=(0,c.useUnwrapState)(A),V=(0,l.useMemo)(()=>(0,b.findHeadInCache)(B,z[1]),[B,z]);if(null!==V){let[e,r]=V;t=(0,o.jsx)(C,{headCacheNode:e},r)}else t=null;let X=(0,o.jsxs)(_.RedirectBoundary,{children:[t,B.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:z})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(M,{appRouterState:(0,c.useUnwrapState)(A),sync:U}),(0,o.jsx)(s.PathnameContext.Provider,{value:D,children:(0,o.jsx)(s.SearchParamsContext.Provider,{value:I,children:(0,o.jsx)(u.GlobalLayoutRouterContext.Provider,{value:{buildId:r,changeByServerResponse:H,tree:z,focusAndScrollRef:K,nextUrl:W},children:(0,o.jsx)(u.AppRouterContext.Provider,{value:k,children:(0,o.jsx)(u.LayoutRouterContext.Provider,{value:{childNodes:B.parallelRoutes,tree:z,url:F},children:X})})})})})]})}function N(e){let{globalErrorComponent:t,...r}=e;return(0,o.jsx)(d.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(A,{...r})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return l}});let n=r(2768),o=r(4749);function l(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new n.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6515:(e,t,r)=>{"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(3444),r(3810),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ErrorBoundaryHandler:function(){return c},GlobalError:function(){return d},default:function(){return f},ErrorBoundary:function(){return p}});let n=r(3444),o=r(7685),l=n._(r(3810)),u=r(7435),a=r(2241),i={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e;if("function"==typeof fetch.__nextGetStaticStore){var r;let e=null==(r=fetch.__nextGetStaticStore())?void 0:r.getStore();if((null==e?void 0:e.isRevalidate)||(null==e?void 0:e.isStaticGeneration))throw console.error(t),t}return null}class c extends l.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,r=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)("div",{style:i.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:i.text,children:"Application error: a "+(r?"server":"client")+"-side exception has occurred (see the "+(r?"server logs":"browser console")+" for more information)."}),r?(0,o.jsx)("p",{style:i.text,children:"Digest: "+r}):null]})})]})]})}let f=d;function p(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:l}=e,a=(0,u.usePathname)();return t?(0,o.jsx)(c,{pathname:a,errorComponent:t,errorStyles:r,errorScripts:n,children:l}):(0,o.jsx)(o.Fragment,{children:l})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},999:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return o}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8937:(e,t)=>{"use strict";let r;function n(){return r||(r=new Promise(()=>{})),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInfinitePromise",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return l}});let n=r(1951),o=r(8591);function l(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,n.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}}),r(3444);let n=r(4816),o=r(7685),l=n._(r(3810));r(914);let u=r(7874),a=r(5917),i=r(8937),s=r(6225),c=r(7666),d=r(3848),f=r(5369),p=r(5804),h=r(9010),y=r(3711),_=["bottom","height","left","right","top","width","x","y"];function b(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class g extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,c.matchSegment)(t,e[r]))))return;let r=null,n=e.hashFragment;if(n&&(r=function(e){var t;return"top"===e?document.body:null!=(t=document.getElementById(e))?t:document.getElementsByName(e)[0]}(n)),!r&&(r=null),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return _.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,d.handleSmoothScroll)(()=>{if(n){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!b(r,t)&&(e.scrollTop=0,b(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function v(e){let{segmentPath:t,children:r}=e,n=(0,l.useContext)(u.GlobalLayoutRouterContext);if(!n)throw Error("invariant global layout router not mounted");return(0,o.jsx)(g,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef,children:r})}function m(e){let{parallelRouterKey:t,url:r,childNodes:n,segmentPath:s,tree:d,cacheKey:f}=e,p=(0,l.useContext)(u.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:_}=p,b=n.get(f);if(void 0===b){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,parallelRoutes:new Map};b=e,n.set(f,e)}let g=null!==b.prefetchRsc?b.prefetchRsc:b.rsc,v=(0,l.useDeferredValue)(b.rsc,g),m="object"==typeof v&&null!==v&&"function"==typeof v.then?(0,l.use)(v):v;if(!m){let e=b.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,o]=t,l=2===t.length;if((0,c.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(l){let t=e(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:e(t.slice(2),r[1][o])}]}}return r}(["",...s],_);b.lazyData=e=(0,a.fetchServerResponse)(new URL(r,location.origin),t,p.nextUrl,h)}let[t,n]=(0,l.use)(e);b.lazyData=null,setTimeout(()=>{(0,l.startTransition)(()=>{y(_,t,n)})}),(0,l.use)((0,i.createInfinitePromise)())}return(0,o.jsx)(u.LayoutRouterContext.Provider,{value:{tree:d[1][t],childNodes:b.parallelRoutes,url:r},children:m})}function j(e){let{children:t,loading:r,loadingStyles:n,loadingScripts:u,hasLoading:a}=e;return a?(0,o.jsx)(l.Suspense,{fallback:(0,o.jsxs)(o.Fragment,{children:[n,u,r]}),children:t}):(0,o.jsx)(o.Fragment,{children:t})}function P(e){let{parallelRouterKey:t,segmentPath:r,error:n,errorStyles:a,errorScripts:i,templateStyles:c,templateScripts:d,loading:_,loadingStyles:b,loadingScripts:g,hasLoading:P,template:R,notFound:O,notFoundStyles:E,styles:S}=e,x=(0,l.useContext)(u.LayoutRouterContext);if(!x)throw Error("invariant expected layout router to be mounted");let{childNodes:M,tree:T,url:w}=x,C=M.get(t);C||(C=new Map,M.set(t,C));let A=T[1][t][0],N=(0,h.getSegmentValue)(A),U=[A];return(0,o.jsxs)(o.Fragment,{children:[S,U.map(e=>{let l=(0,h.getSegmentValue)(e),S=(0,y.createRouterCacheKey)(e);return(0,o.jsxs)(u.TemplateContext.Provider,{value:(0,o.jsx)(v,{segmentPath:r,children:(0,o.jsx)(s.ErrorBoundary,{errorComponent:n,errorStyles:a,errorScripts:i,children:(0,o.jsx)(j,{hasLoading:P,loading:_,loadingStyles:b,loadingScripts:g,children:(0,o.jsx)(p.NotFoundBoundary,{notFound:O,notFoundStyles:E,children:(0,o.jsx)(f.RedirectBoundary,{children:(0,o.jsx)(m,{parallelRouterKey:t,url:w,tree:T,childNodes:C,segmentPath:r,cacheKey:S,isActive:N===l})})})})})}),children:[c,d,R]},(0,y.createRouterCacheKey)(e,!0))})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7666:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{matchSegment:function(){return o},canSegmentBeOverridden:function(){return l}});let n=r(5841),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],l=(e,t)=>{var r;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(r=(0,n.getSegmentParam)(e))?void 0:r.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return y},usePathname:function(){return _},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return s.useServerInsertedHTML},useRouter:function(){return b},useParams:function(){return g},useSelectedLayoutSegments:function(){return v},useSelectedLayoutSegment:function(){return m},redirect:function(){return c.redirect},permanentRedirect:function(){return c.permanentRedirect},RedirectType:function(){return c.RedirectType},notFound:function(){return d.notFound}});let n=r(3810),o=r(7874),l=r(7321),u=r(6515),a=r(9010),i=r(3940),s=r(7932),c=r(8591),d=r(1951),f=Symbol("internal for urlsearchparams readonly");function p(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[f][Symbol.iterator]()}append(){throw p()}delete(){throw p()}set(){throw p()}sort(){throw p()}constructor(e){this[f]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function y(){(0,u.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(l.SearchParamsContext),t=(0,n.useMemo)(()=>e?new h(e):null,[e]);{let{bailoutToClientRendering:e}=r(7391);e("useSearchParams()")}return t}function _(){return(0,u.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(l.PathnameContext)}function b(){(0,u.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,u.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(o.GlobalLayoutRouterContext),t=(0,n.useContext)(l.PathParamsContext);return(0,n.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],o=Array.isArray(t),l=o?t[1]:t;!l||l.startsWith(i.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):o&&(r[t[0]]=t[1]),r=e(n,r))}return r}(e.tree):t,[null==e?void 0:e.tree,t])}function v(e){void 0===e&&(e="children"),(0,u.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(o.LayoutRouterContext);return function e(t,r,n,o){let l;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)l=t[1][r];else{var u;let e=t[1];l=null!=(u=e.children)?u:Object.values(e)[0]}if(!l)return o;let s=l[0],c=(0,a.getSegmentValue)(s);return!c||c.startsWith(i.PAGE_SEGMENT_KEY)?o:(o.push(c),e(l,r,!1,o))}(t,e)}function m(e){void 0===e&&(e="children"),(0,u.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=v(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return c}});let n=r(4816),o=r(7685),l=n._(r(3810)),u=r(7435),a=r(1951);r(4586);let i=r(7874);class s extends l.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function c(e){let{notFound:t,notFoundStyles:r,asNotFound:n,children:a}=e,c=(0,u.usePathname)(),d=(0,l.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(s,{pathname:c,notFound:t,notFoundStyles:r,asNotFound:n,missingSlots:d,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return o}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return s}});let n=r(8067),o=r(6296);var l=o._("_maxConcurrency"),u=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class s{enqueue(e){let t,r;let o=new Promise((e,n)=>{t=e,r=n}),l=async()=>{try{n._(this,u)[u]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,u)[u]--,n._(this,i)[i]()}};return n._(this,a)[a].push({promiseFn:o,task:l}),n._(this,i)[i](),o}bump(e){let t=n._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,a)[a].splice(t,1)[0];n._(this,a)[a].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:c}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),n._(this,l)[l]=e,n._(this,u)[u]=0,n._(this,a)[a]=[]}}function c(e){if(void 0===e&&(e=!1),(n._(this,u)[u]0){var t;null==(t=n._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5369:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectErrorBoundary:function(){return s},RedirectBoundary:function(){return c}});let n=r(4816),o=r(7685),l=n._(r(3810)),u=r(7435),a=r(8591);function i(e){let{redirect:t,reset:r,redirectType:n}=e,o=(0,u.useRouter)();return(0,l.useEffect)(()=>{l.default.startTransition(()=>{n===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),r()})},[t,n,r,o]),null}class s extends l.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function c(e){let{children:t}=e,r=(0,u.useRouter)();return(0,o.jsx)(s,{router:r,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4011:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),function(e){e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(r||(r={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8591:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return i},redirect:function(){return s},permanentRedirect:function(){return c},isRedirectError:function(){return d},getURLFromRedirectError:function(){return f},getRedirectTypeFromError:function(){return p},getRedirectStatusCodeFromError:function(){return h}});let o=r(5403),l=r(7849),u=r(4011),a="NEXT_REDIRECT";function i(e,t,r){void 0===r&&(r=u.RedirectStatusCode.TemporaryRedirect);let n=Error(a);n.digest=a+";"+t+";"+e+";"+r+";";let l=o.requestAsyncStorage.getStore();return l&&(n.mutableCookies=l.mutableCookies),n}function s(e,t){void 0===t&&(t="replace");let r=l.actionAsyncStorage.getStore();throw i(e,t,(null==r?void 0:r.isAction)?u.RedirectStatusCode.SeeOther:u.RedirectStatusCode.TemporaryRedirect)}function c(e,t){void 0===t&&(t="replace");let r=l.actionAsyncStorage.getStore();throw i(e,t,(null==r?void 0:r.isAction)?u.RedirectStatusCode.SeeOther:u.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,o]=e.digest.split(";",4),l=Number(o);return t===a&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(l)&&l in u.RedirectStatusCode}function f(e){return d(e)?e.digest.split(";",3)[2]:null}function p(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function h(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(function(e){e.push="push",e.replace="replace"})(n||(n={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(4816),o=r(7685),l=n._(r(3810)),u=r(7874);function a(){let e=(0,l.useContext)(u.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return l}});let n=r(1678),o=r(7756);function l(e,t,r,l){void 0===l&&(l=!1);let[u,a,i]=r.slice(-3);if(null===a)return!1;if(3===r.length){let r=a[2];t.rsc=r,t.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(t,e,u,a,i,l)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),(0,o.fillCacheWithNewSubTreeData)(t,e,r,l);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{applyRouterStatePatchToFullTree:function(){return a},applyRouterStatePatchToTreeSkipDefault:function(){return i}});let n=r(3940),o=r(7666);function l(e,t,r){void 0===r&&(r=!1);let[u,a]=e,[i,s]=t;if(!r&&i===n.DEFAULT_SEGMENT_KEY&&u!==n.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(u,i)){let t={};for(let e in a)void 0!==s[e]?t[e]=l(a[e],s[e],r):t[e]=a[e];for(let e in s)t[e]||(t[e]=s[e]);let n=[u,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}function u(e,t,r,n){let a;void 0===n&&(n=!1);let[i,s,,,c]=t;if(1===e.length)return l(t,r,n);let[d,f]=e;if(!(0,o.matchSegment)(d,i))return null;if(2===e.length)a=l(s[f],r,n);else if(null===(a=u(e.slice(2),s[f],r,n)))return null;let p=[e[0],{...s,[f]:a}];return c&&(p[4]=!0),p}function a(e,t,r){return u(e,t,r,!0)}function i(e,t,r){return u(e,t,r,!1)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{extractPathFromFlightRouterState:function(){return s},computeChangedPath:function(){return c}});let n=r(494),o=r(3940),l=r(7666),u=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?e:e[1];function i(e){return e.reduce((e,t)=>""===(t=u(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function s(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===o.DEFAULT_SEGMENT_KEY||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(o.PAGE_SEGMENT_KEY))return"";let l=[r],u=null!=(t=e[1])?t:{},a=u.children?s(u.children):void 0;if(void 0!==a)l.push(a);else for(let[e,t]of Object.entries(u)){if("children"===e)continue;let r=s(t);void 0!==r&&l.push(r)}return i(l)}function c(e,t){let r=function e(t,r){let[o,u]=t,[i,c]=r,d=a(o),f=a(i);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)||f.startsWith(e)))return"";if(!(0,l.matchSegment)(o,i)){var p;return null!=(p=s(r))?p:""}for(let t in u)if(c[t]){let r=e(u[t],c[t]);if(null!==r)return a(i)+"/"+r}return null}(e,t);return null==r||"/"===r?r:i(r.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5458:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return u}});let n=r(5458),o=r(1678),l=r(1545);function u(e){var t;let{buildId:r,initialTree:u,initialSeedData:a,initialCanonicalUrl:i,initialParallelRoutes:s,isServer:c,location:d,initialHead:f}=e,p={lazyData:null,rsc:a[2],prefetchRsc:null,parallelRoutes:c?new Map:s};return(null===s||0===s.size)&&(0,o.fillLazyItemsTillLeafWithHead)(p,void 0,u,a,f),{buildId:r,tree:u,cache:p,prefetchCache:new Map,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:d?(0,n.createHrefFromUrl)(d):i,nextUrl:null!=(t=(0,l.extractPathFromFlightRouterState)(u)||(null==d?void 0:d.pathname))?t:null}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3711:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let n=r(3940);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?(e[0]+"|"+e[1]+"|"+e[2]).toLowerCase():t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return c}});let n=r(2848),o=r(9489),l=r(2641),u=r(4967),a=r(8467),{createFromFetch:i}=r(5492);function s(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0]}async function c(e,t,r,c,d){let f={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};d===u.PrefetchKind.AUTO&&(f[n.NEXT_ROUTER_PREFETCH_HEADER]="1"),r&&(f[n.NEXT_URL]=r);let p=(0,a.hexHash)([f[n.NEXT_ROUTER_PREFETCH_HEADER]||"0",f[n.NEXT_ROUTER_STATE_TREE],f[n.NEXT_URL]].join(","));try{let t=new URL(e);t.searchParams.set(n.NEXT_RSC_UNION_QUERY,p);let r=await fetch(t,{credentials:"same-origin",headers:f}),u=(0,o.urlToUrlWithoutFlightMarker)(r.url),a=r.redirected?u:void 0,d=r.headers.get("content-type")||"",h=!!r.headers.get(n.NEXT_DID_POSTPONE_HEADER);if(d!==n.RSC_CONTENT_TYPE_HEADER||!r.ok)return e.hash&&(u.hash=e.hash),s(u.toString());let[y,_]=await i(Promise.resolve(r),{callServer:l.callServer});if(c!==y)return s(r.url);return[_,a,h]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithDataProperty",{enumerable:!0,get:function(){return function e(t,r,o,l){let u=o.length<=2,[a,i]=o,s=(0,n.createRouterCacheKey)(i),c=r.parallelRoutes.get(a),d=t.parallelRoutes.get(a);d&&d!==c||(d=new Map(c),t.parallelRoutes.set(a,d));let f=null==c?void 0:c.get(s),p=d.get(s);if(u){p&&p.lazyData&&p!==f||d.set(s,{lazyData:l(),rsc:null,prefetchRsc:null,parallelRoutes:new Map});return}if(!p||!f){p||d.set(s,{lazyData:l(),rsc:null,prefetchRsc:null,parallelRoutes:new Map});return}return p===f&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,parallelRoutes:new Map(p.parallelRoutes)},d.set(s,p)),e(p,f,o.slice(2),l)}}});let n=r(3711);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,r,u,a){let i=u.length<=5,[s,c]=u,d=(0,l.createRouterCacheKey)(c),f=r.parallelRoutes.get(s);if(!f)return;let p=t.parallelRoutes.get(s);p&&p!==f||(p=new Map(f),t.parallelRoutes.set(s,p));let h=f.get(d),y=p.get(d);if(i){if(!y||!y.lazyData||y===h){let e=u[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,parallelRoutes:h?new Map(h.parallelRoutes):new Map},h&&(0,n.invalidateCacheByRouterState)(y,h,u[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,u[2],e,u[4],a),p.set(d,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,parallelRoutes:new Map(y.parallelRoutes)},p.set(d,y)),e(y,h,u.slice(2),a))}}});let n=r(7241),o=r(1678),l=r(3711);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,o,l,u,a){if(0===Object.keys(o[1]).length){t.head=u;return}for(let i in o[1]){let s;let c=o[1][i],d=c[0],f=(0,n.createRouterCacheKey)(d),p=null!==l&&void 0!==l[1][i]?l[1][i]:null;if(r){let n=r.parallelRoutes.get(i);if(n){let r,o=new Map(n),l=o.get(f);r=null!==p?{lazyData:null,rsc:p[2],prefetchRsc:null,parallelRoutes:new Map(null==l?void 0:l.parallelRoutes)}:a&&l?{lazyData:l.lazyData,rsc:l.rsc,prefetchRsc:l.prefetchRsc,parallelRoutes:new Map(l.parallelRoutes)}:{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map(null==l?void 0:l.parallelRoutes)},o.set(f,r),e(r,l,c,p||null,u,a),t.parallelRoutes.set(i,o);continue}}s=null!==p?{lazyData:null,rsc:p[2],prefetchRsc:null,parallelRoutes:new Map}:{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map};let h=t.parallelRoutes.get(i);h?h.set(f,s):t.parallelRoutes.set(i,new Map([[f,s]])),e(s,void 0,c,p,u,a)}}}});let n=r(3711);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5011:(e,t)=>{"use strict";var r;function n(e){let{kind:t,prefetchTime:r,lastUsedTime:n}=e;return Date.now()<(null!=n?n:r)+3e4?n?"reusable":"fresh":"auto"===t&&Date.now(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return l}});let n=r(1545);function o(e){return void 0!==e}function l(e,t){var r,l,u;let a=null==(l=t.shouldScroll)||l,i=e.nextUrl;if(o(t.patchedTree)){let r=(0,n.computeChangedPath)(e.tree,t.patchedTree);r?i=r:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(r=t.canonicalUrl)?void 0:r.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(u=null==t?void 0:t.scrollableSegments)?u:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let n=r(4007);function o(e,t,r){return(0,n.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,r,o){let l=o.length<=2,[u,a]=o,i=(0,n.createRouterCacheKey)(a),s=r.parallelRoutes.get(u);if(!s)return;let c=t.parallelRoutes.get(u);if(c&&c!==s||(c=new Map(s),t.parallelRoutes.set(u,c)),l){c.delete(i);return}let d=s.get(i),f=c.get(i);f&&d&&(f===d&&(f={lazyData:f.lazyData,rsc:f.rsc,prefetchRsc:f.prefetchRsc,parallelRoutes:new Map(f.parallelRoutes)},c.set(i,f)),e(f,d,o.slice(2)))}}});let n=r(3711);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let n=r(3711);function o(e,t,r){for(let o in r[1]){let l=r[1][o][0],u=(0,n.createRouterCacheKey)(l),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(u),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let n=t[0],o=r[0];if(Array.isArray(n)&&Array.isArray(o)){if(n[0]!==o[0]||n[2]!==o[2])return!0}else if(n!==o)return!0;if(t[4])return!r[4];if(r[4])return!0;let l=Object.values(t[1])[0],u=Object.values(r[1])[0];return!l||!u||e(l,u)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{updateCacheNodeOnNavigation:function(){return function e(t,r,a,s,c,d){let f=r[1],p=a[1],h=s[1],y=t.parallelRoutes,_=new Map(y),b={},g=null;for(let t in p){let r;let a=p[t],s=f[t],v=y.get(t),m=h[t],j=a[0],P=(0,l.createRouterCacheKey)(j),R=void 0!==s?s[0]:void 0,O=void 0!==v?v.get(P):void 0;if(null!==(r=j===n.PAGE_SEGMENT_KEY?u(a,void 0!==m?m:null,c,d):j===n.DEFAULT_SEGMENT_KEY?void 0!==s?{route:s,node:null,children:null}:u(a,void 0!==m?m:null,c,d):void 0!==R&&(0,o.matchSegment)(j,R)&&void 0!==O&&void 0!==s?null!=m?e(O,s,a,m,c,d):function(e){let t=i(e,null,null,!1);return{route:e,node:t,children:null}}(a):u(a,void 0!==m?m:null,c,d))){null===g&&(g=new Map),g.set(t,r);let e=r.node;if(null!==e){let r=new Map(v);r.set(P,e),_.set(t,r)}b[t]=r.route}else b[t]=a}if(null===g)return null;let v={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,parallelRoutes:_};return{route:function(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}(a,b),node:v,children:g}}},listenForDynamicRequest:function(){return a},abortTask:function(){return s},updateCacheNodeOnPopstateRestoration:function(){return function e(t,r){let n=r[1],o=t.parallelRoutes,u=new Map(o);for(let t in n){let r=n[t],a=r[0],i=(0,l.createRouterCacheKey)(a),s=o.get(t);if(void 0!==s){let n=s.get(i);if(void 0!==n){let o=e(n,r),l=new Map(s);l.set(i,o),u.set(t,l)}}}let a=t.rsc,i=f(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,parallelRoutes:u}}}});let n=r(3940),o=r(7666),l=r(3711);function u(e,t,r,n){let o=i(e,t,r,n);return{route:e,node:o,children:null}}function a(e,t){t.then(t=>{for(let r of t[0]){let t=r.slice(0,-3),n=r[r.length-3],u=r[r.length-2],a=r[r.length-1];"string"!=typeof t&&function(e,t,r,n,u){let a=e;for(let e=0;e{s(e,t)})}function i(e,t,r,n){let o=e[1],u=null!==t?t[1]:null,a=new Map;for(let e in o){let t=o[e],s=null!==u?u[e]:null,c=t[0],d=(0,l.createRouterCacheKey)(c),f=i(t,void 0===s?null:s,r,n),p=new Map;p.set(d,f),a.set(e,p)}let s=0===a.size,c=null!==t?t[2]:null;return{lazyData:null,parallelRoutes:a,prefetchRsc:n||void 0===c?null:c,prefetchHead:!n&&s?r:null,rsc:p(),head:s?p():null}}function s(e,t){let r=e.node;if(null===r)return;let n=e.children;if(null===n)c(e.route,r,t);else for(let e of n.values())s(e,t);e.node=null}function c(e,t,r){let n=e[1],o=t.parallelRoutes;for(let e in n){let t=n[e],u=o.get(e);if(void 0===u)continue;let a=t[0],i=(0,l.createRouterCacheKey)(a),s=u.get(i);void 0!==s&&c(t,s,r)}let u=t.rsc;f(u)&&(null===r?u.resolve(null):u.reject(r));let a=t.head;f(a)&&a.resolve(null)}let d=Symbol();function f(e){return e&&e.tag===d}function p(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=d,r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createPrefetchCacheKey",{enumerable:!0,get:function(){return u}});let n=r(8800),o=r(1369),l=r(5458);function u(e,t){let r=(0,l.createHrefFromUrl)(e,!1);return t&&!(0,o.pathHasPrefix)(r,t)?(0,n.addPathPrefix)(r,""+t+"%"):r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4814:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fastRefreshReducer",{enumerable:!0,get:function(){return n}}),r(5917),r(5458),r(9219),r(6571),r(4007),r(1206),r(1968),r(9489),r(6939);let n=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return o}});let n=r(3711);function o(e,t){return function e(t,r,o){if(0===Object.keys(r).length)return[t,o];for(let l in r){let[u,a]=r[l],i=t.parallelRoutes.get(l);if(!i)continue;let s=(0,n.createRouterCacheKey)(u),c=i.get(s);if(!c)continue;let d=e(c,a,o+"/"+s);if(d)return d}return null}(e,t,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9010:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4007:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleExternalUrl:function(){return v},navigateReducer:function(){return j}});let n=r(5917),o=r(5458),l=r(5322),u=r(3558),a=r(9219),i=r(9877),s=r(6571),c=r(4967),d=r(1206),f=r(1968),p=r(5011),h=r(4991),y=r(8959),_=r(9489),b=r(3940),g=(r(5111),r(2025));function v(e,t,r,n){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=n,t.scrollableSegments=void 0,(0,d.handleMutable)(e,t)}function m(e){let t=[],[r,n]=e;if(0===Object.keys(n).length)return[[r]];for(let[e,o]of Object.entries(n))for(let n of m(o))""===r?t.push([e,...n]):t.push([r,e,...n]);return t}let j=function(e,t){let{url:r,isExternalUrl:j,navigateType:P,shouldScroll:R}=t,O={},{hash:E}=r,S=(0,o.createHrefFromUrl)(r),x="push"===P;if((0,h.prunePrefetchCache)(e.prefetchCache),O.preserveCustomHistoryState=!1,j)return v(e,O,r.toString(),x);let M=(0,g.createPrefetchCacheKey)(r,e.nextUrl),T=e.prefetchCache.get(M);if(!T){let t={data:(0,n.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,void 0),kind:c.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:e.tree,lastUsedTime:null};e.prefetchCache.set(M,t),T=t}let w=(0,p.getPrefetchEntryCacheStatus)(T),{treeAtTimeOfPrefetch:C,data:A}=T;return y.prefetchQueue.bump(A),A.then(t=>{let[c,h,y]=t;if(T&&!T.lastUsedTime&&(T.lastUsedTime=Date.now()),"string"==typeof c)return v(e,O,c,x);let g=e.tree,j=e.cache,P=[];for(let t of c){let o=t.slice(0,-4),c=t.slice(-3)[0],d=["",...o],h=(0,a.applyRouterStatePatchToTreeSkipDefault)(d,g,c);if(null===h&&(h=(0,a.applyRouterStatePatchToTreeSkipDefault)(d,C,c)),null!==h){if((0,s.isNavigatingToNewRootLayout)(g,h))return v(e,O,S,x);let a=(0,_.createEmptyCacheNode)(),R=(0,f.applyFlightData)(j,a,t,(null==T?void 0:T.kind)==="auto"&&w===p.PrefetchCacheEntryStatus.reusable);for(let t of((!R&&w===p.PrefetchCacheEntryStatus.stale||y)&&(R=function(e,t,r,n,o){let l=!1;for(let a of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.parallelRoutes=new Map(t.parallelRoutes),m(n).map(e=>[...r,...e])))(0,u.fillCacheWithDataProperty)(e,t,a,o),l=!0;return l}(a,j,o,c,()=>(0,n.fetchServerResponse)(r,g,e.nextUrl,e.buildId))),(0,i.shouldHardNavigate)(d,g)?(a.rsc=j.rsc,a.prefetchRsc=j.prefetchRsc,(0,l.invalidateCacheBelowFlightSegmentPath)(a,j,o),O.cache=a):R&&(O.cache=a),j=a,g=h,m(c))){let e=[...o,...t];e[e.length-1]!==b.DEFAULT_SEGMENT_KEY&&P.push(e)}}}return O.patchedTree=g,O.canonicalUrl=h?(0,o.createHrefFromUrl)(h):S,O.pendingPush=x,O.scrollableSegments=P,O.hashFragment=E,O.shouldScroll=R,(0,d.handleMutable)(e,O)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefetchQueue:function(){return s},prefetchReducer:function(){return c}});let n=r(5917),o=r(4967),l=r(4991),u=r(2848),a=r(5808),i=r(2025),s=new a.PromiseQueue(5);function c(e,t){(0,l.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;r.searchParams.delete(u.NEXT_RSC_UNION_QUERY);let a=(0,i.createPrefetchCacheKey)(r,e.nextUrl),c=e.prefetchCache.get(a);if(c&&(c.kind===o.PrefetchKind.TEMPORARY&&e.prefetchCache.set(a,{...c,kind:t.kind}),!(c.kind===o.PrefetchKind.AUTO&&t.kind===o.PrefetchKind.FULL)))return e;let d=s.enqueue(()=>(0,n.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,t.kind));return e.prefetchCache.set(a,{treeAtTimeOfPrefetch:e.tree,data:d,kind:t.kind,prefetchTime:Date.now(),lastUsedTime:null}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prunePrefetchCache",{enumerable:!0,get:function(){return o}});let n=r(5011);function o(e){for(let[t,r]of e)(0,n.getPrefetchEntryCacheStatus)(r)===n.PrefetchCacheEntryStatus.expired&&e.delete(t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return f}});let n=r(5917),o=r(5458),l=r(9219),u=r(6571),a=r(4007),i=r(1206),s=r(1678),c=r(9489),d=r(6939);function f(e,t){let{origin:r}=t,f={},p=e.canonicalUrl,h=e.tree;f.preserveCustomHistoryState=!1;let y=(0,c.createEmptyCacheNode)();return y.lazyData=(0,n.fetchServerResponse)(new URL(p,r),[h[0],h[1],h[2],"refetch"],e.nextUrl,e.buildId),y.lazyData.then(r=>{let[n,c]=r;if("string"==typeof n)return(0,a.handleExternalUrl)(e,f,n,e.pushRef.pendingPush);for(let r of(y.lazyData=null,n)){if(3!==r.length)return console.log("REFRESH FAILED"),e;let[n]=r,i=(0,l.applyRouterStatePatchToFullTree)([""],h,n);if(null===i)return(0,d.handleSegmentMismatch)(e,t,n);if((0,u.isNavigatingToNewRootLayout)(h,i))return(0,a.handleExternalUrl)(e,f,p,e.pushRef.pendingPush);let _=c?(0,o.createHrefFromUrl)(c):void 0;c&&(f.canonicalUrl=_);let[b,g]=r.slice(-2);if(null!==b){let e=b[2];y.rsc=e,y.prefetchRsc=null,(0,s.fillLazyItemsTillLeafWithHead)(y,void 0,n,b,g),f.cache=y,f.prefetchCache=new Map}f.patchedTree=i,f.canonicalUrl=p,h=i}return(0,i.handleMutable)(e,f)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return l}});let n=r(5458),o=r(1545);function l(e,t){var r;let{url:l,tree:u}=t,a=(0,n.createHrefFromUrl)(l),i=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:i,prefetchCache:e.prefetchCache,tree:u,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(u))?r:l.pathname}}r(5111),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return g}});let n=r(2641),o=r(2848),l=r(9517),u=r(5458),a=r(4007),i=r(9219),s=r(6571),c=r(1206),d=r(1678),f=r(9489),p=r(1545),h=r(6939),{createFromFetch:y,encodeReply:_}=r(5492);async function b(e,t){let r,{actionId:u,actionArgs:a}=t,i=await _(a),s=(0,p.extractPathFromFlightRouterState)(e.tree),c=e.nextUrl&&e.nextUrl!==s,d=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:u,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...c?{[o.NEXT_URL]:e.nextUrl}:{}},body:i}),f=d.headers.get("x-action-redirect");try{let e=JSON.parse(d.headers.get("x-action-revalidated")||"[[],0,0]");r={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){r={paths:[],tag:!1,cookie:!1}}let h=f?new URL((0,l.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(d.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await y(Promise.resolve(d),{callServer:n.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:h,revalidatedParts:r}}let[t,[,o]]=null!=e?e:[];return{actionResult:t,actionFlightData:o,redirectLocation:h,revalidatedParts:r}}return{redirectLocation:h,revalidatedParts:r}}function g(e,t){let{resolve:r,reject:n}=t,o={},l=e.canonicalUrl,p=e.tree;return o.preserveCustomHistoryState=!1,o.inFlightServerAction=b(e,t),o.inFlightServerAction.then(n=>{let{actionResult:y,actionFlightData:_,redirectLocation:b}=n;if(b&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!_)return(o.actionResultResolved||(r(y),o.actionResultResolved=!0),b)?(0,a.handleExternalUrl)(e,o,b.href,e.pushRef.pendingPush):e;if("string"==typeof _)return(0,a.handleExternalUrl)(e,o,_,e.pushRef.pendingPush);for(let r of(o.inFlightServerAction=null,_)){if(3!==r.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[n]=r,u=(0,i.applyRouterStatePatchToFullTree)([""],p,n);if(null===u)return(0,h.handleSegmentMismatch)(e,t,n);if((0,s.isNavigatingToNewRootLayout)(p,u))return(0,a.handleExternalUrl)(e,o,l,e.pushRef.pendingPush);let[c,y]=r.slice(-2),_=null!==c?c[2]:null;if(null!==_){let e=(0,f.createEmptyCacheNode)();e.rsc=_,e.prefetchRsc=null,(0,d.fillLazyItemsTillLeafWithHead)(e,void 0,n,c,y),o.cache=e,o.prefetchCache=new Map}o.patchedTree=u,o.canonicalUrl=l,p=u}if(b){let e=(0,u.createHrefFromUrl)(b,!1);o.canonicalUrl=e}return o.actionResultResolved||(r(y),o.actionResultResolved=!0),(0,c.handleMutable)(e,o)},t=>{if("rejected"===t.status)return o.actionResultResolved||(n(t.reason),o.actionResultResolved=!0),e;throw t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return d}});let n=r(5458),o=r(9219),l=r(6571),u=r(4007),a=r(1968),i=r(1206),s=r(9489),c=r(6939);function d(e,t){let{flightData:r,overrideCanonicalUrl:d}=t,f={};if(f.preserveCustomHistoryState=!1,"string"==typeof r)return(0,u.handleExternalUrl)(e,f,r,e.pushRef.pendingPush);let p=e.tree,h=e.cache;for(let i of r){let r=i.slice(0,-4),[y]=i.slice(-3,-2),_=(0,o.applyRouterStatePatchToTreeSkipDefault)(["",...r],p,y);if(null===_)return(0,c.handleSegmentMismatch)(e,t,y);if((0,l.isNavigatingToNewRootLayout)(p,_))return(0,u.handleExternalUrl)(e,f,e.canonicalUrl,e.pushRef.pendingPush);let b=d?(0,n.createHrefFromUrl)(d):void 0;b&&(f.canonicalUrl=b);let g=(0,s.createEmptyCacheNode)();(0,a.applyFlightData)(h,g,i),f.patchedTree=_,f.cache=g,h=g,p=_}return(0,i.handleMutable)(e,f)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4967:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return n},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return l},ACTION_SERVER_PATCH:function(){return u},ACTION_PREFETCH:function(){return a},ACTION_FAST_REFRESH:function(){return i},ACTION_SERVER_ACTION:function(){return s},isThenable:function(){return c}});let n="refresh",o="navigate",l="restore",u="server-patch",a="prefetch",i="fast-refresh",s="server-action";function c(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(function(e){e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary"})(r||(r={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6417:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return n}}),r(4967),r(4007),r(445),r(4072),r(427),r(8959),r(4814),r(8229);let n=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[o,l]=r,[u,a]=t;return(0,n.matchSegment)(u,o)?!(t.length<=2)&&e(t.slice(2),l[a]):!!Array.isArray(u)}}});let n=r(7666);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return o}});let n=r(3634);function o(){return new Proxy({},{get(e,t){"string"==typeof t&&(0,n.staticGenerationBailout)("searchParams."+t)}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3634:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isStaticGenBailoutError:function(){return a},staticGenerationBailout:function(){return s}});let n=r(999),o=r(4749),l="NEXT_STATIC_GEN_BAILOUT";class u extends Error{constructor(...e){super(...e),this.code=l}}function a(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===l}function i(e,t){let{dynamic:r,link:n}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:"")}let s=(e,t)=>{let{dynamic:r,link:l}=void 0===t?{}:t,a=o.staticGenerationAsyncStorage.getStore();if(!a)return!1;if(a.forceStatic)return!0;if(a.dynamicShouldError)throw new u(i(e,{link:l,dynamic:null!=r?r:"error"}));let s=i(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==a.postpone||a.postpone.call(a,e),a.revalidate=0,a.isStaticGeneration){let t=new n.DynamicServerError(s);throw a.dynamicUsageDescription=e,a.dynamicUsageStack=t.stack,t}return!1};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}}),r(3444);let n=r(7685);r(3810);let o=r(9523);function l(e){let{Component:t,propsForComponent:r,isStaticGeneration:l}=e;if(l){let e=(0,o.createSearchParamsBailoutProxy)();return(0,n.jsx)(t,{searchParams:e,...r})}return(0,n.jsx)(t,{...r})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{useUnwrapState:function(){return u},useReducerWithReduxDevtools:function(){return a}});let n=r(4816)._(r(3810)),o=r(4967);function l(e){if(e instanceof Map){let t={};for(let[r,n]of e.entries()){if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n._bundlerConfig){t[r]="FlightData";continue}}t[r]=l(n)}return t}if("object"==typeof e&&null!==e){let t={};for(let r in e){let n=e[r];if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n.hasOwnProperty("_bundlerConfig")){t[r]="FlightData";continue}}t[r]=l(n)}return t}return Array.isArray(e)?e.map(l):e}function u(e){return(0,o.isThenable)(e)?(0,n.use)(e):e}r(3240);let a=function(e){return[e,()=>{},()=>{}]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8977:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(1369);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7294:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return l}});let n=r(3370),o=r(8032),l=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:l}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+l};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5084:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(8977),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let n=r(494);function o(e){let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:"dynamic",param:e.slice(1,-1)}:null}},494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return l},extractInterceptionRouteInformation:function(){return u}});let n=r(590),o=["(..)(..)","(.)","(..)","(...)"];function l(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function u(e){let t,r,l;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,l]=e.split(r,2);break}if(!t||!r||!l)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":l="/"===t?`/${l}`:t+"/"+l;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);l=t.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":let u=t.split("/");if(u.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);l=u.slice(0,-2).concat(l).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:l}}},943:(e,t,r)=>{"use strict";e.exports=r(399)},7874:(e,t,r)=>{"use strict";e.exports=r(943).vendored.contexts.AppRouterContext},7321:(e,t,r)=>{"use strict";e.exports=r(943).vendored.contexts.HooksClientContext},7932:(e,t,r)=>{"use strict";e.exports=r(943).vendored.contexts.ServerInsertedHtml},914:(e,t,r)=>{"use strict";e.exports=r(943).vendored["react-ssr"].ReactDOM},7685:(e,t,r)=>{"use strict";e.exports=r(943).vendored["react-ssr"].ReactJsxRuntime},5492:(e,t,r)=>{"use strict";e.exports=r(943).vendored["react-ssr"].ReactServerDOMWebpackClientEdge},3810:(e,t,r)=>{"use strict";e.exports=r(943).vendored["react-ssr"].React},8467:(e,t)=>{"use strict";function r(e){let t=5381;for(let r=0;r>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},2768:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},8699:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},3240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return c}});let n=r(4816),o=r(4967),l=r(6417),u=n._(r(3810)),a=u.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending&&s({actionQueue:e,action:e.pending,setState:t}))}async function s(e){let{actionQueue:t,action:r,setState:n}=e,l=t.state;if(!l)throw Error("Invariant: Router state not initialized");t.pending=r;let u=r.payload,a=t.action(l,u);function s(e){if(r.discarded){t.needsRefresh&&null===t.pending&&(t.needsRefresh=!1,t.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},n));return}t.state=e,t.devToolsInstance&&t.devToolsInstance.send(u,e),i(t,n),r.resolve(e)}(0,o.isThenable)(a)?a.then(s,e=>{i(t,n),r.reject(e)}):s(a)}function c(){let e={state:null,dispatch:(t,r)=>(function(e,t,r){let n={resolve:r,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{n={resolve:e,reject:t}});(0,u.startTransition)(()=>{r(e)})}let l={payload:t,next:null,resolve:n.resolve,reject:n.reject};null===e.pending?(e.last=l,s({actionQueue:e,action:l,setState:r})):t.type===o.ACTION_NAVIGATE?(e.pending.discarded=!0,e.last=l,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),s({actionQueue:e,action:l,setState:r})):(null!==e.last&&(e.last.next=l),e.last=l)})(e,t,r),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,l.reducer)(e,t)},pending:null,last:null};return e}},8800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(8032);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:l}=(0,n.parsePath)(e);return""+t+r+o+l}},590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return l},normalizeRscURL:function(){return u}});let n=r(8699),o=r(3940);function l(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function u(e){return e.replace(/\.rsc($|\?)/,"$1")}},3848:(e,t)=>{"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},8866:(e,t)=>{"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},8032:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},1369:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(8032);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},3370:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},3940:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isGroupSegment:function(){return r},PAGE_SEGMENT_KEY:function(){return n},DEFAULT_SEGMENT_KEY:function(){return o}});let n="__PAGE__",o="__DEFAULT__"},4586:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createProxy",{enumerable:!0,get:function(){return n}});let n=r(8187).createClientModuleProxy},8019:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/app-router.js")},6580:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/error-boundary.js")},9625:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return o}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9363:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/layout-router.js")},4860:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/not-found-boundary.js")},3250:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}}),r(2274);let n=r(6491);r(1367);let o={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function l(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"404: This page could not be found."}),(0,n.jsx)("div",{style:o.error,children:(0,n.jsxs)("div",{children:[(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,n.jsx)("h1",{className:"next-error-h1",style:o.h1,children:"404"}),(0,n.jsx)("div",{style:o.desc,children:(0,n.jsx)("h2",{style:o.h2,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},277:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/render-from-template-context.js")},288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return o}});let n=r(2936);function o(){return new Proxy({},{get(e,t){"string"==typeof t&&(0,n.staticGenerationBailout)("searchParams."+t)}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isStaticGenBailoutError:function(){return a},staticGenerationBailout:function(){return s}});let n=r(9625),o=r(5869),l="NEXT_STATIC_GEN_BAILOUT";class u extends Error{constructor(...e){super(...e),this.code=l}}function a(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===l}function i(e,t){let{dynamic:r,link:n}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:"")}let s=(e,t)=>{let{dynamic:r,link:l}=void 0===t?{}:t,a=o.staticGenerationAsyncStorage.getStore();if(!a)return!1;if(a.forceStatic)return!0;if(a.dynamicShouldError)throw new u(i(e,{link:l,dynamic:null!=r?r:"error"}));let s=i(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==a.postpone||a.postpone.call(a,e),a.revalidate=0,a.isStaticGeneration){let t=new n.DynamicServerError(s);throw a.dynamicUsageDescription=e,a.dynamicUsageStack=t.stack,t}return!1};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9279:(e,t,r)=>{"use strict";let{createProxy:n}=r(599);e.exports=n("/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/client/components/static-generation-searchparams-bailout-provider.js")},5511:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{renderToReadableStream:function(){return n.renderToReadableStream},decodeReply:function(){return n.decodeReply},decodeAction:function(){return n.decodeAction},decodeFormState:function(){return n.decodeFormState},AppRouter:function(){return o.default},LayoutRouter:function(){return l.default},RenderFromTemplateContext:function(){return u.default},staticGenerationAsyncStorage:function(){return a.staticGenerationAsyncStorage},requestAsyncStorage:function(){return i.requestAsyncStorage},actionAsyncStorage:function(){return s.actionAsyncStorage},staticGenerationBailout:function(){return c.staticGenerationBailout},createSearchParamsBailoutProxy:function(){return f.createSearchParamsBailoutProxy},serverHooks:function(){return p},preloadStyle:function(){return _.preloadStyle},preloadFont:function(){return _.preloadFont},preconnect:function(){return _.preconnect},taintObjectReference:function(){return b.taintObjectReference},StaticGenerationSearchParamsBailoutProvider:function(){return d.default},NotFoundBoundary:function(){return h.NotFoundBoundary},patchFetch:function(){return m}});let n=r(8187),o=g(r(8019)),l=g(r(9363)),u=g(r(277)),a=r(5869),i=r(4580),s=r(2934),c=r(2936),d=g(r(9279)),f=r(288),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=o?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(n,l,u):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n}(r(9625)),h=r(4860),y=r(9308);r(6580);let _=r(2588),b=r(3487);function g(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function m(){return(0,y.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:a.staticGenerationAsyncStorage})}},2588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{preloadStyle:function(){return o},preloadFont:function(){return l},preconnect:function(){return u}});let n=function(e){return e&&e.__esModule?e:{default:e}}(r(3429));function o(e,t){let r={as:"style"};"string"==typeof t&&(r.crossOrigin=t),n.default.preload(e,r)}function l(e,t,r){let o={as:"font",type:t};"string"==typeof r&&(o.crossOrigin=r),n.default.preload(e,o)}function u(e,t){n.default.preconnect(e,"string"==typeof t?{crossOrigin:t}:void 0)}},3487:(e,t,r)=>{"use strict";function n(){throw Error("Taint can only be used with the taint flag.")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{taintObjectReference:function(){return o},taintUniqueValue:function(){return l}}),r(1367);let o=n,l=n},9441:(e,t,r)=>{"use strict";e.exports=r(399)},3429:(e,t,r)=>{"use strict";e.exports=r(9441).vendored["react-rsc"].ReactDOM},6491:(e,t,r)=>{"use strict";e.exports=r(9441).vendored["react-rsc"].ReactJsxRuntime},8187:(e,t,r)=>{"use strict";e.exports=r(9441).vendored["react-rsc"].ReactServerDOMWebpackServerEdge},1367:(e,t,r)=>{"use strict";e.exports=r(9441).vendored["react-rsc"].React},8067:(e,t,r)=>{"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:()=>n,_class_private_field_loose_base:()=>n})},6296:(e,t,r)=>{"use strict";r.r(t),r.d(t,{_:()=>o,_class_private_field_loose_key:()=>o});var n=0;function o(e){return"__private_"+n+++"_"+e}},3444:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n,_interop_require_default:()=>n})},4816:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=l?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o,_interop_require_wildcard:()=>o})},2274:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n,_interop_require_default:()=>n})}}; \ No newline at end of file diff --git a/apps/web/.next/server/chunks/917.js b/apps/web/.next/server/chunks/917.js new file mode 100644 index 00000000..55af03e2 --- /dev/null +++ b/apps/web/.next/server/chunks/917.js @@ -0,0 +1,13 @@ +"use strict";exports.id=917,exports.ids=[917],exports.modules={8263:e=>{var t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,n={};function a(e){var t;let i=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean);return`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}; ${i.join("; ")}`}function l(e){let t=new Map;for(let i of e.split(/; */)){if(!i)continue;let e=i.indexOf("=");if(-1===e){t.set(i,"true");continue}let[s,r]=[i.slice(0,e),i.slice(e+1)];try{t.set(s,decodeURIComponent(null!=r?r:"true"))}catch{}}return t}function o(e){var t,i;if(!e)return;let[[s,r],...n]=l(e),{domain:a,expires:o,httponly:c,maxage:h,path:p,samesite:f,secure:m,priority:y}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase(),t]));return function(e){let t={};for(let i in e)e[i]&&(t[i]=e[i]);return t}({name:s,value:decodeURIComponent(r),domain:a,...o&&{expires:new Date(o)},...c&&{httpOnly:!0},..."string"==typeof h&&{maxAge:Number(h)},path:p,...f&&{sameSite:u.includes(t=(t=f).toLowerCase())?t:void 0},...m&&{secure:!0},...y&&{priority:d.includes(i=(i=y).toLowerCase())?i:void 0}})}((e,i)=>{for(var s in i)t(e,s,{get:i[s],enumerable:!0})})(n,{RequestCookies:()=>c,ResponseCookies:()=>h,parseCookie:()=>l,parseSetCookie:()=>o,stringifyCookie:()=>a}),e.exports=((e,n,a,l)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let a of s(n))r.call(e,a)||void 0===a||t(e,a,{get:()=>n[a],enumerable:!(l=i(n,a))||l.enumerable});return e})(t({},"__esModule",{value:!0}),n);var u=["strict","lax","none"],d=["low","medium","high"],c=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,i]of l(t))this._parsed.set(e,{name:e,value:i})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let i=Array.from(this._parsed);if(!e.length)return i.map(([e,t])=>t);let s="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return i.filter(([e])=>e===s).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,i]=1===e.length?[e[0].name,e[0].value]:e,s=this._parsed;return s.set(t,{name:t,value:i}),this._headers.set("cookie",Array.from(s).map(([e,t])=>a(t)).join("; ")),this}delete(e){let t=this._parsed,i=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>a(t)).join("; ")),i}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},h=class{constructor(e){var t,i,s;this._parsed=new Map,this._headers=e;let r=null!=(s=null!=(i=null==(t=e.getSetCookie)?void 0:t.call(e))?i:e.get("set-cookie"))?s:[];for(let e of Array.isArray(r)?r:function(e){if(!e)return[];var t,i,s,r,n,a=[],l=0;function o(){for(;l=e.length)&&a.push(e.substring(t,e.length))}return a}(r)){let t=o(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let i=Array.from(this._parsed.values());if(!e.length)return i;let s="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return i.filter(e=>e.name===s)}has(e){return this._parsed.has(e)}set(...e){let[t,i,s]=1===e.length?[e[0].name,e[0].value,e[0]]:e,r=this._parsed;return r.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:i,...s})),function(e,t){for(let[,i]of(t.delete("set-cookie"),e)){let e=a(i);t.append("set-cookie",e)}}(r,this._headers),this}delete(...e){let[t,i,s]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:i,domain:s,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a).join("; ")}}},2390:(e,t,i)=>{e.exports=i(517)},8005:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{RequestCookies:function(){return s.RequestCookies},ResponseCookies:function(){return s.ResponseCookies}});let s=i(8263)},1671:(e,t,i)=>{i.d(t,{D:()=>r});var s=i(3251);function r(e){let t="object"==typeof e.client?e.client:{},i="object"==typeof e.server?e.server:{},r=e.shared,n=e.runtimeEnv?e.runtimeEnv:{...process.env,...e.experimental__runtimeEnv};return function(e){let t=e.runtimeEnvStrict??e.runtimeEnv??process.env;if(e.emptyStringAsUndefined)for(let[e,i]of Object.entries(t))""===i&&delete t[e];if(e.skipValidation)return t;let i="object"==typeof e.client?e.client:{},r="object"==typeof e.server?e.server:{},n="object"==typeof e.shared?e.shared:{},a=s.z.object(i),l=s.z.object(r),o=s.z.object(n),u=e.isServer??!0,d=a.merge(o),c=l.merge(o).merge(a),h=u?c.safeParse(t):d.safeParse(t),p=e.onValidationError??(e=>{throw console.error("❌ Invalid environment variables:",e.flatten().fieldErrors),Error("Invalid environment variables")}),f=e.onInvalidAccess??(e=>{throw Error("❌ Attempted to access a server-side environment variable on the client")});return!1===h.success?p(h.error):new Proxy(h.data,{get(t,i){if("string"==typeof i&&"__esModule"!==i&&"$$typeof"!==i)return u||!e.clientPrefix||i.startsWith(e.clientPrefix)||void 0!==o.shape[i]?t[i]:f(i)}})}({...e,shared:r,client:t,server:i,clientPrefix:"NEXT_PUBLIC_",runtimeEnv:n})}},4456:(e,t,i)=>{i.d(t,{RQ:()=>c,UI:()=>f,dZ:()=>o,lw:()=>h,qD:()=>p,wH:()=>u});var s=i(9105),r=i(4869),n=i(2393),a=i(3543),l=i(776);class o{constructor(e){this.table=e}static{this[r.Q]="ColumnAliasProxyHandler"}get(e,t){return"table"===t?this.table:e[t]}}class u{constructor(e,t){this.alias=e,this.replaceOriginalName=t}static{this[r.Q]="TableAliasProxyHandler"}get(e,t){if(t===a.iA.Symbol.IsAlias)return!0;if(t===a.iA.Symbol.Name||this.replaceOriginalName&&t===a.iA.Symbol.OriginalName)return this.alias;if(t===l.d)return{...e[l.d],name:this.alias,isAlias:!0};if(t===a.iA.Symbol.Columns){let t=e[a.iA.Symbol.Columns];if(!t)return t;let i={};return Object.keys(t).map(s=>{i[s]=new Proxy(t[s],new o(new Proxy(e,this)))}),i}let i=e[t];return(0,r.is)(i,s.s)?new Proxy(i,new o(new Proxy(e,this))):i}}class d{constructor(e){this.alias=e}static{this[r.Q]="RelationTableAliasProxyHandler"}get(e,t){return"sourceTable"===t?c(e.sourceTable,this.alias):e[t]}}function c(e,t){return new Proxy(e,new u(t,!1))}function h(e,t){return new Proxy(e,new o(new Proxy(e.table,new u(t,!1))))}function p(e,t){return new n.$s.Aliased(f(e.sql,t),e.fieldAlias)}function f(e,t){return n.i6.join(e.queryChunks.map(e=>(0,r.is)(e,s.s)?h(e,t):(0,r.is)(e,n.$s)?f(e,t):(0,r.is)(e,n.$s.Aliased)?p(e,t):e))}},9404:(e,t,i)=>{i.d(t,{t:()=>w});var s=i(4869);class r{static{this[s.Q]="ConsoleLogWriter"}write(e){console.log(e)}}class n{static{this[s.Q]="DefaultLogger"}constructor(e){this.writer=e?.writer??new r}logQuery(e,t){let i=t.map(e=>{try{return JSON.stringify(e)}catch{return String(e)}}),s=i.length?` -- params: [${i.join(", ")}]`:"";this.writer.write(`Query: ${e}${s}`)}}class a{static{this[s.Q]="NoopLogger"}logQuery(){}}var l=i(9349),o=i(8728),u=i(4888),d=i(2393),c=i(6702),h=i(2852);class p extends h.N{constructor(e){super(),this.resultCb=e}static{this[s.Q]="ExecuteResultSync"}async execute(){return this.resultCb()}sync(){return this.resultCb()}}class f{constructor(e,t,i){this.mode=e,this.executeMethod=t,this.query=i}static{this[s.Q]="PreparedQuery"}getQuery(){return this.query}mapRunResult(e,t){return e}mapAllResult(e,t){throw Error("Not implemented")}mapGetResult(e,t){throw Error("Not implemented")}execute(e){return"async"===this.mode?this[this.executeMethod](e):new p(()=>this[this.executeMethod](e))}mapResult(e,t){switch(this.executeMethod){case"run":return this.mapRunResult(e,t);case"all":return this.mapAllResult(e,t);case"get":return this.mapGetResult(e,t)}}}class m{constructor(e){this.dialect=e}static{this[s.Q]="SQLiteSession"}prepareOneTimeQuery(e,t,i){return this.prepareQuery(e,t,i)}run(e){let t=this.dialect.sqlToQuery(e);try{return this.prepareOneTimeQuery(t,void 0,"run").run()}catch(e){throw new c.k({cause:e,message:`Failed to run the query '${t.sql}'`})}}extractRawRunValueFromBatchResult(e){return e}all(e){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(e),void 0,"run").all()}extractRawAllValueFromBatchResult(e){throw Error("Not implemented")}get(e){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(e),void 0,"run").get()}extractRawGetValueFromBatchResult(e){throw Error("Not implemented")}values(e){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(e),void 0,"run").values()}extractRawValuesValueFromBatchResult(e){throw Error("Not implemented")}}class y extends o.z{constructor(e,t,i,s,r=0){super(e,t,i,s),this.schema=s,this.nestedIndex=r}static{this[s.Q]="SQLiteTransaction"}rollback(){throw new c.F}}var g=i(9324);class v extends m{constructor(e,t,i,s={}){super(t),this.client=e,this.schema=i,this.logger=s.logger??new a}static{this[s.Q]="BetterSQLiteSession"}prepareQuery(e,t,i,s){return new _(this.client.prepare(e.sql),e,this.logger,t,i,s)}transaction(e,t={}){let i=new b("sync",this.dialect,this,this.schema);return this.client.transaction(e)[t.behavior??"deferred"](i)}}class b extends y{static{this[s.Q]="BetterSQLiteTransaction"}transaction(e){let t=`sp${this.nestedIndex}`,i=new b("sync",this.dialect,this.session,this.schema,this.nestedIndex+1);this.session.run(d.i6.raw(`savepoint ${t}`));try{let s=e(i);return this.session.run(d.i6.raw(`release savepoint ${t}`)),s}catch(e){throw this.session.run(d.i6.raw(`rollback to savepoint ${t}`)),e}}}class _ extends f{constructor(e,t,i,s,r,n){super("sync",r,t),this.stmt=e,this.logger=i,this.fields=s,this.customResultMapper=n}static{this[s.Q]="BetterSQLitePreparedQuery"}run(e){let t=(0,d.Pr)(this.query.params,e??{});return this.logger.logQuery(this.query.sql,t),this.stmt.run(...t)}all(e){let{fields:t,joinsNotNullableMap:i,query:s,logger:r,stmt:n,customResultMapper:a}=this;if(!t&&!a){let t=(0,d.Pr)(s.params,e??{});return r.logQuery(s.sql,t),n.all(...t)}let l=this.values(e);return a?a(l):l.map(e=>(0,g.M4)(t,e,i))}get(e){let t=(0,d.Pr)(this.query.params,e??{});this.logger.logQuery(this.query.sql,t);let{fields:i,stmt:s,joinsNotNullableMap:r,customResultMapper:n}=this;if(!i&&!n)return s.get(...t);let a=s.raw().get(...t);return a?n?n([a]):(0,g.M4)(i,a,r):void 0}values(e){let t=(0,d.Pr)(this.query.params,e??{});return this.logger.logQuery(this.query.sql,t),this.stmt.raw().all(...t)}}function w(e,t={}){let i,s;let r=new u.Ac;if(!0===t.logger?i=new n:!1!==t.logger&&(i=t.logger),t.schema){let e=(0,l.pb)(t.schema,l._J);s={fullSchema:t.schema,schema:e.tables,tableNamesMap:e.tableNamesMap}}let a=new v(e,r,s,{logger:i});return new o.z("sync",r,a,s)}},6711:(e,t,i)=>{i.d(t,{L:()=>r});var s=i(4869);class r{static{this[s.Q]="ColumnBuilder"}constructor(e,t,i){this.$default=this.$defaultFn,this.config={name:e,notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:t,columnType:i}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(e){return this.config.default=e,this.config.hasDefault=!0,this}$defaultFn(e){return this.config.defaultFn=e,this.config.hasDefault=!0,this}primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}}},9105:(e,t,i)=>{i.d(t,{s:()=>r});var s=i(4869);class r{constructor(e,t){this.enumValues=void 0,this.table=e,this.config=t,this.name=t.name,this.notNull=t.notNull,this.default=t.default,this.defaultFn=t.defaultFn,this.hasDefault=t.hasDefault,this.primary=t.primaryKey,this.isUnique=t.isUnique,this.uniqueName=t.uniqueName,this.uniqueType=t.uniqueType,this.dataType=t.dataType,this.columnType=t.columnType}static{this[s.Q]="Column"}mapFromDriverValue(e){return e}mapToDriverValue(e){return e}}},4869:(e,t,i)=>{i.d(t,{Q:()=>s,is:()=>r});let s=Symbol.for("drizzle:entityKind");function r(e,t){if(!e||"object"!=typeof e)return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,s))throw Error(`Class "${t.name??""}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let i=e.constructor;if(i)for(;i;){if(s in i&&i[s]===t[s])return!0;i=Object.getPrototypeOf(i)}return!1}Symbol.for("drizzle:hasOwnEntityKind")},6702:(e,t,i)=>{i.d(t,{F:()=>n,k:()=>r});var s=i(4869);class r extends Error{static{this[s.Q]="DrizzleError"}constructor({message:e,cause:t}){super(e),this.name="DrizzleError",this.cause=t}}class n extends r{static{this[s.Q]="TransactionRollbackError"}constructor(){super({message:"Rollback"})}}},6655:(e,t,i)=>{i.d(t,{CK:()=>n,ut:()=>a});var s=i(4869),r=i(3851);function n(...e){return e[0].columns?new a(e[0].columns,e[0].name):new a(e)}class a{static{this[s.Q]="PgPrimaryKeyBuilder"}constructor(e,t){this.columns=e,this.name=t}build(e){return new l(e,this.columns,this.name)}}class l{constructor(e,t,i){this.table=e,this.columns=t,this.name=i}static{this[s.Q]="PgPrimaryKey"}getName(){return this.name??`${this.table[r.YA.Symbol.Name]}_${this.columns.map(e=>e.name).join("_")}_pk`}}},3851:(e,t,i)=>{let s;i.d(t,{YA:()=>l,af:()=>o});var r=i(4869),n=i(3543);let a=Symbol.for("drizzle:PgInlineForeignKeys");class l extends n.iA{static{s=n.iA.Symbol.ExtraConfigBuilder}static{this[r.Q]="PgTable"}static{this.Symbol=Object.assign({},n.iA.Symbol,{InlineForeignKeys:a})}constructor(...e){super(...e),this[a]=[],this[s]=void 0}}let o=(e,t,i)=>(function(e,t,i,s,r=e){let o=new l(e,s,r),u=Object.fromEntries(Object.entries(t).map(([e,t])=>{let i=t.build(o);return o[a].push(...t.buildForeignKeys(i,o)),[e,i]})),d=Object.assign(o,u);return d[n.iA.Symbol.Columns]=u,i&&(d[l.Symbol.ExtraConfigBuilder]=i),d})(e,t,i,void 0)},6834:(e,t,i)=>{i.d(t,{b:()=>r});var s=i(4869);class r{static{this[s.Q]="TypedQueryBuilder"}getSelectedFields(){return this._.selectedFields}}},2852:(e,t,i)=>{let s;i.d(t,{N:()=>n});var r=i(4869);class n{static{s=Symbol.toStringTag}static{this[r.Q]="QueryPromise"}catch(e){return this.then(void 0,e)}finally(e){return this.then(t=>(e?.(),t),t=>{throw e?.(),t})}then(e,t){return this.execute().then(e,t)}constructor(){this[s]="QueryPromise"}}},9349:(e,t,i)=>{i.d(t,{sj:()=>f,fh:()=>p,or:()=>c,_J:()=>_,pb:()=>g,vU:()=>m,pl:()=>y,WX:()=>function e(t,i,s,a,l=e=>e){let u={};for(let[d,c]of a.entries())if(c.isJson){let r=i.relations[c.tsKey],a=s[d],o="string"==typeof a?JSON.parse(a):a;u[c.tsKey]=(0,n.is)(r,p)?o&&e(t,t[c.relationTableTsKey],o,c.selection,l):o.map(i=>e(t,t[c.relationTableTsKey],i,c.selection,l))}else{let e;let t=l(s[d]),i=c.field;e=(0,n.is)(i,r.s)?i:(0,n.is)(i,o.$s)?i.decoder:i.sql.decoder,u[c.tsKey]=null===t?null:e.mapFromDriverValue(t)}return u},wG:()=>b,lE:()=>v});var s=i(3543),r=i(9105),n=i(4869),a=i(6655),l=i(4990),o=i(2393);function u(e){return o.i6`${e} asc`}function d(e){return o.i6`${e} desc`}class c{constructor(e,t,i){this.sourceTable=e,this.referencedTable=t,this.relationName=i,this.referencedTableName=t[s.iA.Symbol.Name]}static{this[n.Q]="Relation"}}class h{constructor(e,t){this.table=e,this.config=t}static{this[n.Q]="Relations"}}class p extends c{constructor(e,t,i,s){super(e,t,i?.relationName),this.config=i,this.isNullable=s}static{this[n.Q]="One"}withFieldName(e){let t=new p(this.sourceTable,this.referencedTable,this.config,this.isNullable);return t.fieldName=e,t}}class f extends c{constructor(e,t,i){super(e,t,i?.relationName),this.config=i}static{this[n.Q]="Many"}withFieldName(e){let t=new f(this.sourceTable,this.referencedTable,this.config);return t.fieldName=e,t}}function m(){return{and:l.xD,between:l.vX,eq:l.eq,exists:l.Gg,gt:l.gt,gte:l.eg,ilike:l.o$,inArray:l.d3,isNull:l.Ft,isNotNull:l.K0,like:l.vL,lt:l.lt,lte:l.G,ne:l.ne,not:l.ff,notBetween:l.OL,notExists:l.UN,notLike:l.Qg,notIlike:l.mM,notInArray:l.Nl,or:l.or,sql:o.i6}}function y(){return{sql:o.i6,asc:u,desc:d}}function g(e,t){1===Object.keys(e).length&&"default"in e&&!(0,n.is)(e.default,s.iA)&&(e=e.default);let i={},r={},l={};for(let[o,u]of Object.entries(e))if((0,s.wb)(u)){let e=u[s.iA.Symbol.Name],t=r[e];for(let r of(i[e]=o,l[o]={tsName:o,dbName:u[s.iA.Symbol.Name],schema:u[s.iA.Symbol.Schema],columns:u[s.iA.Symbol.Columns],relations:t?.relations??{},primaryKey:t?.primaryKey??[]},Object.values(u[s.iA.Symbol.Columns])))r.primary&&l[o].primaryKey.push(r);let d=u[s.iA.Symbol.ExtraConfigBuilder]?.(u);if(d)for(let e of Object.values(d))(0,n.is)(e,a.ut)&&l[o].primaryKey.push(...e.columns)}else if((0,n.is)(u,h)){let e;let n=u.table[s.iA.Symbol.Name],a=i[n];for(let[i,s]of Object.entries(u.config(t(u.table))))if(a){let t=l[a];t.relations[i]=s,e&&t.primaryKey.push(...e)}else n in r||(r[n]={relations:{},primaryKey:e}),r[n].relations[i]=s}return{tables:l,tableNamesMap:i}}function v(e,t){return new h(e,e=>Object.fromEntries(Object.entries(t(e)).map(([e,t])=>[e,t.withFieldName(e)])))}function b(e,t,i){if((0,n.is)(i,p)&&i.config)return{fields:i.config.fields,references:i.config.references};let r=t[i.referencedTable[s.iA.Symbol.Name]];if(!r)throw Error(`Table "${i.referencedTable[s.iA.Symbol.Name]}" not found in schema`);let a=e[r];if(!a)throw Error(`Table "${r}" not found in schema`);let l=i.sourceTable,o=t[l[s.iA.Symbol.Name]];if(!o)throw Error(`Table "${l[s.iA.Symbol.Name]}" not found in schema`);let u=[];for(let e of Object.values(a.relations))(i.relationName&&i!==e&&e.relationName===i.relationName||!i.relationName&&e.referencedTable===i.sourceTable)&&u.push(e);if(u.length>1)throw i.relationName?Error(`There are multiple relations with name "${i.relationName}" in table "${r}"`):Error(`There are multiple relations between "${r}" and "${i.sourceTable[s.iA.Symbol.Name]}". Please specify relation name`);if(u[0]&&(0,n.is)(u[0],p)&&u[0].config)return{fields:u[0].config.references,references:u[0].config.fields};throw Error(`There is not enough information to infer relation "${o}.${i.fieldName}"`)}function _(e){return{one:function(t,i){return new p(e,t,i,i?.fields.reduce((e,t)=>e&&t.notNull,!0)??!1)},many:function(t,i){return new f(e,t,i)}}}},4143:(e,t,i)=>{i.d(t,{e:()=>u});var s=i(4456),r=i(9105),n=i(4869),a=i(2393),l=i(2877),o=i(776);class u{static{this[n.Q]="SelectionProxyHandler"}constructor(e){this.config={...e}}get(e,t){if(t===l.g1)return{...e[l.g1],selection:new Proxy(e[l.g1].selection,this)};if(t===o.d)return{...e[o.d],selectedFields:new Proxy(e[o.d].selectedFields,this)};if("symbol"==typeof t)return e[t];let i=((0,n.is)(e,l.k)?e[l.g1].selection:(0,n.is)(e,a.G7)?e[o.d].selectedFields:e)[t];if((0,n.is)(i,a.$s.Aliased)){if("sql"===this.config.sqlAliasedBehavior&&!i.isSelectionField)return i.sql;let e=i.clone();return e.isSelectionField=!0,e}if((0,n.is)(i,a.$s)){if("sql"===this.config.sqlBehavior)return i;throw Error(`You tried to reference "${t}" field from a subquery, which is a raw SQL field, but it doesn't have an alias declared. Please add an alias to the field using ".as('alias')" method.`)}return(0,n.is)(i,r.s)?this.config.alias?new Proxy(i,new s.dZ(new Proxy(i.table,new s.wH(this.config.alias,this.config.replaceOriginalName??!1)))):i:"object"!=typeof i||null===i?i:new Proxy(i,new u(this.config))}}},4990:(e,t,i)=>{i.d(t,{Ft:()=>b,G:()=>y,Gg:()=>w,K0:()=>_,Nl:()=>v,OL:()=>k,Qg:()=>$,UN:()=>S,d3:()=>g,eg:()=>f,eq:()=>o,ff:()=>h,gt:()=>p,lt:()=>m,mM:()=>O,ne:()=>u,o$:()=>Q,or:()=>c,vL:()=>N,vX:()=>x,xD:()=>d});var s=i(9105),r=i(4869),n=i(3543),a=i(2393);function l(e,t){return!(0,a._B)(t)||(0,a.zl)(e)||(0,r.is)(e,a.dO)||(0,r.is)(e,a.Vm)||(0,r.is)(e,s.s)||(0,r.is)(e,n.iA)||(0,r.is)(e,a.G7)?e:new a.dO(e,t)}let o=(e,t)=>a.i6`${e} = ${l(t,e)}`,u=(e,t)=>a.i6`${e} <> ${l(t,e)}`;function d(...e){let t=e.filter(e=>void 0!==e);return 0===t.length?void 0:new a.$s(1===t.length?t:[new a.Zm("("),a.i6.join(t,new a.Zm(" and ")),new a.Zm(")")])}function c(...e){let t=e.filter(e=>void 0!==e);return 0===t.length?void 0:new a.$s(1===t.length?t:[new a.Zm("("),a.i6.join(t,new a.Zm(" or ")),new a.Zm(")")])}function h(e){return a.i6`not ${e}`}let p=(e,t)=>a.i6`${e} > ${l(t,e)}`,f=(e,t)=>a.i6`${e} >= ${l(t,e)}`,m=(e,t)=>a.i6`${e} < ${l(t,e)}`,y=(e,t)=>a.i6`${e} <= ${l(t,e)}`;function g(e,t){if(Array.isArray(t)){if(0===t.length)throw Error("inArray requires at least one value");return a.i6`${e} in ${t.map(t=>l(t,e))}`}return a.i6`${e} in ${l(t,e)}`}function v(e,t){if(Array.isArray(t)){if(0===t.length)throw Error("notInArray requires at least one value");return a.i6`${e} not in ${t.map(t=>l(t,e))}`}return a.i6`${e} not in ${l(t,e)}`}function b(e){return a.i6`${e} is null`}function _(e){return a.i6`${e} is not null`}function w(e){return a.i6`exists ${e}`}function S(e){return a.i6`not exists ${e}`}function x(e,t,i){return a.i6`${e} between ${l(t,e)} and ${l(i,e)}`}function k(e,t,i){return a.i6`${e} not between ${l(t,e)} and ${l(i,e)}`}function N(e,t){return a.i6`${e} like ${t}`}function $(e,t){return a.i6`${e} not like ${t}`}function Q(e,t){return a.i6`${e} ilike ${t}`}function O(e,t){return a.i6`${e} not ilike ${t}`}},2393:(e,t,i)=>{i.d(t,{$s:()=>p,G7:()=>S,Pr:()=>w,Vm:()=>_,Zm:()=>h,_B:()=>m,dO:()=>v,i6:()=>b,zl:()=>c});var s=i(4869),r=i(9349),n=i(2877),a=i(7415),l=i(776),o=i(9105),u=i(3543);class d{static{this[s.Q]="FakePrimitiveParam"}}function c(e){return"object"==typeof e&&null!==e&&"getSQL"in e&&"function"==typeof e.getSQL}class h{static{this[s.Q]="StringChunk"}constructor(e){this.value=Array.isArray(e)?e:[e]}getSQL(){return new p([this])}}class p{constructor(e){this.decoder=y,this.shouldInlineParams=!1,this.queryChunks=e}static{this[s.Q]="SQL"}append(e){return this.queryChunks.push(...e.queryChunks),this}toQuery(e){return a.Z.startActiveSpan("drizzle.buildSQL",t=>{let i=this.buildQueryFromSourceParams(this.queryChunks,e);return t?.setAttributes({"drizzle.query.text":i.sql,"drizzle.query.params":JSON.stringify(i.params)}),i})}buildQueryFromSourceParams(e,t){let i=Object.assign({},t,{inlineParams:t.inlineParams||this.shouldInlineParams,paramStartIndex:t.paramStartIndex||{value:0}}),{escapeName:a,escapeParam:d,prepareTyping:m,inlineParams:y,paramStartIndex:g}=i;return function(e){let t={sql:"",params:[]};for(let i of e)t.sql+=i.sql,t.params.push(...i.params),i.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...i.typings));return t}(e.map(e=>{if((0,s.is)(e,h))return{sql:e.value.join(""),params:[]};if((0,s.is)(e,f))return{sql:a(e.value),params:[]};if(void 0===e)return{sql:"",params:[]};if(Array.isArray(e)){let t=[new h("(")];for(let[i,s]of e.entries())t.push(s),ie},g={mapToDriverValue:e=>e};({...y,...g});class v{constructor(e,t=g){this.value=e,this.encoder=t}static{this[s.Q]="Param"}getSQL(){return new p([this])}}function b(e,...t){let i=[];for(let[s,r]of((t.length>0||e.length>0&&""!==e[0])&&i.push(new h(e[0])),t.entries()))i.push(r,new h(e[s+1]));return new p(i)}(e=>{e.empty=function(){return new p([])},e.fromList=function(e){return new p(e)},e.raw=function(e){return new p([new h(e)])},e.join=function(e,t){let i=[];for(let[s,r]of e.entries())s>0&&void 0!==t&&i.push(t),i.push(r);return new p(i)},e.identifier=function(e){return new f(e)},e.placeholder=function(e){return new _(e)},e.param=function(e,t){return new v(e,t)}})(b||(b={})),(e=>{class t{constructor(e,t){this.isSelectionField=!1,this.sql=e,this.fieldAlias=t}static{this[s.Q]="SQL.Aliased"}getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(p||(p={}));class _{constructor(e){this.name=e}static{this[s.Q]="Placeholder"}getSQL(){return new p([this])}}function w(e,t){return e.map(e=>{if((0,s.is)(e,_)){if(!(e.name in t))throw Error(`No value for placeholder "${e.name}" was provided`);return t[e.name]}return e})}class S{static{this[s.Q]="View"}constructor({name:e,schema:t,selectedFields:i,query:s}){this[l.d]={name:e,originalName:e,schema:t,selectedFields:i,query:s,isExisting:!s,isAlias:!1}}getSQL(){return new p([this])}}o.s.prototype.getSQL=function(){return new p([this])},u.iA.prototype.getSQL=function(){return new p([this])},n.k.prototype.getSQL=function(){return new p([this])}},7279:(e,t,i)=>{i.d(t,{l:()=>f,d:()=>p});var s=i(6711),r=i(9105),n=i(4869),a=i(5225);class l{static{this[n.Q]="SQLiteForeignKeyBuilder"}constructor(e,t){this.reference=()=>{let{name:t,columns:i,foreignColumns:s}=e();return{name:t,columns:i,foreignTable:s[0].table,foreignColumns:s}},t&&(this._onUpdate=t.onUpdate,this._onDelete=t.onDelete)}onUpdate(e){return this._onUpdate=e,this}onDelete(e){return this._onDelete=e,this}build(e){return new o(e,this)}}class o{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static{this[n.Q]="SQLiteForeignKey"}getName(){let{name:e,columns:t,foreignColumns:i}=this.reference(),s=t.map(e=>e.name),r=i.map(e=>e.name),n=[this.table[a.xA.Symbol.Name],...s,i[0].table[a.xA.Symbol.Name],...r];return e??`${n.join("_")}_fk`}}function u(e,t){return`${e[a.xA.Symbol.Name]}_${t.join("_")}_unique`}class d{constructor(e,t){this.name=t,this.columns=e}static{this[n.Q]="SQLiteUniqueConstraintBuilder"}build(e){return new h(e,this.columns,this.name)}}class c{static{this[n.Q]="SQLiteUniqueOnConstraintBuilder"}constructor(e){this.name=e}on(...e){return new d(e,this.name)}}class h{constructor(e,t,i){this.table=e,this.columns=t,this.name=i??u(this.table,this.columns.map(e=>e.name))}static{this[n.Q]="SQLiteUniqueConstraint"}getName(){return this.name}}class p extends s.L{static{this[n.Q]="SQLiteColumnBuilder"}references(e,t={}){return this.foreignKeyConfigs.push({ref:e,actions:t}),this}unique(e){return this.config.isUnique=!0,this.config.uniqueName=e,this}buildForeignKeys(e,t){return this.foreignKeyConfigs.map(({ref:i,actions:s})=>((i,s)=>{let r=new l(()=>({columns:[e],foreignColumns:[i()]}));return s.onUpdate&&r.onUpdate(s.onUpdate),s.onDelete&&r.onDelete(s.onDelete),r.build(t)})(i,s))}constructor(...e){super(...e),this.foreignKeyConfigs=[]}}class f extends r.s{constructor(e,t){t.uniqueName||(t.uniqueName=u(e,[t.name])),super(e,t),this.table=e}static{this[n.Q]="SQLiteColumn"}}},9415:(e,t,i)=>{i.d(t,{_L:()=>f,e$:()=>m});var s=i(4869),r=i(2393),n=i(7279);class a extends n.d{static{this[s.Q]="SQLiteBaseIntegerBuilder"}constructor(e,t,i){super(e,t,i),this.config.autoIncrement=!1}primaryKey(e){return e?.autoIncrement&&(this.config.autoIncrement=!0),this.config.hasDefault=!0,super.primaryKey()}}class l extends n.l{static{this[s.Q]="SQLiteBaseInteger"}getSQLType(){return"integer"}constructor(...e){super(...e),this.autoIncrement=this.config.autoIncrement}}class o extends a{static{this[s.Q]="SQLiteIntegerBuilder"}constructor(e){super(e,"number","SQLiteInteger")}build(e){return new u(e,this.config)}}class u extends l{static{this[s.Q]="SQLiteInteger"}}class d extends a{static{this[s.Q]="SQLiteTimestampBuilder"}constructor(e,t){super(e,"date","SQLiteTimestamp"),this.config.mode=t}defaultNow(){return this.default(r.i6`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build(e){return new c(e,this.config)}}class c extends l{static{this[s.Q]="SQLiteTimestamp"}mapFromDriverValue(e){return new Date("timestamp"===this.config.mode?1e3*e:e)}mapToDriverValue(e){let t=e.getTime();return"timestamp"===this.config.mode?Math.floor(t/1e3):t}constructor(...e){super(...e),this.mode=this.config.mode}}class h extends a{static{this[s.Q]="SQLiteBooleanBuilder"}constructor(e,t){super(e,"boolean","SQLiteBoolean"),this.config.mode=t}build(e){return new p(e,this.config)}}class p extends l{static{this[s.Q]="SQLiteBoolean"}mapFromDriverValue(e){return 1===Number(e)}mapToDriverValue(e){return e?1:0}constructor(...e){super(...e),this.mode=this.config.mode}}function f(e,t){return t?.mode==="timestamp"||t?.mode==="timestamp_ms"?new d(e,t.mode):t?.mode==="boolean"?new h(e,t.mode):new o(e)}let m=f},440:(e,t,i)=>{i.d(t,{fL:()=>u});var s=i(4869),r=i(7279);class n extends r.d{static{this[s.Q]="SQLiteTextBuilder"}constructor(e,t){super(e,"string","SQLiteText"),this.config.enumValues=t.enum,this.config.length=t.length}build(e){return new a(e,this.config)}}class a extends r.l{static{this[s.Q]="SQLiteText"}constructor(e,t){super(e,t),this.enumValues=this.config.enumValues,this.length=this.config.length}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}}class l extends r.d{static{this[s.Q]="SQLiteTextJsonBuilder"}constructor(e){super(e,"json","SQLiteTextJson")}build(e){return new o(e,this.config)}}class o extends r.l{static{this[s.Q]="SQLiteTextJson"}getSQLType(){return"text"}mapFromDriverValue(e){return JSON.parse(e)}mapToDriverValue(e){return JSON.stringify(e)}}function u(e,t={}){return"json"===t.mode?new l(e):new n(e,t)}},8728:(e,t,i)=>{i.d(t,{z:()=>P});var s=i(4869),r=i(4143),n=i(4888),a=i(6834),l=i(2852),o=i(2393),u=i(3543),d=i(9324),c=i(776),h=i(2877),p=i(2904);class f{static{this[s.Q]="SQLiteSelectBuilder"}constructor(e){this.fields=e.fields,this.session=e.session,this.dialect=e.dialect,this.withList=e.withList,this.distinct=e.distinct}from(e){let t;let i=!!this.fields;return t=this.fields?this.fields:(0,s.is)(e,h.k)?Object.fromEntries(Object.keys(e[h.g1].selection).map(t=>[t,e[t]])):(0,s.is)(e,p.B)?e[c.d].selectedFields:(0,s.is)(e,o.$s)?{}:(0,d.SS)(e),new y({table:e,fields:t,isPartialSelect:i,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct})}}class m extends a.b{static{this[s.Q]="SQLiteSelectQueryBuilder"}constructor({table:e,fields:t,isPartialSelect:i,session:s,dialect:r,withList:n,distinct:a}){super(),this.leftJoin=this.createJoin("left"),this.rightJoin=this.createJoin("right"),this.innerJoin=this.createJoin("inner"),this.fullJoin=this.createJoin("full"),this.union=this.createSetOperator("union",!1),this.unionAll=this.createSetOperator("union",!0),this.intersect=this.createSetOperator("intersect",!1),this.except=this.createSetOperator("except",!1),this.config={withList:n,table:e,fields:{...t},distinct:a,setOperators:[]},this.isPartialSelect=i,this.session=s,this.dialect=r,this._={selectedFields:t},this.tableName=(0,d.dP)(e),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}createJoin(e){return(t,i)=>{let n=this.tableName,a=(0,d.dP)(t);if("string"==typeof a&&this.config.joins?.some(e=>e.alias===a))throw Error(`Alias "${a}" is already used in this query`);if(!this.isPartialSelect&&(1===Object.keys(this.joinsNotNullableMap).length&&"string"==typeof n&&(this.config.fields={[n]:this.config.fields}),"string"==typeof a&&!(0,s.is)(t,o.$s))){let e=(0,s.is)(t,h.k)?t[h.g1].selection:(0,s.is)(t,o.G7)?t[c.d].selectedFields:t[u.iA.Symbol.Columns];this.config.fields[a]=e}if("function"==typeof i&&(i=i(new Proxy(this.config.fields,new r.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:i,table:t,joinType:e,alias:a}),"string"==typeof a)switch(e){case"left":this.joinsNotNullableMap[a]=!1;break;case"right":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!0;break;case"inner":this.joinsNotNullableMap[a]=!0;break;case"full":this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!1}return this}}createSetOperator(e,t){return i=>{let s="function"==typeof i?i(v()):i;if(!(0,d.ux)(this.getSelectedFields(),s.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return this.config.setOperators.push({type:e,isAll:t,rightSelect:s}),this}}addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new r.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=e,this}having(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new r.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.having=e,this}groupBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new r.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"})));this.config.groupBy=Array.isArray(t)?t:[t]}else this.config.groupBy=e;return this}orderBy(...e){if("function"==typeof e[0]){let t=e[0](new Proxy(this.config.fields,new r.e({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),i=Array.isArray(t)?t:[t];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=i:this.config.orderBy=i}else this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=e:this.config.orderBy=e;return this}limit(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=e:this.config.limit=e,this}offset(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=e:this.config.offset=e,this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}as(e){return new Proxy(new h.k(this.getSQL(),this.config.fields,e),new r.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new r.e({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}}class y extends m{static{this[s.Q]="SQLiteSelect"}prepare(e){if(!this.session)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");let t=(0,d.ZS)(this.config.fields),i=this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),t,"all");return i.joinsNotNullableMap=this.joinsNotNullableMap,i}async execute(){return this.all()}constructor(...e){super(...e),this.run=e=>this.prepare(!0).run(e),this.all=e=>this.prepare(!0).all(e),this.get=e=>this.prepare(!0).get(e),this.values=e=>this.prepare(!0).values(e)}}function g(e,t){return(i,s,...r)=>{let n=[s,...r].map(i=>({type:e,isAll:t,rightSelect:i}));for(let e of n)if(!(0,d.ux)(i.getSelectedFields(),e.rightSelect.getSelectedFields()))throw Error("Set operator error (union / intersect / except): selected fields are not the same or are in a different order");return i.addSetOperators(n)}}(0,d.ef)(y,[l.N]);let v=()=>({union:b,unionAll:_,intersect:w,except:S}),b=g("union",!1),_=g("union",!0),w=g("intersect",!1),S=g("except",!1);class x{static{this[s.Q]="SQLiteQueryBuilder"}$with(e){let t=this;return{as:i=>("function"==typeof i&&(i=i(t)),new Proxy(new h.SC(i.getSQL(),i.getSelectedFields(),e,!0),new r.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(i){return new f({fields:i??void 0,session:void 0,dialect:t.getDialect(),withList:e})},selectDistinct:function(i){return new f({fields:i??void 0,session:void 0,dialect:t.getDialect(),withList:e,distinct:!0})}}}select(e){return new f({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new f({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}getDialect(){return this.dialect||(this.dialect=new n.Ac),this.dialect}}var k=i(5225);class N{constructor(e,t,i){this.table=e,this.session=t,this.dialect=i}static{this[s.Q]="SQLiteUpdateBuilder"}set(e){return new $(this.table,(0,d.M6)(this.table,e),this.session,this.dialect)}}class $ extends l.N{constructor(e,t,i,s){super(),this.run=e=>this.prepare(!0).run(e),this.all=e=>this.prepare(!0).all(e),this.get=e=>this.prepare(!0).get(e),this.values=e=>this.prepare(!0).values(e),this.session=i,this.dialect=s,this.config={set:t,table:e}}static{this[s.Q]="SQLiteUpdate"}where(e){return this.config.where=e,this}returning(e=this.config.table[k.xA.Symbol.Columns]){return this.config.returning=(0,d.ZS)(e),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(e){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}class Q{constructor(e,t,i){this.table=e,this.session=t,this.dialect=i}static{this[s.Q]="SQLiteInsertBuilder"}values(e){if(0===(e=Array.isArray(e)?e:[e]).length)throw Error("values() must be called with at least one value");let t=e.map(e=>{let t={},i=this.table[u.iA.Symbol.Columns];for(let r of Object.keys(e)){let n=e[r];t[r]=(0,s.is)(n,o.$s)?n:new o.dO(n,i[r])}return t});return new O(this.table,t,this.session,this.dialect)}}class O extends l.N{constructor(e,t,i,s){super(),this.run=e=>this.prepare(!0).run(e),this.all=e=>this.prepare(!0).all(e),this.get=e=>this.prepare(!0).get(e),this.values=e=>this.prepare(!0).values(e),this.session=i,this.dialect=s,this.config={table:e,values:t}}static{this[s.Q]="SQLiteInsert"}returning(e=this.config.table[k.xA.Symbol.Columns]){return this.config.returning=(0,d.ZS)(e),this}onConflictDoNothing(e={}){if(void 0===e.target)this.config.onConflict=o.i6`do nothing`;else{let t=Array.isArray(e.target)?o.i6`${e.target}`:o.i6`${[e.target]}`,i=e.where?o.i6` where ${e.where}`:o.i6``;this.config.onConflict=o.i6`${t} do nothing${i}`}return this}onConflictDoUpdate(e){let t=Array.isArray(e.target)?o.i6`${e.target}`:o.i6`${[e.target]}`,i=e.where?o.i6` where ${e.where}`:o.i6``,s=this.dialect.buildUpdateSet(this.config.table,(0,d.M6)(this.config.table,e.set));return this.config.onConflict=o.i6`${t} do update set ${s}${i}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(e){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}class T extends l.N{constructor(e,t,i){super(),this.run=e=>this.prepare(!0).run(e),this.all=e=>this.prepare(!0).all(e),this.get=e=>this.prepare(!0).get(e),this.values=e=>this.prepare(!0).values(e),this.table=e,this.session=t,this.dialect=i,this.config={table:e}}static{this[s.Q]="SQLiteDelete"}where(e){return this.config.where=e,this}returning(e=this.table[k.xA.Symbol.Columns]){return this.config.returning=(0,d.ZS)(e),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}prepare(e){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}async execute(e){return this.prepare(!0).execute(e)}$dynamic(){return this}}var A=i(9349);class j{constructor(e,t,i,s,r,n,a,l){this.mode=e,this.fullSchema=t,this.schema=i,this.tableNamesMap=s,this.table=r,this.tableConfig=n,this.dialect=a,this.session=l}static{this[s.Q]="SQLiteAsyncRelationalQueryBuilder"}findMany(e){return"sync"===this.mode?new L(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many"):new C(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many")}findFirst(e){return"sync"===this.mode?new L(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first"):new C(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first")}}class C extends l.N{constructor(e,t,i,s,r,n,a,l,o){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=i,this.table=s,this.tableConfig=r,this.dialect=n,this.session=a,this.config=l,this.mode=o}static{this[s.Q]="SQLiteAsyncRelationalQuery"}getSQL(){return this.dialect.buildRelationalQuery({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName}).sql}prepare(){let{query:e,builtQuery:t}=this._toSQL();return this.session.prepareQuery(t,void 0,"first"===this.mode?"get":"all",(t,i)=>{let s=t.map(t=>(0,A.WX)(this.schema,this.tableConfig,t,e.selection,i));return"first"===this.mode?s[0]:s})}_toSQL(){let e=this.dialect.buildRelationalQuery({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName}),t=this.dialect.sqlToQuery(e.sql);return{query:e,builtQuery:t}}toSQL(){return this._toSQL().builtQuery}executeRaw(){return"first"===this.mode?this.prepare().get():this.prepare().all()}async execute(){return this.executeRaw()}}class L extends C{static{this[s.Q]="SQLiteSyncRelationalQuery"}sync(){return this.executeRaw()}}class Z extends l.N{constructor(e,t,i,s,r){super(),this.cb=e,this.getSQLCb=t,this.dialect=s,this.mapBatchResult=r,this.config={action:i}}static{this[s.Q]="SQLiteRaw"}getSQL(){return this.getSQLCb()}async execute(){return this.cb()}prepare(){return{getQuery:()=>this.dialect.sqlToQuery(this.getSQL()),mapResult:(e,t)=>t?this.mapBatchResult(e):e}}}class P{constructor(e,t,i,s){if(this.resultKind=e,this.dialect=t,this.session=i,this._=s?{schema:s.schema,tableNamesMap:s.tableNamesMap}:{schema:void 0,tableNamesMap:{}},this.query={},this._.schema)for(let[r,n]of Object.entries(this._.schema))this.query[r]=new j(e,s.fullSchema,this._.schema,this._.tableNamesMap,s.fullSchema[r],n,t,i)}static{this[s.Q]="BaseSQLiteDatabase"}$with(e){return{as:t=>("function"==typeof t&&(t=t(new x)),new Proxy(new h.SC(t.getSQL(),t.getSelectedFields(),e,!0),new r.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(i){return new f({fields:i??void 0,session:t.session,dialect:t.dialect,withList:e})},selectDistinct:function(i){return new f({fields:i??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})}}}select(e){return new f({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new f({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}update(e){return new N(e,this.session,this.dialect)}insert(e){return new Q(e,this.session,this.dialect)}delete(e){return new T(e,this.session,this.dialect)}run(e){let t=e.getSQL();return"async"===this.resultKind?new Z(async()=>this.session.run(t),()=>t,"run",this.dialect,this.session.extractRawRunValueFromBatchResult.bind(this.session)):this.session.run(t)}all(e){let t=e.getSQL();return"async"===this.resultKind?new Z(async()=>this.session.all(t),()=>t,"all",this.dialect,this.session.extractRawAllValueFromBatchResult.bind(this.session)):this.session.all(t)}get(e){let t=e.getSQL();return"async"===this.resultKind?new Z(async()=>this.session.get(t),()=>t,"get",this.dialect,this.session.extractRawGetValueFromBatchResult.bind(this.session)):this.session.get(t)}values(e){let t=e.getSQL();return"async"===this.resultKind?new Z(async()=>this.session.values(t),()=>t,"values",this.dialect,this.session.extractRawValuesValueFromBatchResult.bind(this.session)):this.session.values(t)}transaction(e,t){return this.session.transaction(e,t)}}},4888:(e,t,i)=>{i.d(t,{Ac:()=>v});var s=i(4456),r=i(9105),n=i(4869),a=i(6702),l=i(9349),o=i(2393),u=i(4990),d=i(7279),c=i(5225),h=i(2877),p=i(3543),f=i(9324),m=i(776),y=i(2904);class g{static{this[n.Q]="SQLiteDialect"}escapeName(e){return`"${e}"`}escapeParam(e){return"?"}escapeString(e){return`'${e.replace(/'/g,"''")}'`}buildDeleteQuery({table:e,where:t,returning:i}){let s=i?o.i6` returning ${this.buildSelection(i,{isSingleTable:!0})}`:void 0,r=t?o.i6` where ${t}`:void 0;return o.i6`delete from ${e}${r}${s}`}buildUpdateSet(e,t){let i=Object.entries(t),s=i.length;return o.i6.join(i.flatMap(([t,i],r)=>{let n=e[p.iA.Symbol.Columns][t],a=o.i6`${o.i6.identifier(n.name)} = ${i}`;return r{let a=[];if((0,n.is)(e,o.$s.Aliased)&&e.isSelectionField)a.push(o.i6.identifier(e.fieldAlias));else if((0,n.is)(e,o.$s.Aliased)||(0,n.is)(e,o.$s)){let i=(0,n.is)(e,o.$s.Aliased)?e.sql:e;t?a.push(new o.$s(i.queryChunks.map(e=>(0,n.is)(e,r.s)?o.i6.identifier(e.name):e))):a.push(i),(0,n.is)(e,o.$s.Aliased)&&a.push(o.i6` as ${o.i6.identifier(e.fieldAlias)}`)}else if((0,n.is)(e,r.s)){let i=e.table[p.iA.Symbol.Name],s=e.name;t?a.push(o.i6.identifier(s)):a.push(o.i6`${o.i6.identifier(i)}.${o.i6.identifier(s)}`)}return se===(k[p.iA.Symbol.IsAlias]?p.SP(k):k[p.iA.Symbol.BaseName])))){let t=(0,p.SP)(e.field.table);throw Error(`Your "${e.path.join("->")}" field references a column "${t}"."${e.field.name}", but the table "${t}" is not part of the query! Did you forget to join it?`)}}let N=!u||0===u.length;if(e?.length){let t=[o.i6`with `];for(let[i,s]of e.entries())t.push(o.i6`${o.i6.identifier(s[h.g1].alias)} as (${s[h.g1].sql})`),i0?o.i6` group by ${o.i6.join(Z)}`:void 0,E=L.length>0?o.i6` order by ${o.i6.join(L)}`:void 0,q=v?o.i6` limit ${v}`:void 0,R=b?o.i6` offset ${b}`:void 0,I=o.i6`${S}select${$} ${Q} from ${O}${A}${j}${P}${C}${E}${q}${R}`;return w.length>0?this.buildSetOperations(I,w):I}buildSetOperations(e,t){let[i,...s]=t;if(!i)throw Error("Cannot pass undefined values to any set operator");return 0===s.length?this.buildSetOperationQuery({leftSelect:e,setOperator:i}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:e,setOperator:i}),s)}buildSetOperationQuery({leftSelect:e,setOperator:{type:t,isAll:i,rightSelect:s,limit:r,orderBy:a,offset:l}}){let u;let c=o.i6`${e.getSQL()} `,h=o.i6`${s.getSQL()}`;if(a&&a.length>0){let e=[];for(let t of a)if((0,n.is)(t,d.l))e.push(o.i6.identifier(t.name));else if((0,n.is)(t,o.$s)){for(let e=0;eo.i6.identifier(e.name));for(let[e,i]of t.entries()){let s=[];for(let[e,t]of a){let r=i[e];if(void 0===r||(0,n.is)(r,o.dO)&&void 0===r.value){let e;if(null!==t.default&&void 0!==t.default)e=(0,n.is)(t.default,o.$s)?t.default:o.i6.param(t.default,t);else if(void 0!==t.defaultFn){let i=t.defaultFn();e=(0,n.is)(i,o.$s)?i:o.i6.param(i,t)}else e=o.i6`null`;s.push(e)}else s.push(r)}r.push(s),e({dbKey:t.name,tsKey:e,field:(0,s.lw)(t,g),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let a=Object.fromEntries(Object.entries(m.columns).map(([e,t])=>[e,(0,s.lw)(t,g)]));if(y.where){let e="function"==typeof y.where?y.where(a,(0,l.vU)()):y.where;N=e&&(0,s.UI)(e,g)}let d=[],c=[];if(y.columns){let e=!1;for(let[t,i]of Object.entries(y.columns))void 0!==i&&t in m.columns&&(e||!0!==i||(e=!0),c.push(t));c.length>0&&(c=e?c.filter(e=>y.columns?.[e]===!0):Object.keys(m.columns).filter(e=>!c.includes(e)))}else c=Object.keys(m.columns);for(let e of c){let t=m.columns[e];d.push({tsKey:e,value:t})}let h=[];if(y.with&&(h=Object.entries(y.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:m.relations[e]}))),y.extras)for(let[e,t]of Object.entries("function"==typeof y.extras?y.extras(a,{sql:o.i6}):y.extras))d.push({tsKey:e,value:(0,s.qD)(t,g)});for(let{tsKey:e,value:t}of d)w.push({dbKey:(0,n.is)(t,o.$s.Aliased)?t.fieldAlias:m.columns[e].name,tsKey:e,field:(0,n.is)(t,r.s)?(0,s.lw)(t,g):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let f="function"==typeof y.orderBy?y.orderBy(a,(0,l.pl)()):y.orderBy??[];for(let{tsKey:a,queryConfig:d,relation:c}of(Array.isArray(f)||(f=[f]),k=f.map(e=>(0,n.is)(e,r.s)?(0,s.lw)(e,g):(0,s.UI)(e,g)),S=y.limit,x=y.offset,h)){let r=(0,l.wG)(t,i,c),h=i[c.referencedTable[p.iA.Symbol.Name]],f=`${g}_${a}`,m=(0,u.xD)(...r.fields.map((e,t)=>(0,u.eq)((0,s.lw)(r.references[t],f),(0,s.lw)(e,g)))),y=this.buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:i,table:e[h],tableConfig:t[h],queryConfig:(0,n.is)(c,l.fh)?!0===d?{limit:1}:{...d,limit:1}:d,tableAlias:f,joinOn:m,nestedQueryRelation:c}),v=o.i6`(${y.sql})`.as(a);w.push({dbKey:a,tsKey:a,field:v,relationTableTsKey:h,isJson:!0,selection:y.selection})}}if(0===w.length)throw new a.k({message:`No fields selected for table "${m.tsName}" ("${g}"). You need to have at least one item in "columns", "with" or "extras". If you need to select all columns, omit the "columns" key or set it to undefined.`});if(N=(0,u.xD)(b,N),v){let e=o.i6`json_array(${o.i6.join(w.map(({field:e})=>(0,n.is)(e,d.l)?o.i6.identifier(e.name):(0,n.is)(e,o.$s.Aliased)?e.sql:e),o.i6`, `)})`;(0,n.is)(v,l.sj)&&(e=o.i6`coalesce(json_group_array(${e}), json_array())`);let t=[{dbKey:"data",tsKey:"data",field:e.as("data"),isJson:!0,relationTableTsKey:m.tsName,selection:w}];void 0!==S||void 0!==x||k.length>0?(_=this.buildSelectQuery({table:(0,s.RQ)(f,g),fields:{},fieldsFlat:[{path:[],field:o.i6.raw("*")}],where:N,limit:S,offset:x,orderBy:k,setOperators:[]}),N=void 0,S=void 0,x=void 0,k=void 0):_=(0,s.RQ)(f,g),_=this.buildSelectQuery({table:(0,n.is)(_,c.xA)?_:new h.k(_,{},g),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,n.is)(e,r.s)?(0,s.lw)(e,g):e})),joins:$,where:N,limit:S,offset:x,orderBy:k,setOperators:[]})}else _=this.buildSelectQuery({table:(0,s.RQ)(f,g),fields:{},fieldsFlat:w.map(({field:e})=>({path:[],field:(0,n.is)(e,r.s)?(0,s.lw)(e,g):e})),joins:$,where:N,limit:S,offset:x,orderBy:k,setOperators:[]});return{tableTsKey:m.tsName,sql:_,selection:w}}}class v extends g{static{this[n.Q]="SQLiteSyncDialect"}migrate(e,t){let i=o.i6` + CREATE TABLE IF NOT EXISTS "__drizzle_migrations" ( + id SERIAL PRIMARY KEY, + hash text NOT NULL, + created_at numeric + ) + `;t.run(i);let s=t.values(o.i6`SELECT id, hash, created_at FROM "__drizzle_migrations" ORDER BY created_at DESC LIMIT 1`)[0]??void 0;t.run(o.i6`BEGIN`);try{for(let i of e)if(!s||Number(s[2]){for(let i of e)if(!s||Number(s[2]){i.d(t,{Kz:()=>l});var s=i(4869);class r{constructor(e,t){this.name=e,this.unique=t}static{this[s.Q]="SQLiteIndexBuilderOn"}on(...e){return new n(this.name,e,this.unique)}}class n{static{this[s.Q]="SQLiteIndexBuilder"}constructor(e,t,i){this.config={name:e,columns:t,unique:i,where:void 0}}where(e){return this.config.where=e,this}build(e){return new a(this.config,e)}}class a{static{this[s.Q]="SQLiteIndex"}constructor(e,t){this.config={...e,table:t}}}function l(e){return new r(e,!1)}},7357:(e,t,i)=>{i.d(t,{CK:()=>n});var s=i(4869),r=i(5225);function n(...e){return e[0].columns?new a(e[0].columns,e[0].name):new a(e)}class a{static{this[s.Q]="SQLitePrimaryKeyBuilder"}constructor(e,t){this.columns=e,this.name=t}build(e){return new l(e,this.columns,this.name)}}class l{constructor(e,t,i){this.table=e,this.columns=t,this.name=i}static{this[s.Q]="SQLitePrimaryKey"}getName(){return this.name??`${this.table[r.xA.Symbol.Name]}_${this.columns.map(e=>e.name).join("_")}_pk`}}},5225:(e,t,i)=>{let s;i.d(t,{Px:()=>u,_9:()=>d,xA:()=>l});var r=i(4869),n=i(3543);let a=Symbol.for("drizzle:SQLiteInlineForeignKeys");class l extends n.iA{static{n.iA.Symbol.Columns,s=n.iA.Symbol.ExtraConfigBuilder}static{this[r.Q]="SQLiteTable"}static{this.Symbol=Object.assign({},n.iA.Symbol,{InlineForeignKeys:a})}constructor(...e){super(...e),this[a]=[],this[s]=void 0}}function o(e,t,i,s,r=e){let o=new l(e,s,r),u=Object.fromEntries(Object.entries(t).map(([e,t])=>{let i=t.build(o);return o[a].push(...t.buildForeignKeys(i,o)),[e,i]})),d=Object.assign(o,u);return d[n.iA.Symbol.Columns]=u,i&&(d[l.Symbol.ExtraConfigBuilder]=i),d}let u=(e,t,i)=>o(e,t,i);function d(e){return(t,i,s)=>o(e(t),i,s,void 0,t)}},2904:(e,t,i)=>{i.d(t,{B:()=>n});var s=i(4869),r=i(2393);class n extends r.G7{static{this[s.Q]="SQLiteViewBase"}}},2877:(e,t,i)=>{i.d(t,{SC:()=>a,g1:()=>r,k:()=>n});var s=i(4869);let r=Symbol.for("drizzle:SubqueryConfig");class n{static{this[s.Q]="Subquery"}constructor(e,t,i,s=!1){this[r]={sql:e,selection:t,alias:i,isWith:s}}}class a extends n{static{this[s.Q]="WithSubquery"}}},3543:(e,t,i)=>{i.d(t,{SP:()=>f,iA:()=>h,wb:()=>p});var s=i(4869);let r=Symbol.for("drizzle:Name"),n=Symbol.for("drizzle:Schema"),a=Symbol.for("drizzle:Columns"),l=Symbol.for("drizzle:OriginalName"),o=Symbol.for("drizzle:BaseName"),u=Symbol.for("drizzle:IsAlias"),d=Symbol.for("drizzle:ExtraConfigBuilder"),c=Symbol.for("drizzle:IsDrizzleTable");class h{static{this[s.Q]="Table"}static{this.Symbol={Name:r,Schema:n,OriginalName:l,Columns:a,BaseName:o,IsAlias:u,ExtraConfigBuilder:d}}constructor(e,t,i){this[u]=!1,this[d]=void 0,this[c]=!0,this[r]=this[l]=e,this[n]=t,this[o]=i}}function p(e){return"object"==typeof e&&null!==e&&c in e}function f(e){return e[r]}},8823:(e,t,i)=>{i.d(t,{t:()=>s});function s(e,...t){return e(...t)}},7415:(e,t,i)=>{let s,r;i.d(t,{Z:()=>a});var n=i(8823);let a={startActiveSpan:(e,t)=>s?(r||(r=s.trace.getTracer("drizzle-orm","0.29.3")),(0,n.t)((i,s)=>s.startActiveSpan(e,e=>{try{return t(e)}catch(t){throw e.setStatus({code:i.SpanStatusCode.ERROR,message:t instanceof Error?t.message:"Unknown error"}),t}finally{e.end()}}),s,r)):t()}},9324:(e,t,i)=>{i.d(t,{M4:()=>u,M6:()=>c,SS:()=>p,ZS:()=>function e(t,i){return Object.entries(t).reduce((t,[a,o])=>{if("string"!=typeof a)return t;let u=i?[...i,a]:[a];return(0,r.is)(o,s.s)||(0,r.is)(o,n.$s)||(0,r.is)(o,n.$s.Aliased)?t.push({path:u,field:o}):(0,r.is)(o,l.iA)?t.push(...e(o[l.iA.Symbol.Columns],u)):t.push(...e(o,u)),t},[])},dP:()=>f,ef:()=>h,ux:()=>d});var s=i(9105),r=i(4869),n=i(2393),a=i(2877),l=i(3543),o=i(776);function u(e,t,i){let a={},o=e.reduce((e,{path:o,field:u},d)=>{let c;c=(0,r.is)(u,s.s)?u:(0,r.is)(u,n.$s)?u.decoder:u.sql.decoder;let h=e;for(let[e,n]of o.entries())if(e0)for(let[e,t]of Object.entries(a))"string"!=typeof t||i[t]||(o[e]=null);return o}function d(e,t){let i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(let[e,t]of i.entries())if(t!==s[e])return!1;return!0}function c(e,t){let i=Object.entries(t).filter(([,e])=>void 0!==e).map(([t,i])=>(0,r.is)(i,n.$s)?[t,i]:[t,new n.dO(i,e[l.iA.Symbol.Columns][t])]);if(0===i.length)throw Error("No values to set");return Object.fromEntries(i)}function h(e,t){for(let i of t)for(let t of Object.getOwnPropertyNames(i.prototype))"constructor"!==t&&Object.defineProperty(e.prototype,t,Object.getOwnPropertyDescriptor(i.prototype,t)||Object.create(null))}function p(e){return e[l.iA.Symbol.Columns]}function f(e){return(0,r.is)(e,a.k)?e[a.g1].alias:(0,r.is)(e,n.G7)?e[o.d].name:(0,r.is)(e,n.$s)?void 0:e[l.iA.Symbol.IsAlias]?e[l.iA.Symbol.Name]:e[l.iA.Symbol.BaseName]}},776:(e,t,i)=>{i.d(t,{d:()=>s});let s=Symbol.for("drizzle:ViewBaseConfig")},3251:(e,t,i)=>{let s;i.d(t,{z:()=>e9}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let i of e)t[i]=i;return t},e.getValidEnumValues=t=>{let i=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),s={};for(let e of i)s[e]=t[e];return e.objectValues(s)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t},e.find=(e,t)=>{for(let i of e)if(t(i))return i},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(e0||(e0={})),(e6||(e6={})).mergeShapes=(e,t)=>({...e,...t});let r=e0.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),n=e=>{switch(typeof e){case"undefined":return r.undefined;case"string":return r.string;case"number":return isNaN(e)?r.nan:r.number;case"boolean":return r.boolean;case"function":return r.function;case"bigint":return r.bigint;case"symbol":return r.symbol;case"object":if(Array.isArray(e))return r.array;if(null===e)return r.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r.promise;if("undefined"!=typeof Map&&e instanceof Map)return r.map;if("undefined"!=typeof Set&&e instanceof Set)return r.set;if("undefined"!=typeof Date&&e instanceof Date)return r.date;return r.object;default:return r.unknown}},a=e0.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},i={_errors:[]},s=e=>{for(let r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(s);else if("invalid_return_type"===r.code)s(r.returnTypeError);else if("invalid_arguments"===r.code)s(r.argumentsError);else if(0===r.path.length)i._errors.push(t(r));else{let e=i,s=0;for(;se.message){let t={},i=[];for(let s of this.issues)s.path.length>0?(t[s.path[0]]=t[s.path[0]]||[],t[s.path[0]].push(e(s))):i.push(e(s));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);let o=(e,t)=>{let i;switch(e.code){case a.invalid_type:i=e.received===r.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,e0.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:i=`Unrecognized key(s) in object: ${e0.joinValues(e.keys,", ")}`;break;case a.invalid_union:i="Invalid input";break;case a.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${e0.joinValues(e.options)}`;break;case a.invalid_enum_value:i=`Invalid enum value. Expected ${e0.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:i="Invalid function arguments";break;case a.invalid_return_type:i="Invalid function return type";break;case a.invalid_date:i="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:e0.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.too_big:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.custom:i="Invalid input";break;case a.invalid_intersection_types:i="Intersection results could not be merged";break;case a.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:i="Number must be finite";break;default:i=t.defaultError,e0.assertNever(e)}return{message:i}},u=o;function d(){return u}let c=e=>{let{data:t,path:i,errorMaps:s,issueData:r}=e,n=[...i,...r.path||[]],a={...r,path:n},l="";for(let e of s.filter(e=>!!e).slice().reverse())l=e(a,{data:t,defaultError:l}).message;return{...r,path:n,message:r.message||l}};function h(e,t){let i=c({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,d(),o].filter(e=>!!e)});e.common.issues.push(i)}class p{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let i=[];for(let s of t){if("aborted"===s.status)return f;"dirty"===s.status&&e.dirty(),i.push(s.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){let i=[];for(let e of t)i.push({key:await e.key,value:await e.value});return p.mergeObjectSync(e,i)}static mergeObjectSync(e,t){let i={};for(let s of t){let{key:t,value:r}=s;if("aborted"===t.status||"aborted"===r.status)return f;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==r.value||s.alwaysSet)&&(i[t.value]=r.value)}return{status:e.value,value:i}}}let f=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),y=e=>({status:"valid",value:e}),g=e=>"aborted"===e.status,v=e=>"dirty"===e.status,b=e=>"valid"===e.status,_=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(e1||(e1={}));class w{constructor(e,t,i,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let S=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new l(e.common.issues);return this._error=t,this._error}}};function x(e){if(!e)return{};let{errorMap:t,invalid_type_error:i,required_error:s,description:r}=e;if(t&&(i||s))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=s?s:t.defaultError}:{message:null!=i?i:t.defaultError},description:r}}class k{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return n(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:n(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new p,ctx:{common:e.parent.common,data:e.data,parsedType:n(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(_(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;let s={common:{issues:[],async:null!==(i=null==t?void 0:t.async)&&void 0!==i&&i,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:n(e)},r=this._parseSync({data:e,path:s.path,parent:s});return S(s,r)}async parseAsync(e,t){let i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){let i={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:n(e)},s=this._parse({data:e,path:i.path,parent:i});return S(i,await (_(s)?s:Promise.resolve(s)))}refine(e,t){let i=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,s)=>{let r=e(t),n=()=>s.addIssue({code:a.custom,...i(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then(e=>!!e||(n(),!1)):!!r||(n(),!1)})}refinement(e,t){return this._refinement((i,s)=>!!e(i)||(s.addIssue("function"==typeof t?t(i,s):t),!1))}_refinement(e){return new eo({schema:this,typeName:e2.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eu.create(this,this._def)}nullable(){return ed.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return K.create(this,this._def)}promise(){return el.create(this,this._def)}or(e){return V.create([this,e],this._def)}and(e){return G.create(this,e,this._def)}transform(e){return new eo({...x(this._def),schema:this,typeName:e2.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ec({...x(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:e2.ZodDefault})}brand(){return new em({typeName:e2.ZodBranded,type:this,...x(this._def)})}catch(e){return new eh({...x(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:e2.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ey.create(this,e)}readonly(){return eg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let N=/^c[^\s-]{8,}$/i,$=/^[a-z][a-z0-9]*$/,Q=/^[0-9A-HJKMNP-TV-Z]{26}$/,O=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,T=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,A=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,j=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,C=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class L extends k{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==r.string){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.string,received:t.parsedType}),f}let i=new p;for(let r of this._def.checks)if("min"===r.kind)e.data.lengthr.value&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if("length"===r.kind){let s=e.data.length>r.value,n=e.data.lengthe.test(t),{validation:t,code:a.invalid_string,...e1.errToObj(i)})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...e1.errToObj(e)})}url(e){return this._addCheck({kind:"url",...e1.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...e1.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...e1.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...e1.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...e1.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...e1.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...e1.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...e1.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...e1.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...e1.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...e1.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...e1.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...e1.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...e1.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...e1.errToObj(t)})}nonempty(e){return this.min(1,e1.errToObj(e))}trim(){return new L({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new L({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new L({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new L({checks:[],typeName:e2.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class Z extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==r.number){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.number,received:t.parsedType}),f}let i=new p;for(let s of this._def.checks)"int"===s.kind?e0.isInteger(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:a.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):"min"===s.kind?(s.inclusive?e.datas.value:e.data>=s.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):"multipleOf"===s.kind?0!==function(e,t){let i=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=i>s?i:s;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}(e.data,s.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):"finite"===s.kind?Number.isFinite(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:a.not_finite,message:s.message}),i.dirty()):e0.assertNever(s);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e1.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e1.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e1.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e1.toString(t))}setLimit(e,t,i,s){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:e1.toString(s)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:e1.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:e1.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:e1.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:e1.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:e1.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e1.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:e1.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:e1.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:e1.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&e0.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let i of this._def.checks){if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;"min"===i.kind?(null===t||i.value>t)&&(t=i.value):"max"===i.kind&&(null===e||i.valuenew Z({checks:[],typeName:e2.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class P extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==r.bigint){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.bigint,received:t.parsedType}),f}let i=new p;for(let s of this._def.checks)"min"===s.kind?(s.inclusive?e.datas.value:e.data>=s.value)&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):"multipleOf"===s.kind?e.data%s.value!==BigInt(0)&&(h(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):e0.assertNever(s);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e1.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e1.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e1.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e1.toString(t))}setLimit(e,t,i,s){return new P({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:e1.toString(s)}]})}_addCheck(e){return new P({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:e1.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:e1.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:e1.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:e1.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e1.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new P({checks:[],typeName:e2.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class E extends k{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==r.boolean){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.boolean,received:t.parsedType}),f}return y(e.data)}}E.create=e=>new E({typeName:e2.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class q extends k{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==r.date){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.date,received:t.parsedType}),f}if(isNaN(e.data.getTime()))return h(this._getOrReturnCtx(e),{code:a.invalid_date}),f;let i=new p;for(let s of this._def.checks)"min"===s.kind?e.data.getTime()s.value&&(h(t=this._getOrReturnCtx(e,t),{code:a.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):e0.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:e1.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:e1.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew q({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:e2.ZodDate,...x(e)});class R extends k{_parse(e){if(this._getType(e)!==r.symbol){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.symbol,received:t.parsedType}),f}return y(e.data)}}R.create=e=>new R({typeName:e2.ZodSymbol,...x(e)});class I extends k{_parse(e){if(this._getType(e)!==r.undefined){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.undefined,received:t.parsedType}),f}return y(e.data)}}I.create=e=>new I({typeName:e2.ZodUndefined,...x(e)});class B extends k{_parse(e){if(this._getType(e)!==r.null){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.null,received:t.parsedType}),f}return y(e.data)}}B.create=e=>new B({typeName:e2.ZodNull,...x(e)});class D extends k{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}}D.create=e=>new D({typeName:e2.ZodAny,...x(e)});class M extends k{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}}M.create=e=>new M({typeName:e2.ZodUnknown,...x(e)});class z extends k{_parse(e){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.never,received:t.parsedType}),f}}z.create=e=>new z({typeName:e2.ZodNever,...x(e)});class F extends k{_parse(e){if(this._getType(e)!==r.undefined){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.void,received:t.parsedType}),f}return y(e.data)}}F.create=e=>new F({typeName:e2.ZodVoid,...x(e)});class K extends k{_parse(e){let{ctx:t,status:i}=this._processInputParams(e),s=this._def;if(t.parsedType!==r.array)return h(t,{code:a.invalid_type,expected:r.array,received:t.parsedType}),f;if(null!==s.exactLength){let e=t.data.length>s.exactLength.value,r=t.data.lengths.maxLength.value&&(h(t,{code:a.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((e,i)=>s.type._parseAsync(new w(t,e,t.path,i)))).then(e=>p.mergeArray(i,e));let n=[...t.data].map((e,i)=>s.type._parseSync(new w(t,e,t.path,i)));return p.mergeArray(i,n)}get element(){return this._def.type}min(e,t){return new K({...this._def,minLength:{value:e,message:e1.toString(t)}})}max(e,t){return new K({...this._def,maxLength:{value:e,message:e1.toString(t)}})}length(e,t){return new K({...this._def,exactLength:{value:e,message:e1.toString(t)}})}nonempty(e){return this.min(1,e)}}K.create=(e,t)=>new K({type:e,minLength:null,maxLength:null,exactLength:null,typeName:e2.ZodArray,...x(t)});class U extends k{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=e0.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==r.object){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.object,received:t.parsedType}),f}let{status:t,ctx:i}=this._processInputParams(e),{shape:s,keys:n}=this._getCached(),l=[];if(!(this._def.catchall instanceof z&&"strip"===this._def.unknownKeys))for(let e in i.data)n.includes(e)||l.push(e);let o=[];for(let e of n){let t=s[e],r=i.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new w(i,r,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof z){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of l)o.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)l.length>0&&(h(i,{code:a.unrecognized_keys,keys:l}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of l){let s=i.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new w(i,s,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let i=await t.key;e.push({key:i,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>p.mergeObjectSync(t,e)):p.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return e1.errToObj,new U({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,i)=>{var s,r,n,a;let l=null!==(n=null===(r=(s=this._def).errorMap)||void 0===r?void 0:r.call(s,t,i).message)&&void 0!==n?n:i.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=e1.errToObj(e).message)&&void 0!==a?a:l}:{message:l}}}:{}})}strip(){return new U({...this._def,unknownKeys:"strip"})}passthrough(){return new U({...this._def,unknownKeys:"passthrough"})}extend(e){return new U({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new U({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:e2.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new U({...this._def,catchall:e})}pick(e){let t={};return e0.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new U({...this._def,shape:()=>t})}omit(e){let t={};return e0.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new U({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof U){let i={};for(let s in t.shape){let r=t.shape[s];i[s]=eu.create(e(r))}return new U({...t._def,shape:()=>i})}return t instanceof K?new K({...t._def,type:e(t.element)}):t instanceof eu?eu.create(e(t.unwrap())):t instanceof ed?ed.create(e(t.unwrap())):t instanceof Y?Y.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return e0.objectKeys(this.shape).forEach(i=>{let s=this.shape[i];e&&!e[i]?t[i]=s:t[i]=s.optional()}),new U({...this._def,shape:()=>t})}required(e){let t={};return e0.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof eu;)e=e._def.innerType;t[i]=e}}),new U({...this._def,shape:()=>t})}keyof(){return er(e0.objectKeys(this.shape))}}U.create=(e,t)=>new U({shape:()=>e,unknownKeys:"strip",catchall:z.create(),typeName:e2.ZodObject,...x(t)}),U.strictCreate=(e,t)=>new U({shape:()=>e,unknownKeys:"strict",catchall:z.create(),typeName:e2.ZodObject,...x(t)}),U.lazycreate=(e,t)=>new U({shape:e,unknownKeys:"strip",catchall:z.create(),typeName:e2.ZodObject,...x(t)});class V extends k{_parse(e){let{ctx:t}=this._processInputParams(e),i=this._def.options;if(t.common.async)return Promise.all(i.map(async e=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let i of e)if("dirty"===i.result.status)return t.common.issues.push(...i.ctx.common.issues),i.result;let i=e.map(e=>new l(e.ctx.common.issues));return h(t,{code:a.invalid_union,unionErrors:i}),f});{let e;let s=[];for(let r of i){let i={...t,common:{...t.common,issues:[]},parent:null},n=r._parseSync({data:t.data,path:t.path,parent:i});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:i}),i.common.issues.length&&s.push(i.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let r=s.map(e=>new l(e));return h(t,{code:a.invalid_union,unionErrors:r}),f}}get options(){return this._def.options}}V.create=(e,t)=>new V({options:e,typeName:e2.ZodUnion,...x(t)});let J=e=>{if(e instanceof ei)return J(e.schema);if(e instanceof eo)return J(e.innerType());if(e instanceof es)return[e.value];if(e instanceof en)return e.options;if(e instanceof ea)return Object.keys(e.enum);if(e instanceof ec)return J(e._def.innerType);if(e instanceof I)return[void 0];else if(e instanceof B)return[null];else return null};class W extends k{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.object)return h(t,{code:a.invalid_type,expected:r.object,received:t.parsedType}),f;let i=this.discriminator,s=t.data[i],n=this.optionsMap.get(s);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(h(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),f)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){let s=new Map;for(let i of t){let t=J(i.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let r of t){if(s.has(r))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);s.set(r,i)}}return new W({typeName:e2.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...x(i)})}}class G extends k{_parse(e){let{status:t,ctx:i}=this._processInputParams(e),s=(e,s)=>{if(g(e)||g(s))return f;let l=function e(t,i){let s=n(t),a=n(i);if(t===i)return{valid:!0,data:t};if(s===r.object&&a===r.object){let s=e0.objectKeys(i),r=e0.objectKeys(t).filter(e=>-1!==s.indexOf(e)),n={...t,...i};for(let s of r){let r=e(t[s],i[s]);if(!r.valid)return{valid:!1};n[s]=r.data}return{valid:!0,data:n}}if(s===r.array&&a===r.array){if(t.length!==i.length)return{valid:!1};let s=[];for(let r=0;rs(e,t)):s(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}G.create=(e,t,i)=>new G({left:e,right:t,typeName:e2.ZodIntersection,...x(i)});class Y extends k{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.array)return h(i,{code:a.invalid_type,expected:r.array,received:i.parsedType}),f;if(i.data.lengththis._def.items.length&&(h(i,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let s=[...i.data].map((e,t)=>{let s=this._def.items[t]||this._def.rest;return s?s._parse(new w(i,e,i.path,t)):null}).filter(e=>!!e);return i.common.async?Promise.all(s).then(e=>p.mergeArray(t,e)):p.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new Y({...this._def,rest:e})}}Y.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new Y({items:e,typeName:e2.ZodTuple,rest:null,...x(t)})};class H extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.object)return h(i,{code:a.invalid_type,expected:r.object,received:i.parsedType}),f;let s=[],n=this._def.keyType,l=this._def.valueType;for(let e in i.data)s.push({key:n._parse(new w(i,e,i.path,e)),value:l._parse(new w(i,i.data[e],i.path,e))});return i.common.async?p.mergeObjectAsync(t,s):p.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,i){return new H(t instanceof k?{keyType:e,valueType:t,typeName:e2.ZodRecord,...x(i)}:{keyType:L.create(),valueType:e,typeName:e2.ZodRecord,...x(t)})}}class X extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.map)return h(i,{code:a.invalid_type,expected:r.map,received:i.parsedType}),f;let s=this._def.keyType,n=this._def.valueType,l=[...i.data.entries()].map(([e,t],r)=>({key:s._parse(new w(i,e,i.path,[r,"key"])),value:n._parse(new w(i,t,i.path,[r,"value"]))}));if(i.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let i of l){let s=await i.key,r=await i.value;if("aborted"===s.status||"aborted"===r.status)return f;("dirty"===s.status||"dirty"===r.status)&&t.dirty(),e.set(s.value,r.value)}return{status:t.value,value:e}})}{let e=new Map;for(let i of l){let s=i.key,r=i.value;if("aborted"===s.status||"aborted"===r.status)return f;("dirty"===s.status||"dirty"===r.status)&&t.dirty(),e.set(s.value,r.value)}return{status:t.value,value:e}}}}X.create=(e,t,i)=>new X({valueType:t,keyType:e,typeName:e2.ZodMap,...x(i)});class ee extends k{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==r.set)return h(i,{code:a.invalid_type,expected:r.set,received:i.parsedType}),f;let s=this._def;null!==s.minSize&&i.data.sizes.maxSize.value&&(h(i,{code:a.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());let n=this._def.valueType;function l(e){let i=new Set;for(let s of e){if("aborted"===s.status)return f;"dirty"===s.status&&t.dirty(),i.add(s.value)}return{status:t.value,value:i}}let o=[...i.data.values()].map((e,t)=>n._parse(new w(i,e,i.path,t)));return i.common.async?Promise.all(o).then(e=>l(e)):l(o)}min(e,t){return new ee({...this._def,minSize:{value:e,message:e1.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:e1.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ee.create=(e,t)=>new ee({valueType:e,minSize:null,maxSize:null,typeName:e2.ZodSet,...x(t)});class et extends k{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.function)return h(t,{code:a.invalid_type,expected:r.function,received:t.parsedType}),f;function i(e,i){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),o].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:i}})}function s(e,i){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),o].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:i}})}let n={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof el){let e=this;return y(async function(...t){let r=new l([]),a=await e._def.args.parseAsync(t,n).catch(e=>{throw r.addIssue(i(t,e)),r}),o=await Reflect.apply(u,this,a);return await e._def.returns._def.type.parseAsync(o,n).catch(e=>{throw r.addIssue(s(o,e)),r})})}{let e=this;return y(function(...t){let r=e._def.args.safeParse(t,n);if(!r.success)throw new l([i(t,r.error)]);let a=Reflect.apply(u,this,r.data),o=e._def.returns.safeParse(a,n);if(!o.success)throw new l([s(a,o.error)]);return o.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new et({...this._def,args:Y.create(e).rest(M.create())})}returns(e){return new et({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new et({args:e||Y.create([]).rest(M.create()),returns:t||M.create(),typeName:e2.ZodFunction,...x(i)})}}class ei extends k{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ei.create=(e,t)=>new ei({getter:e,typeName:e2.ZodLazy,...x(t)});class es extends k{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return h(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),f}return{status:"valid",value:e.data}}get value(){return this._def.value}}function er(e,t){return new en({values:e,typeName:e2.ZodEnum,...x(t)})}es.create=(e,t)=>new es({value:e,typeName:e2.ZodLiteral,...x(t)});class en extends k{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),i=this._def.values;return h(t,{expected:e0.joinValues(i),received:t.parsedType,code:a.invalid_type}),f}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),i=this._def.values;return h(t,{received:t.data,code:a.invalid_enum_value,options:i}),f}return y(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return en.create(e)}exclude(e){return en.create(this.options.filter(t=>!e.includes(t)))}}en.create=er;class ea extends k{_parse(e){let t=e0.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==r.string&&i.parsedType!==r.number){let e=e0.objectValues(t);return h(i,{expected:e0.joinValues(e),received:i.parsedType,code:a.invalid_type}),f}if(-1===t.indexOf(e.data)){let e=e0.objectValues(t);return h(i,{received:i.data,code:a.invalid_enum_value,options:e}),f}return y(e.data)}get enum(){return this._def.values}}ea.create=(e,t)=>new ea({values:e,typeName:e2.ZodNativeEnum,...x(t)});class el extends k{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==r.promise&&!1===t.common.async?(h(t,{code:a.invalid_type,expected:r.promise,received:t.parsedType}),f):y((t.parsedType===r.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}el.create=(e,t)=>new el({type:e,typeName:e2.ZodPromise,...x(t)});class eo extends k{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===e2.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:i}=this._processInputParams(e),s=this._def.effect||null,r={addIssue:e=>{h(i,e),e.fatal?t.abort():t.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===s.type){let e=s.transform(i.data,r);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:i.path,parent:i})):this._def.schema._parseSync({data:e,path:i.path,parent:i})}if("refinement"===s.type){let e=e=>{let t=s.refinement(e,r);if(i.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(i=>"aborted"===i.status?f:("dirty"===i.status&&t.dirty(),e(i.value).then(()=>({status:t.value,value:i.value}))));{let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===s.status?f:("dirty"===s.status&&t.dirty(),e(s.value),{status:t.value,value:s.value})}}if("transform"===s.type){if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(e=>b(e)?Promise.resolve(s.transform(e.value,r)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!b(e))return e;let n=s.transform(e.value,r);if(n instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:n}}}e0.assertNever(s)}}eo.create=(e,t,i)=>new eo({schema:e,typeName:e2.ZodEffects,effect:t,...x(i)}),eo.createWithPreprocess=(e,t,i)=>new eo({schema:t,effect:{type:"preprocess",transform:e},typeName:e2.ZodEffects,...x(i)});class eu extends k{_parse(e){return this._getType(e)===r.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eu.create=(e,t)=>new eu({innerType:e,typeName:e2.ZodOptional,...x(t)});class ed extends k{_parse(e){return this._getType(e)===r.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ed.create=(e,t)=>new ed({innerType:e,typeName:e2.ZodNullable,...x(t)});class ec extends k{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return t.parsedType===r.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:e2.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...x(t)});class eh extends k{_parse(e){let{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return _(s)?s.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(i.common.issues)},input:i.data})})):{status:"valid",value:"valid"===s.status?s.value:this._def.catchValue({get error(){return new l(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}eh.create=(e,t)=>new eh({innerType:e,typeName:e2.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...x(t)});class ep extends k{_parse(e){if(this._getType(e)!==r.nan){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.nan,received:t.parsedType}),f}return{status:"valid",value:e.data}}}ep.create=e=>new ep({typeName:e2.ZodNaN,...x(e)});let ef=Symbol("zod_brand");class em extends k{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class ey extends k{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?f:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:i.path,parent:i})})();{let e=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?f:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:i.path,parent:i})}}static create(e,t){return new ey({in:e,out:t,typeName:e2.ZodPipeline})}}class eg extends k{_parse(e){let t=this._def.innerType._parse(e);return b(t)&&(t.value=Object.freeze(t.value)),t}}eg.create=(e,t)=>new eg({innerType:e,typeName:e2.ZodReadonly,...x(t)});let ev=(e,t={},i)=>e?D.create().superRefine((s,r)=>{var n,a;if(!e(s)){let e="function"==typeof t?t(s):"string"==typeof t?{message:t}:t,l=null===(a=null!==(n=e.fatal)&&void 0!==n?n:i)||void 0===a||a;r.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:l})}}):D.create(),eb={object:U.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(e2||(e2={}));let e_=L.create,ew=Z.create,eS=ep.create,ex=P.create,ek=E.create,eN=q.create,e$=R.create,eQ=I.create,eO=B.create,eT=D.create,eA=M.create,ej=z.create,eC=F.create,eL=K.create,eZ=U.create,eP=U.strictCreate,eE=V.create,eq=W.create,eR=G.create,eI=Y.create,eB=H.create,eD=X.create,eM=ee.create,ez=et.create,eF=ei.create,eK=es.create,eU=en.create,eV=ea.create,eJ=el.create,eW=eo.create,eG=eu.create,eY=ed.create,eH=eo.createWithPreprocess,eX=ey.create;var e0,e6,e1,e2,e9=Object.freeze({__proto__:null,defaultErrorMap:o,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:c,EMPTY_PATH:[],addIssueToContext:h,ParseStatus:p,INVALID:f,DIRTY:m,OK:y,isAborted:g,isDirty:v,isValid:b,isAsync:_,get util(){return e0},get objectUtil(){return e6},ZodParsedType:r,getParsedType:n,ZodType:k,ZodString:L,ZodNumber:Z,ZodBigInt:P,ZodBoolean:E,ZodDate:q,ZodSymbol:R,ZodUndefined:I,ZodNull:B,ZodAny:D,ZodUnknown:M,ZodNever:z,ZodVoid:F,ZodArray:K,ZodObject:U,ZodUnion:V,ZodDiscriminatedUnion:W,ZodIntersection:G,ZodTuple:Y,ZodRecord:H,ZodMap:X,ZodSet:ee,ZodFunction:et,ZodLazy:ei,ZodLiteral:es,ZodEnum:en,ZodNativeEnum:ea,ZodPromise:el,ZodEffects:eo,ZodTransformer:eo,ZodOptional:eu,ZodNullable:ed,ZodDefault:ec,ZodCatch:eh,ZodNaN:ep,BRAND:ef,ZodBranded:em,ZodPipeline:ey,ZodReadonly:eg,custom:ev,Schema:k,ZodSchema:k,late:eb,get ZodFirstPartyTypeKind(){return e2},coerce:{string:e=>L.create({...e,coerce:!0}),number:e=>Z.create({...e,coerce:!0}),boolean:e=>E.create({...e,coerce:!0}),bigint:e=>P.create({...e,coerce:!0}),date:e=>q.create({...e,coerce:!0})},any:eT,array:eL,bigint:ex,boolean:ek,date:eN,discriminatedUnion:eq,effect:eW,enum:eU,function:ez,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>ev(t=>t instanceof e,t),intersection:eR,lazy:eF,literal:eK,map:eD,nan:eS,nativeEnum:eV,never:ej,null:eO,nullable:eY,number:ew,object:eZ,oboolean:()=>ek().optional(),onumber:()=>ew().optional(),optional:eG,ostring:()=>e_().optional(),pipeline:eX,preprocess:eH,promise:eJ,record:eB,set:eM,strictObject:eP,string:e_,symbol:e$,transformer:eW,tuple:eI,undefined:eQ,union:eE,unknown:eA,void:eC,NEVER:f,ZodIssueCode:a,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l})}}; \ No newline at end of file diff --git a/apps/web/.next/server/chunks/font-manifest.json b/apps/web/.next/server/chunks/font-manifest.json new file mode 100644 index 00000000..0637a088 --- /dev/null +++ b/apps/web/.next/server/chunks/font-manifest.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/apps/web/.next/server/font-manifest.json b/apps/web/.next/server/font-manifest.json new file mode 100644 index 00000000..0637a088 --- /dev/null +++ b/apps/web/.next/server/font-manifest.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/apps/web/.next/server/functions-config-manifest.json b/apps/web/.next/server/functions-config-manifest.json new file mode 100644 index 00000000..996cd783 --- /dev/null +++ b/apps/web/.next/server/functions-config-manifest.json @@ -0,0 +1 @@ +{"version":1,"functions":{}} \ No newline at end of file diff --git a/apps/web/.next/server/middleware-build-manifest.js b/apps/web/.next/server/middleware-build-manifest.js new file mode 100644 index 00000000..9d1286d0 --- /dev/null +++ b/apps/web/.next/server/middleware-build-manifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-c67a75d1b6f99dc8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js","static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-7c56eb6342069862.js","static/chunks/1dd3208c-2005e60b0a14e8cf.js","static/chunks/997-22e52d7003e9633c.js","static/chunks/main-app-6394067cfc5308ad.js"],pages:{"/_app":["static/chunks/webpack-7c56eb6342069862.js","static/chunks/framework-9e68550641db712d.js","static/chunks/main-2f8ae24bc202a544.js","static/chunks/pages/_app-22ef1381f3010e9c.js"],"/_error":["static/chunks/webpack-7c56eb6342069862.js","static/chunks/framework-9e68550641db712d.js","static/chunks/main-2f8ae24bc202a544.js","static/chunks/pages/_error-2312f57de16788ac.js"]},ampFirstPages:[]}; \ No newline at end of file diff --git a/apps/web/.next/server/middleware-manifest.json b/apps/web/.next/server/middleware-manifest.json new file mode 100644 index 00000000..57712aad --- /dev/null +++ b/apps/web/.next/server/middleware-manifest.json @@ -0,0 +1,6 @@ +{ + "sortedMiddleware": [], + "middleware": {}, + "functions": {}, + "version": 2 +} \ No newline at end of file diff --git a/apps/web/.next/server/middleware-react-loadable-manifest.js b/apps/web/.next/server/middleware-react-loadable-manifest.js new file mode 100644 index 00000000..170749ec --- /dev/null +++ b/apps/web/.next/server/middleware-react-loadable-manifest.js @@ -0,0 +1 @@ +self.__REACT_LOADABLE_MANIFEST="{}"; \ No newline at end of file diff --git a/apps/web/.next/server/next-font-manifest.js b/apps/web/.next/server/next-font-manifest.js new file mode 100644 index 00000000..00b97b69 --- /dev/null +++ b/apps/web/.next/server/next-font-manifest.js @@ -0,0 +1 @@ +self.__NEXT_FONT_MANIFEST='{"pages":{},"app":{"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout":["static/media/c9a5bc6a7c948fb0-s.p.woff2"]},"appUsingSizeAdjust":true,"pagesUsingSizeAdjust":false}'; \ No newline at end of file diff --git a/apps/web/.next/server/next-font-manifest.json b/apps/web/.next/server/next-font-manifest.json new file mode 100644 index 00000000..d007a4c9 --- /dev/null +++ b/apps/web/.next/server/next-font-manifest.json @@ -0,0 +1 @@ +{"pages":{},"app":{"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout":["static/media/c9a5bc6a7c948fb0-s.p.woff2"]},"appUsingSizeAdjust":true,"pagesUsingSizeAdjust":false} \ No newline at end of file diff --git a/apps/web/.next/server/pages-manifest.json b/apps/web/.next/server/pages-manifest.json new file mode 100644 index 00000000..f7c2e894 --- /dev/null +++ b/apps/web/.next/server/pages-manifest.json @@ -0,0 +1 @@ +{"/_app":"pages/_app.js","/_error":"pages/_error.js","/_document":"pages/_document.js","/404":"pages/404.html"} \ No newline at end of file diff --git a/apps/web/.next/server/pages/404.html b/apps/web/.next/server/pages/404.html new file mode 100644 index 00000000..5b9ab9b8 --- /dev/null +++ b/apps/web/.next/server/pages/404.html @@ -0,0 +1 @@ +404: This page could not be found.Create T3 App

404

This page could not be found.

\ No newline at end of file diff --git a/apps/web/.next/server/pages/500.html b/apps/web/.next/server/pages/500.html new file mode 100644 index 00000000..aa5dccc5 --- /dev/null +++ b/apps/web/.next/server/pages/500.html @@ -0,0 +1 @@ +500: Internal Server Error

500

Internal Server Error.

\ No newline at end of file diff --git a/apps/web/.next/server/pages/_app.js b/apps/web/.next/server/pages/_app.js new file mode 100644 index 00000000..f07d40ee --- /dev/null +++ b/apps/web/.next/server/pages/_app.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=888,e.ids=[888],e.modules={2073:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(7083),o=r(997),i=n._(r(6689)),u=r(2404);async function s(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,u.loadGetInitialProps)(t,r)}}class a extends i.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}a.origGetInitialProps=s,a.getInitialProps=s,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2404:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return u},getURL:function(){return s},getDisplayName:function(){return a},isResSent:function(){return c},normalizeRepeatedSlashes:function(){return l},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return p},DecodeError:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return P},MissingStaticPage:function(){return y},MiddlewareNotFoundError:function(){return E},stringifyError:function(){return x}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;io.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=u();return e.substring(t.length)}function a(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function l(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&c(r))return n;if(!n)throw Error('"'+a(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class m extends Error{}class P extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(e){return JSON.stringify({message:e.message,stack:e.stack})}},6689:e=>{e.exports=require("react")},997:e=>{e.exports=require("react/jsx-runtime")},7083:(e,t)=>{t._=t._interop_require_default=function(e){return e&&e.__esModule?e:{default:e}}}};var t=require("../webpack-runtime.js");t.C(e);var r=t(t.s=2073);module.exports=r})(); \ No newline at end of file diff --git a/apps/web/.next/server/pages/_app.js.nft.json b/apps/web/.next/server/pages/_app.js.nft.json new file mode 100644 index 00000000..560eceae --- /dev/null +++ b/apps/web/.next/server/pages/_app.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../node_modules/next/dist/pages/_app.js","../../package.json","../webpack-runtime.js"]} \ No newline at end of file diff --git a/apps/web/.next/server/pages/_document.js b/apps/web/.next/server/pages/_document.js new file mode 100644 index 00000000..e669633b --- /dev/null +++ b/apps/web/.next/server/pages/_document.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=660,e.ids=[660],e.modules={2785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},6689:e=>{e.exports=require("react")},997:e=>{e.exports=require("react/jsx-runtime")},1017:e=>{e.exports=require("path")}};var r=require("../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[296],()=>s(5871));module.exports=t})(); \ No newline at end of file diff --git a/apps/web/.next/server/pages/_document.js.nft.json b/apps/web/.next/server/pages/_document.js.nft.json new file mode 100644 index 00000000..74b20fa0 --- /dev/null +++ b/apps/web/.next/server/pages/_document.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../node_modules/next/dist/pages/_document.js","../../package.json","../chunks/296.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/apps/web/.next/server/pages/_error.js b/apps/web/.next/server/pages/_error.js new file mode 100644 index 00000000..e84fe8ff --- /dev/null +++ b/apps/web/.next/server/pages/_error.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=820,e.ids=[820,660],e.modules={6021:(e,t)=>{Object.defineProperty(t,"l",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},8445:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>p,getServerSideProps:()=>g,getStaticPaths:()=>f,getStaticProps:()=>c,reportWebVitals:()=>y,routeModule:()=>v,unstable_getServerProps:()=>_,unstable_getServerSideProps:()=>x,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>m,unstable_getStaticProps:()=>b});var n=r(8877),o=r(4591),a=r(6021),l=r(5871),i=r.n(l),d=r(2073),u=r.n(d),s=r(487);let p=(0,a.l)(s,"default"),c=(0,a.l)(s,"getStaticProps"),f=(0,a.l)(s,"getStaticPaths"),g=(0,a.l)(s,"getServerSideProps"),h=(0,a.l)(s,"config"),y=(0,a.l)(s,"reportWebVitals"),b=(0,a.l)(s,"unstable_getStaticProps"),m=(0,a.l)(s,"unstable_getStaticPaths"),P=(0,a.l)(s,"unstable_getStaticParams"),_=(0,a.l)(s,"unstable_getServerProps"),x=(0,a.l)(s,"unstable_getServerSideProps"),v=new n.PagesRouteModule({definition:{kind:o.x.PAGES,page:"/_error",pathname:"/_error",bundlePath:"",filename:""},components:{App:u(),Document:i()},userland:s})},2073:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(7083),o=r(997),a=n._(r(6689)),l=r(2404);async function i(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,l.loadGetInitialProps)(t,r)}}class d extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}d.origGetInitialProps=i,d.getInitialProps=i,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let n=r(7083),o=r(997),a=n._(r(6689)),l=n._(r(3837)),i={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function d(e){let{res:t,err:r}=e;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}let u={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class s extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||i[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:u.error,children:[(0,o.jsx)(l.default,{children:(0,o.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:u.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:u.h1,children:e}):null,(0,o.jsx)("div",{style:u.wrap,children:(0,o.jsxs)("h2",{style:u.h2,children:[this.props.title||e?r:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}s.displayName="ErrorPage",s.getInitialProps=d,s.origGetInitialProps=d,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6478:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},3837:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{defaultHead:function(){return p},default:function(){return h}});let n=r(7083),o=r(5570),a=r(997),l=o._(r(6689)),i=n._(r(391)),d=r(3826),u=r(6566),s=r(6478);function p(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(5734);let f=["name","httpEquiv","charSet","itemProp"];function g(e,t){let{inAmpMode:r}=t;return e.reduce(c,[]).reverse().concat(p(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,l=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){l=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(let e=0,t=f.length;e{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:n})})}let h=function(e){let{children:t}=e,r=(0,l.useContext)(d.AmpStateContext),n=(0,l.useContext)(u.HeadManagerContext);return(0,a.jsx)(i.default,{reduceComponentsToState:g,headManager:n,inAmpMode:(0,s.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},391:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(6689),o=()=>{},a=()=>{};function l(e){var t;let{headManager:r,reduceComponentsToState:l}=e;function i(){if(r&&r.mountedInstances){let t=n.Children.toArray(Array.from(r.mountedInstances).filter(Boolean));r.updateHead(l(t,e))}}return null==r||null==(t=r.mountedInstances)||t.add(e.children),i(),o(()=>{var t;return null==r||null==(t=r.mountedInstances)||t.add(e.children),()=>{var t;null==r||null==(t=r.mountedInstances)||t.delete(e.children)}}),o(()=>(r&&(r._pendingUpdate=i),()=>{r&&(r._pendingUpdate=i)})),a(()=>(r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null),()=>{r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null)})),null}},5734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},4591:(e,t)=>{var r;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(r||(r={}))},3826:(e,t,r)=>{e.exports=r(8877).vendored.contexts.AmpContext},6566:(e,t,r)=>{e.exports=r(8877).vendored.contexts.HeadManagerContext},2785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},6689:e=>{e.exports=require("react")},997:e=>{e.exports=require("react/jsx-runtime")},1017:e=>{e.exports=require("path")},5570:(e,t)=>{function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}t._=t._interop_require_wildcard=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=a?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(o,l,i):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[296],()=>r(8445));module.exports=n})(); \ No newline at end of file diff --git a/apps/web/.next/server/pages/_error.js.nft.json b/apps/web/.next/server/pages/_error.js.nft.json new file mode 100644 index 00000000..e9c0f6db --- /dev/null +++ b/apps/web/.next/server/pages/_error.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../package.json","../chunks/296.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/apps/web/.next/server/server-reference-manifest.js b/apps/web/.next/server/server-reference-manifest.js new file mode 100644 index 00000000..a5a648c8 --- /dev/null +++ b/apps/web/.next/server/server-reference-manifest.js @@ -0,0 +1 @@ +self.__RSC_SERVER_MANIFEST="{\"node\":{},\"edge\":{},\"encryptionKey\":\"zoYS7eKctv8NMNKvLKdr9QnD2UAk1TlrecwShygpbgI=\"}" \ No newline at end of file diff --git a/apps/web/.next/server/server-reference-manifest.json b/apps/web/.next/server/server-reference-manifest.json new file mode 100644 index 00000000..8603d71a --- /dev/null +++ b/apps/web/.next/server/server-reference-manifest.json @@ -0,0 +1 @@ +{"node":{},"edge":{},"encryptionKey":"zoYS7eKctv8NMNKvLKdr9QnD2UAk1TlrecwShygpbgI="} \ No newline at end of file diff --git a/apps/web/.next/server/webpack-runtime.js b/apps/web/.next/server/webpack-runtime.js new file mode 100644 index 00000000..c0784bc1 --- /dev/null +++ b/apps/web/.next/server/webpack-runtime.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var a=r[o]={exports:{}},u=!0;try{e[o].call(a.exports,a,a.exports,t),u=!1}finally{u&&delete r[o]}return a.exports}t.m=e,t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},(()=>{var e,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;t.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);t.r(a);var u={};e=e||[null,r({}),r([]),r(r)];for(var f=2&n&&o;"object"==typeof f&&!~e.indexOf(f);f=r(f))Object.getOwnPropertyNames(f).forEach(e=>u[e]=()=>o[e]);return u.default=()=>o,t.d(a,u),a}})(),t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,o)=>(t.f[o](e,r),r),[])),t.u=e=>""+e+".js",t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.X=(e,r,o)=>{var n=r;o||(r=e,o=()=>t(t.s=n)),r.map(t.e,t);var a=o();return void 0===a?e:a},(()=>{var e={658:1},r=r=>{var o=r.modules,n=r.ids,a=r.runtime;for(var u in o)t.o(o,u)&&(t.m[u]=o[u]);a&&a(t);for(var f=0;f{e[o]||(658!=o?r(require("./chunks/"+t.u(o))):e[o]=1)},module.exports=t,t.C=r})()})(); \ No newline at end of file diff --git a/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js b/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js new file mode 100644 index 00000000..35fd8859 --- /dev/null +++ b/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-2312f57de16788ac.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js b/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js new file mode 100644 index 00000000..5b3ff592 --- /dev/null +++ b/apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/apps/web/.next/static/chunks/1dd3208c-2005e60b0a14e8cf.js b/apps/web/.next/static/chunks/1dd3208c-2005e60b0a14e8cf.js new file mode 100644 index 00000000..d8a3b20d --- /dev/null +++ b/apps/web/.next/static/chunks/1dd3208c-2005e60b0a14e8cf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[293],{4513:function(e,t,n){var r,l=n(6655),a=n(9550),o={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;np||(e.current=d[p],d[p]=null,p--)}function g(e,t){d[++p]=e.current,e.current=t}var y=Symbol.for("react.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.context"),E=Symbol.for("react.server_context"),x=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),L=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen"),F=Symbol.for("react.legacy_hidden"),M=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var O=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var D=m(null),A=m(null),I=m(null),U=m(null),$={$$typeof:C,_currentValue:null,_currentValue2:null,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};function B(e,t){switch(g(I,t),g(A,e),g(D,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?sW(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=sH(e=sW(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}h(D),g(D,t)}function V(){h(D),h(A),h(I)}function j(e){null!==e.memoizedState&&g(U,e);var t=D.current,n=sH(t,e.type);t!==n&&(g(A,e),g(D,n))}function Q(e){A.current===e&&(h(D),h(A)),U.current===e&&(h(U),$._currentValue=null)}var W=a.unstable_scheduleCallback,H=a.unstable_cancelCallback,q=a.unstable_shouldYield,K=a.unstable_requestPaint,Y=a.unstable_now,X=a.unstable_getCurrentPriorityLevel,G=a.unstable_ImmediatePriority,Z=a.unstable_UserBlockingPriority,J=a.unstable_NormalPriority,ee=a.unstable_LowPriority,et=a.unstable_IdlePriority,en=null,er=null,el=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ea(e)/eo|0)|0},ea=Math.log,eo=Math.LN2,ei=128,eu=4194304;function es(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ec(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&n;return 0!==a?0!=(n=a&~l)?r=es(n):0!=(e&=a)&&(r=es(e)):0!=(n&=~l)?r=es(n):0!==e&&(r=es(e)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(e=t&-t)||32===l&&0!=(4194176&e))?t:r}function ef(e,t){return e.errorRecoveryDisabledLanes&t?0:0!=(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function ed(){var e=eu;return 0==(62914560&(eu<<=1))&&(eu=4194304),e}function ep(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function em(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0)}function eh(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-el(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function eg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-el(n),l=1<l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{eK=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?eq(n):""}var eX=Symbol.for("react.client.reference");function eG(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function eZ(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function eJ(e){e._valueTracker||(e._valueTracker=function(e){var t=eZ(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function e0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eZ(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e1(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var e2=/[\n"\\]/g;function e3(e){return e.replace(e2,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function e4(e,t,n,r,l,a,o,i){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+eG(t)):e.value!==""+eG(t)&&(e.value=""+eG(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?e8(e,o,eG(t)):null!=n?e8(e,o,eG(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+eG(i):e.removeAttribute("name")}function e6(e,t,n,r,l,a,o,i){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(!("submit"!==a&&"reset"!==a||null!=t))return;n=null!=n?""+eG(n):"",t=null!=t?""+eG(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function e8(e,t,n){"number"===t&&e1(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}var e5=Array.isArray;function e7(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=iU.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}var tn=tt;"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(tn=function(e,t){return MSApp.execUnsafeLocalFunction(function(){return tt(e,t)})});var tr=tn;function tl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var ta=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function to(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||ta.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ti(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var l in t)r=t[l],t.hasOwnProperty(l)&&n[l]!==r&&to(e,l,r)}else for(var a in t)t.hasOwnProperty(a)&&to(e,a,t[a])}function tu(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ts=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),tc=null;function tf(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var td=null,tp=null;function tm(e){var t=eT(e);if(t&&(e=t.stateNode)){var n=eM(e);switch(e=t.stateNode,t.type){case"input":if(e4(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+e3(""+t)+'"][type="radio"]'),t=0;t>=o,l-=o,t$=1<<32-el(t)+l|n<h?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),tK&&tV(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),tK&&tV(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return tK&&tV(l,g),c}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),tK&&tV(l,g),c}(c,f,h,g);if("function"==typeof h.then)return s(c,f,n_(h),g);if(h.$$typeof===C||h.$$typeof===E)return s(c,f,an(c,h,g),g);nT(c,h)}return"string"==typeof h&&""!==h||"number"==typeof h?(h=""+h,null!==f&&6===f.tag?(n(c,f.sibling),(f=l(f,h)).return=c):(n(c,f),(f=iv(h,c.mode,g)).return=c),o(c=f)):n(c,f)}(s,c,f,h),nP=null,s}}var nO=nM(!0),nR=nM(!1),nD=m(null),nA=m(0);function nI(e,t){g(nA,e=ob),g(nD,t),ob=e|t.baseLanes}function nU(){g(nA,ob),g(nD,nD.current)}function n$(){ob=nA.current,h(nD),h(nA)}var nB=m(null),nV=null;function nj(e){var t=e.alternate;g(nq,1&nq.current),g(nB,e),null===nV&&(null===t||null!==nD.current?nV=e:null!==t.memoizedState&&(nV=e))}function nQ(e){if(22===e.tag){if(g(nq,nq.current),g(nB,e),null===nV){var t=e.alternate;null!==t&&null!==t.memoizedState&&(nV=e)}}else nW(e)}function nW(){g(nq,nq.current),g(nB,nB.current)}function nH(e){h(nB),nV===e&&(nV=null),h(nq)}var nq=m(0);function nK(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nY=null,nX=null,nG=!1,nZ=!1,nJ=!1,n0=0;function n1(e){e!==nX&&null===e.next&&(null===nX?nY=nX=e:nX=nX.next=e),nZ=!0,nG||(nG=!0,n8(n4))}function n2(e){if(!nJ&&nZ){var t=null;nJ=!0;do for(var n=!1,r=nY;null!==r;){if(!e||0===r.tag){var l=oh,a=ec(r,r===op?l:0);if(0!=(3&a))try{if(n=!0,l=r,0!=(6&od))throw Error(i(327));if(!ie()){var o=o3(l,a);if(0!==l.tag&&2===o){var u=a,s=ef(l,u);0!==s&&(a=s,o=oQ(l,u,s))}if(1===o)throw u=ow,oG(l,0),oq(l,a,0),n1(l),u;6===o?oq(l,a,ox):(l.finishedWork=l.current.alternate,l.finishedLanes=a,o7(l,oP,oL,ox))}n1(l)}catch(e){null===t?t=[e]:t.push(e)}}r=r.next}while(n);if(nJ=!1,null!==t){if(1a?a:8;var o=ro.transition;ro.transition={},li(e,!1,t,n);try{var i=l();if(null!==i&&"object"==typeof i&&"function"==typeof i.then){var u=rt(i,r);lo(e,t,u)}else{var s=rn(i,r);lo(e,t,s)}}catch(n){lo(e,t,{then:function(){},status:"rejected",reason:n})}finally{ey=a,ro.transition=o}}function le(e,t,n,r){if(5!==e.tag)throw Error(i(476));if(null===e.memoizedState){var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rT,lastRenderedState:f},a=l;l={memoizedState:f,baseState:f,baseQueue:null,queue:l,next:null},e.memoizedState=l;var o=e.alternate;null!==o&&(o.memoizedState=l)}else a=e.memoizedState.queue;r9(e,a,t,f,function(){return n(r)})}function lt(){var e=at($);return null!==e?e:f}function ln(){return rN().memoizedState}function lr(){return rN().memoizedState}function ll(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=oB(t),r=nd(t,e=nf(n),n);null!==r&&(oV(r,t,n),np(r,t,n)),t={cache:au()},e.payload=t;return}t=t.return}}function la(e,t,n){var r=oB(e);n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},lu(e)?ls(t,n):null!==(n=nl(e,t,n,r))&&(oV(n,e,r),lc(n,t,r))}function lo(e,t,n){var r=oB(e),l={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(lu(e))ls(t,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,i=a(o,n);if(l.hasEagerState=!0,l.eagerState=i,tF(i,o)){nr(e,t,l,0),null===op&&nn();return}}catch(e){}finally{}null!==(n=nl(e,t,l,r))&&(oV(n,e,r),lc(n,t,r))}}function li(e,t,n,r){if(r={lane:2,revertLane:n5(),action:r,hasEagerState:!1,eagerState:null,next:null},lu(e)){if(t)throw Error(i(479))}else null!==(t=nl(e,n,r,2))&&oV(t,e,2)}function lu(e){var t=e.alternate;return e===ru||null!==t&&t===ru}function ls(e,t){rd=rf=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lc(e,t,n){if(0!=(4194176&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eg(e,n)}}i$=function(){return{lastEffect:null,events:null,stores:null}};var lf={readContext:at,use:rL,useCallback:rv,useContext:rv,useEffect:rv,useImperativeHandle:rv,useInsertionEffect:rv,useLayoutEffect:rv,useMemo:rv,useReducer:rv,useRef:rv,useState:rv,useDebugValue:rv,useDeferredValue:rv,useTransition:rv,useSyncExternalStore:rv,useId:rv};lf.useCacheRefresh=rv,lf.useHostTransitionStatus=rv,lf.useFormState=rv,lf.useOptimistic=rv;var ld={readContext:at,use:rL,useCallback:function(e,t){return rP().memoizedState=[e,void 0===t?null:t],e},useContext:at,useEffect:rJ,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,rG(4194308,4,r3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rG(4194308,4,e,t)},useInsertionEffect:function(e,t){rG(4,2,e,t)},useMemo:function(e,t){var n=rP();return t=void 0===t?null:t,rp&&e(),e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rP();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=la.bind(null,ru,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},rP().memoizedState=e},useState:function(e){var t=(e=rB(e)).queue,n=lo.bind(null,ru,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:r6,useDeferredValue:function(e){return rP().memoizedState=e,e},useTransition:function(){var e=rB(!1);return e=r9.bind(null,ru,e.queue,!0,!1),rP().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ru,l=rP();if(tK){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===op)throw Error(i(349));0!=(60&oh)||rD(r,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,rJ(rI.bind(null,r,a,e),[e]),r.flags|=2048,rY(9,rA.bind(null,r,a,n,t),{destroy:void 0},null),n},useId:function(){var e=rP(),t=op.identifierPrefix;if(tK){var n=tB,r=t$;t=":"+t+"R"+(n=(r&~(1<<32-el(r)-1)).toString(32)+n),0<(n=rm++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ry++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return rP().memoizedState=ll.bind(null,ru)}};ld.useHostTransitionStatus=lt,ld.useFormState=function(e,t){if(tK){var n=op.formState;if(null!==n){e:{if(tK){if(tq){t:{for(var r=tq,l=tX;8!==r.nodeType;)if(!l||null===(r=s4(r))){r=null;break t}r="F!"===(l=r.data)||"F"===l?r:null}if(r){tq=s4(r),r="F!"===r.data;break e}}t3()}r=!1}r&&(t=n[0])}}return(n=rP()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rH,lastRenderedState:t},n.queue=r,n=lo.bind(null,ru,r),r.dispatch=n,r=rP(),l={state:t,dispatch:null,action:e,pending:null},r.queue=l,n=rj.bind(null,ru,l,n),l.dispatch=n,r.memoizedState=e,[t,n]},ld.useOptimistic=function(e){var t=rP();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=li.bind(null,ru,!0,n),n.dispatch=t,[e,t]};var lp={readContext:at,use:rL,useCallback:r8,useContext:at,useEffect:r0,useImperativeHandle:r4,useInsertionEffect:r1,useLayoutEffect:r2,useMemo:r5,useReducer:rF,useRef:rX,useState:function(){return rF(rT)},useDebugValue:r6,useDeferredValue:function(e){return r7(rN(),rs.memoizedState,e)},useTransition:function(){var e=rF(rT)[0],t=rN().memoizedState;return["boolean"==typeof e?e:r_(e),t]},useSyncExternalStore:rR,useId:ln};lp.useCacheRefresh=lr,lp.useHostTransitionStatus=lt,lp.useFormState=function(e){return rq(rN(),rs,e)},lp.useOptimistic=function(e,t){return rV(rN(),rs,e,t)};var lm={readContext:at,use:rL,useCallback:r8,useContext:at,useEffect:r0,useImperativeHandle:r4,useInsertionEffect:r1,useLayoutEffect:r2,useMemo:r5,useReducer:rO,useRef:rX,useState:function(){return rO(rT)},useDebugValue:r6,useDeferredValue:function(e){var t=rN();return null===rs?(t.memoizedState=e,e):r7(t,rs.memoizedState,e)},useTransition:function(){var e=rO(rT)[0],t=rN().memoizedState;return["boolean"==typeof e?e:r_(e),t]},useSyncExternalStore:rR,useId:ln};function lh(e,t){if(e&&e.defaultProps)for(var n in t=u({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function lg(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}lm.useCacheRefresh=lr,lm.useHostTransitionStatus=lt,lm.useFormState=function(e){var t=rN(),n=rs;if(null!==n)return rq(t,n,e);t=t.memoizedState;var r=(n=rN()).queue.dispatch;return n.memoizedState=e,[t,r]},lm.useOptimistic=function(e,t){var n=rN();return null!==rs?rV(n,rs,e,t):(n.baseState=e,[e,n.queue.dispatch])};var ly={isMounted:function(e){return!!(e=e._reactInternals)&&ty(e)===e},enqueueSetState:function(e,t,n){var r=oB(e=e._reactInternals),l=nf(r);l.payload=t,null!=n&&(l.callback=n),null!==(t=nd(e,l,r))&&(oV(t,e,r),np(t,e,r))},enqueueReplaceState:function(e,t,n){var r=oB(e=e._reactInternals),l=nf(r);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=nd(e,l,r))&&(oV(t,e,r),np(t,e,r))},enqueueForceUpdate:function(e,t){var n=oB(e=e._reactInternals),r=nf(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=nd(e,r,n))&&(oV(t,e,n),np(t,e,n))}};function lv(e,t,n,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||!nv(n,r)||!nv(l,a)}function lb(e,t,n){var r=!1,l=tw,a=t.contextType;return"object"==typeof a&&null!==a?a=at(a):(l=tz(t)?tE:tS.current,a=(r=null!=(r=t.contextTypes))?tx(e,l):tw),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ly,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function lk(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ly.enqueueReplaceState(t,t.state,null)}function lw(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},ns(e);var a=t.contextType;"object"==typeof a&&null!==a?l.context=at(a):(a=tz(t)?tE:tS.current,l.context=tx(e,a)),l.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(lg(e,t,a,n),l.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(t=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&ly.enqueueReplaceState(l,l.state,null),nh(e,n,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}function lS(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 26:case 27:case 5:return eq(e.type);case 16:return eq("Lazy");case 13:return eq("Suspense");case 19:return eq("SuspenseList");case 0:case 2:case 15:return e=eY(e.type,!1);case 11:return e=eY(e.type.render,!1);case 1:return e=eY(e.type,!0);default:return""}}(r),r=r.return;while(r);var l=n}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:l,digest:null}}function lC(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function lE(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function lx(e,t,n){(n=nf(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oT||(oT=!0,oF=r),lE(e,t)},n}function lz(e,t,n){(n=nf(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){lE(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){lE(e,t),"function"!=typeof r&&(null===oM?oM=new Set([this]):oM.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function lP(e,t,n,r,l){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=nf(2)).tag=2,nd(n,t,2))),n.lanes|=2):(e.flags|=65536,e.lanes=l),e}var lN=s.ReactCurrentOwner,l_=Error(i(461)),lL=!1;function lT(e,t,n,r){t.child=null===e?nR(t,null,n,r):nO(t,e.child,n,r)}function lF(e,t,n,r,l){n=n.render;var a=t.ref;return(ae(t,l),r=rk(e,t,n,r,a,l),n=rE(),null===e||lL)?(tK&&n&&tQ(t),t.flags|=1,lT(e,t,r,l),t.child):(rx(e,t,l),l0(e,t,l))}function lM(e,t,n,r,l){if(null===e){var a=n.type;return"function"!=typeof a||id(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ih(n.type,null,r,null,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,lO(e,t,a,r,l))}if(a=e.child,0==(e.lanes&l)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:nv)(o,r)&&e.ref===t.ref)return l0(e,t,l)}return t.flags|=1,(e=ip(a,r)).ref=t.ref,e.return=t,t.child=e}function lO(e,t,n,r,l){if(null!==e){var a=e.memoizedProps;if(nv(a,r)&&e.ref===t.ref){if(lL=!1,t.pendingProps=r=a,0==(e.lanes&l))return t.lanes=e.lanes,l0(e,t,l);0!=(131072&e.flags)&&(lL=!0)}}return lI(e,t,n,r,l)}function lR(e,t,n){var r=t.pendingProps,l=r.children,a=0!=(2&t.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(lA(e,t),"hidden"===r.mode||a){if(0!=(128&t.flags)){if(n=null!==o?o.baseLanes|n:n,null!==e){for(l=0,r=t.child=e.child;null!==r;)l=l|r.lanes|r.childLanes,r=r.sibling;t.childLanes=l&~n}else t.childLanes=0,t.child=null;return lD(e,t,n)}if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},null!==e&&ap(t,null),nU(),nQ(t);else{if(0==(536870912&n))return t.lanes=t.childLanes=536870912,lD(e,t,null!==o?o.baseLanes|n:n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&ap(t,null!==o?o.cachePool:null),null!==o?nI(t,o):nU(),nQ(t)}}else null!==o?(ap(t,o.cachePool),nI(t,o),nW(t),t.memoizedState=null):(null!==e&&ap(t,null),nU(),nW(t));return lT(e,t,l,n),t.child}function lD(e,t,n){var r=ad();return r=null===r?null:{parent:ai._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},null!==e&&ap(t,null),nU(),nQ(t),null}function lA(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function lI(e,t,n,r,l){var a=tz(n)?tE:tS.current;return(a=tx(t,a),ae(t,l),n=rk(e,t,n,r,a,l),r=rE(),null===e||lL)?(tK&&r&&tQ(t),t.flags|=1,lT(e,t,n,l),t.child):(rx(e,t,l),l0(e,t,l))}function lU(e,t,n,r,l,a){return(ae(t,a),n=rS(t,r,n,l),rw(),r=rE(),null===e||lL)?(tK&&r&&tQ(t),t.flags|=1,lT(e,t,n,a),t.child):(rx(e,t,a),l0(e,t,a))}function l$(e,t,n,r,l){if(tz(n)){var a=!0;tL(t)}else a=!1;if(ae(t,l),null===t.stateNode)lJ(e,t),lb(t,n,r),lw(t,n,r,l),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;s="object"==typeof s&&null!==s?at(s):tx(t,s=tz(n)?tE:tS.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&lk(t,o,r,s),nu=!1;var d=t.memoizedState;o.state=d,nh(t,r,o,l),u=t.memoizedState,i!==r||d!==u||tC.current||nu?("function"==typeof c&&(lg(t,n,c,r),u=t.memoizedState),(i=nu||lv(t,n,i,r,d,u,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,nc(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:lh(t.type,i),o.props=s,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?at(u):tx(t,u=tz(n)?tE:tS.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&lk(t,o,r,u),nu=!1,d=t.memoizedState,o.state=d,nh(t,r,o,l);var m=t.memoizedState;i!==f||d!==m||tC.current||nu?("function"==typeof p&&(lg(t,n,p,r),m=t.memoizedState),(s=nu||lv(t,n,s,r,d,m,u)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=s):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return lB(e,t,n,r,a,l)}function lB(e,t,n,r,l,a){lA(e,t);var o=0!=(128&t.flags);if(!r&&!o)return l&&tT(t,n,!1),l0(e,t,a);r=t.stateNode,lN.current=t;var i=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=nO(t,e.child,null,a),t.child=nO(t,null,i,a)):lT(e,t,i,a),t.memoizedState=r.state,l&&tT(t,n,!0),t.child}function lV(e){var t=e.stateNode;t.pendingContext?tN(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tN(e,t.context,!1),B(e,t.containerInfo)}function lj(e,t,n,r,l){return t5(),t7(l),t.flags|=256,lT(e,t,n,r),t.child}var lQ={dehydrated:null,treeContext:null,retryLane:0};function lW(e){return{baseLanes:e,cachePool:am()}}function lH(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=ox),e}function lq(e,t,n){var r,l=t.pendingProps,a=!1,o=0!=(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&nq.current)),r&&(a=!0,t.flags&=-129),r=0!=(32&t.flags),t.flags&=-33,null===e){if(tK){if(a?nj(t):nW(t),tK){var u=o=tq;if(u){if(!t1(t,u)){t2(t)&&t3(),tq=s4(u);var s=tH;tq&&t1(t,tq)?tG(s,u):(tZ(tH,t),tK=!1,tH=t,tq=o)}}else t2(t)&&t3(),tZ(tH,t),tK=!1,tH=t,tq=o}if(null!==(o=t.memoizedState)&&null!==(o=o.dehydrated))return 0==(1&t.mode)?t.lanes=2:"$!"===o.data?t.lanes=16:t.lanes=536870912,null;nH(t)}return(o=l.children,l=l.fallback,a)?(nW(t),a=t.mode,u=t.child,o={mode:"hidden",children:o},0==(1&a)&&null!==u?(u.childLanes=0,u.pendingProps=o):u=iy(o,a,0,null),l=ig(l,a,n,null),u.return=t,l.return=t,u.sibling=l,t.child=u,(a=t.child).memoizedState=lW(n),a.childLanes=lH(e,r,n),t.memoizedState=lQ,l):(nj(t),lK(t,o))}if(null!==(u=e.memoizedState)&&null!==(s=u.dehydrated))return function(e,t,n,r,l,a,o,u){if(n)return 256&t.flags?(nj(t),t.flags&=-257,lY(e,t,u,a=lC(Error(i(422))))):null!==t.memoizedState?(nW(t),t.child=e.child,t.flags|=128,null):(nW(t),a=l.fallback,o=t.mode,l=iy({mode:"visible",children:l.children},o,0,null),a=ig(a,o,u,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,0!=(1&t.mode)&&nO(t,e.child,null,u),(o=t.child).memoizedState=lW(u),o.childLanes=lH(e,r,u),t.memoizedState=lQ,a);if(nj(t),0==(1&t.mode))return lY(e,t,u,null);if("$!"===a.data){if(a=a.nextSibling&&a.nextSibling.dataset)var s=a.dgst;return a=s,(r=Error(i(419))).digest=a,lY(e,t,u,a=lC(r,a,void 0))}if(r=0!=(u&e.childLanes),lL||r){if(null!==(r=op)){if(0!=(42&(l=u&-u)))l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(0!==(l=0!=(l&(r.suspendedLanes|u))?0:l)&&l!==o.retryLane)throw o.retryLane=l,na(e,l),oV(r,e,l),l_}return"$?"!==a.data&&o2(),lY(e,t,u,null)}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=ii.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,tq=s3(a.nextSibling),tH=t,tK=!0,tY=null,tX=!1,null!==e&&(tA[tI++]=t$,tA[tI++]=tB,tA[tI++]=tU,t$=e.id,tB=e.overflow,tU=t),t=lK(t,l.children),t.flags|=4096,t)}(e,t,o,r,l,s,u,n);if(a){nW(t),a=l.fallback,o=t.mode,s=(u=e.child).sibling;var c={mode:"hidden",children:l.children};return 0==(1&o)&&t.child!==u?((l=t.child).childLanes=0,l.pendingProps=c,t.deletions=null):(l=ip(u,c)).subtreeFlags=31457280&u.subtreeFlags,null!==s?a=ip(s,a):(a=ig(a,o,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,l=a,a=t.child,null===(o=e.child.memoizedState)?o=lW(n):(null!==(u=o.cachePool)?(s=ai._currentValue,u=u.parent!==s?{parent:s,pool:s}:u):u=am(),o={baseLanes:o.baseLanes|n,cachePool:u}),a.memoizedState=o,a.childLanes=lH(e,r,n),t.memoizedState=lQ,l}return nj(t),e=(r=e.child).sibling,r=ip(r,{mode:"visible",children:l.children}),0==(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function lK(e,t){return(t=iy({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function lY(e,t,n,r){return null!==r&&t7(r),nO(t,e.child,null,n),e=lK(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lX(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),l7(e.return,t,n)}function lG(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function lZ(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(lT(e,t,r.children,n),0!=(2&(r=nq.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lX(e,n,t);else if(19===e.tag)lX(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(g(nq,r),0==(1&t.mode))t.memoizedState=null;else switch(l){case"forwards":for(l=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===nK(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),lG(t,!1,l,n,a);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===nK(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}lG(t,!0,n,null,a);break;case"together":lG(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lJ(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function l0(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),oS|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=ip(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ip(e,e.pendingProps)).return=t;n.sibling=null}return t.child}var l1=m(null),l2=null,l3=null,l4=null;function l6(){l4=l3=l2=null}function l8(e,t,n){g(l1,t._currentValue),t._currentValue=n}function l5(e){e._currentValue=l1.current,h(l1)}function l7(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function l9(e,t,n){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var l=r.dependencies;if(null!==l)for(var a=r.child,o=l.firstContext;null!==o;){if(o.context===t){if(1===r.tag){(o=nf(n&-n)).tag=2;var u=r.updateQueue;if(null!==u){var s=(u=u.shared).pending;null===s?o.next=o:(o.next=s.next,s.next=o),u.pending=o}}r.lanes|=n,null!==(o=r.alternate)&&(o.lanes|=n),l7(r.return,n,e),l.lanes|=n;break}o=o.next}else if(10===r.tag)a=r.type===e.type?null:r.child;else if(18===r.tag){if(null===(a=r.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),l7(a,n,e),a=r.sibling}else a=r.child;if(null!==a)a.return=r;else for(a=r;null!==a;){if(a===e){a=null;break}if(null!==(r=a.sibling)){r.return=a.return,a=r;break}a=a.return}r=a}}function ae(e,t){l2=e,l4=l3=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(lL=!0),e.firstContext=null)}function at(e){return ar(l2,e)}function an(e,t,n){return null===l2&&ae(e,n),ar(e,t)}function ar(e,t){var n=t._currentValue;if(l4!==t){if(t={context:t,memoizedValue:n,next:null},null===l3){if(null===e)throw Error(i(308));l3=t,e.dependencies={lanes:0,firstContext:t}}else l3=l3.next=t}return n}var al="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=a.unstable_scheduleCallback,ao=a.unstable_NormalPriority,ai={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_defaultValue:null,_globalName:null};function au(){return{controller:new al,data:new Map,refCount:0}}function as(e){e.refCount--,0===e.refCount&&aa(ao,function(){e.controller.abort()})}var ac=s.ReactCurrentBatchConfig,af=m(null);function ad(){var e=af.current;return null!==e?e:op.pooledCache}function ap(e,t){null===t?g(af,af.current):g(af,t.pool)}function am(){var e=ad();return null===e?null:{parent:ai._currentValue,pool:e}}function ah(e){e.flags|=4}function ag(e){e.flags|=2097664}function ay(e,t){if("stylesheet"!==t.type||0!=(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,0==(42&oh)&&!(t="stylesheet"!==t.type||0!=(3&t.state.loading))){if(oJ())e.flags|=8192;else throw nx=nw,nk}}function av(e,t){null!==t?e.flags|=4:16384&e.flags&&(t=22!==e.tag?ed():536870912,e.lanes|=t)}function ab(e,t){if(!tK)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ak(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=31457280&l.subtreeFlags,r|=31457280&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function aw(e,t){switch(tW(t),t.tag){case 1:null!=(e=t.type.childContextTypes)&&tP();break;case 3:l5(ai),V(),h(tC),h(tS);break;case 26:case 27:case 5:Q(t);break;case 4:V();break;case 13:nH(t);break;case 19:h(nq);break;case 10:l5(t.type._context);break;case 22:case 23:nH(t),n$(),null!==e&&h(af);break;case 24:l5(ai)}}function aS(e,t,n){var r=Array.prototype.slice.call(arguments,3);try{t.apply(n,r)}catch(e){this.onError(e)}}var aC=!1,aE=null,ax=!1,az=null,aP={onError:function(e){aC=!0,aE=e}};function aN(e,t,n,r,l,a,o,i,u){aC=!1,aE=null,aS.apply(aP,arguments)}var a_=!1,aL=!1,aT="function"==typeof WeakSet?WeakSet:Set,aF=null;function aM(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var l=r;break;default:l=r}"function"==typeof n?e.refCleanup=n(l):n.current=l}}catch(n){ir(e,t,n)}}function aO(e,t){var n=e.ref,r=e.refCleanup;if(null!==n){if("function"==typeof r)try{r()}catch(n){ir(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){ir(e,t,n)}else n.current=null}}function aR(e,t,n){try{n()}catch(n){ir(e,t,n)}}var aD=!1;function aA(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.inst,o=a.destroy;void 0!==o&&(a.destroy=void 0,aR(t,n,o))}l=l.next}while(l!==r)}}function aI(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create,l=n.inst;r=r(),l.destroy=r}n=n.next}while(n!==t)}}function aU(e,t){try{aI(t,e)}catch(t){ir(e,e.return,t)}}function a$(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{ny(t,n)}catch(t){ir(e,e.return,t)}}}function aB(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break;case"img":n.src&&(r.src=n.src)}}catch(t){ir(e,e.return,t)}}function aV(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:a2(e,n),4&r&&aU(n,5);break;case 1:if(a2(e,n),4&r){if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){ir(n,n.return,e)}else{var l=n.elementType===n.type?t.memoizedProps:lh(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ir(n,n.return,e)}}}64&r&&a$(n),512&r&&aM(n,n.return);break;case 3:if(a2(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{ny(r,e)}catch(e){ir(n,n.return,e)}}break;case 26:a2(e,n),512&r&&aM(n,n.return);break;case 27:case 5:a2(e,n),null===t&&4&r&&aB(n),512&r&&aM(n,n.return);break;case 12:default:a2(e,n);break;case 13:a2(e,n),4&r&&aX(e,n);break;case 22:if(0!=(1&n.mode)){if(!(l=null!==n.memoizedState||a_)){t=null!==t&&null!==t.memoizedState||aL;var a=a_,o=aL;a_=l,(aL=t)&&!o?function e(t,n,r){for(r=r&&0!=(8772&n.subtreeFlags),n=n.child;null!==n;){var l=n.alternate,a=t,o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(a,o,r),aU(o,4);break;case 1:if(e(a,o,r),"function"==typeof(a=o.stateNode).componentDidMount)try{a.componentDidMount()}catch(e){ir(o,o.return,e)}if(null!==(l=o.updateQueue)){var u=l.shared.hiddenCallbacks;if(null!==u)for(l.shared.hiddenCallbacks=null,l=0;l title"))),s$(l,n,r),l[ew]=e,eR(l),n=l;break e;case"link":var a=cp("link","href",t).get(n+(r.href||""));if(a){for(var o=0;o",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[ew]=t,e[eS]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,s$(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&ah(t)}null!==t.ref&&ag(t)}return ak(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ah(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=I.current,t6(t)){e:{if(e=t.stateNode,n=t.memoizedProps,e[ew]=t,(r=e.nodeValue!==n)&&null!==(l=tH))switch(l.tag){case 3:if(l=0!=(1&l.mode),sD(e.nodeValue,n,l),l){e=!1;break e}break;case 27:case 5:var a=0!=(1&l.mode);if(!0!==l.memoizedProps.suppressHydrationWarning&&sD(e.nodeValue,n,a),a){e=!1;break e}}e=r}e&&ah(t)}else(e=sQ(e).createTextNode(r))[ew]=t,t.stateNode=e}return ak(t),null;case 13:if(nH(t),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(tK&&null!==tq&&0!=(1&t.mode)&&0==(128&t.flags))t8(),t5(),t.flags|=384,l=!1;else if(l=t6(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(i(317));l[ew]=t}else t5(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ak(t),l=!1}else null!==tY&&(oW(tY),tY=null),l=!0;if(!l)return 256&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),av(t,t.updateQueue),ak(t),null;case 4:return V(),null===e&&sz(t.stateNode.containerInfo),ak(t),null;case 10:return l5(t.type._context),ak(t),null;case 19:if(h(nq),null===(l=t.memoizedState))return ak(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)ab(l,!1);else{if(0!==ok||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=nK(e))){for(t.flags|=128,ab(l,!1),e=a.updateQueue,t.updateQueue=e,av(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)im(n,e),n=n.sibling;return g(nq,1&nq.current|2),t.child}e=e.sibling}null!==l.tail&&Y()>o_&&(t.flags|=128,r=!0,ab(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=nK(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,av(t,e),ab(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!tK)return ak(t),null}else 2*Y()-l.renderingStartTime>o_&&536870912!==n&&(t.flags|=128,r=!0,ab(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,e=nq.current,g(nq,r?1&e|2:1&e),t;return ak(t),null;case 22:case 23:return nH(t),n$(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(536870912&n)&&0==(128&t.flags)&&(ak(t),6&t.subtreeFlags&&(t.flags|=8192)):ak(t),null!==(n=t.updateQueue)&&av(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&h(af),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),l5(ai),ak(t),null;case 25:return null}throw Error(i(156,t.tag))}(t.alternate,t,ob);if(null!==n){om=n;return}if(null!==(t=t.sibling)){om=t;return}om=t=e}while(null!==t);0===ok&&(ok=5)}function o7(e,t,n,r){var l=ey,a=of.transition;try{of.transition=null,ey=2,function(e,t,n,r,l){do ie();while(null!==oR);if(0!=(6&od))throw Error(i(327));var a=e.finishedWork,o=e.finishedLanes;if(null!==a){if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var u=a.lanes|a.childLanes;if(function(e,t,n){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0r&&(l=r,r=a,a=l),l=u8(n,a);var o=u8(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;nn?32:n;n=of.transition;var l=ey;try{if(of.transition=null,ey=r,null===oR)var a=!1;else{r=oI,oI=null;var o=oR,u=oD;if(oR=null,oD=0,0!=(6&od))throw Error(i(331));var s=od;if(od|=4,ol(o.current),a5(o,o.current,u,r),od=s,n2(!1),er&&"function"==typeof er.onPostCommitFiberRoot)try{er.onPostCommitFiberRoot(en,o)}catch(e){}a=!0}return a}finally{ey=l,of.transition=n,o9(e,t)}}return!1}function it(e,t,n){t=lx(e,t=lS(n,t),2),null!==(e=nd(e,t,2))&&(em(e,2),n1(e))}function ir(e,t,n){if(3===e.tag)it(e,e,n);else for(;null!==t;){if(3===t.tag){it(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===oM||!oM.has(r))){e=lz(t,e=lS(n,e),2),null!==(t=nd(t,e,2))&&(em(t,2),n1(t));break}}t=t.return}}function il(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new oi;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(ov=!0,l.add(n),e=ia.bind(null,e,t,n),t.then(e,e))}function ia(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,op===e&&(oh&n)===n&&(4===ok||3===ok&&(62914560&oh)===oh&&300>Y()-oN?0==(2&od)&&oG(e,0):oE|=n),n1(e)}function io(e,t){0===t&&(t=0==(1&e.mode)?2:ed()),null!==(e=na(e,t))&&(em(e,t),n1(e))}function ii(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),io(e,n)}function iu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),io(e,n)}function is(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ic(e,t,n,r){return new is(e,t,n,r)}function id(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ip(e,t){var n=e.alternate;return null===n?((n=ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function im(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ih(e,t,n,r,l,a,o){if(l=2,r=e,"function"==typeof e)id(e)&&(l=1);else if("string"==typeof e)l=!function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;if("stylesheet"===t.rel)return e=t.disabled,"string"==typeof t.precedence&&null==e;return!0;case"script":if(!0===t.async&&!t.onLoad&&!t.onError&&"string"==typeof t.src&&t.src)return!0}return!1}(e,n,D.current)?"html"===e||"head"===e||"body"===e?27:5:26;else e:switch(e){case b:return ig(n.children,a,o,t);case k:l=8,0!=(1&(a|=8))&&(a|=16);break;case w:return(e=ic(12,n,t,2|a)).elementType=w,e.lanes=o,e;case z:return(e=ic(13,n,t,a)).elementType=z,e.lanes=o,e;case P:return(e=ic(19,n,t,a)).elementType=P,e.lanes=o,e;case T:return iy(n,a,o,t);case F:case L:case M:return(e=ic(24,n,t,a)).elementType=M,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:l=10;break e;case C:l=9;break e;case x:l=11;break e;case N:l=14;break e;case _:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=ic(l,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function ig(e,t,n,r){return(e=ic(7,e,r,t)).lanes=n,e}function iy(e,t,n,r){(e=ic(22,e,r,t)).elementType=T,e.lanes=n;var l={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0==(2&l._pendingVisibility)){var t=na(e,2);null!==t&&(l._pendingVisibility|=2,oV(t,e,2))}},attach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0!=(2&l._pendingVisibility)){var t=na(e,2);null!==t&&(l._pendingVisibility&=-3,oV(t,e,2))}}};return e.stateNode=l,e}function iv(e,t,n){return(e=ic(6,e,null,t)).lanes=n,e}function ib(e,t,n){return(t=ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ik(e,t,n,r,l,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ep(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ep(0),this.hiddenUpdates=ep(null),this.identifierPrefix=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function iw(e,t,n,r,l,a,o,i,u,s,c){return e=new ik(e,t,n,i,u,c),1===t?(t=1,!0===a&&(t|=24)):t=0,a=ic(3,null,null,t),e.current=a,a.stateNode=e,t=au(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ns(a),e}function iS(e){if(!e)return tw;e=e._reactInternals;e:{if(ty(e)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tz(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(tz(n))return t_(e,n,t)}return t}function iC(e,t,n,r,l,a,o,i,u,s,c){return(e=iw(n,r,!0,e,l,a,o,i,u,s,c)).context=iS(null),(l=nf(r=oB(n=e.current))).callback=null!=t?t:null,nd(n,l,r),e.current.lanes=r,em(e,r),n1(e),e}function iE(e,t,n,r){var l=t.current,a=oB(l);return n=iS(n),null===t.context?t.context=n:t.pendingContext=n,(t=nf(a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=nd(l,t,a))&&(oV(e,l,a),np(e,l,a)),a}function ix(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function iz(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=uR),uI=!1;function uU(e,t){switch(e){case"keyup":return -1!==uM.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u$(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var uB=!1,uV={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uj(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!uV[e.type]:"textarea"===t}function uQ(e,t,n,r){th(r),0<(t=sL(t,"onChange")).length&&(n=new iH("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uW=null,uH=null;function uq(e){sS(e,0)}function uK(e){if(e0(eF(e)))return e}function uY(e,t){if("change"===e)return t}var uX=!1;if(e$){if(e$){var uG="oninput"in document;if(!uG){var uZ=document.createElement("div");uZ.setAttribute("oninput","return;"),uG="function"==typeof uZ.oninput}r=uG}else r=!1;uX=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=u6(r)}}function u5(){for(var e=window,t=e1();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e1(e.document)}return t}function u7(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var u9=e$&&"documentMode"in document&&11>=document.documentMode,se=null,st=null,sn=null,sr=!1;function sl(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sr||null==se||se!==e1(r)||(r="selectionStart"in(r=se)&&u7(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sn&&nv(sn,r)||(sn=r,0<(r=sL(st,"onSelect")).length&&(t=new iH("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=se)))}function sa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var so={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionend:sa("Transition","TransitionEnd")},si={},su={};function ss(e){if(si[e])return si[e];if(!so[e])return e;var t,n=so[e];for(t in n)if(n.hasOwnProperty(t)&&t in su)return si[e]=n[t];return e}e$&&(su=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);var sc=ss("animationend"),sf=ss("animationiteration"),sd=ss("animationstart"),sp=ss("transitionend"),sm=new Map,sh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function sg(e,t){sm.set(e,t),eI(t,[e])}for(var sy=0;sy title"):null)}var ch=null;function cg(){}function cy(){if(this.count--,0===this.count){if(this.stylesheets)cb(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cv=null;function cb(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,cv=new Map,t.forEach(ck,e),cv=null,cy.call(e))}function ck(e,t){if(!(4&t.state.loading)){var n=cv.get(e);if(n)var r=n.get("last");else{n=new Map,cv.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]})},5380:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});let n=r(2265),o=r(8707);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1192:function(e,t){"use strict";function r(e){var t,r;t=self.__next_s,r=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[r,n]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(n)for(let e in n)"children"!==e&&o.setAttribute(e,n[e]);r?(o.src=r,o.onload=()=>e(),o.onerror=t):n&&(o.innerHTML=n.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return r}}),window.next={version:"14.1.0",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1378:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let n=r(8950);async function o(e,t){let r=(0,n.getServerActionDispatcher)();if(!r)throw Error("Invariant: missing action dispatcher.");return new Promise((n,o)=>{r({actionId:e,actionArgs:t,resolve:n,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3618:function(e,t,r){"use strict";let n,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return C}});let u=r(907),l=r(5129),a=r(1674);r(6388);let i=u._(r(3930)),c=l._(r(6655)),s=r(9567),f=r(9188);r(8251);let d=u._(r(7226)),p=r(1378),h=r(2963),y=r(1927),_=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),r=0;r{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let v=document,b=()=>{let{pathname:e,search:t}=location;return e+t},g=new TextEncoder,m=!1,P=!1,j=null;function R(e){if(0===e[0])n=[];else if(1===e[0]){if(!n)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(g.encode(e[1])):n.push(e[1])}else 2===e[0]&&(j=e[1])}let O=function(){o&&!P&&(o.close(),P=!0,n=void 0),m=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",O,!1):O();let S=self.__next_f=self.__next_f||[];S.forEach(R),S.push=R;let E=new Map;function w(e){let{cacheKey:t}=e;c.default.useEffect(()=>{E.delete(t)});let r=function(e){let t=E.get(e);if(t)return t;let r=new ReadableStream({start(e){n&&(n.forEach(t=>{e.enqueue(g.encode(t))}),m&&!P&&(e.close(),P=!0,n=void 0)),o=e}}),u=(0,s.createFromReadableStream)(r,{callServer:p.callServer});return E.set(e,u),u}(t);return(0,c.use)(r)}let M=c.default.StrictMode;function T(e){let{children:t}=e;return t}function x(e){return(0,a.jsx)(w,{...e,cacheKey:b()})}function C(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(M,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(T,{children:(0,a.jsx)(x,{})})})})}),r={onRecoverableError:d.default};"__next_error__"===document.documentElement.id?i.default.createRoot(v,r).render(t):c.default.startTransition(()=>i.default.hydrateRoot(v,t,{...r,formState:j}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7220:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3333),(0,r(1192).appBootstrap)(()=>{let{hydrate:e}=r(3618);r(8950),r(2172),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3333:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(7025);{let e=r.u;r.u=function(){for(var t=arguments.length,r=Array(t),n=0;n(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,n.useState)(""),c=(0,n.useRef)();return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),r?(0,o.createPortal)(a,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3840:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RSC_HEADER:function(){return r},ACTION:function(){return n},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_VARY_HEADER:function(){return i},FLIGHT_PARAMETERS:function(){return c},NEXT_RSC_UNION_QUERY:function(){return s},NEXT_DID_POSTPONE_HEADER:function(){return f}});let r="RSC",n="Next-Action",o="Next-Router-State-Tree",u="Next-Router-Prefetch",l="Next-Url",a="text/x-component",i=r+", "+o+", "+u+", "+l,c=[[r],[o],[u]],s="_rsc",f="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getServerActionDispatcher:function(){return O},urlToUrlWithoutFlightMarker:function(){return E},createEmptyCacheNode:function(){return T},default:function(){return A}});let n=r(5129),o=r(1674),u=n._(r(6655)),l=r(8251),a=r(706),i=r(3274),c=r(6379),s=r(2705),f=r(5119),d=r(6250),p=r(4910),h=r(5380),y=r(5930),_=r(449),v=r(4674),b=r(4082),g=r(3840),m=r(2616),P=r(7685),j=new Map,R=null;function O(){return R}let S={};function E(e){let t=new URL(e,location.origin);return t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t}function w(e){return e.origin!==window.location.origin}function M(e){let{appRouterState:t,sync:r}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:n,canonicalUrl:o}=t,u={...n.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};n.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(n.pendingPush=!1,window.history.pushState(u,"",o)):window.history.replaceState(u,"",o),r(t)},[t,r]),null}function T(){return{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map}}function x(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let n=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function C(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,o=null!==n?n:r;return(0,u.useDeferredValue)(r,o)}function N(e){let t,{buildId:r,initialHead:n,initialTree:i,initialCanonicalUrl:f,initialSeedData:g,assetPrefix:O,missingSlots:E}=e,T=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:r,initialSeedData:g,initialCanonicalUrl:f,initialTree:i,initialParallelRoutes:j,isServer:!1,location:window.location,initialHead:n}),[r,g,f,i,n]),[N,A,I]=(0,s.useReducerWithReduxDevtools)(T);(0,u.useEffect)(()=>{j=null},[]);let{canonicalUrl:k}=(0,s.useUnwrapState)(N),{searchParams:U,pathname:D}=(0,u.useMemo)(()=>{let e=new URL(k,window.location.href);return{searchParams:e.searchParams,pathname:(0,P.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[k]),F=(0,u.useCallback)((e,t,r)=>{(0,u.startTransition)(()=>{A({type:a.ACTION_SERVER_PATCH,flightData:t,previousTree:e,overrideCanonicalUrl:r})})},[A]),L=(0,u.useCallback)((e,t,r)=>{let n=new URL((0,h.addBasePath)(e),location.href);return A({type:a.ACTION_NAVIGATE,url:n,isExternalUrl:w(n),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t})},[A]);R=(0,u.useCallback)(e=>{(0,u.startTransition)(()=>{A({...e,type:a.ACTION_SERVER_ACTION})})},[A]);let H=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{if((0,p.isBot)(window.navigator.userAgent))return;let r=new URL((0,h.addBasePath)(e),window.location.href);w(r)||(0,u.startTransition)(()=>{var e;A({type:a.ACTION_PREFETCH,url:r,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var r;L(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var r;L(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,u.startTransition)(()=>{A({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[A,L]);(0,u.useEffect)(()=>{window.next&&(window.next.router=H)},[H]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&A({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE})}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[A]);let{pushRef:$}=(0,s.useUnwrapState)(N);if($.mpaNavigation){if(S.pendingMpaPath!==k){let e=window.location;$.pendingPush?e.assign(k):e.replace(k),S.pendingMpaPath=k}(0,u.use)((0,b.createInfinitePromise)())}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{let t=window.location.href;(0,u.startTransition)(()=>{A({type:a.ACTION_RESTORE,url:new URL(null!=e?e:t,t),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE})})};window.history.pushState=function(t,n,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=x(t),o&&r(o)),e(t,n,o)},window.history.replaceState=function(e,n,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=x(e),o&&r(o)),t(e,n,o)};let n=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,u.startTransition)(()=>{A({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[A]);let{cache:B,tree:G,nextUrl:W,focusAndScrollRef:z}=(0,s.useUnwrapState)(N),K=(0,u.useMemo)(()=>(0,v.findHeadInCache)(B,G[1]),[B,G]);if(null!==K){let[e,r]=K;t=(0,o.jsx)(C,{headCacheNode:e},r)}else t=null;let V=(0,o.jsxs)(_.RedirectBoundary,{children:[t,B.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:G})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(M,{appRouterState:(0,s.useUnwrapState)(N),sync:I}),(0,o.jsx)(c.PathnameContext.Provider,{value:D,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:U,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:r,changeByServerResponse:F,tree:G,focusAndScrollRef:z,nextUrl:W},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:H,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:B.parallelRoutes,tree:G,url:k},children:V})})})})})]})}function A(e){let{globalErrorComponent:t,...r}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(N,{...r})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5738:function(e,t,r){"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(907),r(6655),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5119:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ErrorBoundaryHandler:function(){return s},GlobalError:function(){return f},default:function(){return d},ErrorBoundary:function(){return p}});let n=r(907),o=r(1674),u=n._(r(6655)),l=r(2988),a=r(2963),i={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function c(e){let{error:t}=e;if("function"==typeof fetch.__nextGetStaticStore){var r;let e=null==(r=fetch.__nextGetStaticStore())?void 0:r.getStore();if((null==e?void 0:e.isRevalidate)||(null==e?void 0:e.isStaticGeneration))throw console.error(t),t}return null}class s extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function f(e){let{error:t}=e,r=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(c,{error:t}),(0,o.jsx)("div",{style:i.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:i.text,children:"Application error: a "+(r?"server":"client")+"-side exception has occurred (see the "+(r?"server logs":"browser console")+" for more information)."}),r?(0,o.jsx)("p",{style:i.text,children:"Digest: "+r}):null]})})]})]})}let d=f;function p(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:u}=e,a=(0,l.usePathname)();return t?(0,o.jsx)(s,{pathname:a,errorComponent:t,errorStyles:r,errorScripts:n,children:u}):(0,o.jsx)(o.Fragment,{children:u})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9907:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return o}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4082:function(e,t){"use strict";let r;function n(){return r||(r=new Promise(()=>{})),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInfinitePromise",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2963:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return u}});let n=r(2387),o=r(4502);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,n.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2172:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return O}});let n=r(907),o=r(5129),u=r(1674),l=o._(r(6655)),a=n._(r(6859)),i=r(8251),c=r(280),s=r(4082),f=r(5119),d=r(8741),p=r(2554),h=r(449),y=r(3398),_=r(8423),v=r(5713),b=["bottom","height","left","right","top","width","x","y"];function g(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class m extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var r;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,d.matchSegment)(t,e[r]))))return;let n=null,o=e.hashFragment;if(o&&(n="top"===o?document.body:null!=(r=document.getElementById(o))?r:document.getElementsByName(o)[0]),n||(n=a.default.findDOMNode(this)),!(n instanceof Element))return;for(;!(n instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return b.every(e=>0===t[e])}(n);){if(null===n.nextElementSibling)return;n=n.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){n.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!g(n,t)&&(e.scrollTop=0,g(n,t)||n.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,n.focus()}}}}function P(e){let{segmentPath:t,children:r}=e,n=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!n)throw Error("invariant global layout router not mounted");return(0,u.jsx)(m,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef,children:r})}function j(e){let{parallelRouterKey:t,url:r,childNodes:n,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:_}=p,v=n.get(f);if(void 0===v){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,parallelRoutes:new Map};v=e,n.set(f,e)}let b=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,g=(0,l.useDeferredValue)(v.rsc,b),m="object"==typeof g&&null!==g&&"function"==typeof g.then?(0,l.use)(g):g;if(!m){let e=v.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,o]=t,u=2===t.length;if((0,d.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(u){let t=e(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:e(t.slice(2),r[1][o])}]}}return r}(["",...o],_);v.lazyData=e=(0,c.fetchServerResponse)(new URL(r,location.origin),t,p.nextUrl,h)}let[t,n]=(0,l.use)(e);v.lazyData=null,setTimeout(()=>{(0,l.startTransition)(()=>{y(_,t,n)})}),(0,l.use)((0,s.createInfinitePromise)())}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:v.parallelRoutes,url:r},children:m})}function R(e){let{children:t,loading:r,loadingStyles:n,loadingScripts:o,hasLoading:a}=e;return a?(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[n,o,r]}),children:t}):(0,u.jsx)(u.Fragment,{children:t})}function O(e){let{parallelRouterKey:t,segmentPath:r,error:n,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,loading:d,loadingStyles:p,loadingScripts:b,hasLoading:g,template:m,notFound:O,notFoundStyles:S,styles:E}=e,w=(0,l.useContext)(i.LayoutRouterContext);if(!w)throw Error("invariant expected layout router to be mounted");let{childNodes:M,tree:T,url:x}=w,C=M.get(t);C||(C=new Map,M.set(t,C));let N=T[1][t][0],A=(0,_.getSegmentValue)(N),I=[N];return(0,u.jsxs)(u.Fragment,{children:[E,I.map(e=>{let l=(0,_.getSegmentValue)(e),E=(0,v.createRouterCacheKey)(e);return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(P,{segmentPath:r,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:n,errorStyles:o,errorScripts:a,children:(0,u.jsx)(R,{hasLoading:g,loading:d,loadingStyles:p,loadingScripts:b,children:(0,u.jsx)(y.NotFoundBoundary,{notFound:O,notFoundStyles:S,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(j,{parallelRouterKey:t,url:x,tree:T,childNodes:C,segmentPath:r,cacheKey:E,isActive:A===l})})})})})}),children:[c,s,m]},(0,v.createRouterCacheKey)(e,!0))})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8741:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{matchSegment:function(){return o},canSegmentBeOverridden:function(){return u}});let n=r(5884),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var r;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(r=(0,n.getSegmentParam)(e))?void 0:r.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2988:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return y},usePathname:function(){return _},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return c.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return b},useSelectedLayoutSegments:function(){return g},useSelectedLayoutSegment:function(){return m},redirect:function(){return s.redirect},permanentRedirect:function(){return s.permanentRedirect},RedirectType:function(){return s.RedirectType},notFound:function(){return f.notFound}});let n=r(6655),o=r(8251),u=r(6379),l=r(5738),a=r(8423),i=r(7970),c=r(7167),s=r(4502),f=r(2387),d=Symbol("internal for urlsearchparams readonly");function p(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw p()}delete(){throw p()}set(){throw p()}sort(){throw p()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function y(){(0,l.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(u.SearchParamsContext);return(0,n.useMemo)(()=>e?new h(e):null,[e])}function _(){return(0,l.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(u.PathnameContext)}function v(){(0,l.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function b(){(0,l.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(o.GlobalLayoutRouterContext),t=(0,n.useContext)(u.PathParamsContext);return(0,n.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith(i.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):o&&(r[t[0]]=t[1]),r=e(n,r))}return r}(e.tree):t,[null==e?void 0:e.tree,t])}function g(e){void 0===e&&(e="children"),(0,l.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(o.LayoutRouterContext);return function e(t,r,n,o){let u;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)u=t[1][r];else{var l;let e=t[1];u=null!=(l=e.children)?l:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,a.getSegmentValue)(c);return!s||s.startsWith(i.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,r,!1,o))}(t,e)}function m(e){void 0===e&&(e="children"),(0,l.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=g(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3398:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let n=r(5129),o=r(1674),u=n._(r(6655)),l=r(2988),a=r(2387);r(7720);let i=r(8251);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:r,asNotFound:n,children:a}=e,s=(0,l.usePathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:r,asNotFound:n,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2387:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return o}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8902:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let n=r(6190),o=r(5866);var u=o._("_maxConcurrency"),l=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,r;let o=new Promise((e,n)=>{t=e,r=n}),u=async()=>{try{n._(this,l)[l]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,l)[l]--,n._(this,i)[i]()}};return n._(this,a)[a].push({promiseFn:o,task:u}),n._(this,i)[i](),o}bump(e){let t=n._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,a)[a].splice(t,1)[0];n._(this,a)[a].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),n._(this,u)[u]=e,n._(this,l)[l]=0,n._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(n._(this,l)[l]0){var t;null==(t=n._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},449:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectErrorBoundary:function(){return c},RedirectBoundary:function(){return s}});let n=r(5129),o=r(1674),u=n._(r(6655)),l=r(2988),a=r(4502);function i(e){let{redirect:t,reset:r,redirectType:n}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{n===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),r()})},[t,n,r,o]),null}class c extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,r=(0,l.useRouter)();return(0,o.jsx)(c,{router:r,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7523:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4502:function(e,t,r){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return c},redirect:function(){return s},permanentRedirect:function(){return f},isRedirectError:function(){return d},getURLFromRedirectError:function(){return p},getRedirectTypeFromError:function(){return h},getRedirectStatusCodeFromError:function(){return y}});let u=r(2907),l=r(7839),a=r(7523),i="NEXT_REDIRECT";function c(e,t,r){void 0===r&&(r=a.RedirectStatusCode.TemporaryRedirect);let n=Error(i);n.digest=i+";"+t+";"+e+";"+r+";";let o=u.requestAsyncStorage.getStore();return o&&(n.mutableCookies=o.mutableCookies),n}function s(e,t){void 0===t&&(t="replace");let r=l.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let r=l.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,o]=e.digest.split(";",4),u=Number(o);return t===i&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(u)&&u in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=n||(n={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2533:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(5129),o=r(1674),u=n._(r(6655)),l=r(8251);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2907:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(9115).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return u}});let n=r(9740),o=r(8648);function u(e,t,r,u){void 0===u&&(u=!1);let[l,a,i]=r.slice(-3);if(null===a)return!1;if(3===r.length){let r=a[2];t.rsc=r,t.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),(0,o.fillCacheWithNewSubTreeData)(t,e,r,u);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5634:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{applyRouterStatePatchToFullTree:function(){return a},applyRouterStatePatchToTreeSkipDefault:function(){return i}});let n=r(7970),o=r(8741);function u(e,t,r){void 0===r&&(r=!1);let[l,a]=e,[i,c]=t;if(!r&&i===n.DEFAULT_SEGMENT_KEY&&l!==n.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(l,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=u(a[e],c[e],r):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let n=[l,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}function l(e,t,r,n){let a;void 0===n&&(n=!1);let[i,c,,,s]=t;if(1===e.length)return u(t,r,n);let[f,d]=e;if(!(0,o.matchSegment)(f,i))return null;if(2===e.length)a=u(c[d],r,n);else if(null===(a=l(e.slice(2),c[d],r,n)))return null;let p=[e[0],{...c,[d]:a}];return s&&(p[4]=!0),p}function a(e,t,r){return l(e,t,r,!0)}function i(e,t,r){return l(e,t,r,!1)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5038:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{extractPathFromFlightRouterState:function(){return c},computeChangedPath:function(){return s}});let n=r(7954),o=r(7970),u=r(8741),l=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?e:e[1];function i(e){return e.reduce((e,t)=>""===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===o.DEFAULT_SEGMENT_KEY||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(o.PAGE_SEGMENT_KEY))return"";let u=[r],l=null!=(t=e[1])?t:{},a=l.children?c(l.children):void 0;if(void 0!==a)u.push(a);else for(let[e,t]of Object.entries(l)){if("children"===e)continue;let r=c(t);void 0!==r&&u.push(r)}return i(u)}function s(e,t){let r=function e(t,r){let[o,l]=t,[i,s]=r,f=a(o),d=a(i);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(r))?p:""}for(let t in l)if(s[t]){let r=e(l[t],s[t]);if(null!==r)return a(i)+"/"+r}return null}(e,t);return null==r||"/"===r?r:i(r.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3274:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6250:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return l}});let n=r(3274),o=r(9740),u=r(5038);function l(e){var t;let{buildId:r,initialTree:l,initialSeedData:a,initialCanonicalUrl:i,initialParallelRoutes:c,isServer:s,location:f,initialHead:d}=e,p={lazyData:null,rsc:a[2],prefetchRsc:null,parallelRoutes:s?new Map:c};return(null===c||0===c.size)&&(0,o.fillLazyItemsTillLeafWithHead)(p,void 0,l,a,d),{buildId:r,tree:l,cache:p,prefetchCache:new Map,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:f?(0,n.createHrefFromUrl)(f):i,nextUrl:null!=(t=(0,u.extractPathFromFlightRouterState)(l)||(null==f?void 0:f.pathname))?t:null}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5713:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let n=r(7970);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?(e[0]+"|"+e[1]+"|"+e[2]).toLowerCase():t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},280:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let n=r(3840),o=r(8950),u=r(1378),l=r(706),a=r(651),{createFromFetch:i}=r(9567);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0]}async function s(e,t,r,s,f){let d={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[n.NEXT_ROUTER_PREFETCH_HEADER]="1"),r&&(d[n.NEXT_URL]=r);let p=(0,a.hexHash)([d[n.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[n.NEXT_ROUTER_STATE_TREE],d[n.NEXT_URL]].join(","));try{let t=new URL(e);t.searchParams.set(n.NEXT_RSC_UNION_QUERY,p);let r=await fetch(t,{credentials:"same-origin",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(r.url),a=r.redirected?l:void 0,f=r.headers.get("content-type")||"",h=!!r.headers.get(n.NEXT_DID_POSTPONE_HEADER);if(f!==n.RSC_CONTENT_TYPE_HEADER||!r.ok)return e.hash&&(l.hash=e.hash),c(l.toString());let[y,_]=await i(Promise.resolve(r),{callServer:u.callServer});if(s!==y)return c(r.url);return[_,a,h]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2965:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithDataProperty",{enumerable:!0,get:function(){return function e(t,r,o,u){let l=o.length<=2,[a,i]=o,c=(0,n.createRouterCacheKey)(i),s=r.parallelRoutes.get(a),f=t.parallelRoutes.get(a);f&&f!==s||(f=new Map(s),t.parallelRoutes.set(a,f));let d=null==s?void 0:s.get(c),p=f.get(c);if(l){p&&p.lazyData&&p!==d||f.set(c,{lazyData:u(),rsc:null,prefetchRsc:null,parallelRoutes:new Map});return}if(!p||!d){p||f.set(c,{lazyData:u(),rsc:null,prefetchRsc:null,parallelRoutes:new Map});return}return p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,parallelRoutes:new Map(p.parallelRoutes)},f.set(c,p)),e(p,d,o.slice(2),u)}}});let n=r(5713);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8648:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,r,l,a){let i=l.length<=5,[c,s]=l,f=(0,u.createRouterCacheKey)(s),d=r.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,parallelRoutes:h?new Map(h.parallelRoutes):new Map},h&&(0,n.invalidateCacheByRouterState)(y,h,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,l[2],e,l[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,parallelRoutes:new Map(y.parallelRoutes)},p.set(f,y)),e(y,h,l.slice(2),a))}}});let n=r(436),o=r(9740),u=r(5713);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9740:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,o,u,l,a){if(0===Object.keys(o[1]).length){t.head=l;return}for(let i in o[1]){let c;let s=o[1][i],f=s[0],d=(0,n.createRouterCacheKey)(f),p=null!==u&&void 0!==u[1][i]?u[1][i]:null;if(r){let n=r.parallelRoutes.get(i);if(n){let r,o=new Map(n),u=o.get(d);r=null!==p?{lazyData:null,rsc:p[2],prefetchRsc:null,parallelRoutes:new Map(null==u?void 0:u.parallelRoutes)}:a&&u?{lazyData:u.lazyData,rsc:u.rsc,prefetchRsc:u.prefetchRsc,parallelRoutes:new Map(u.parallelRoutes)}:{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map(null==u?void 0:u.parallelRoutes)},o.set(d,r),e(r,u,s,p||null,l,a),t.parallelRoutes.set(i,o);continue}}c=null!==p?{lazyData:null,rsc:p[2],prefetchRsc:null,parallelRoutes:new Map}:{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map};let h=t.parallelRoutes.get(i);h?h.set(d,c):t.parallelRoutes.set(i,new Map([[d,c]])),e(c,void 0,s,p,l,a)}}}});let n=r(5713);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},807:function(e,t){"use strict";var r,n;function o(e){let{kind:t,prefetchTime:r,lastUsedTime:n}=e;return Date.now()<(null!=n?n:r)+3e4?n?"reusable":"fresh":"auto"===t&&Date.now(){for(let r of t[0]){let t=r.slice(0,-3),n=r[r.length-3],l=r[r.length-2],a=r[r.length-1];"string"!=typeof t&&function(e,t,r,n,l){let a=e;for(let e=0;e{c(e,t)})}function i(e,t,r,n){let o=e[1],l=null!==t?t[1]:null,a=new Map;for(let e in o){let t=o[e],c=null!==l?l[e]:null,s=t[0],f=(0,u.createRouterCacheKey)(s),d=i(t,void 0===c?null:c,r,n),p=new Map;p.set(f,d),a.set(e,p)}let c=0===a.size,s=null!==t?t[2]:null;return{lazyData:null,parallelRoutes:a,prefetchRsc:n||void 0===s?null:s,prefetchHead:!n&&c?r:null,rsc:p(),head:c?p():null}}function c(e,t){let r=e.node;if(null===r)return;let n=e.children;if(null===n)s(e.route,r,t);else for(let e of n.values())c(e,t);e.node=null}function s(e,t,r){let n=e[1],o=t.parallelRoutes;for(let e in n){let t=n[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&s(t,c,r)}let l=t.rsc;d(l)&&(null===r?l.resolve(null):l.reject(r));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=f,r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9633:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createPrefetchCacheKey",{enumerable:!0,get:function(){return l}});let n=r(2265),o=r(7302),u=r(3274);function l(e,t){let r=(0,u.createHrefFromUrl)(e,!1);return t&&!(0,o.pathHasPrefix)(r,t)?(0,n.addPathPrefix)(r,""+t+"%"):r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},712:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fastRefreshReducer",{enumerable:!0,get:function(){return n}}),r(280),r(3274),r(5634),r(9236),r(8854),r(7089),r(3961),r(8950),r(8682);let n=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4674:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return o}});let n=r(5713);function o(e,t){return function e(t,r,o){if(0===Object.keys(r).length)return[t,o];for(let u in r){let[l,a]=r[u],i=t.parallelRoutes.get(u);if(!i)continue;let c=(0,n.createRouterCacheKey)(l),s=i.get(c);if(!s)continue;let f=e(s,a,o+"/"+c);if(f)return f}return null}(e,t,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8423:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8854:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleExternalUrl:function(){return g},navigateReducer:function(){return P}});let n=r(280),o=r(3274),u=r(8039),l=r(2965),a=r(5634),i=r(3686),c=r(9236),s=r(706),f=r(7089),d=r(3961),p=r(807),h=r(8322),y=r(1831),_=r(8950),v=r(7970);r(2198);let b=r(9633);function g(e,t,r,n){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=n,t.scrollableSegments=void 0,(0,f.handleMutable)(e,t)}function m(e){let t=[],[r,n]=e;if(0===Object.keys(n).length)return[[r]];for(let[e,o]of Object.entries(n))for(let n of m(o))""===r?t.push([e,...n]):t.push([r,e,...n]);return t}let P=function(e,t){let{url:r,isExternalUrl:P,navigateType:j,shouldScroll:R}=t,O={},{hash:S}=r,E=(0,o.createHrefFromUrl)(r),w="push"===j;if((0,h.prunePrefetchCache)(e.prefetchCache),O.preserveCustomHistoryState=!1,P)return g(e,O,r.toString(),w);let M=(0,b.createPrefetchCacheKey)(r,e.nextUrl),T=e.prefetchCache.get(M);if(!T){let t={data:(0,n.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,void 0),kind:s.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:e.tree,lastUsedTime:null};e.prefetchCache.set(M,t),T=t}let x=(0,p.getPrefetchEntryCacheStatus)(T),{treeAtTimeOfPrefetch:C,data:N}=T;return y.prefetchQueue.bump(N),N.then(t=>{let[s,h,y]=t;if(T&&!T.lastUsedTime&&(T.lastUsedTime=Date.now()),"string"==typeof s)return g(e,O,s,w);let b=e.tree,P=e.cache,j=[];for(let t of s){let o=t.slice(0,-4),s=t.slice(-3)[0],f=["",...o],h=(0,a.applyRouterStatePatchToTreeSkipDefault)(f,b,s);if(null===h&&(h=(0,a.applyRouterStatePatchToTreeSkipDefault)(f,C,s)),null!==h){if((0,c.isNavigatingToNewRootLayout)(b,h))return g(e,O,E,w);let a=(0,_.createEmptyCacheNode)(),R=(0,d.applyFlightData)(P,a,t,(null==T?void 0:T.kind)==="auto"&&x===p.PrefetchCacheEntryStatus.reusable);for(let t of((!R&&x===p.PrefetchCacheEntryStatus.stale||y)&&(R=function(e,t,r,n,o){let u=!1;for(let a of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.parallelRoutes=new Map(t.parallelRoutes),m(n).map(e=>[...r,...e])))(0,l.fillCacheWithDataProperty)(e,t,a,o),u=!0;return u}(a,P,o,s,()=>(0,n.fetchServerResponse)(r,b,e.nextUrl,e.buildId))),(0,i.shouldHardNavigate)(f,b)?(a.rsc=P.rsc,a.prefetchRsc=P.prefetchRsc,(0,u.invalidateCacheBelowFlightSegmentPath)(a,P,o),O.cache=a):R&&(O.cache=a),P=a,b=h,m(s))){let e=[...o,...t];e[e.length-1]!==v.DEFAULT_SEGMENT_KEY&&j.push(e)}}}return O.patchedTree=b,O.canonicalUrl=h?(0,o.createHrefFromUrl)(h):E,O.pendingPush=w,O.scrollableSegments=j,O.hashFragment=S,O.shouldScroll=R,(0,f.handleMutable)(e,O)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1831:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefetchQueue:function(){return c},prefetchReducer:function(){return s}});let n=r(280),o=r(706),u=r(8322),l=r(3840),a=r(8902),i=r(9633),c=new a.PromiseQueue(5);function s(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;r.searchParams.delete(l.NEXT_RSC_UNION_QUERY);let a=(0,i.createPrefetchCacheKey)(r,e.nextUrl),s=e.prefetchCache.get(a);if(s&&(s.kind===o.PrefetchKind.TEMPORARY&&e.prefetchCache.set(a,{...s,kind:t.kind}),!(s.kind===o.PrefetchKind.AUTO&&t.kind===o.PrefetchKind.FULL)))return e;let f=c.enqueue(()=>(0,n.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,t.kind));return e.prefetchCache.set(a,{treeAtTimeOfPrefetch:e.tree,data:f,kind:t.kind,prefetchTime:Date.now(),lastUsedTime:null}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8322:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prunePrefetchCache",{enumerable:!0,get:function(){return o}});let n=r(807);function o(e){for(let[t,r]of e)(0,n.getPrefetchEntryCacheStatus)(r)===n.PrefetchCacheEntryStatus.expired&&e.delete(t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},865:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return d}});let n=r(280),o=r(3274),u=r(5634),l=r(9236),a=r(8854),i=r(7089),c=r(9740),s=r(8950),f=r(8682);function d(e,t){let{origin:r}=t,d={},p=e.canonicalUrl,h=e.tree;d.preserveCustomHistoryState=!1;let y=(0,s.createEmptyCacheNode)();return y.lazyData=(0,n.fetchServerResponse)(new URL(p,r),[h[0],h[1],h[2],"refetch"],e.nextUrl,e.buildId),y.lazyData.then(r=>{let[n,s]=r;if("string"==typeof n)return(0,a.handleExternalUrl)(e,d,n,e.pushRef.pendingPush);for(let r of(y.lazyData=null,n)){if(3!==r.length)return console.log("REFRESH FAILED"),e;let[n]=r,i=(0,u.applyRouterStatePatchToFullTree)([""],h,n);if(null===i)return(0,f.handleSegmentMismatch)(e,t,n);if((0,l.isNavigatingToNewRootLayout)(h,i))return(0,a.handleExternalUrl)(e,d,p,e.pushRef.pendingPush);let _=s?(0,o.createHrefFromUrl)(s):void 0;s&&(d.canonicalUrl=_);let[v,b]=r.slice(-2);if(null!==v){let e=v[2];y.rsc=e,y.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(y,void 0,n,v,b),d.cache=y,d.prefetchCache=new Map}d.patchedTree=i,d.canonicalUrl=p,h=i}return(0,i.handleMutable)(e,d)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7286:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let n=r(3274),o=r(5038);function u(e,t){var r;let{url:u,tree:l}=t,a=(0,n.createHrefFromUrl)(u),i=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:i,prefetchCache:e.prefetchCache,tree:l,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(l))?r:u.pathname}}r(2198),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8756:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return b}});let n=r(1378),o=r(3840),u=r(5380),l=r(3274),a=r(8854),i=r(5634),c=r(9236),s=r(7089),f=r(9740),d=r(8950),p=r(5038),h=r(8682),{createFromFetch:y,encodeReply:_}=r(9567);async function v(e,t){let r,{actionId:l,actionArgs:a}=t,i=await _(a),c=(0,p.extractPathFromFlightRouterState)(e.tree),s=e.nextUrl&&e.nextUrl!==c,f=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:l,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...s?{[o.NEXT_URL]:e.nextUrl}:{}},body:i}),d=f.headers.get("x-action-redirect");try{let e=JSON.parse(f.headers.get("x-action-revalidated")||"[[],0,0]");r={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){r={paths:[],tag:!1,cookie:!1}}let h=d?new URL((0,u.addBasePath)(d),new URL(e.canonicalUrl,window.location.href)):void 0;if(f.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await y(Promise.resolve(f),{callServer:n.callServer});if(d){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:h,revalidatedParts:r}}let[t,[,o]]=null!=e?e:[];return{actionResult:t,actionFlightData:o,redirectLocation:h,revalidatedParts:r}}return{redirectLocation:h,revalidatedParts:r}}function b(e,t){let{resolve:r,reject:n}=t,o={},u=e.canonicalUrl,p=e.tree;return o.preserveCustomHistoryState=!1,o.inFlightServerAction=v(e,t),o.inFlightServerAction.then(n=>{let{actionResult:y,actionFlightData:_,redirectLocation:v}=n;if(v&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!_)return(o.actionResultResolved||(r(y),o.actionResultResolved=!0),v)?(0,a.handleExternalUrl)(e,o,v.href,e.pushRef.pendingPush):e;if("string"==typeof _)return(0,a.handleExternalUrl)(e,o,_,e.pushRef.pendingPush);for(let r of(o.inFlightServerAction=null,_)){if(3!==r.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[n]=r,l=(0,i.applyRouterStatePatchToFullTree)([""],p,n);if(null===l)return(0,h.handleSegmentMismatch)(e,t,n);if((0,c.isNavigatingToNewRootLayout)(p,l))return(0,a.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[s,y]=r.slice(-2),_=null!==s?s[2]:null;if(null!==_){let e=(0,d.createEmptyCacheNode)();e.rsc=_,e.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(e,void 0,n,s,y),o.cache=e,o.prefetchCache=new Map}o.patchedTree=l,o.canonicalUrl=u,p=l}if(v){let e=(0,l.createHrefFromUrl)(v,!1);o.canonicalUrl=e}return o.actionResultResolved||(r(y),o.actionResultResolved=!0),(0,s.handleMutable)(e,o)},t=>{if("rejected"===t.status)return o.actionResultResolved||(n(t.reason),o.actionResultResolved=!0),e;throw t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3789:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return f}});let n=r(3274),o=r(5634),u=r(9236),l=r(8854),a=r(3961),i=r(7089),c=r(8950),s=r(8682);function f(e,t){let{flightData:r,overrideCanonicalUrl:f}=t,d={};if(d.preserveCustomHistoryState=!1,"string"==typeof r)return(0,l.handleExternalUrl)(e,d,r,e.pushRef.pendingPush);let p=e.tree,h=e.cache;for(let i of r){let r=i.slice(0,-4),[y]=i.slice(-3,-2),_=(0,o.applyRouterStatePatchToTreeSkipDefault)(["",...r],p,y);if(null===_)return(0,s.handleSegmentMismatch)(e,t,y);if((0,u.isNavigatingToNewRootLayout)(p,_))return(0,l.handleExternalUrl)(e,d,e.canonicalUrl,e.pushRef.pendingPush);let v=f?(0,n.createHrefFromUrl)(f):void 0;v&&(d.canonicalUrl=v);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(h,b,i),d.patchedTree=_,d.cache=b,h=b,p=_}return(0,i.handleMutable)(e,d)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},706:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return u},ACTION_RESTORE:function(){return l},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return i},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return s},isThenable:function(){return f}});let o="refresh",u="navigate",l="restore",a="server-patch",i="prefetch",c="fast-refresh",s="server-action";function f(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6214:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let n=r(706),o=r(8854),u=r(3789),l=r(7286),a=r(865),i=r(1831),c=r(712),s=r(8756),f=function(e,t){switch(t.type){case n.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case n.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case n.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case n.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case n.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case n.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case n.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3686:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[o,u]=r,[l,a]=t;return(0,n.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),u[a]):!!Array.isArray(l)}}});let n=r(8741);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9031:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return o}});let n=r(7103);function o(){return new Proxy({},{get(e,t){"string"==typeof t&&(0,n.staticGenerationBailout)("searchParams."+t)}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8414:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(9115).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7103:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isStaticGenBailoutError:function(){return a},staticGenerationBailout:function(){return c}});let n=r(9907),o=r(8414),u="NEXT_STATIC_GEN_BAILOUT";class l extends Error{constructor(...e){super(...e),this.code=u}}function a(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===u}function i(e,t){let{dynamic:r,link:n}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:"")}let c=(e,t)=>{let{dynamic:r,link:u}=void 0===t?{}:t,a=o.staticGenerationAsyncStorage.getStore();if(!a)return!1;if(a.forceStatic)return!0;if(a.dynamicShouldError)throw new l(i(e,{link:u,dynamic:null!=r?r:"error"}));let c=i(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==a.postpone||a.postpone.call(a,e),a.revalidate=0,a.isStaticGeneration){let t=new n.DynamicServerError(c);throw a.dynamicUsageDescription=e,a.dynamicUsageStack=t.stack,t}return!1};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9256:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}}),r(907);let n=r(1674);r(6655);let o=r(9031);function u(e){let{Component:t,propsForComponent:r,isStaticGeneration:u}=e;if(u){let e=(0,o.createSearchParamsBailoutProxy)();return(0,n.jsx)(t,{searchParams:e,...r})}return(0,n.jsx)(t,{...r})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2705:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{useUnwrapState:function(){return a},useReducerWithReduxDevtools:function(){return i}});let n=r(5129)._(r(6655)),o=r(706),u=r(1927);function l(e){if(e instanceof Map){let t={};for(let[r,n]of e.entries()){if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n._bundlerConfig){t[r]="FlightData";continue}}t[r]=l(n)}return t}if("object"==typeof e&&null!==e){let t={};for(let r in e){let n=e[r];if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n.hasOwnProperty("_bundlerConfig")){t[r]="FlightData";continue}}t[r]=l(n)}return t}return Array.isArray(e)?e.map(l):e}function a(e){return(0,o.isThenable)(e)?(0,n.use)(e):e}let i=function(e){let[t,r]=n.default.useState(e),o=(0,n.useContext)(u.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let a=(0,n.useRef)(),i=(0,n.useRef)();return(0,n.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(l(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,n.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,r)},[o,e]),(0,n.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},l(e))},[])]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7685:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(7302);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8707:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let n=r(969),o=r(3465),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:u}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+u};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7226:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(9006);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,n.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2616:function(e,t,r){"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(7685),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3930:function(e,t,r){"use strict";var n=r(6859);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},6859:function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(4513)},3523:function(e,t,r){"use strict";var n=r(6859),o=r(6655),u={stream:!0},l=new Map;function a(e){var t=r(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function i(){}var c=new Map,s=r.u;r.u=function(e){var t=c.get(e);return void 0!==t?t:s(e)};var f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,d=Symbol.for("react.element"),p=Symbol.for("react.provider"),h=Symbol.for("react.server_context"),y=Symbol.for("react.lazy"),_=Symbol.for("react.default_value"),v=Symbol.iterator,b=Array.isArray,g=Object.getPrototypeOf,m=Object.prototype,P=new WeakMap,j=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function R(e,t,r,n){this.status=e,this.value=t,this.reason=r,this._response=n}function O(e){switch(e.status){case"resolved_model":C(e);break;case"resolved_module":N(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function S(e,t){for(var r=0;rh?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(g=d[p++])?h=4:v=v<<4|(96d.length&&(g=-1)}var m=d.byteOffset+p;if(-1>>1,o=e[n];if(0>>1;nu(i,r))cu(s,i)?(e[n]=s,e[c]=r,n=c):(e[n]=i,e[a]=r,n=a);else if(cu(s,r))e[n]=s,e[c]=r,n=c;else break}}return t}function u(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function P(e){for(var t=n(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,r(s,t);else break;t=n(f)}}function j(e){if(v=!1,P(e),!_){if(null!==n(s))_=!0,C();else{var t=n(f);null!==t&&N(j,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var R=!1,O=-1,S=5,E=-1;function w(){return!(t.unstable_now()-Ee&&w());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,P(e),r=!0;break t}p===n(s)&&o(s),P(e)}else o(s);p=n(s)}if(null!==p)r=!0;else{var c=n(f);null!==c&&N(j,c.startTime-e),r=!1}}break e}finally{p=null,h=u,y=!1}r=void 0}}finally{r?l():R=!1}}}if("function"==typeof m)l=function(){m(M)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,x=T.port2;T.port1.onmessage=M,l=function(){x.postMessage(null)}}else l=function(){b(M,0)};function C(){R||(R=!0,l())}function N(e,r){O=b(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,C())},t.unstable_forceFrameRate=function(e){0>e||125l?(e.sortIndex=u,r(f,e),null===n(s)&&e===n(f)&&(v?(g(O),O=-1):v=!0,N(j,u-l))):(e.sortIndex=a,r(s,e),_||y||(_=!0,C())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},9550:function(e,t,r){"use strict";e.exports=r(5758)},5884:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let n=r(7954);function o(e){let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:"dynamic",param:e.slice(1,-1)}:null}},7954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return u},extractInterceptionRouteInformation:function(){return l}});let n=r(3844),o=["(..)(..)","(.)","(..)","(...)"];function u(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,r,u;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,u]=e.split(r,2);break}if(!t||!r||!u)throw Error("Invalid interception route: ".concat(e,". Must be in the format //(..|...|..)(..)/"));switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":u="/"===t?"/".concat(u):t+"/"+u;break;case"(..)":if("/"===t)throw Error("Invalid interception route: ".concat(e,". Cannot use (..) marker at the root level, use (.) instead."));u=t.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Error("Invalid interception route: ".concat(e,". Cannot use (..)(..) marker at the root level or one level up."));u=l.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:u}}},8251:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},LayoutRouterContext:function(){return u},GlobalLayoutRouterContext:function(){return l},TemplateContext:function(){return a},MissingSlotContext:function(){return i}});let n=r(907)._(r(6655)),o=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(new Set)},651:function(e,t){"use strict";function r(e){let t=5381;for(let r=0;r>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},9188:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(907)._(r(6655)).default.createContext({})},6379:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{SearchParamsContext:function(){return o},PathnameContext:function(){return u},PathParamsContext:function(){return l}});let n=r(6655),o=(0,n.createContext)(null),u=(0,n.createContext)(null),l=(0,n.createContext)(null)},9006:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},6482:function(e,t){"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},1927:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let n=r(5129),o=r(706),u=r(6214),l=n._(r(6655)),a=l.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending&&c({actionQueue:e,action:e.pending,setState:t}))}async function c(e){let{actionQueue:t,action:r,setState:n}=e,u=t.state;if(!u)throw Error("Invariant: Router state not initialized");t.pending=r;let l=r.payload,a=t.action(u,l);function c(e){if(r.discarded){t.needsRefresh&&null===t.pending&&(t.needsRefresh=!1,t.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},n));return}t.state=e,t.devToolsInstance&&t.devToolsInstance.send(l,e),i(t,n),r.resolve(e)}(0,o.isThenable)(a)?a.then(c,e=>{i(t,n),r.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,r)=>(function(e,t,r){let n={resolve:r,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{n={resolve:e,reject:t}});(0,l.startTransition)(()=>{r(e)})}let u={payload:t,next:null,resolve:n.resolve,reject:n.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:r})):t.type===o.ACTION_NAVIGATE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:r})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,r),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},2265:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(3465);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:u}=(0,n.parsePath)(e);return""+t+r+o+u}},3844:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}});let n=r(6482),o=r(7970);function u(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},2554:function(e,t){"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},4910:function(e,t){"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},3465:function(e,t){"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},7302:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(3465);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},969:function(e,t){"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},7970:function(e,t){"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isGroupSegment:function(){return r},PAGE_SEGMENT_KEY:function(){return n},DEFAULT_SEGMENT_KEY:function(){return o}});let n="__PAGE__",o="__DEFAULT__"},7167:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let n=r(5129)._(r(6655)),o=n.default.createContext(null);function u(e){let t=(0,n.useContext)(o);t&&t(e)}},7720:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},9115:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return u}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6190:function(e,t,r){"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:function(){return n},_class_private_field_loose_base:function(){return n}})},5866:function(e,t,r){"use strict";r.r(t),r.d(t,{_:function(){return o},_class_private_field_loose_key:function(){return o}});var n=0;function o(e){return"__private_"+n+++"_"+e}},907:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},5129:function(e,t,r){"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=u?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(o,l,a):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}}]); \ No newline at end of file diff --git a/apps/web/.next/static/chunks/app/_not-found-2c355b04f2805185.js b/apps/web/.next/static/chunks/app/_not-found-2c355b04f2805185.js new file mode 100644 index 00000000..a3e43dd6 --- /dev/null +++ b/apps/web/.next/static/chunks/app/_not-found-2c355b04f2805185.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{700:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found",function(){return n(8217)}])},8217:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}}),n(907);let o=n(1674);n(6655);let r={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function i(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"404: This page could not be found."}),(0,o.jsx)("div",{style:r.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,o.jsx)("h1",{className:"next-error-h1",style:r.h1,children:"404"}),(0,o.jsx)("div",{style:r.desc,children:(0,o.jsx)("h2",{style:r.h2,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[293,997,744],function(){return e(e.s=700)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/apps/web/.next/static/chunks/app/account/page-0cdf2840d5548012.js b/apps/web/.next/static/chunks/app/account/page-0cdf2840d5548012.js new file mode 100644 index 00000000..331162ce --- /dev/null +++ b/apps/web/.next/static/chunks/app/account/page-0cdf2840d5548012.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[346],{4446:function(e,n,t){Promise.resolve().then(t.bind(t,6695))},6695:function(e,n,t){"use strict";t.r(n);var u=t(6655);n.default=function(e){let{jwt:n}=e;return(0,u.useEffect)(()=>{setInterval(()=>{window.postMessage({jwt:n},"*")},1e3)},[n]),null}}},function(e){e.O(0,[293,997,744],function(){return e(e.s=4446)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/apps/web/.next/static/chunks/app/layout-d03d6a3648fc999a.js b/apps/web/.next/static/chunks/app/layout-d03d6a3648fc999a.js new file mode 100644 index 00000000..c9157ded --- /dev/null +++ b/apps/web/.next/static/chunks/app/layout-d03d6a3648fc999a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{8895:function(a,e,n){Promise.resolve().then(n.t.bind(n,425,23)),Promise.resolve().then(n.t.bind(n,3744,23))},3744:function(){},425:function(a){a.exports={style:{fontFamily:"'__Inter_aaf875', '__Inter_Fallback_aaf875'",fontStyle:"normal"},className:"__className_aaf875",variable:"__variable_aaf875"}}},function(a){a.O(0,[293,997,744],function(){return a(a.s=8895)}),_N_E=a.O()}]); \ No newline at end of file diff --git a/apps/web/.next/static/chunks/app/page-4446d9ce009d4a80.js b/apps/web/.next/static/chunks/app/page-4446d9ce009d4a80.js new file mode 100644 index 00000000..5334f6ec --- /dev/null +++ b/apps/web/.next/static/chunks/app/page-4446d9ce009d4a80.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{6166:function(){}},function(n){n.O(0,[293,997,744],function(){return n(n.s=6166)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/apps/web/.next/static/chunks/framework-9e68550641db712d.js b/apps/web/.next/static/chunks/framework-9e68550641db712d.js new file mode 100644 index 00000000..c8937976 --- /dev/null +++ b/apps/web/.next/static/chunks/framework-9e68550641db712d.js @@ -0,0 +1,33 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{2967:function(e,n,t){/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r,l,a,u,o,i,s=t(2784),c=t(4616);function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t