From aa1b57bbcd99da4c6d68c145f7c07ea7bd35c8dc Mon Sep 17 00:00:00 2001 From: Dhravya Date: Fri, 23 Feb 2024 16:04:49 -0700 Subject: chaos --- .eslintrc.cjs | 3 +- .gitignore | 3 + apps/anycontext-front/.eslintrc.json | 9 + apps/anycontext-front/.gitignore | 36 + apps/anycontext-front/README.md | 58 + apps/anycontext-front/env.d.ts | 8 + apps/anycontext-front/next.config.mjs | 20 + apps/anycontext-front/package.json | 35 + apps/anycontext-front/pnpm-lock.yaml | 5142 ++++++++++++++++++++ apps/anycontext-front/postcss.config.js | 6 + apps/anycontext-front/public/next.svg | 1 + apps/anycontext-front/public/vercel.svg | 1 + apps/anycontext-front/src/app/MessagePoster.tsx | 19 + .../src/app/api/[...nextauth]/route.ts | 2 + apps/anycontext-front/src/app/api/hello/route.ts | 22 + apps/anycontext-front/src/app/api/store/route.ts | 22 + apps/anycontext-front/src/app/favicon.ico | Bin 0 -> 25931 bytes apps/anycontext-front/src/app/globals.css | 33 + apps/anycontext-front/src/app/layout.tsx | 22 + apps/anycontext-front/src/app/not-found.tsx | 58 + apps/anycontext-front/src/app/page.tsx | 11 + apps/anycontext-front/src/env.js | 67 + apps/anycontext-front/src/server/auth.ts | 37 + apps/anycontext-front/src/server/db/index.ts | 8 + apps/anycontext-front/src/server/db/schema.ts | 111 + apps/anycontext-front/tailwind.config.ts | 20 + apps/anycontext-front/tsconfig.json | 29 + apps/anycontext-front/wrangler.toml | 62 + apps/extension/.eslintrc.cjs | 18 + apps/extension/.gitignore | 24 + apps/extension/README.md | 30 + apps/extension/index.html | 13 + apps/extension/manifest.json | 28 + apps/extension/package.json | 28 + apps/extension/postcss.config.js | 6 + apps/extension/public/vite.svg | 1 + apps/extension/src/App.tsx | 75 + apps/extension/src/assets/react.svg | 1 + apps/extension/src/background.ts | 9 + apps/extension/src/content.tsx | 16 + apps/extension/src/index.css | 3 + apps/extension/src/main.tsx | 10 + apps/extension/src/types/zods.ts | 19 + apps/extension/src/vite-env.d.ts | 1 + apps/extension/tailwind.config.js | 12 + apps/extension/tsconfig.json | 26 + apps/extension/tsconfig.node.json | 11 + apps/extension/vite.config.ts | 11 + ...ig.ts.timestamp-1708724797406-b8029634cc785.mjs | 46 + ...ig.ts.timestamp-1708724837352-e87e647be4bdb.mjs | 46 + ...ig.ts.timestamp-1708725079494-4cfac9d4a560f.mjs | 46 + ...ig.ts.timestamp-1708725168622-ee30a92d0f2bc.mjs | 46 + apps/web/.next/BUILD_ID | 2 +- apps/web/.next/app-build-manifest.json | 25 +- apps/web/.next/app-path-routes-manifest.json | 2 +- apps/web/.next/build-manifest.json | 12 +- .../cache/webpack/client-development/0.pack.gz | Bin 35919 -> 0 bytes .../cache/webpack/client-development/1.pack.gz | Bin 15200683 -> 0 bytes .../cache/webpack/client-development/2.pack.gz | Bin 65372 -> 0 bytes .../cache/webpack/client-development/index.pack.gz | Bin 95696 -> 0 bytes .../webpack/client-development/index.pack.gz.old | Bin 2025 -> 0 bytes .../.next/cache/webpack/client-production/0.pack | Bin 13094356 -> 13212677 bytes .../.next/cache/webpack/client-production/1.pack | Bin 792 -> 0 bytes .../.next/cache/webpack/client-production/2.pack | Bin 309117 -> 0 bytes .../.next/cache/webpack/client-production/3.pack | Bin 792 -> 0 bytes .../.next/cache/webpack/client-production/4.pack | Bin 792 -> 0 bytes .../.next/cache/webpack/client-production/5.pack | Bin 1825 -> 0 bytes .../cache/webpack/client-production/index.pack | Bin 1569295 -> 1590859 bytes .../cache/webpack/client-production/index.pack.old | Bin 1568922 -> 0 bytes .../cache/webpack/server-development/0.pack.gz | Bin 4465713 -> 0 bytes .../cache/webpack/server-development/1.pack.gz | Bin 29065 -> 0 bytes .../cache/webpack/server-development/2.pack.gz | Bin 2910740 -> 0 bytes .../cache/webpack/server-development/index.pack.gz | Bin 69361 -> 0 bytes .../webpack/server-development/index.pack.gz.old | Bin 69408 -> 0 bytes .../.next/cache/webpack/server-production/0.pack | Bin 27152203 -> 6517288 bytes .../cache/webpack/server-production/index.pack | Bin 5147191 -> 968460 bytes apps/web/.next/prerender-manifest.js | 2 +- apps/web/.next/prerender-manifest.json | 2 +- apps/web/.next/required-server-files.json | 2 +- apps/web/.next/routes-manifest.json | 2 +- apps/web/.next/server/app-paths-manifest.json | 5 +- apps/web/.next/server/app/_not-found.html | 2 +- apps/web/.next/server/app/_not-found.js | 2 +- apps/web/.next/server/app/_not-found.js.nft.json | 2 +- apps/web/.next/server/app/_not-found.rsc | 2 +- .../app/_not-found_client-reference-manifest.js | 2 +- apps/web/.next/server/app/account/page.js | 1 - apps/web/.next/server/app/account/page.js.nft.json | 1 - .../app/account/page_client-reference-manifest.js | 1 - .../server/app/api/auth/[...nextauth]/route.js | 417 +- .../app/api/auth/[...nextauth]/route.js.nft.json | 1 - apps/web/.next/server/app/api/store/route.js | 32 +- .../.next/server/app/api/store/route.js.nft.json | 1 - apps/web/.next/server/app/index.html | 1 - apps/web/.next/server/app/index.meta | 5 - apps/web/.next/server/app/index.rsc | 5 - apps/web/.next/server/app/page.js | 38 +- apps/web/.next/server/app/page.js.nft.json | 1 - .../server/app/page_client-reference-manifest.js | 2 +- apps/web/.next/server/chunks/369.js | 1 - apps/web/.next/server/chunks/38.js | 1 - apps/web/.next/server/chunks/917.js | 13 - .../.next/server/functions-config-manifest.json | 2 +- apps/web/.next/server/middleware-build-manifest.js | 2 +- apps/web/.next/server/middleware-manifest.json | 65 +- apps/web/.next/server/pages/404.html | 2 +- apps/web/.next/server/pages/500.html | 2 +- apps/web/.next/server/server-reference-manifest.js | 2 +- .../.next/server/server-reference-manifest.json | 2 +- apps/web/.next/server/webpack-runtime.js | 2 +- .../static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js | 1 - .../static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js | 1 - .../.next/static/chunks/997-22e52d7003e9633c.js | 1 - .../chunks/app/_not-found-2c355b04f2805185.js | 1 - .../chunks/app/account/page-0cdf2840d5548012.js | 1 - .../static/chunks/app/layout-d03d6a3648fc999a.js | 1 - .../static/chunks/app/page-4446d9ce009d4a80.js | 1 - .../.next/static/chunks/main-2f8ae24bc202a544.js | 1 - .../static/chunks/main-app-6394067cfc5308ad.js | 1 - apps/web/.next/trace | 38 +- apps/web/.next/types/app/account/page.ts | 79 - apps/web/next.config.js | 1 + apps/web/package.json | 4 +- apps/web/src/app/account/client.tsx | 20 - apps/web/src/app/account/page.tsx | 10 - apps/web/src/app/api/auth/[...nextauth]/route.ts | 9 +- apps/web/src/app/api/store/route.ts | 3 +- apps/web/src/app/layout.tsx | 16 +- apps/web/src/app/page.tsx | 9 +- apps/web/src/env.js | 2 +- apps/web/src/server/auth.ts | 79 +- apps/web/src/server/db/index.ts | 8 +- apps/web/tsconfig.json | 82 +- apps/web/wrangler.toml | 9 + package.json | 11 +- 135 files changed, 7061 insertions(+), 363 deletions(-) create mode 100644 apps/anycontext-front/.eslintrc.json create mode 100644 apps/anycontext-front/.gitignore create mode 100644 apps/anycontext-front/README.md create mode 100644 apps/anycontext-front/env.d.ts create mode 100644 apps/anycontext-front/next.config.mjs create mode 100644 apps/anycontext-front/package.json create mode 100644 apps/anycontext-front/pnpm-lock.yaml create mode 100644 apps/anycontext-front/postcss.config.js create mode 100644 apps/anycontext-front/public/next.svg create mode 100644 apps/anycontext-front/public/vercel.svg create mode 100644 apps/anycontext-front/src/app/MessagePoster.tsx create mode 100644 apps/anycontext-front/src/app/api/[...nextauth]/route.ts create mode 100644 apps/anycontext-front/src/app/api/hello/route.ts create mode 100644 apps/anycontext-front/src/app/api/store/route.ts create mode 100644 apps/anycontext-front/src/app/favicon.ico create mode 100644 apps/anycontext-front/src/app/globals.css create mode 100644 apps/anycontext-front/src/app/layout.tsx create mode 100644 apps/anycontext-front/src/app/not-found.tsx create mode 100644 apps/anycontext-front/src/app/page.tsx create mode 100644 apps/anycontext-front/src/env.js create mode 100644 apps/anycontext-front/src/server/auth.ts create mode 100644 apps/anycontext-front/src/server/db/index.ts create mode 100644 apps/anycontext-front/src/server/db/schema.ts create mode 100644 apps/anycontext-front/tailwind.config.ts create mode 100644 apps/anycontext-front/tsconfig.json create mode 100644 apps/anycontext-front/wrangler.toml create mode 100644 apps/extension/.eslintrc.cjs create mode 100644 apps/extension/.gitignore create mode 100644 apps/extension/README.md create mode 100644 apps/extension/index.html create mode 100644 apps/extension/manifest.json create mode 100644 apps/extension/package.json create mode 100644 apps/extension/postcss.config.js create mode 100644 apps/extension/public/vite.svg create mode 100644 apps/extension/src/App.tsx create mode 100644 apps/extension/src/assets/react.svg create mode 100644 apps/extension/src/background.ts create mode 100644 apps/extension/src/content.tsx create mode 100644 apps/extension/src/index.css create mode 100644 apps/extension/src/main.tsx create mode 100644 apps/extension/src/types/zods.ts create mode 100644 apps/extension/src/vite-env.d.ts create mode 100644 apps/extension/tailwind.config.js create mode 100644 apps/extension/tsconfig.json create mode 100644 apps/extension/tsconfig.node.json create mode 100644 apps/extension/vite.config.ts create mode 100644 apps/extension/vite.config.ts.timestamp-1708724797406-b8029634cc785.mjs create mode 100644 apps/extension/vite.config.ts.timestamp-1708724837352-e87e647be4bdb.mjs create mode 100644 apps/extension/vite.config.ts.timestamp-1708725079494-4cfac9d4a560f.mjs create mode 100644 apps/extension/vite.config.ts.timestamp-1708725168622-ee30a92d0f2bc.mjs delete mode 100644 apps/web/.next/cache/webpack/client-development/0.pack.gz delete mode 100644 apps/web/.next/cache/webpack/client-development/1.pack.gz delete mode 100644 apps/web/.next/cache/webpack/client-development/2.pack.gz delete mode 100644 apps/web/.next/cache/webpack/client-development/index.pack.gz delete mode 100644 apps/web/.next/cache/webpack/client-development/index.pack.gz.old delete mode 100644 apps/web/.next/cache/webpack/client-production/1.pack delete mode 100644 apps/web/.next/cache/webpack/client-production/2.pack delete mode 100644 apps/web/.next/cache/webpack/client-production/3.pack delete mode 100644 apps/web/.next/cache/webpack/client-production/4.pack delete mode 100644 apps/web/.next/cache/webpack/client-production/5.pack delete mode 100644 apps/web/.next/cache/webpack/client-production/index.pack.old delete mode 100644 apps/web/.next/cache/webpack/server-development/0.pack.gz delete mode 100644 apps/web/.next/cache/webpack/server-development/1.pack.gz delete mode 100644 apps/web/.next/cache/webpack/server-development/2.pack.gz delete mode 100644 apps/web/.next/cache/webpack/server-development/index.pack.gz delete mode 100644 apps/web/.next/cache/webpack/server-development/index.pack.gz.old delete mode 100644 apps/web/.next/server/app/account/page.js delete mode 100644 apps/web/.next/server/app/account/page.js.nft.json delete mode 100644 apps/web/.next/server/app/account/page_client-reference-manifest.js delete mode 100644 apps/web/.next/server/app/api/auth/[...nextauth]/route.js.nft.json delete mode 100644 apps/web/.next/server/app/api/store/route.js.nft.json delete mode 100644 apps/web/.next/server/app/index.html delete mode 100644 apps/web/.next/server/app/index.meta delete mode 100644 apps/web/.next/server/app/index.rsc delete mode 100644 apps/web/.next/server/app/page.js.nft.json delete mode 100644 apps/web/.next/server/chunks/369.js delete mode 100644 apps/web/.next/server/chunks/38.js delete mode 100644 apps/web/.next/server/chunks/917.js delete mode 100644 apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js delete mode 100644 apps/web/.next/static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js delete mode 100644 apps/web/.next/static/chunks/997-22e52d7003e9633c.js delete mode 100644 apps/web/.next/static/chunks/app/_not-found-2c355b04f2805185.js delete mode 100644 apps/web/.next/static/chunks/app/account/page-0cdf2840d5548012.js delete mode 100644 apps/web/.next/static/chunks/app/layout-d03d6a3648fc999a.js delete mode 100644 apps/web/.next/static/chunks/app/page-4446d9ce009d4a80.js delete mode 100644 apps/web/.next/static/chunks/main-2f8ae24bc202a544.js delete mode 100644 apps/web/.next/static/chunks/main-app-6394067cfc5308ad.js delete mode 100644 apps/web/.next/types/app/account/page.ts delete mode 100644 apps/web/src/app/account/client.tsx delete mode 100644 apps/web/src/app/account/page.tsx create mode 100644 apps/web/wrangler.toml diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 7c9790ec..d20681f0 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,11 +1,12 @@ /** @type {import("eslint").Linter.Config} */ const config = { parser: "@typescript-eslint/parser", - plugins: ["@typescript-eslint"], + plugins: ["@typescript-eslint", "eslint-plugin-next-on-pages"], extends: [ "next/core-web-vitals", "plugin:@typescript-eslint/recommended-type-checked", "plugin:@typescript-eslint/stylistic-type-checked", + "plugin:eslint-plugin-next-on-pages/recommended" ], rules: { // These opinionated rules are enabled in stylistic-type-checked above. diff --git a/.gitignore b/.gitignore index d58c8543..db84c701 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ .turbo *.sqlite *.lockb +.next + +node_modules # dependencies /node_modules diff --git a/apps/anycontext-front/.eslintrc.json b/apps/anycontext-front/.eslintrc.json new file mode 100644 index 00000000..d8649b49 --- /dev/null +++ b/apps/anycontext-front/.eslintrc.json @@ -0,0 +1,9 @@ +{ + "extends": [ + "next/core-web-vitals", + "plugin:eslint-plugin-next-on-pages/recommended" + ], + "plugins": [ + "eslint-plugin-next-on-pages" + ] +} \ No newline at end of file diff --git a/apps/anycontext-front/.gitignore b/apps/anycontext-front/.gitignore new file mode 100644 index 00000000..fd3dbb57 --- /dev/null +++ b/apps/anycontext-front/.gitignore @@ -0,0 +1,36 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +.yarn/install-state.gz + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/apps/anycontext-front/README.md b/apps/anycontext-front/README.md new file mode 100644 index 00000000..c4e716e1 --- /dev/null +++ b/apps/anycontext-front/README.md @@ -0,0 +1,58 @@ +This is a [Next.js](https://nextjs.org/) project bootstrapped with [`c3`](https://developers.cloudflare.com/pages/get-started/c3). + +## Getting Started + +First, run the development server: + +```bash +npm run dev +# or +yarn dev +# or +pnpm dev +# or +bun dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +## Cloudflare integration + +Besides the `dev` script mentioned above `c3` has added a few extra scripts that allow you to integrate the application with the [Cloudflare Pages](https://pages.cloudflare.com/) environment, these are: + - `pages:build` to build the application for Pages using the [`@cloudflare/next-on-pages`](https://github.com/cloudflare/next-on-pages) CLI + - `preview` to locally preview your Pages application using the [Wrangler](https://developers.cloudflare.com/workers/wrangler/) CLI + - `deploy` to deploy your Pages application using the [Wrangler](https://developers.cloudflare.com/workers/wrangler/) CLI + +> __Note:__ while the `dev` script is optimal for local development you should preview your Pages application as well (periodically or before deployments) in order to make sure that it can properly work in the Pages environment (for more details see the [`@cloudflare/next-on-pages` recommended workflow](https://github.com/cloudflare/next-on-pages/blob/05b6256/internal-packages/next-dev/README.md#recommended-workflow)) + +### Bindings + +Cloudflare [Bindings](https://developers.cloudflare.com/pages/functions/bindings/) are what allows you to interact with resources available in the Cloudflare Platform. + +You can use bindings during development, when previewing locally your application and of course in the deployed application: + +- To use bindings in dev mode you need to define them in the `next.config.js` file under `setupDevBindings`, this mode uses the `next-dev` `@cloudflare/next-on-pages` submodule. For more details see its [documentation](https://github.com/cloudflare/next-on-pages/blob/05b6256/internal-packages/next-dev/README.md). + +- To use bindings in the preview mode you need to add them to the `pages:preview` script accordingly to the `wrangler pages dev` command. For more details see its [documentation](https://developers.cloudflare.com/workers/wrangler/commands/#dev-1) or the [Pages Bindings documentation](https://developers.cloudflare.com/pages/functions/bindings/). + +- To use bindings in the deployed application you will need to configure them in the Cloudflare [dashboard](https://dash.cloudflare.com/). For more details see the [Pages Bindings documentation](https://developers.cloudflare.com/pages/functions/bindings/). + +#### KV Example + +`c3` has added for you an example showing how you can use a KV binding. + +In order to enable the example: +- Search for javascript/typescript lines containing the following comment: + ```ts + // KV Example: + ``` + and uncomment the commented lines below it. +- Do the same in the `wrangler.toml` file, where + the comment is: + ``` + # KV Example: + ``` + +After doing this you can run the `dev` or `preview` script and visit the `/api/hello` route to see the example in action. + +Finally, if you also want to see the example work in the deployed application make sure to add a `MY_KV` binding to your Pages application in its [dashboard kv bindings settings section](https://dash.cloudflare.com/?to=/:account/pages/view/:pages-project/settings/functions#kv_namespace_bindings_section). After having configured it make sure to re-deploy your application. diff --git a/apps/anycontext-front/env.d.ts b/apps/anycontext-front/env.d.ts new file mode 100644 index 00000000..5fa47ba0 --- /dev/null +++ b/apps/anycontext-front/env.d.ts @@ -0,0 +1,8 @@ +interface CloudflareEnv { + // Add here the Cloudflare Bindings you want to have available in your application + // (for more details on Bindings see: https://developers.cloudflare.com/pages/functions/bindings/) + // + // KV Example: + // MY_KV: KVNamespace + DATABSE: D1Database +} diff --git a/apps/anycontext-front/next.config.mjs b/apps/anycontext-front/next.config.mjs new file mode 100644 index 00000000..454dcf4f --- /dev/null +++ b/apps/anycontext-front/next.config.mjs @@ -0,0 +1,20 @@ +import { setupDevPlatform } from '@cloudflare/next-on-pages/next-dev'; + +// Here we use the @cloudflare/next-on-pages next-dev module to allow us to use bindings during local development +// (when running the application with `next dev`), for more information see: +// https://github.com/cloudflare/next-on-pages/blob/5712c57ea7/internal-packages/next-dev/README.md +if (process.env.NODE_ENV === 'development') { + await setupDevPlatform({ + bindings: { + DATABASE: { + type: "DB", + id: "fc562605-157a-4f60-b439-2a24ffed5b4c" + } + } + }); +} + +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +export default nextConfig; diff --git a/apps/anycontext-front/package.json b/apps/anycontext-front/package.json new file mode 100644 index 00000000..95250ea7 --- /dev/null +++ b/apps/anycontext-front/package.json @@ -0,0 +1,35 @@ +{ + "name": "anycontext-front", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint", + "pages:build": "pnpm next-on-pages", + "preview": "pnpm pages:build && wrangler pages dev .vercel/output/static", + "deploy": "pnpm pages:build && wrangler pages deploy .vercel/output/static" + }, + "dependencies": { + "next": "14.1.0", + "react": "^18", + "react-dom": "^18" + }, + "devDependencies": { + "@cloudflare/next-on-pages": "1", + "@cloudflare/workers-types": "^4.20240222.0", + "@types/node": "^20", + "@types/react": "^18", + "@types/react-dom": "^18", + "autoprefixer": "^10.0.1", + "eslint": "^8", + "eslint-config-next": "14.1.0", + "eslint-plugin-next-on-pages": "^1.9.0", + "postcss": "^8", + "tailwindcss": "^3.3.0", + "typescript": "^5", + "vercel": "^33.5.2", + "wrangler": "^3.29.0" + } +} \ No newline at end of file diff --git a/apps/anycontext-front/pnpm-lock.yaml b/apps/anycontext-front/pnpm-lock.yaml new file mode 100644 index 00000000..ad587b03 --- /dev/null +++ b/apps/anycontext-front/pnpm-lock.yaml @@ -0,0 +1,5142 @@ +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +dependencies: + next: + specifier: 14.1.0 + version: 14.1.0(react-dom@18.2.0)(react@18.2.0) + react: + specifier: ^18 + version: 18.2.0 + react-dom: + specifier: ^18 + version: 18.2.0(react@18.2.0) + +devDependencies: + '@cloudflare/next-on-pages': + specifier: '1' + version: 1.9.0(@cloudflare/workers-types@4.20240222.0)(vercel@33.5.2)(wrangler@3.29.0) + '@cloudflare/workers-types': + specifier: ^4.20240222.0 + version: 4.20240222.0 + '@types/node': + specifier: ^20 + version: 20.11.20 + '@types/react': + specifier: ^18 + version: 18.2.58 + '@types/react-dom': + specifier: ^18 + version: 18.2.19 + autoprefixer: + specifier: ^10.0.1 + version: 10.4.17(postcss@8.4.35) + eslint: + specifier: ^8 + version: 8.57.0 + eslint-config-next: + specifier: 14.1.0 + version: 14.1.0(eslint@8.57.0)(typescript@5.3.3) + eslint-plugin-next-on-pages: + specifier: ^1.9.0 + version: 1.9.0(eslint@8.57.0) + postcss: + specifier: ^8 + version: 8.4.35 + tailwindcss: + specifier: ^3.3.0 + version: 3.4.1 + typescript: + specifier: ^5 + version: 5.3.3 + vercel: + specifier: ^33.5.2 + version: 33.5.2 + wrangler: + specifier: ^3.29.0 + version: 3.29.0(@cloudflare/workers-types@4.20240222.0) + +packages: + + /@aashutoshrathi/word-wrap@1.2.6: + resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} + engines: {node: '>=0.10.0'} + dev: true + + /@alloc/quick-lru@5.2.0: + resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} + engines: {node: '>=10'} + dev: true + + /@babel/runtime@7.23.9: + resolution: {integrity: sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==} + engines: {node: '>=6.9.0'} + dependencies: + regenerator-runtime: 0.14.1 + dev: true + + /@cloudflare/kv-asset-handler@0.3.1: + resolution: {integrity: sha512-lKN2XCfKCmpKb86a1tl4GIwsJYDy9TGuwjhDELLmpKygQhw8X2xR4dusgpC5Tg7q1pB96Eb0rBo81kxSILQMwA==} + dependencies: + mime: 3.0.0 + dev: true + + /@cloudflare/next-on-pages@1.9.0(@cloudflare/workers-types@4.20240222.0)(vercel@33.5.2)(wrangler@3.29.0): + resolution: {integrity: sha512-fa46YoaKLRS0xIWlprrQD66bLMOUvvvfqQNkUZTeAk87QBRzgkm14RqrnO2ro2uHYNqW5qf9lhKbq2IUGQWJRQ==} + hasBin: true + peerDependencies: + '@cloudflare/workers-types': ^4.20240208.0 + vercel: '>=30.0.0' + wrangler: ^3.28.0 + peerDependenciesMeta: + '@cloudflare/workers-types': + optional: true + dependencies: + '@cloudflare/workers-types': 4.20240222.0 + acorn: 8.11.3 + ast-types: 0.14.2 + chalk: 5.3.0 + chokidar: 3.6.0 + commander: 11.1.0 + cookie: 0.5.0 + esbuild: 0.15.18 + js-yaml: 4.1.0 + miniflare: 3.20240208.0 + package-manager-manager: 0.2.0 + pcre-to-regexp: 1.1.0 + semver: 7.6.0 + vercel: 33.5.2 + wrangler: 3.29.0(@cloudflare/workers-types@4.20240222.0) + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: true + + /@cloudflare/workerd-darwin-64@1.20240208.0: + resolution: {integrity: sha512-64qjsCUz6VtjXnUex5D6dWoJDuUBRw1ps2TEVH9wGJ4ubiLVUxKhj3bzkVy0RoJ8FhaCKzJWWRyTo4yc192UTA==} + engines: {node: '>=16'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@cloudflare/workerd-darwin-arm64@1.20240208.0: + resolution: {integrity: sha512-eVQrAV200LhwLY6JZLx3l2lDrjsTC86lqnvH+RSeM43bAcdneC6lVfykHnTaOTgYFvYQbqRkn9ICWxXj1V9L5g==} + engines: {node: '>=16'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@cloudflare/workerd-linux-64@1.20240208.0: + resolution: {integrity: sha512-ivZ2UuCvi44j8JZ++XlQzSYajt5ptvAdwlh3WPpCcygtHXEh6SVo8QXEUOXhPbv861C0HZMYxLCaLqlpQDWB8g==} + engines: {node: '>=16'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@cloudflare/workerd-linux-arm64@1.20240208.0: + resolution: {integrity: sha512-aLfvl9kXQKbM7aLvfL0HbOt5VEgv15mEZGyFKyDldJ8+nOXH6nYPma1ccwF8BHmu8otHc420eyPr2xPKhLSJnw==} + engines: {node: '>=16'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@cloudflare/workerd-windows-64@1.20240208.0: + resolution: {integrity: sha512-Y6KMukWnorsSmPx6d82IuJ4SU8sX1+2y+w1uFJ76sucSgXqUAN1fmjG+EyzRVbcbsxRGBCD9c1Pn8T1amMLEYA==} + engines: {node: '>=16'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@cloudflare/workers-types@4.20240222.0: + resolution: {integrity: sha512-luO0BdK3rLlCv3B240+cTrfqm+XSbHtpk+88aJtGwzyVK9QF/Xz8lBgE/oZZLN8nCTmOvxAZnszyxUuZ8GP8Cg==} + dev: true + + /@cspotcode/source-map-support@0.8.1: + resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} + engines: {node: '>=12'} + dependencies: + '@jridgewell/trace-mapping': 0.3.9 + dev: true + + /@edge-runtime/format@2.2.1: + resolution: {integrity: sha512-JQTRVuiusQLNNLe2W9tnzBlV/GvSVcozLl4XZHk5swnRZ/v6jp8TqR8P7sqmJsQqblDZ3EztcWmLDbhRje/+8g==} + engines: {node: '>=16'} + dev: true + + /@edge-runtime/node-utils@2.3.0: + resolution: {integrity: sha512-uUtx8BFoO1hNxtHjp3eqVPC/mWImGb2exOfGjMLUoipuWgjej+f4o/VP4bUI8U40gu7Teogd5VTeZUkGvJSPOQ==} + engines: {node: '>=16'} + dev: true + + /@edge-runtime/ponyfill@2.4.2: + resolution: {integrity: sha512-oN17GjFr69chu6sDLvXxdhg0Qe8EZviGSuqzR9qOiKh4MhFYGdBBcqRNzdmYeAdeRzOW2mM9yil4RftUQ7sUOA==} + engines: {node: '>=16'} + dev: true + + /@edge-runtime/primitives@4.1.0: + resolution: {integrity: sha512-Vw0lbJ2lvRUqc7/soqygUX216Xb8T3WBZ987oywz6aJqRxcwSVWwr9e+Nqo2m9bxobA9mdbWNNoRY6S9eko1EQ==} + engines: {node: '>=16'} + dev: true + + /@edge-runtime/vm@3.2.0: + resolution: {integrity: sha512-0dEVyRLM/lG4gp1R/Ik5bfPl/1wX00xFwd5KcNH602tzBa09oF7pbTKETEhR1GjZ75K6OJnYFu8II2dyMhONMw==} + engines: {node: '>=16'} + dependencies: + '@edge-runtime/primitives': 4.1.0 + dev: true + + /@esbuild-plugins/node-globals-polyfill@0.2.3(esbuild@0.17.19): + resolution: {integrity: sha512-r3MIryXDeXDOZh7ih1l/yE9ZLORCd5e8vWg02azWRGj5SPTuoh69A2AIyn0Z31V/kHBfZ4HgWJ+OK3GTTwLmnw==} + peerDependencies: + esbuild: '*' + dependencies: + esbuild: 0.17.19 + dev: true + + /@esbuild-plugins/node-modules-polyfill@0.2.2(esbuild@0.17.19): + resolution: {integrity: sha512-LXV7QsWJxRuMYvKbiznh+U1ilIop3g2TeKRzUxOG5X3YITc8JyyTa90BmLwqqv0YnX4v32CSlG+vsziZp9dMvA==} + peerDependencies: + esbuild: '*' + dependencies: + esbuild: 0.17.19 + escape-string-regexp: 4.0.0 + rollup-plugin-node-polyfills: 0.2.1 + dev: true + + /@esbuild/android-arm64@0.17.19: + resolution: {integrity: sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-arm@0.15.18: + resolution: {integrity: sha512-5GT+kcs2WVGjVs7+boataCkO5Fg0y4kCjzkB5bAip7H4jfnOS3dA6KPiww9W1OEKTKeAcUVhdZGvgI65OXmUnw==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-arm@0.17.19: + resolution: {integrity: sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-x64@0.17.19: + resolution: {integrity: sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/darwin-arm64@0.17.19: + resolution: {integrity: sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@esbuild/darwin-x64@0.17.19: + resolution: {integrity: sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@esbuild/freebsd-arm64@0.17.19: + resolution: {integrity: sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/freebsd-x64@0.17.19: + resolution: {integrity: sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-arm64@0.17.19: + resolution: {integrity: sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-arm@0.17.19: + resolution: {integrity: sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-ia32@0.17.19: + resolution: {integrity: sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-loong64@0.15.18: + resolution: {integrity: sha512-L4jVKS82XVhw2nvzLg/19ClLWg0y27ulRwuP7lcyL6AbUWB5aPglXY3M21mauDQMDfRLs8cQmeT03r/+X3cZYQ==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-loong64@0.17.19: + resolution: {integrity: sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-mips64el@0.17.19: + resolution: {integrity: sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-ppc64@0.17.19: + resolution: {integrity: sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-riscv64@0.17.19: + resolution: {integrity: sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-s390x@0.17.19: + resolution: {integrity: sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-x64@0.17.19: + resolution: {integrity: sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/netbsd-x64@0.17.19: + resolution: {integrity: sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/openbsd-x64@0.17.19: + resolution: {integrity: sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/sunos-x64@0.17.19: + resolution: {integrity: sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-arm64@0.17.19: + resolution: {integrity: sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-ia32@0.17.19: + resolution: {integrity: sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-x64@0.17.19: + resolution: {integrity: sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): + resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + dependencies: + eslint: 8.57.0 + eslint-visitor-keys: 3.4.3 + dev: true + + /@eslint-community/regexpp@4.10.0: + resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + dev: true + + /@eslint/eslintrc@2.1.4: + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + ajv: 6.12.6 + debug: 4.3.4 + espree: 9.6.1 + globals: 13.24.0 + ignore: 5.3.1 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@eslint/js@8.57.0: + resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /@fastify/busboy@2.1.0: + resolution: {integrity: sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==} + engines: {node: '>=14'} + dev: true + + /@humanwhocodes/config-array@0.11.14: + resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + engines: {node: '>=10.10.0'} + dependencies: + '@humanwhocodes/object-schema': 2.0.2 + debug: 4.3.4 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + dev: true + + /@humanwhocodes/module-importer@1.0.1: + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + dev: true + + /@humanwhocodes/object-schema@2.0.2: + resolution: {integrity: sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==} + dev: true + + /@isaacs/cliui@8.0.2: + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + dependencies: + string-width: 5.1.2 + string-width-cjs: /string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: /strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: /wrap-ansi@7.0.0 + dev: true + + /@jridgewell/gen-mapping@0.3.3: + resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/set-array': 1.1.2 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.22 + dev: true + + /@jridgewell/resolve-uri@3.1.2: + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + dev: true + + /@jridgewell/set-array@1.1.2: + resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} + engines: {node: '>=6.0.0'} + dev: true + + /@jridgewell/sourcemap-codec@1.4.15: + resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + dev: true + + /@jridgewell/trace-mapping@0.3.22: + resolution: {integrity: sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==} + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.4.15 + dev: true + + /@jridgewell/trace-mapping@0.3.9: + resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.4.15 + dev: true + + /@mapbox/node-pre-gyp@1.0.11: + resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==} + hasBin: true + dependencies: + detect-libc: 2.0.2 + https-proxy-agent: 5.0.1 + make-dir: 3.1.0 + node-fetch: 2.7.0 + nopt: 5.0.0 + npmlog: 5.0.1 + rimraf: 3.0.2 + semver: 7.6.0 + tar: 6.2.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@next/env@14.1.0: + resolution: {integrity: sha512-Py8zIo+02ht82brwwhTg36iogzFqGLPXlRGKQw5s+qP/kMNc4MAyDeEwBKDijk6zTIbegEgu8Qy7C1LboslQAw==} + dev: false + + /@next/eslint-plugin-next@14.1.0: + resolution: {integrity: sha512-x4FavbNEeXx/baD/zC/SdrvkjSby8nBn8KcCREqk6UuwvwoAPZmaV8TFCAuo/cpovBRTIY67mHhe86MQQm/68Q==} + dependencies: + glob: 10.3.10 + dev: true + + /@next/swc-darwin-arm64@14.1.0: + resolution: {integrity: sha512-nUDn7TOGcIeyQni6lZHfzNoo9S0euXnu0jhsbMOmMJUBfgsnESdjN97kM7cBqQxZa8L/bM9om/S5/1dzCrW6wQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + + /@next/swc-darwin-x64@14.1.0: + resolution: {integrity: sha512-1jgudN5haWxiAl3O1ljUS2GfupPmcftu2RYJqZiMJmmbBT5M1XDffjUtRUzP4W3cBHsrvkfOFdQ71hAreNQP6g==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + + /@next/swc-linux-arm64-gnu@14.1.0: + resolution: {integrity: sha512-RHo7Tcj+jllXUbK7xk2NyIDod3YcCPDZxj1WLIYxd709BQ7WuRYl3OWUNG+WUfqeQBds6kvZYlc42NJJTNi4tQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@next/swc-linux-arm64-musl@14.1.0: + resolution: {integrity: sha512-v6kP8sHYxjO8RwHmWMJSq7VZP2nYCkRVQ0qolh2l6xroe9QjbgV8siTbduED4u0hlk0+tjS6/Tuy4n5XCp+l6g==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@next/swc-linux-x64-gnu@14.1.0: + resolution: {integrity: sha512-zJ2pnoFYB1F4vmEVlb/eSe+VH679zT1VdXlZKX+pE66grOgjmKJHKacf82g/sWE4MQ4Rk2FMBCRnX+l6/TVYzQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@next/swc-linux-x64-musl@14.1.0: + resolution: {integrity: sha512-rbaIYFt2X9YZBSbH/CwGAjbBG2/MrACCVu2X0+kSykHzHnYH5FjHxwXLkcoJ10cX0aWCEynpu+rP76x0914atg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@next/swc-win32-arm64-msvc@14.1.0: + resolution: {integrity: sha512-o1N5TsYc8f/HpGt39OUQpQ9AKIGApd3QLueu7hXk//2xq5Z9OxmV6sQfNp8C7qYmiOlHYODOGqNNa0e9jvchGQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@next/swc-win32-ia32-msvc@14.1.0: + resolution: {integrity: sha512-XXIuB1DBRCFwNO6EEzCTMHT5pauwaSj4SWs7CYnME57eaReAKBXCnkUE80p/pAZcewm7hs+vGvNqDPacEXHVkw==} + engines: {node: '>= 10'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@next/swc-win32-x64-msvc@14.1.0: + resolution: {integrity: sha512-9WEbVRRAqJ3YFVqEZIxUqkiO8l1nool1LmNxygr5HWF8AcSYsEpneUDhmjUVJEzO2A04+oPtZdombzzPPkTtgg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@nodelib/fs.scandir@2.1.5: + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + dev: true + + /@nodelib/fs.stat@2.0.5: + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + dev: true + + /@nodelib/fs.walk@1.2.8: + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.17.1 + dev: true + + /@pkgjs/parseargs@0.11.0: + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + requiresBuild: true + dev: true + optional: true + + /@rollup/pluginutils@4.2.1: + resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==} + engines: {node: '>= 8.0.0'} + dependencies: + estree-walker: 2.0.2 + picomatch: 2.3.1 + dev: true + + /@rushstack/eslint-patch@1.7.2: + resolution: {integrity: sha512-RbhOOTCNoCrbfkRyoXODZp75MlpiHMgbE5MEBZAnnnLyQNgrigEj4p0lzsMDyc1zVsJDLrivB58tgg3emX0eEA==} + dev: true + + /@sinclair/typebox@0.25.24: + resolution: {integrity: sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==} + dev: true + + /@swc/helpers@0.5.2: + resolution: {integrity: sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==} + dependencies: + tslib: 2.6.2 + dev: false + + /@tootallnate/once@2.0.0: + resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} + engines: {node: '>= 10'} + dev: true + + /@ts-morph/common@0.11.1: + resolution: {integrity: sha512-7hWZS0NRpEsNV8vWJzg7FEz6V8MaLNeJOmwmghqUXTpzk16V1LLZhdo+4QvE/+zv4cVci0OviuJFnqhEfoV3+g==} + dependencies: + fast-glob: 3.3.2 + minimatch: 3.1.2 + mkdirp: 1.0.4 + path-browserify: 1.0.1 + dev: true + + /@tsconfig/node10@1.0.9: + resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} + dev: true + + /@tsconfig/node12@1.0.11: + resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} + dev: true + + /@tsconfig/node14@1.0.3: + resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} + dev: true + + /@tsconfig/node16@1.0.4: + resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} + dev: true + + /@types/estree-jsx@1.0.5: + resolution: {integrity: sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==} + dependencies: + '@types/estree': 1.0.5 + dev: true + + /@types/estree@1.0.5: + resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} + dev: true + + /@types/json-schema@7.0.15: + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + dev: true + + /@types/json5@0.0.29: + resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} + dev: true + + /@types/node-forge@1.3.11: + resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} + dependencies: + '@types/node': 20.11.20 + dev: true + + /@types/node@14.18.33: + resolution: {integrity: sha512-qelS/Ra6sacc4loe/3MSjXNL1dNQ/GjxNHVzuChwMfmk7HuycRLVQN2qNY3XahK+fZc5E2szqQSKUyAF0E+2bg==} + dev: true + + /@types/node@20.11.20: + resolution: {integrity: sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg==} + dependencies: + undici-types: 5.26.5 + dev: true + + /@types/prop-types@15.7.11: + resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==} + dev: true + + /@types/react-dom@18.2.19: + resolution: {integrity: sha512-aZvQL6uUbIJpjZk4U8JZGbau9KDeAwMfmhyWorxgBkqDIEf6ROjRozcmPIicqsUwPUjbkDfHKgGee1Lq65APcA==} + dependencies: + '@types/react': 18.2.58 + dev: true + + /@types/react@18.2.58: + resolution: {integrity: sha512-TaGvMNhxvG2Q0K0aYxiKfNDS5m5ZsoIBBbtfUorxdH4NGSXIlYvZxLJI+9Dd3KjeB3780bciLyAb7ylO8pLhPw==} + dependencies: + '@types/prop-types': 15.7.11 + '@types/scheduler': 0.16.8 + csstype: 3.1.3 + dev: true + + /@types/scheduler@0.16.8: + resolution: {integrity: sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==} + dev: true + + /@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.3.3): + resolution: {integrity: sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/scope-manager': 6.21.0 + '@typescript-eslint/types': 6.21.0 + '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) + '@typescript-eslint/visitor-keys': 6.21.0 + debug: 4.3.4 + eslint: 8.57.0 + typescript: 5.3.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/scope-manager@6.21.0: + resolution: {integrity: sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.21.0 + '@typescript-eslint/visitor-keys': 6.21.0 + dev: true + + /@typescript-eslint/types@6.21.0: + resolution: {integrity: sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==} + engines: {node: ^16.0.0 || >=18.0.0} + dev: true + + /@typescript-eslint/typescript-estree@6.21.0(typescript@5.3.3): + resolution: {integrity: sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 6.21.0 + '@typescript-eslint/visitor-keys': 6.21.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.3 + semver: 7.6.0 + ts-api-utils: 1.2.1(typescript@5.3.3) + typescript: 5.3.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/visitor-keys@6.21.0: + resolution: {integrity: sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.21.0 + eslint-visitor-keys: 3.4.3 + dev: true + + /@ungap/structured-clone@1.2.0: + resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + dev: true + + /@vercel/build-utils@7.7.0: + resolution: {integrity: sha512-dYE0QKnRj9tN1F2AAKHagh3QkgQhz7AWcrRqnp5gjEp74EnxBKJIcZe5qqyKANMCLQ1e96RYy1pQB3zPMGeEzg==} + dev: true + + /@vercel/error-utils@2.0.2: + resolution: {integrity: sha512-Sj0LFafGpYr6pfCqrQ82X6ukRl5qpmVrHM/191kNYFqkkB9YkjlMAj6QcEsvCG259x4QZ7Tya++0AB85NDPbKQ==} + dev: true + + /@vercel/fun@1.1.0: + resolution: {integrity: sha512-SpuPAo+MlAYMtcMcC0plx7Tv4Mp7SQhJJj1iIENlOnABL24kxHpL09XLQMGzZIzIW7upR8c3edwgfpRtp+dhVw==} + engines: {node: '>= 10'} + dependencies: + '@tootallnate/once': 2.0.0 + async-listen: 1.2.0 + debug: 4.1.1 + execa: 3.2.0 + fs-extra: 8.1.0 + generic-pool: 3.4.2 + micro: 9.3.5-canary.3 + ms: 2.1.1 + node-fetch: 2.6.7 + path-match: 1.2.4 + promisepipe: 3.0.0 + semver: 7.3.5 + stat-mode: 0.3.0 + stream-to-promise: 2.2.0 + tar: 4.4.18 + tree-kill: 1.2.2 + uid-promise: 1.0.0 + uuid: 3.3.2 + xdg-app-paths: 5.1.0 + yauzl-promise: 2.1.3 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@vercel/gatsby-plugin-vercel-analytics@1.0.11: + resolution: {integrity: sha512-iTEA0vY6RBPuEzkwUTVzSHDATo1aF6bdLLspI68mQ/BTbi5UQEGjpjyzdKOVcSYApDtFU6M6vypZ1t4vIEnHvw==} + dependencies: + web-vitals: 0.2.4 + dev: true + + /@vercel/gatsby-plugin-vercel-builder@2.0.18: + resolution: {integrity: sha512-SbYV8ZBnROHJzS5DbFgSZ3Szp6UiY28DyHwtJ8cJ3z82tnCgIVqRMthUx/icPUZlHXKex4y+QhOWpyqopvEyqQ==} + dependencies: + '@sinclair/typebox': 0.25.24 + '@vercel/build-utils': 7.7.0 + '@vercel/routing-utils': 3.1.0 + esbuild: 0.14.47 + etag: 1.8.1 + fs-extra: 11.1.0 + dev: true + + /@vercel/go@3.0.5: + resolution: {integrity: sha512-+kEDI+hop3e8BuKisaEozxfzT6GBbp0OMBcgi0tlD5ZTmhGmpwi3vgK5mBQlB+RBXj7qlqDLW/uV2F1Y03FLcQ==} + dev: true + + /@vercel/hydrogen@1.0.2: + resolution: {integrity: sha512-/Q2MKk1GfOuZAnkE9jQexjtUQqanbY65R+xtJWd9yKIgwcfRI1hxiNH3uXyVM5AvLoY+fxxULkSuxDtUKpkJpQ==} + dependencies: + '@vercel/static-config': 3.0.0 + ts-morph: 12.0.0 + dev: true + + /@vercel/next@4.1.2: + resolution: {integrity: sha512-IMsvUfVlZ1mvkIFPv/UDXS6MTtiuVGgzjdKZT9UD6VI6fCy8JpNPZmnroxsWuL+n0xOsc9y49IGmC3ZFbmqUAA==} + dependencies: + '@vercel/nft': 0.26.4 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@vercel/nft@0.26.4: + resolution: {integrity: sha512-j4jCOOXke2t8cHZCIxu1dzKLHLcFmYzC3yqAK6MfZznOL1QIJKd0xcFsXK3zcqzU7ScsE2zWkiMMNHGMHgp+FA==} + engines: {node: '>=16'} + hasBin: true + dependencies: + '@mapbox/node-pre-gyp': 1.0.11 + '@rollup/pluginutils': 4.2.1 + acorn: 8.11.3 + acorn-import-attributes: 1.9.2(acorn@8.11.3) + async-sema: 3.1.1 + bindings: 1.5.0 + estree-walker: 2.0.2 + glob: 7.2.3 + graceful-fs: 4.2.11 + micromatch: 4.0.5 + node-gyp-build: 4.8.0 + resolve-from: 5.0.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@vercel/node@3.0.20: + resolution: {integrity: sha512-J6EqkFczKJyLZFoMv863vBMsqJndisK4fQ6yz41VsBp5bfUo6v3KjNa5miRnLjeKUhrQYGbGQLG89Q6wO1jBVQ==} + dependencies: + '@edge-runtime/node-utils': 2.3.0 + '@edge-runtime/primitives': 4.1.0 + '@edge-runtime/vm': 3.2.0 + '@types/node': 14.18.33 + '@vercel/build-utils': 7.7.0 + '@vercel/error-utils': 2.0.2 + '@vercel/nft': 0.26.4 + '@vercel/static-config': 3.0.0 + async-listen: 3.0.0 + cjs-module-lexer: 1.2.3 + edge-runtime: 2.5.9 + es-module-lexer: 1.4.1 + esbuild: 0.14.47 + etag: 1.8.1 + node-fetch: 2.6.9 + path-to-regexp: 6.2.1 + ts-morph: 12.0.0 + ts-node: 10.9.1(@types/node@14.18.33)(typescript@4.9.5) + typescript: 4.9.5 + undici: 5.26.5 + transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' + - encoding + - supports-color + dev: true + + /@vercel/python@4.1.1: + resolution: {integrity: sha512-EbAdKOZ0hPd5b59tLt7R3RQK1azNvuZTrCFRAVHNjqcIHNCmrSvjag5zBGn7Memkk8qWb3+CgBw9K/3LJKei0w==} + dev: true + + /@vercel/redwood@2.0.8: + resolution: {integrity: sha512-hAu7SYXDt+W7kscjtQ5NsuNflXH+QB5/xAdA6FRSS/e41lG6Xq6pqLMDobqq4BR7E2PpppVDw2DUx9KzPNoeEw==} + dependencies: + '@vercel/nft': 0.26.4 + '@vercel/routing-utils': 3.1.0 + semver: 6.3.1 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@vercel/remix-builder@2.0.20: + resolution: {integrity: sha512-zApgl/fBCPv1l3sD/9P860yTELjp14XdJU0IkBOT1yG93Z1BaAdgKzT8poJhwKABRIgvexS9VECfmJh7SnXDrQ==} + dependencies: + '@vercel/nft': 0.26.4 + '@vercel/static-config': 3.0.0 + ts-morph: 12.0.0 + transitivePeerDependencies: + - encoding + - supports-color + dev: true + + /@vercel/routing-utils@3.1.0: + resolution: {integrity: sha512-Ci5xTjVTJY/JLZXpCXpLehMft97i9fH34nu9PGav6DtwkVUF6TOPX86U0W0niQjMZ5n6/ZP0BwcJK2LOozKaGw==} + dependencies: + path-to-regexp: 6.1.0 + optionalDependencies: + ajv: 6.12.6 + dev: true + + /@vercel/ruby@2.0.5: + resolution: {integrity: sha512-Gfm8HDech41vf+EPleRzgoJUnDTJerKgckMm4KX0JT860gV9XBMSOWYH7eMWHmMza104+HRCWL7wT6OlpftF2Q==} + dev: true + + /@vercel/static-build@2.4.0: + resolution: {integrity: sha512-i+JDorkLGUVSoBrxbT86LL7L+TrBdL7uwVtqKA6S3QEQb8OfGOfvQKCjtbIRmplTxHWHWo3zFALrmFuB1AaubQ==} + dependencies: + '@vercel/gatsby-plugin-vercel-analytics': 1.0.11 + '@vercel/gatsby-plugin-vercel-builder': 2.0.18 + '@vercel/static-config': 3.0.0 + ts-morph: 12.0.0 + dev: true + + /@vercel/static-config@3.0.0: + resolution: {integrity: sha512-2qtvcBJ1bGY0dYGYh3iM7yGKkk971FujLEDXzuW5wcZsPr1GSEjO/w2iSr3qve6nDDtBImsGoDEnus5FI4+fIw==} + dependencies: + ajv: 8.6.3 + json-schema-to-ts: 1.6.4 + ts-morph: 12.0.0 + dev: true + + /abbrev@1.1.1: + resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} + dev: true + + /acorn-import-attributes@1.9.2(acorn@8.11.3): + resolution: {integrity: sha512-O+nfJwNolEA771IYJaiLWK1UAwjNsQmZbTRqqwBYxCgVQTmpFEMvBw6LOIQV0Me339L5UMVYFyRohGnGlQDdIQ==} + peerDependencies: + acorn: ^8 + dependencies: + acorn: 8.11.3 + dev: true + + /acorn-jsx@5.3.2(acorn@8.11.3): + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + acorn: 8.11.3 + dev: true + + /acorn-walk@8.3.2: + resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==} + engines: {node: '>=0.4.0'} + dev: true + + /acorn@8.11.3: + resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + + /agent-base@6.0.2: + resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} + engines: {node: '>= 6.0.0'} + dependencies: + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /ajv@6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + dev: true + + /ajv@8.6.3: + resolution: {integrity: sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==} + dependencies: + fast-deep-equal: 3.1.3 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + uri-js: 4.4.1 + dev: true + + /ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + dev: true + + /ansi-regex@6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + dev: true + + /ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + dependencies: + color-convert: 2.0.1 + dev: true + + /ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + dev: true + + /any-promise@1.3.0: + resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} + dev: true + + /anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + dev: true + + /aproba@2.0.0: + resolution: {integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==} + dev: true + + /are-we-there-yet@2.0.0: + resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==} + engines: {node: '>=10'} + dependencies: + delegates: 1.0.0 + readable-stream: 3.6.2 + dev: true + + /arg@4.1.0: + resolution: {integrity: sha512-ZWc51jO3qegGkVh8Hwpv636EkbesNV5ZNQPCtRa+0qytRYPEs9IYT9qITY9buezqUH5uqyzlWLcufrzU2rffdg==} + dev: true + + /arg@4.1.3: + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + dev: true + + /arg@5.0.2: + resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} + dev: true + + /argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + dev: true + + /aria-query@5.3.0: + resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==} + dependencies: + dequal: 2.0.3 + dev: true + + /array-buffer-byte-length@1.0.1: + resolution: {integrity: sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + is-array-buffer: 3.0.4 + dev: true + + /array-includes@3.1.7: + resolution: {integrity: sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + get-intrinsic: 1.2.4 + is-string: 1.0.7 + dev: true + + /array-union@2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + dev: true + + /array.prototype.filter@1.0.3: + resolution: {integrity: sha512-VizNcj/RGJiUyQBgzwxzE5oHdeuXY5hSbbmKMlphj1cy1Vl7Pn2asCGbSrru6hSQjmCzqTBPVWAF/whmEOVHbw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + es-array-method-boxes-properly: 1.0.0 + is-string: 1.0.7 + dev: true + + /array.prototype.findlastindex@1.2.4: + resolution: {integrity: sha512-hzvSHUshSpCflDR1QMUBLHGHP1VIEBegT4pix9H/Z92Xw3ySoy6c2qh7lJWTJnRJ8JCZ9bJNCgTyYaJGcJu6xQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + es-errors: 1.3.0 + es-shim-unscopables: 1.0.2 + dev: true + + /array.prototype.flat@1.3.2: + resolution: {integrity: sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + es-shim-unscopables: 1.0.2 + dev: true + + /array.prototype.flatmap@1.3.2: + resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + es-shim-unscopables: 1.0.2 + dev: true + + /array.prototype.tosorted@1.1.3: + resolution: {integrity: sha512-/DdH4TiTmOKzyQbp/eadcCVexiCb36xJg7HshYOYJnNZFDj33GEv0P7GxsynpShhq4OLYJzbGcBDkLsDt7MnNg==} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + es-errors: 1.3.0 + es-shim-unscopables: 1.0.2 + dev: true + + /arraybuffer.prototype.slice@1.0.3: + resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.1 + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + is-array-buffer: 3.0.4 + is-shared-array-buffer: 1.0.3 + dev: true + + /as-table@1.0.55: + resolution: {integrity: sha512-xvsWESUJn0JN421Xb9MQw6AsMHRCUknCe0Wjlxvjud80mU4E6hQf1A6NzQKcYNmYw62MfzEtXc+badstZP3JpQ==} + dependencies: + printable-characters: 1.0.42 + dev: true + + /ast-types-flow@0.0.8: + resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==} + dev: true + + /ast-types@0.14.2: + resolution: {integrity: sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==} + engines: {node: '>=4'} + dependencies: + tslib: 2.6.2 + dev: true + + /async-listen@1.2.0: + resolution: {integrity: sha512-CcEtRh/oc9Jc4uWeUwdpG/+Mb2YUHKmdaTf0gUr7Wa+bfp4xx70HOb3RuSTJMvqKNB1TkdTfjLdrcz2X4rkkZA==} + dev: true + + /async-listen@3.0.0: + resolution: {integrity: sha512-V+SsTpDqkrWTimiotsyl33ePSjA5/KrithwupuvJ6ztsqPvGv6ge4OredFhPffVXiLN/QUWvE0XcqJaYgt6fOg==} + engines: {node: '>= 14'} + dev: true + + /async-listen@3.0.1: + resolution: {integrity: sha512-cWMaNwUJnf37C/S5TfCkk/15MwbPRwVYALA2jtjkbHjCmAPiDXyNJy2q3p1KAZzDLHAWyarUWSujUoHR4pEgrA==} + engines: {node: '>= 14'} + dev: true + + /async-sema@3.1.1: + resolution: {integrity: sha512-tLRNUXati5MFePdAk8dw7Qt7DpxPB60ofAgn8WRhW6a2rcimZnYBP9oxHiv0OHy+Wz7kPMG+t4LGdt31+4EmGg==} + dev: true + + /asynciterator.prototype@1.0.0: + resolution: {integrity: sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==} + dependencies: + has-symbols: 1.0.3 + dev: true + + /autoprefixer@10.4.17(postcss@8.4.35): + resolution: {integrity: sha512-/cpVNRLSfhOtcGflT13P2794gVSgmPgTR+erw5ifnMLZb0UnSlkK4tquLmkd3BhA+nLo5tX8Cu0upUsGKvKbmg==} + engines: {node: ^10 || ^12 || >=14} + hasBin: true + peerDependencies: + postcss: ^8.1.0 + dependencies: + browserslist: 4.23.0 + caniuse-lite: 1.0.30001589 + fraction.js: 4.3.7 + normalize-range: 0.1.2 + picocolors: 1.0.0 + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + dev: true + + /available-typed-arrays@1.0.7: + resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} + engines: {node: '>= 0.4'} + dependencies: + possible-typed-array-names: 1.0.0 + dev: true + + /axe-core@4.7.0: + resolution: {integrity: sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==} + engines: {node: '>=4'} + dev: true + + /axobject-query@3.2.1: + resolution: {integrity: sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==} + dependencies: + dequal: 2.0.3 + dev: true + + /balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + dev: true + + /binary-extensions@2.2.0: + resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} + engines: {node: '>=8'} + dev: true + + /bindings@1.5.0: + resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==} + dependencies: + file-uri-to-path: 1.0.0 + dev: true + + /blake3-wasm@2.1.5: + resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==} + dev: true + + /brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + dev: true + + /brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + dependencies: + balanced-match: 1.0.2 + dev: true + + /braces@3.0.2: + resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} + engines: {node: '>=8'} + dependencies: + fill-range: 7.0.1 + dev: true + + /browserslist@4.23.0: + resolution: {integrity: sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + dependencies: + caniuse-lite: 1.0.30001589 + electron-to-chromium: 1.4.681 + node-releases: 2.0.14 + update-browserslist-db: 1.0.13(browserslist@4.23.0) + dev: true + + /buffer-crc32@0.2.13: + resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} + dev: true + + /busboy@1.6.0: + resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} + engines: {node: '>=10.16.0'} + dependencies: + streamsearch: 1.1.0 + dev: false + + /bytes@3.1.0: + resolution: {integrity: sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==} + engines: {node: '>= 0.8'} + dev: true + + /call-bind@1.0.7: + resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} + engines: {node: '>= 0.4'} + dependencies: + es-define-property: 1.0.0 + es-errors: 1.3.0 + function-bind: 1.1.2 + get-intrinsic: 1.2.4 + set-function-length: 1.2.1 + dev: true + + /callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + dev: true + + /camelcase-css@2.0.1: + resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} + engines: {node: '>= 6'} + dev: true + + /caniuse-lite@1.0.30001589: + resolution: {integrity: sha512-vNQWS6kI+q6sBlHbh71IIeC+sRwK2N3EDySc/updIGhIee2x5z00J4c1242/5/d6EpEMdOnk/m+6tuk4/tcsqg==} + + /capnp-ts@0.7.0: + resolution: {integrity: sha512-XKxXAC3HVPv7r674zP0VC3RTXz+/JKhfyw94ljvF80yynK6VkTnqE3jMuN8b3dUVmmc43TjyxjW4KTsmB3c86g==} + dependencies: + debug: 4.3.4 + tslib: 2.6.2 + transitivePeerDependencies: + - supports-color + dev: true + + /chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + dev: true + + /chalk@5.3.0: + resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + dev: true + + /chokidar@3.3.1: + resolution: {integrity: sha512-4QYCEWOcK3OJrxwvyyAOxFuhpvOVCYkr33LPfFNBjAD/w3sEzWsp2BUOkI4l9bHvWioAd0rc6NlHUOEaWkTeqg==} + engines: {node: '>= 8.10.0'} + dependencies: + anymatch: 3.1.3 + braces: 3.0.2 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.3.0 + optionalDependencies: + fsevents: 2.1.3 + dev: true + + /chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + dependencies: + anymatch: 3.1.3 + braces: 3.0.2 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + dev: true + + /chownr@1.1.4: + resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} + dev: true + + /chownr@2.0.0: + resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==} + engines: {node: '>=10'} + dev: true + + /cjs-module-lexer@1.2.3: + resolution: {integrity: sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==} + dev: true + + /client-only@0.0.1: + resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} + dev: false + + /code-block-writer@10.1.1: + resolution: {integrity: sha512-67ueh2IRGst/51p0n6FvPrnRjAGHY5F8xdjkgrYE7DDzpJe6qA07RYQ9VcoUeo5ATOjSOiWpSL3SWBRRbempMw==} + dev: true + + /color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + dependencies: + color-name: 1.1.4 + dev: true + + /color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + dev: true + + /color-support@1.1.3: + resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==} + hasBin: true + dev: true + + /commander@11.1.0: + resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==} + engines: {node: '>=16'} + dev: true + + /commander@4.1.1: + resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} + engines: {node: '>= 6'} + dev: true + + /comment-parser@1.4.1: + resolution: {integrity: sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==} + engines: {node: '>= 12.0.0'} + dev: true + + /concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + dev: true + + /console-control-strings@1.1.0: + resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==} + dev: true + + /content-type@1.0.4: + resolution: {integrity: sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==} + engines: {node: '>= 0.6'} + dev: true + + /convert-hrtime@3.0.0: + resolution: {integrity: sha512-7V+KqSvMiHp8yWDuwfww06XleMWVVB9b9tURBx+G7UTADuo5hYPuowKloz4OzOqbPezxgo+fdQ1522WzPG4OeA==} + engines: {node: '>=8'} + dev: true + + /cookie@0.5.0: + resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==} + engines: {node: '>= 0.6'} + dev: true + + /create-require@1.1.1: + resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} + dev: true + + /cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + dev: true + + /cssesc@3.0.0: + resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + dev: true + + /damerau-levenshtein@1.0.8: + resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==} + dev: true + + /data-uri-to-buffer@2.0.2: + resolution: {integrity: sha512-ND9qDTLc6diwj+Xe5cdAgVTbLVdXbtxTJRXRhli8Mowuaan+0EJOtdqJ0QCHNSSPyoXGx9HX2/VMnKeC34AChA==} + dev: true + + /debug@3.2.7: + resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.3 + dev: true + + /debug@4.1.1: + resolution: {integrity: sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==} + deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.3 + dev: true + + /debug@4.3.4: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + dev: true + + /deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + dev: true + + /define-data-property@1.1.4: + resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} + engines: {node: '>= 0.4'} + dependencies: + es-define-property: 1.0.0 + es-errors: 1.3.0 + gopd: 1.0.1 + dev: true + + /define-properties@1.2.1: + resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.4 + has-property-descriptors: 1.0.2 + object-keys: 1.1.1 + dev: true + + /delegates@1.0.0: + resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==} + dev: true + + /depd@1.1.2: + resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==} + engines: {node: '>= 0.6'} + dev: true + + /dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + dev: true + + /detect-libc@2.0.2: + resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==} + engines: {node: '>=8'} + dev: true + + /didyoumean@1.2.2: + resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} + dev: true + + /diff@4.0.2: + resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} + engines: {node: '>=0.3.1'} + dev: true + + /dir-glob@3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + dependencies: + path-type: 4.0.0 + dev: true + + /dlv@1.1.3: + resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==} + dev: true + + /doctrine@2.1.0: + resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==} + engines: {node: '>=0.10.0'} + dependencies: + esutils: 2.0.3 + dev: true + + /doctrine@3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} + engines: {node: '>=6.0.0'} + dependencies: + esutils: 2.0.3 + dev: true + + /eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + dev: true + + /edge-runtime@2.5.9: + resolution: {integrity: sha512-pk+k0oK0PVXdlT4oRp4lwh+unuKB7Ng4iZ2HB+EZ7QCEQizX360Rp/F4aRpgpRgdP2ufB35N+1KppHmYjqIGSg==} + engines: {node: '>=16'} + hasBin: true + dependencies: + '@edge-runtime/format': 2.2.1 + '@edge-runtime/ponyfill': 2.4.2 + '@edge-runtime/vm': 3.2.0 + async-listen: 3.0.1 + mri: 1.2.0 + picocolors: 1.0.0 + pretty-ms: 7.0.1 + signal-exit: 4.0.2 + time-span: 4.0.0 + dev: true + + /electron-to-chromium@1.4.681: + resolution: {integrity: sha512-1PpuqJUFWoXZ1E54m8bsLPVYwIVCRzvaL+n5cjigGga4z854abDnFRc+cTa2th4S79kyGqya/1xoR7h+Y5G5lg==} + dev: true + + /emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + dev: true + + /emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + dev: true + + /end-of-stream@1.1.0: + resolution: {integrity: sha512-EoulkdKF/1xa92q25PbjuDcgJ9RDHYU2Rs3SCIvs2/dSQ3BpmxneNHmA/M7fe60M3PrV7nNGTTNbkK62l6vXiQ==} + dependencies: + once: 1.3.3 + dev: true + + /end-of-stream@1.4.4: + resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} + dependencies: + once: 1.4.0 + dev: true + + /enhanced-resolve@5.15.0: + resolution: {integrity: sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==} + engines: {node: '>=10.13.0'} + dependencies: + graceful-fs: 4.2.11 + tapable: 2.2.1 + dev: true + + /es-abstract@1.22.4: + resolution: {integrity: sha512-vZYJlk2u6qHYxBOTjAeg7qUxHdNfih64Uu2J8QqWgXZ2cri0ZpJAkzDUK/q593+mvKwlxyaxr6F1Q+3LKoQRgg==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.1 + arraybuffer.prototype.slice: 1.0.3 + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + es-define-property: 1.0.0 + es-errors: 1.3.0 + es-set-tostringtag: 2.0.3 + es-to-primitive: 1.2.1 + function.prototype.name: 1.1.6 + get-intrinsic: 1.2.4 + get-symbol-description: 1.0.2 + globalthis: 1.0.3 + gopd: 1.0.1 + has-property-descriptors: 1.0.2 + has-proto: 1.0.3 + has-symbols: 1.0.3 + hasown: 2.0.1 + internal-slot: 1.0.7 + is-array-buffer: 3.0.4 + is-callable: 1.2.7 + is-negative-zero: 2.0.3 + is-regex: 1.1.4 + is-shared-array-buffer: 1.0.3 + is-string: 1.0.7 + is-typed-array: 1.1.13 + is-weakref: 1.0.2 + object-inspect: 1.13.1 + object-keys: 1.1.1 + object.assign: 4.1.5 + regexp.prototype.flags: 1.5.2 + safe-array-concat: 1.1.0 + safe-regex-test: 1.0.3 + string.prototype.trim: 1.2.8 + string.prototype.trimend: 1.0.7 + string.prototype.trimstart: 1.0.7 + typed-array-buffer: 1.0.2 + typed-array-byte-length: 1.0.1 + typed-array-byte-offset: 1.0.2 + typed-array-length: 1.0.5 + unbox-primitive: 1.0.2 + which-typed-array: 1.1.14 + dev: true + + /es-array-method-boxes-properly@1.0.0: + resolution: {integrity: sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==} + dev: true + + /es-define-property@1.0.0: + resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.4 + dev: true + + /es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + dev: true + + /es-iterator-helpers@1.0.17: + resolution: {integrity: sha512-lh7BsUqelv4KUbR5a/ZTaGGIMLCjPGPqJ6q+Oq24YP0RdyptX1uzm4vvaqzk7Zx3bpl/76YLTTDj9L7uYQ92oQ==} + engines: {node: '>= 0.4'} + dependencies: + asynciterator.prototype: 1.0.0 + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + es-errors: 1.3.0 + es-set-tostringtag: 2.0.3 + function-bind: 1.1.2 + get-intrinsic: 1.2.4 + globalthis: 1.0.3 + has-property-descriptors: 1.0.2 + has-proto: 1.0.3 + has-symbols: 1.0.3 + internal-slot: 1.0.7 + iterator.prototype: 1.1.2 + safe-array-concat: 1.1.0 + dev: true + + /es-module-lexer@1.4.1: + resolution: {integrity: sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==} + dev: true + + /es-set-tostringtag@2.0.3: + resolution: {integrity: sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.4 + has-tostringtag: 1.0.2 + hasown: 2.0.1 + dev: true + + /es-shim-unscopables@1.0.2: + resolution: {integrity: sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==} + dependencies: + hasown: 2.0.1 + dev: true + + /es-to-primitive@1.2.1: + resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} + engines: {node: '>= 0.4'} + dependencies: + is-callable: 1.2.7 + is-date-object: 1.0.5 + is-symbol: 1.0.4 + dev: true + + /esbuild-android-64@0.14.47: + resolution: {integrity: sha512-R13Bd9+tqLVFndncMHssZrPWe6/0Kpv2/dt4aA69soX4PRxlzsVpCvoJeFE8sOEoeVEiBkI0myjlkDodXlHa0g==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /esbuild-android-64@0.15.18: + resolution: {integrity: sha512-wnpt3OXRhcjfIDSZu9bnzT4/TNTDsOUvip0foZOUBG7QbSt//w3QV4FInVJxNhKc/ErhUxc5z4QjHtMi7/TbgA==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /esbuild-android-arm64@0.14.47: + resolution: {integrity: sha512-OkwOjj7ts4lBp/TL6hdd8HftIzOy/pdtbrNA4+0oVWgGG64HrdVzAF5gxtJufAPOsEjkyh1oIYvKAUinKKQRSQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /esbuild-android-arm64@0.15.18: + resolution: {integrity: sha512-G4xu89B8FCzav9XU8EjsXacCKSG2FT7wW9J6hOc18soEHJdtWu03L3TQDGf0geNxfLTtxENKBzMSq9LlbjS8OQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /esbuild-darwin-64@0.14.47: + resolution: {integrity: sha512-R6oaW0y5/u6Eccti/TS6c/2c1xYTb1izwK3gajJwi4vIfNs1s8B1dQzI1UiC9T61YovOQVuePDcfqHLT3mUZJA==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /esbuild-darwin-64@0.15.18: + resolution: {integrity: sha512-2WAvs95uPnVJPuYKP0Eqx+Dl/jaYseZEUUT1sjg97TJa4oBtbAKnPnl3b5M9l51/nbx7+QAEtuummJZW0sBEmg==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /esbuild-darwin-arm64@0.14.47: + resolution: {integrity: sha512-seCmearlQyvdvM/noz1L9+qblC5vcBrhUaOoLEDDoLInF/VQ9IkobGiLlyTPYP5dW1YD4LXhtBgOyevoIHGGnw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /esbuild-darwin-arm64@0.15.18: + resolution: {integrity: sha512-tKPSxcTJ5OmNb1btVikATJ8NftlyNlc8BVNtyT/UAr62JFOhwHlnoPrhYWz09akBLHI9nElFVfWSTSRsrZiDUA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /esbuild-freebsd-64@0.14.47: + resolution: {integrity: sha512-ZH8K2Q8/Ux5kXXvQMDsJcxvkIwut69KVrYQhza/ptkW50DC089bCVrJZZ3sKzIoOx+YPTrmsZvqeZERjyYrlvQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-freebsd-64@0.15.18: + resolution: {integrity: sha512-TT3uBUxkteAjR1QbsmvSsjpKjOX6UkCstr8nMr+q7zi3NuZ1oIpa8U41Y8I8dJH2fJgdC3Dj3CXO5biLQpfdZA==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-freebsd-arm64@0.14.47: + resolution: {integrity: sha512-ZJMQAJQsIOhn3XTm7MPQfCzEu5b9STNC+s90zMWe2afy9EwnHV7Ov7ohEMv2lyWlc2pjqLW8QJnz2r0KZmeAEQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-freebsd-arm64@0.15.18: + resolution: {integrity: sha512-R/oVr+X3Tkh+S0+tL41wRMbdWtpWB8hEAMsOXDumSSa6qJR89U0S/PpLXrGF7Wk/JykfpWNokERUpCeHDl47wA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-32@0.14.47: + resolution: {integrity: sha512-FxZOCKoEDPRYvq300lsWCTv1kcHgiiZfNrPtEhFAiqD7QZaXrad8LxyJ8fXGcWzIFzRiYZVtB3ttvITBvAFhKw==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-32@0.15.18: + resolution: {integrity: sha512-lphF3HiCSYtaa9p1DtXndiQEeQDKPl9eN/XNoBf2amEghugNuqXNZA/ZovthNE2aa4EN43WroO0B85xVSjYkbg==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-64@0.14.47: + resolution: {integrity: sha512-nFNOk9vWVfvWYF9YNYksZptgQAdstnDCMtR6m42l5Wfugbzu11VpMCY9XrD4yFxvPo9zmzcoUL/88y0lfJZJJw==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-64@0.15.18: + resolution: {integrity: sha512-hNSeP97IviD7oxLKFuii5sDPJ+QHeiFTFLoLm7NZQligur8poNOWGIgpQ7Qf8Balb69hptMZzyOBIPtY09GZYw==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-arm64@0.14.47: + resolution: {integrity: sha512-ywfme6HVrhWcevzmsufjd4iT3PxTfCX9HOdxA7Hd+/ZM23Y9nXeb+vG6AyA6jgq/JovkcqRHcL9XwRNpWG6XRw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-arm64@0.15.18: + resolution: {integrity: sha512-54qr8kg/6ilcxd+0V3h9rjT4qmjc0CccMVWrjOEM/pEcUzt8X62HfBSeZfT2ECpM7104mk4yfQXkosY8Quptug==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-arm@0.14.47: + resolution: {integrity: sha512-ZGE1Bqg/gPRXrBpgpvH81tQHpiaGxa8c9Rx/XOylkIl2ypLuOcawXEAo8ls+5DFCcRGt/o3sV+PzpAFZobOsmA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-arm@0.15.18: + resolution: {integrity: sha512-UH779gstRblS4aoS2qpMl3wjg7U0j+ygu3GjIeTonCcN79ZvpPee12Qun3vcdxX+37O5LFxz39XeW2I9bybMVA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-mips64le@0.14.47: + resolution: {integrity: sha512-mg3D8YndZ1LvUiEdDYR3OsmeyAew4MA/dvaEJxvyygahWmpv1SlEEnhEZlhPokjsUMfRagzsEF/d/2XF+kTQGg==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-mips64le@0.15.18: + resolution: {integrity: sha512-Mk6Ppwzzz3YbMl/ZZL2P0q1tnYqh/trYZ1VfNP47C31yT0K8t9s7Z077QrDA/guU60tGNp2GOwCQnp+DYv7bxQ==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-ppc64le@0.14.47: + resolution: {integrity: sha512-WER+f3+szmnZiWoK6AsrTKGoJoErG2LlauSmk73LEZFQ/iWC+KhhDsOkn1xBUpzXWsxN9THmQFltLoaFEH8F8w==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-ppc64le@0.15.18: + resolution: {integrity: sha512-b0XkN4pL9WUulPTa/VKHx2wLCgvIAbgwABGnKMY19WhKZPT+8BxhZdqz6EgkqCLld7X5qiCY2F/bfpUUlnFZ9w==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-riscv64@0.14.47: + resolution: {integrity: sha512-1fI6bP3A3rvI9BsaaXbMoaOjLE3lVkJtLxsgLHqlBhLlBVY7UqffWBvkrX/9zfPhhVMd9ZRFiaqXnB1T7BsL2g==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-riscv64@0.15.18: + resolution: {integrity: sha512-ba2COaoF5wL6VLZWn04k+ACZjZ6NYniMSQStodFKH/Pu6RxzQqzsmjR1t9QC89VYJxBeyVPTaHuBMCejl3O/xg==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-s390x@0.14.47: + resolution: {integrity: sha512-eZrWzy0xFAhki1CWRGnhsHVz7IlSKX6yT2tj2Eg8lhAwlRE5E96Hsb0M1mPSE1dHGpt1QVwwVivXIAacF/G6mw==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-s390x@0.15.18: + resolution: {integrity: sha512-VbpGuXEl5FCs1wDVp93O8UIzl3ZrglgnSQ+Hu79g7hZu6te6/YHgVJxCM2SqfIila0J3k0csfnf8VD2W7u2kzQ==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-netbsd-64@0.14.47: + resolution: {integrity: sha512-Qjdjr+KQQVH5Q2Q1r6HBYswFTToPpss3gqCiSw2Fpq/ua8+eXSQyAMG+UvULPqXceOwpnPo4smyZyHdlkcPppQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-netbsd-64@0.15.18: + resolution: {integrity: sha512-98ukeCdvdX7wr1vUYQzKo4kQ0N2p27H7I11maINv73fVEXt2kyh4K4m9f35U1K43Xc2QGXlzAw0K9yoU7JUjOg==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-openbsd-64@0.14.47: + resolution: {integrity: sha512-QpgN8ofL7B9z8g5zZqJE+eFvD1LehRlxr25PBkjyyasakm4599iroUpaj96rdqRlO2ShuyqwJdr+oNqWwTUmQw==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-openbsd-64@0.15.18: + resolution: {integrity: sha512-yK5NCcH31Uae076AyQAXeJzt/vxIo9+omZRKj1pauhk3ITuADzuOx5N2fdHrAKPxN+zH3w96uFKlY7yIn490xQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-sunos-64@0.14.47: + resolution: {integrity: sha512-uOeSgLUwukLioAJOiGYm3kNl+1wJjgJA8R671GYgcPgCx7QR73zfvYqXFFcIO93/nBdIbt5hd8RItqbbf3HtAQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + + /esbuild-sunos-64@0.15.18: + resolution: {integrity: sha512-On22LLFlBeLNj/YF3FT+cXcyKPEI263nflYlAhz5crxtp3yRG1Ugfr7ITyxmCmjm4vbN/dGrb/B7w7U8yJR9yw==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + + /esbuild-windows-32@0.14.47: + resolution: {integrity: sha512-H0fWsLTp2WBfKLBgwYT4OTfFly4Im/8B5f3ojDv1Kx//kiubVY0IQunP2Koc/fr/0wI7hj3IiBDbSrmKlrNgLQ==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /esbuild-windows-32@0.15.18: + resolution: {integrity: sha512-o+eyLu2MjVny/nt+E0uPnBxYuJHBvho8vWsC2lV61A7wwTWC3jkN2w36jtA+yv1UgYkHRihPuQsL23hsCYGcOQ==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /esbuild-windows-64@0.14.47: + resolution: {integrity: sha512-/Pk5jIEH34T68r8PweKRi77W49KwanZ8X6lr3vDAtOlH5EumPE4pBHqkCUdELanvsT14yMXLQ/C/8XPi1pAtkQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /esbuild-windows-64@0.15.18: + resolution: {integrity: sha512-qinug1iTTaIIrCorAUjR0fcBk24fjzEedFYhhispP8Oc7SFvs+XeW3YpAKiKp8dRpizl4YYAhxMjlftAMJiaUw==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /esbuild-windows-arm64@0.14.47: + resolution: {integrity: sha512-HFSW2lnp62fl86/qPQlqw6asIwCnEsEoNIL1h2uVMgakddf+vUuMcCbtUY1i8sst7KkgHrVKCJQB33YhhOweCQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /esbuild-windows-arm64@0.15.18: + resolution: {integrity: sha512-q9bsYzegpZcLziq0zgUi5KqGVtfhjxGbnksaBFYmWLxeV/S1fK4OLdq2DFYnXcLMjlZw2L0jLsk1eGoB522WXQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /esbuild@0.14.47: + resolution: {integrity: sha512-wI4ZiIfFxpkuxB8ju4MHrGwGLyp1+awEHAHVpx6w7a+1pmYIq8T9FGEVVwFo0iFierDoMj++Xq69GXWYn2EiwA==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + esbuild-android-64: 0.14.47 + esbuild-android-arm64: 0.14.47 + esbuild-darwin-64: 0.14.47 + esbuild-darwin-arm64: 0.14.47 + esbuild-freebsd-64: 0.14.47 + esbuild-freebsd-arm64: 0.14.47 + esbuild-linux-32: 0.14.47 + esbuild-linux-64: 0.14.47 + esbuild-linux-arm: 0.14.47 + esbuild-linux-arm64: 0.14.47 + esbuild-linux-mips64le: 0.14.47 + esbuild-linux-ppc64le: 0.14.47 + esbuild-linux-riscv64: 0.14.47 + esbuild-linux-s390x: 0.14.47 + esbuild-netbsd-64: 0.14.47 + esbuild-openbsd-64: 0.14.47 + esbuild-sunos-64: 0.14.47 + esbuild-windows-32: 0.14.47 + esbuild-windows-64: 0.14.47 + esbuild-windows-arm64: 0.14.47 + dev: true + + /esbuild@0.15.18: + resolution: {integrity: sha512-x/R72SmW3sSFRm5zrrIjAhCeQSAWoni3CmHEqfQrZIQTM3lVCdehdwuIqaOtfC2slvpdlLa62GYoN8SxT23m6Q==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/android-arm': 0.15.18 + '@esbuild/linux-loong64': 0.15.18 + esbuild-android-64: 0.15.18 + esbuild-android-arm64: 0.15.18 + esbuild-darwin-64: 0.15.18 + esbuild-darwin-arm64: 0.15.18 + esbuild-freebsd-64: 0.15.18 + esbuild-freebsd-arm64: 0.15.18 + esbuild-linux-32: 0.15.18 + esbuild-linux-64: 0.15.18 + esbuild-linux-arm: 0.15.18 + esbuild-linux-arm64: 0.15.18 + esbuild-linux-mips64le: 0.15.18 + esbuild-linux-ppc64le: 0.15.18 + esbuild-linux-riscv64: 0.15.18 + esbuild-linux-s390x: 0.15.18 + esbuild-netbsd-64: 0.15.18 + esbuild-openbsd-64: 0.15.18 + esbuild-sunos-64: 0.15.18 + esbuild-windows-32: 0.15.18 + esbuild-windows-64: 0.15.18 + esbuild-windows-arm64: 0.15.18 + dev: true + + /esbuild@0.17.19: + resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/android-arm': 0.17.19 + '@esbuild/android-arm64': 0.17.19 + '@esbuild/android-x64': 0.17.19 + '@esbuild/darwin-arm64': 0.17.19 + '@esbuild/darwin-x64': 0.17.19 + '@esbuild/freebsd-arm64': 0.17.19 + '@esbuild/freebsd-x64': 0.17.19 + '@esbuild/linux-arm': 0.17.19 + '@esbuild/linux-arm64': 0.17.19 + '@esbuild/linux-ia32': 0.17.19 + '@esbuild/linux-loong64': 0.17.19 + '@esbuild/linux-mips64el': 0.17.19 + '@esbuild/linux-ppc64': 0.17.19 + '@esbuild/linux-riscv64': 0.17.19 + '@esbuild/linux-s390x': 0.17.19 + '@esbuild/linux-x64': 0.17.19 + '@esbuild/netbsd-x64': 0.17.19 + '@esbuild/openbsd-x64': 0.17.19 + '@esbuild/sunos-x64': 0.17.19 + '@esbuild/win32-arm64': 0.17.19 + '@esbuild/win32-ia32': 0.17.19 + '@esbuild/win32-x64': 0.17.19 + dev: true + + /escalade@3.1.2: + resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==} + engines: {node: '>=6'} + dev: true + + /escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + dev: true + + /eslint-config-next@14.1.0(eslint@8.57.0)(typescript@5.3.3): + resolution: {integrity: sha512-SBX2ed7DoRFXC6CQSLc/SbLY9Ut6HxNB2wPTcoIWjUMd7aF7O/SIE7111L8FdZ9TXsNV4pulUDnfthpyPtbFUg==} + peerDependencies: + eslint: ^7.23.0 || ^8.0.0 + typescript: '>=3.3.1' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@next/eslint-plugin-next': 14.1.0 + '@rushstack/eslint-patch': 1.7.2 + '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.3.3) + eslint: 8.57.0 + eslint-import-resolver-node: 0.3.9 + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + eslint-plugin-jsx-a11y: 6.8.0(eslint@8.57.0) + eslint-plugin-react: 7.33.2(eslint@8.57.0) + eslint-plugin-react-hooks: 4.6.0(eslint@8.57.0) + typescript: 5.3.3 + transitivePeerDependencies: + - eslint-import-resolver-webpack + - supports-color + dev: true + + /eslint-import-resolver-node@0.3.9: + resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==} + dependencies: + debug: 3.2.7 + is-core-module: 2.13.1 + resolve: 1.22.8 + transitivePeerDependencies: + - supports-color + dev: true + + /eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0): + resolution: {integrity: sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + eslint: '*' + eslint-plugin-import: '*' + dependencies: + debug: 4.3.4 + enhanced-resolve: 5.15.0 + eslint: 8.57.0 + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + fast-glob: 3.3.2 + get-tsconfig: 4.7.2 + is-core-module: 2.13.1 + is-glob: 4.0.3 + transitivePeerDependencies: + - '@typescript-eslint/parser' + - eslint-import-resolver-node + - eslint-import-resolver-webpack + - supports-color + dev: true + + /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0): + resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} + engines: {node: '>=4'} + peerDependencies: + '@typescript-eslint/parser': '*' + eslint: '*' + eslint-import-resolver-node: '*' + eslint-import-resolver-typescript: '*' + eslint-import-resolver-webpack: '*' + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true + eslint: + optional: true + eslint-import-resolver-node: + optional: true + eslint-import-resolver-typescript: + optional: true + eslint-import-resolver-webpack: + optional: true + dependencies: + '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.3.3) + debug: 3.2.7 + eslint: 8.57.0 + eslint-import-resolver-node: 0.3.9 + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0) + transitivePeerDependencies: + - supports-color + dev: true + + /eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0): + resolution: {integrity: sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==} + engines: {node: '>=4'} + peerDependencies: + '@typescript-eslint/parser': '*' + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true + dependencies: + '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.3.3) + array-includes: 3.1.7 + array.prototype.findlastindex: 1.2.4 + array.prototype.flat: 1.3.2 + array.prototype.flatmap: 1.3.2 + debug: 3.2.7 + doctrine: 2.1.0 + eslint: 8.57.0 + eslint-import-resolver-node: 0.3.9 + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + hasown: 2.0.1 + is-core-module: 2.13.1 + is-glob: 4.0.3 + minimatch: 3.1.2 + object.fromentries: 2.0.7 + object.groupby: 1.0.2 + object.values: 1.1.7 + semver: 6.3.1 + tsconfig-paths: 3.15.0 + transitivePeerDependencies: + - eslint-import-resolver-typescript + - eslint-import-resolver-webpack + - supports-color + dev: true + + /eslint-plugin-jsx-a11y@6.8.0(eslint@8.57.0): + resolution: {integrity: sha512-Hdh937BS3KdwwbBaKd5+PLCOmYY6U4f2h9Z2ktwtNKvIdIEu137rjYbcb9ApSbVJfWxANNuiKTD/9tOKjK9qOA==} + engines: {node: '>=4.0'} + peerDependencies: + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 + dependencies: + '@babel/runtime': 7.23.9 + aria-query: 5.3.0 + array-includes: 3.1.7 + array.prototype.flatmap: 1.3.2 + ast-types-flow: 0.0.8 + axe-core: 4.7.0 + axobject-query: 3.2.1 + damerau-levenshtein: 1.0.8 + emoji-regex: 9.2.2 + es-iterator-helpers: 1.0.17 + eslint: 8.57.0 + hasown: 2.0.1 + jsx-ast-utils: 3.3.5 + language-tags: 1.0.9 + minimatch: 3.1.2 + object.entries: 1.1.7 + object.fromentries: 2.0.7 + dev: true + + /eslint-plugin-next-on-pages@1.9.0(eslint@8.57.0): + resolution: {integrity: sha512-Iq1kTKlHRWKkvg4PV7vFMs/wLjmyyuTsOAa7O8JdmrRPbev3rlfoKaDgDGFmkxvgHRnxEFlVJ1BTZzHJwPe/Ew==} + peerDependencies: + eslint: ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + '@types/estree-jsx': 1.0.5 + comment-parser: 1.4.1 + eslint: 8.57.0 + dev: true + + /eslint-plugin-react-hooks@4.6.0(eslint@8.57.0): + resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==} + engines: {node: '>=10'} + peerDependencies: + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 + dependencies: + eslint: 8.57.0 + dev: true + + /eslint-plugin-react@7.33.2(eslint@8.57.0): + resolution: {integrity: sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==} + engines: {node: '>=4'} + peerDependencies: + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 + dependencies: + array-includes: 3.1.7 + array.prototype.flatmap: 1.3.2 + array.prototype.tosorted: 1.1.3 + doctrine: 2.1.0 + es-iterator-helpers: 1.0.17 + eslint: 8.57.0 + estraverse: 5.3.0 + jsx-ast-utils: 3.3.5 + minimatch: 3.1.2 + object.entries: 1.1.7 + object.fromentries: 2.0.7 + object.hasown: 1.1.3 + object.values: 1.1.7 + prop-types: 15.8.1 + resolve: 2.0.0-next.5 + semver: 6.3.1 + string.prototype.matchall: 4.0.10 + dev: true + + /eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + dev: true + + /eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /eslint@8.57.0: + resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + hasBin: true + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/regexpp': 4.10.0 + '@eslint/eslintrc': 2.1.4 + '@eslint/js': 8.57.0 + '@humanwhocodes/config-array': 0.11.14 + '@humanwhocodes/module-importer': 1.0.1 + '@nodelib/fs.walk': 1.2.8 + '@ungap/structured-clone': 1.2.0 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.3 + debug: 4.3.4 + doctrine: 3.0.0 + escape-string-regexp: 4.0.0 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + esquery: 1.5.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + find-up: 5.0.0 + glob-parent: 6.0.2 + globals: 13.24.0 + graphemer: 1.4.0 + ignore: 5.3.1 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + is-path-inside: 3.0.3 + js-yaml: 4.1.0 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.3 + strip-ansi: 6.0.1 + text-table: 0.2.0 + transitivePeerDependencies: + - supports-color + dev: true + + /espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + acorn: 8.11.3 + acorn-jsx: 5.3.2(acorn@8.11.3) + eslint-visitor-keys: 3.4.3 + dev: true + + /esquery@1.5.0: + resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==} + engines: {node: '>=0.10'} + dependencies: + estraverse: 5.3.0 + dev: true + + /esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + dependencies: + estraverse: 5.3.0 + dev: true + + /estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + dev: true + + /estree-walker@0.6.1: + resolution: {integrity: sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==} + dev: true + + /estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + dev: true + + /esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + dev: true + + /etag@1.8.1: + resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} + engines: {node: '>= 0.6'} + dev: true + + /events-intercept@2.0.0: + resolution: {integrity: sha512-blk1va0zol9QOrdZt0rFXo5KMkNPVSp92Eju/Qz8THwKWKRKeE0T8Br/1aW6+Edkyq9xHYgYxn2QtOnUKPUp+Q==} + dev: true + + /execa@3.2.0: + resolution: {integrity: sha512-kJJfVbI/lZE1PZYDI5VPxp8zXPO9rtxOkhpZ0jMKha56AI9y2gGVC6bkukStQf0ka5Rh15BA5m7cCCH4jmHqkw==} + engines: {node: ^8.12.0 || >=9.7.0} + dependencies: + cross-spawn: 7.0.3 + get-stream: 5.2.0 + human-signals: 1.1.1 + is-stream: 2.0.1 + merge-stream: 2.0.0 + npm-run-path: 4.0.1 + onetime: 5.1.2 + p-finally: 2.0.1 + signal-exit: 3.0.7 + strip-final-newline: 2.0.0 + dev: true + + /exit-hook@2.2.1: + resolution: {integrity: sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw==} + engines: {node: '>=6'} + dev: true + + /fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + dev: true + + /fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 + dev: true + + /fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + dev: true + + /fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + dev: true + + /fastq@1.17.1: + resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} + dependencies: + reusify: 1.0.4 + dev: true + + /fd-slicer@1.1.0: + resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==} + dependencies: + pend: 1.2.0 + dev: true + + /file-entry-cache@6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + flat-cache: 3.2.0 + dev: true + + /file-uri-to-path@1.0.0: + resolution: {integrity: sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==} + dev: true + + /fill-range@7.0.1: + resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} + engines: {node: '>=8'} + dependencies: + to-regex-range: 5.0.1 + dev: true + + /find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + dev: true + + /flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + flatted: 3.3.1 + keyv: 4.5.4 + rimraf: 3.0.2 + dev: true + + /flatted@3.3.1: + resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} + dev: true + + /for-each@0.3.3: + resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} + dependencies: + is-callable: 1.2.7 + dev: true + + /foreground-child@3.1.1: + resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} + engines: {node: '>=14'} + dependencies: + cross-spawn: 7.0.3 + signal-exit: 4.1.0 + dev: true + + /fraction.js@4.3.7: + resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==} + dev: true + + /fs-extra@11.1.0: + resolution: {integrity: sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw==} + engines: {node: '>=14.14'} + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.1.0 + universalify: 2.0.1 + dev: true + + /fs-extra@8.1.0: + resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} + engines: {node: '>=6 <7 || >=8'} + dependencies: + graceful-fs: 4.2.11 + jsonfile: 4.0.0 + universalify: 0.1.2 + dev: true + + /fs-minipass@1.2.7: + resolution: {integrity: sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==} + dependencies: + minipass: 2.9.0 + dev: true + + /fs-minipass@2.1.0: + resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==} + engines: {node: '>= 8'} + dependencies: + minipass: 3.3.6 + dev: true + + /fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + dev: true + + /fsevents@2.1.3: + resolution: {integrity: sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + deprecated: '"Please update to latest v2.3 or v2.2"' + requiresBuild: true + dev: true + optional: true + + /fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + dev: true + + /function.prototype.name@1.1.6: + resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + functions-have-names: 1.2.3 + dev: true + + /functions-have-names@1.2.3: + resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} + dev: true + + /gauge@3.0.2: + resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==} + engines: {node: '>=10'} + dependencies: + aproba: 2.0.0 + color-support: 1.1.3 + console-control-strings: 1.1.0 + has-unicode: 2.0.1 + object-assign: 4.1.1 + signal-exit: 3.0.7 + string-width: 4.2.3 + strip-ansi: 6.0.1 + wide-align: 1.1.5 + dev: true + + /generic-pool@3.4.2: + resolution: {integrity: sha512-H7cUpwCQSiJmAHM4c/aFu6fUfrhWXW1ncyh8ftxEPMu6AiYkHw9K8br720TGPZJbk5eOH2bynjZD1yPvdDAmag==} + engines: {node: '>= 4'} + dev: true + + /get-intrinsic@1.2.4: + resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} + engines: {node: '>= 0.4'} + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + has-proto: 1.0.3 + has-symbols: 1.0.3 + hasown: 2.0.1 + dev: true + + /get-source@2.0.12: + resolution: {integrity: sha512-X5+4+iD+HoSeEED+uwrQ07BOQr0kEDFMVqqpBuI+RaZBpBpHCuXxo70bjar6f0b0u/DQJsJ7ssurpP0V60Az+w==} + dependencies: + data-uri-to-buffer: 2.0.2 + source-map: 0.6.1 + dev: true + + /get-stream@5.2.0: + resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==} + engines: {node: '>=8'} + dependencies: + pump: 3.0.0 + dev: true + + /get-symbol-description@1.0.2: + resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + dev: true + + /get-tsconfig@4.7.2: + resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==} + dependencies: + resolve-pkg-maps: 1.0.0 + dev: true + + /glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + dependencies: + is-glob: 4.0.3 + dev: true + + /glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + dependencies: + is-glob: 4.0.3 + dev: true + + /glob-to-regexp@0.4.1: + resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} + dev: true + + /glob@10.3.10: + resolution: {integrity: sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==} + engines: {node: '>=16 || 14 >=14.17'} + hasBin: true + dependencies: + foreground-child: 3.1.1 + jackspeak: 2.3.6 + minimatch: 9.0.3 + minipass: 7.0.4 + path-scurry: 1.10.1 + dev: true + + /glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: true + + /globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} + engines: {node: '>=8'} + dependencies: + type-fest: 0.20.2 + dev: true + + /globalthis@1.0.3: + resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} + engines: {node: '>= 0.4'} + dependencies: + define-properties: 1.2.1 + dev: true + + /globby@11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} + engines: {node: '>=10'} + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.3.2 + ignore: 5.3.1 + merge2: 1.4.1 + slash: 3.0.0 + dev: true + + /gopd@1.0.1: + resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} + dependencies: + get-intrinsic: 1.2.4 + dev: true + + /graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + /graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + dev: true + + /has-bigints@1.0.2: + resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} + dev: true + + /has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + dev: true + + /has-property-descriptors@1.0.2: + resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} + dependencies: + es-define-property: 1.0.0 + dev: true + + /has-proto@1.0.3: + resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==} + engines: {node: '>= 0.4'} + dev: true + + /has-symbols@1.0.3: + resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==} + engines: {node: '>= 0.4'} + dev: true + + /has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} + dependencies: + has-symbols: 1.0.3 + dev: true + + /has-unicode@2.0.1: + resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==} + dev: true + + /hasown@2.0.1: + resolution: {integrity: sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==} + engines: {node: '>= 0.4'} + dependencies: + function-bind: 1.1.2 + dev: true + + /http-errors@1.4.0: + resolution: {integrity: sha512-oLjPqve1tuOl5aRhv8GK5eHpqP1C9fb+Ol+XTLjKfLltE44zdDbEdjPSbU7Ch5rSNsVFqZn97SrMmZLdu1/YMw==} + engines: {node: '>= 0.6'} + dependencies: + inherits: 2.0.1 + statuses: 1.5.0 + dev: true + + /http-errors@1.7.3: + resolution: {integrity: sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==} + engines: {node: '>= 0.6'} + dependencies: + depd: 1.1.2 + inherits: 2.0.4 + setprototypeof: 1.1.1 + statuses: 1.5.0 + toidentifier: 1.0.0 + dev: true + + /https-proxy-agent@5.0.1: + resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} + engines: {node: '>= 6'} + dependencies: + agent-base: 6.0.2 + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /human-signals@1.1.1: + resolution: {integrity: sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==} + engines: {node: '>=8.12.0'} + dev: true + + /iconv-lite@0.4.24: + resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} + engines: {node: '>=0.10.0'} + dependencies: + safer-buffer: 2.1.2 + dev: true + + /ignore@5.3.1: + resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==} + engines: {node: '>= 4'} + dev: true + + /import-fresh@3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} + engines: {node: '>=6'} + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + dev: true + + /imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + dev: true + + /inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + dev: true + + /inherits@2.0.1: + resolution: {integrity: sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA==} + dev: true + + /inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + dev: true + + /internal-slot@1.0.7: + resolution: {integrity: sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==} + engines: {node: '>= 0.4'} + dependencies: + es-errors: 1.3.0 + hasown: 2.0.1 + side-channel: 1.0.5 + dev: true + + /is-array-buffer@3.0.4: + resolution: {integrity: sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + get-intrinsic: 1.2.4 + dev: true + + /is-async-function@2.0.0: + resolution: {integrity: sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.2 + dev: true + + /is-bigint@1.0.4: + resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} + dependencies: + has-bigints: 1.0.2 + dev: true + + /is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + dependencies: + binary-extensions: 2.2.0 + dev: true + + /is-boolean-object@1.1.2: + resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + has-tostringtag: 1.0.2 + dev: true + + /is-callable@1.2.7: + resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==} + engines: {node: '>= 0.4'} + dev: true + + /is-core-module@2.13.1: + resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} + dependencies: + hasown: 2.0.1 + dev: true + + /is-date-object@1.0.5: + resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.2 + dev: true + + /is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + dev: true + + /is-finalizationregistry@1.0.2: + resolution: {integrity: sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==} + dependencies: + call-bind: 1.0.7 + dev: true + + /is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + dev: true + + /is-generator-function@1.0.10: + resolution: {integrity: sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.2 + dev: true + + /is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + dependencies: + is-extglob: 2.1.1 + dev: true + + /is-map@2.0.2: + resolution: {integrity: sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==} + dev: true + + /is-negative-zero@2.0.3: + resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==} + engines: {node: '>= 0.4'} + dev: true + + /is-number-object@1.0.7: + resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.2 + dev: true + + /is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + dev: true + + /is-path-inside@3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} + engines: {node: '>=8'} + dev: true + + /is-regex@1.1.4: + resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + has-tostringtag: 1.0.2 + dev: true + + /is-set@2.0.2: + resolution: {integrity: sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==} + dev: true + + /is-shared-array-buffer@1.0.3: + resolution: {integrity: sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + dev: true + + /is-stream@2.0.1: + resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} + engines: {node: '>=8'} + dev: true + + /is-string@1.0.7: + resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.2 + dev: true + + /is-symbol@1.0.4: + resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==} + engines: {node: '>= 0.4'} + dependencies: + has-symbols: 1.0.3 + dev: true + + /is-typed-array@1.1.13: + resolution: {integrity: sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==} + engines: {node: '>= 0.4'} + dependencies: + which-typed-array: 1.1.14 + dev: true + + /is-weakmap@2.0.1: + resolution: {integrity: sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==} + dev: true + + /is-weakref@1.0.2: + resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} + dependencies: + call-bind: 1.0.7 + dev: true + + /is-weakset@2.0.2: + resolution: {integrity: sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==} + dependencies: + call-bind: 1.0.7 + get-intrinsic: 1.2.4 + dev: true + + /isarray@0.0.1: + resolution: {integrity: sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==} + dev: true + + /isarray@2.0.5: + resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} + dev: true + + /isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + dev: true + + /iterator.prototype@1.1.2: + resolution: {integrity: sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==} + dependencies: + define-properties: 1.2.1 + get-intrinsic: 1.2.4 + has-symbols: 1.0.3 + reflect.getprototypeof: 1.0.5 + set-function-name: 2.0.2 + dev: true + + /jackspeak@2.3.6: + resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} + engines: {node: '>=14'} + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + dev: true + + /jiti@1.21.0: + resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==} + hasBin: true + dev: true + + /js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + /js-yaml@4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + hasBin: true + dependencies: + argparse: 2.0.1 + dev: true + + /json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + dev: true + + /json-schema-to-ts@1.6.4: + resolution: {integrity: sha512-pR4yQ9DHz6itqswtHCm26mw45FSNfQ9rEQjosaZErhn5J3J2sIViQiz8rDaezjKAhFGpmsoczYVBgGHzFw/stA==} + dependencies: + '@types/json-schema': 7.0.15 + ts-toolbelt: 6.15.5 + dev: true + + /json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + dev: true + + /json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + dev: true + + /json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + dev: true + + /json5@1.0.2: + resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==} + hasBin: true + dependencies: + minimist: 1.2.8 + dev: true + + /jsonfile@4.0.0: + resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} + optionalDependencies: + graceful-fs: 4.2.11 + dev: true + + /jsonfile@6.1.0: + resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} + dependencies: + universalify: 2.0.1 + optionalDependencies: + graceful-fs: 4.2.11 + dev: true + + /jsx-ast-utils@3.3.5: + resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==} + engines: {node: '>=4.0'} + dependencies: + array-includes: 3.1.7 + array.prototype.flat: 1.3.2 + object.assign: 4.1.5 + object.values: 1.1.7 + dev: true + + /keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + dependencies: + json-buffer: 3.0.1 + dev: true + + /language-subtag-registry@0.3.22: + resolution: {integrity: sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==} + dev: true + + /language-tags@1.0.9: + resolution: {integrity: sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==} + engines: {node: '>=0.10'} + dependencies: + language-subtag-registry: 0.3.22 + dev: true + + /levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + dev: true + + /lilconfig@2.1.0: + resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} + engines: {node: '>=10'} + dev: true + + /lilconfig@3.1.1: + resolution: {integrity: sha512-O18pf7nyvHTckunPWCV1XUNXU1piu01y2b7ATJ0ppkUkk8ocqVWBrYjJBCwHDjD/ZWcfyrA0P4gKhzWGi5EINQ==} + engines: {node: '>=14'} + dev: true + + /lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + dev: true + + /locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + dependencies: + p-locate: 5.0.0 + dev: true + + /lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + dev: true + + /loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + dependencies: + js-tokens: 4.0.0 + + /lru-cache@10.2.0: + resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} + engines: {node: 14 || >=16.14} + dev: true + + /lru-cache@6.0.0: + resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} + engines: {node: '>=10'} + dependencies: + yallist: 4.0.0 + dev: true + + /magic-string@0.25.9: + resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} + dependencies: + sourcemap-codec: 1.4.8 + dev: true + + /make-dir@3.1.0: + resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} + engines: {node: '>=8'} + dependencies: + semver: 6.3.1 + dev: true + + /make-error@1.3.6: + resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} + dev: true + + /merge-stream@2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + dev: true + + /merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + dev: true + + /micro@9.3.5-canary.3: + resolution: {integrity: sha512-viYIo9PefV+w9dvoIBh1gI44Mvx1BOk67B4BpC2QK77qdY0xZF0Q+vWLt/BII6cLkIc8rLmSIcJaB/OrXXKe1g==} + engines: {node: '>= 8.0.0'} + hasBin: true + dependencies: + arg: 4.1.0 + content-type: 1.0.4 + raw-body: 2.4.1 + dev: true + + /micromatch@4.0.5: + resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} + engines: {node: '>=8.6'} + dependencies: + braces: 3.0.2 + picomatch: 2.3.1 + dev: true + + /mime@3.0.0: + resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} + engines: {node: '>=10.0.0'} + hasBin: true + dev: true + + /mimic-fn@2.1.0: + resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} + engines: {node: '>=6'} + dev: true + + /miniflare@3.20240208.0: + resolution: {integrity: sha512-NnP3MQFh2pV7iETNmJzSlMBF/KhRA+XT4A7JLCfxunadQSPbTMMgbsZo9EfLloMwHMUhZGNVot3Pvh+VnT2joQ==} + engines: {node: '>=16.13'} + hasBin: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + acorn: 8.11.3 + acorn-walk: 8.3.2 + capnp-ts: 0.7.0 + exit-hook: 2.2.1 + glob-to-regexp: 0.4.1 + stoppable: 1.1.0 + undici: 5.28.3 + workerd: 1.20240208.0 + ws: 8.16.0 + youch: 3.3.3 + zod: 3.22.4 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: true + + /minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + dependencies: + brace-expansion: 1.1.11 + dev: true + + /minimatch@9.0.3: + resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + dev: true + + /minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + dev: true + + /minipass@2.9.0: + resolution: {integrity: sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==} + dependencies: + safe-buffer: 5.2.1 + yallist: 3.1.1 + dev: true + + /minipass@3.3.6: + resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==} + engines: {node: '>=8'} + dependencies: + yallist: 4.0.0 + dev: true + + /minipass@5.0.0: + resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==} + engines: {node: '>=8'} + dev: true + + /minipass@7.0.4: + resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} + engines: {node: '>=16 || 14 >=14.17'} + dev: true + + /minizlib@1.3.3: + resolution: {integrity: sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==} + dependencies: + minipass: 2.9.0 + dev: true + + /minizlib@2.1.2: + resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==} + engines: {node: '>= 8'} + dependencies: + minipass: 3.3.6 + yallist: 4.0.0 + dev: true + + /mkdirp@0.5.6: + resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} + hasBin: true + dependencies: + minimist: 1.2.8 + dev: true + + /mkdirp@1.0.4: + resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} + engines: {node: '>=10'} + hasBin: true + dev: true + + /mri@1.2.0: + resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} + engines: {node: '>=4'} + dev: true + + /ms@2.1.1: + resolution: {integrity: sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==} + dev: true + + /ms@2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + dev: true + + /ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + dev: true + + /mustache@4.2.0: + resolution: {integrity: sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==} + hasBin: true + dev: true + + /mz@2.7.0: + resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} + dependencies: + any-promise: 1.3.0 + object-assign: 4.1.1 + thenify-all: 1.6.0 + dev: true + + /nanoid@3.3.7: + resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + /natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + dev: true + + /next@14.1.0(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-wlzrsbfeSU48YQBjZhDzOwhWhGsy+uQycR8bHAOt1LY1bn3zZEcDyHQOEoN3aWzQ8LHCAJ1nqrWCc9XF2+O45Q==} + engines: {node: '>=18.17.0'} + hasBin: true + peerDependencies: + '@opentelemetry/api': ^1.1.0 + react: ^18.2.0 + react-dom: ^18.2.0 + sass: ^1.3.0 + peerDependenciesMeta: + '@opentelemetry/api': + optional: true + sass: + optional: true + dependencies: + '@next/env': 14.1.0 + '@swc/helpers': 0.5.2 + busboy: 1.6.0 + caniuse-lite: 1.0.30001589 + graceful-fs: 4.2.11 + postcss: 8.4.31 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + styled-jsx: 5.1.1(react@18.2.0) + optionalDependencies: + '@next/swc-darwin-arm64': 14.1.0 + '@next/swc-darwin-x64': 14.1.0 + '@next/swc-linux-arm64-gnu': 14.1.0 + '@next/swc-linux-arm64-musl': 14.1.0 + '@next/swc-linux-x64-gnu': 14.1.0 + '@next/swc-linux-x64-musl': 14.1.0 + '@next/swc-win32-arm64-msvc': 14.1.0 + '@next/swc-win32-ia32-msvc': 14.1.0 + '@next/swc-win32-x64-msvc': 14.1.0 + transitivePeerDependencies: + - '@babel/core' + - babel-plugin-macros + dev: false + + /node-fetch@2.6.7: + resolution: {integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + dependencies: + whatwg-url: 5.0.0 + dev: true + + /node-fetch@2.6.9: + resolution: {integrity: sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + dependencies: + whatwg-url: 5.0.0 + dev: true + + /node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + dependencies: + whatwg-url: 5.0.0 + dev: true + + /node-forge@1.3.1: + resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} + engines: {node: '>= 6.13.0'} + dev: true + + /node-gyp-build@4.8.0: + resolution: {integrity: sha512-u6fs2AEUljNho3EYTJNBfImO5QTo/J/1Etd+NVdCj7qWKUSN/bSLkZwhDv7I+w/MSC6qJ4cknepkAYykDdK8og==} + hasBin: true + dev: true + + /node-releases@2.0.14: + resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} + dev: true + + /nopt@5.0.0: + resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==} + engines: {node: '>=6'} + hasBin: true + dependencies: + abbrev: 1.1.1 + dev: true + + /normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + dev: true + + /normalize-range@0.1.2: + resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==} + engines: {node: '>=0.10.0'} + dev: true + + /npm-run-path@4.0.1: + resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} + engines: {node: '>=8'} + dependencies: + path-key: 3.1.1 + dev: true + + /npmlog@5.0.1: + resolution: {integrity: sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==} + dependencies: + are-we-there-yet: 2.0.0 + console-control-strings: 1.1.0 + gauge: 3.0.2 + set-blocking: 2.0.0 + dev: true + + /object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + dev: true + + /object-hash@3.0.0: + resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==} + engines: {node: '>= 6'} + dev: true + + /object-inspect@1.13.1: + resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} + dev: true + + /object-keys@1.1.1: + resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} + engines: {node: '>= 0.4'} + dev: true + + /object.assign@4.1.5: + resolution: {integrity: sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + has-symbols: 1.0.3 + object-keys: 1.1.1 + dev: true + + /object.entries@1.1.7: + resolution: {integrity: sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + dev: true + + /object.fromentries@2.0.7: + resolution: {integrity: sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + dev: true + + /object.groupby@1.0.2: + resolution: {integrity: sha512-bzBq58S+x+uo0VjurFT0UktpKHOZmv4/xePiOA1nbB9pMqpGK7rUPNgf+1YC+7mE+0HzhTMqNUuCqvKhj6FnBw==} + dependencies: + array.prototype.filter: 1.0.3 + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + es-errors: 1.3.0 + dev: true + + /object.hasown@1.1.3: + resolution: {integrity: sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==} + dependencies: + define-properties: 1.2.1 + es-abstract: 1.22.4 + dev: true + + /object.values@1.1.7: + resolution: {integrity: sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + dev: true + + /once@1.3.3: + resolution: {integrity: sha512-6vaNInhu+CHxtONf3zw3vq4SP2DOQhjBvIa3rNcG0+P7eKWlYH6Peu7rHizSloRU2EwMz6GraLieis9Ac9+p1w==} + dependencies: + wrappy: 1.0.2 + dev: true + + /once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + dependencies: + wrappy: 1.0.2 + dev: true + + /onetime@5.1.2: + resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} + engines: {node: '>=6'} + dependencies: + mimic-fn: 2.1.0 + dev: true + + /optionator@0.9.3: + resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} + engines: {node: '>= 0.8.0'} + dependencies: + '@aashutoshrathi/word-wrap': 1.2.6 + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + dev: true + + /os-paths@4.4.0: + resolution: {integrity: sha512-wrAwOeXp1RRMFfQY8Sy7VaGVmPocaLwSFOYCGKSyo8qmJ+/yaafCl5BCA1IQZWqFSRBrKDYFeR9d/VyQzfH/jg==} + engines: {node: '>= 6.0'} + dev: true + + /p-finally@2.0.1: + resolution: {integrity: sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw==} + engines: {node: '>=8'} + dev: true + + /p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + dependencies: + yocto-queue: 0.1.0 + dev: true + + /p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + dependencies: + p-limit: 3.1.0 + dev: true + + /package-manager-manager@0.2.0: + resolution: {integrity: sha512-V02gl0bafXJ2gcY6j+5IHM7UdnYwmF+2OsFZuqVcha6iMSStD4dpIOBOsypnUIwOi4jLcPz6RQuyifmAE3mG8g==} + dependencies: + js-yaml: 4.1.0 + shellac: 0.8.0 + dev: true + + /parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + dependencies: + callsites: 3.1.0 + dev: true + + /parse-ms@2.1.0: + resolution: {integrity: sha512-kHt7kzLoS9VBZfUsiKjv43mr91ea+U05EyKkEtqp7vNbHxmaVuEqN7XxeEVnGrMtYOAxGrDElSi96K7EgO1zCA==} + engines: {node: '>=6'} + dev: true + + /path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + dev: true + + /path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + dev: true + + /path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} + engines: {node: '>=0.10.0'} + dev: true + + /path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + dev: true + + /path-match@1.2.4: + resolution: {integrity: sha512-UWlehEdqu36jmh4h5CWJ7tARp1OEVKGHKm6+dg9qMq5RKUTV5WJrGgaZ3dN2m7WFAXDbjlHzvJvL/IUpy84Ktw==} + dependencies: + http-errors: 1.4.0 + path-to-regexp: 1.8.0 + dev: true + + /path-parse@1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + dev: true + + /path-scurry@1.10.1: + resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + lru-cache: 10.2.0 + minipass: 7.0.4 + dev: true + + /path-to-regexp@1.8.0: + resolution: {integrity: sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==} + dependencies: + isarray: 0.0.1 + dev: true + + /path-to-regexp@6.1.0: + resolution: {integrity: sha512-h9DqehX3zZZDCEm+xbfU0ZmwCGFCAAraPJWMXJ4+v32NjZJilVg3k1TcKsRgIb8IQ/izZSaydDc1OhJCZvs2Dw==} + dev: true + + /path-to-regexp@6.2.1: + resolution: {integrity: sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==} + dev: true + + /path-type@4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + dev: true + + /pcre-to-regexp@1.1.0: + resolution: {integrity: sha512-KF9XxmUQJ2DIlMj3TqNqY1AWvyvTuIuq11CuuekxyaYMiFuMKGgQrePYMX5bXKLhLG3sDI4CsGAYHPaT7VV7+g==} + dev: true + + /pend@1.2.0: + resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==} + dev: true + + /picocolors@1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} + + /picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + dev: true + + /pify@2.3.0: + resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} + engines: {node: '>=0.10.0'} + dev: true + + /pirates@4.0.6: + resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} + engines: {node: '>= 6'} + dev: true + + /possible-typed-array-names@1.0.0: + resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} + engines: {node: '>= 0.4'} + dev: true + + /postcss-import@15.1.0(postcss@8.4.35): + resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==} + engines: {node: '>=14.0.0'} + peerDependencies: + postcss: ^8.0.0 + dependencies: + postcss: 8.4.35 + postcss-value-parser: 4.2.0 + read-cache: 1.0.0 + resolve: 1.22.8 + dev: true + + /postcss-js@4.0.1(postcss@8.4.35): + resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==} + engines: {node: ^12 || ^14 || >= 16} + peerDependencies: + postcss: ^8.4.21 + dependencies: + camelcase-css: 2.0.1 + postcss: 8.4.35 + dev: true + + /postcss-load-config@4.0.2(postcss@8.4.35): + resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==} + engines: {node: '>= 14'} + peerDependencies: + postcss: '>=8.0.9' + ts-node: '>=9.0.0' + peerDependenciesMeta: + postcss: + optional: true + ts-node: + optional: true + dependencies: + lilconfig: 3.1.1 + postcss: 8.4.35 + yaml: 2.3.4 + dev: true + + /postcss-nested@6.0.1(postcss@8.4.35): + resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==} + engines: {node: '>=12.0'} + peerDependencies: + postcss: ^8.2.14 + dependencies: + postcss: 8.4.35 + postcss-selector-parser: 6.0.15 + dev: true + + /postcss-selector-parser@6.0.15: + resolution: {integrity: sha512-rEYkQOMUCEMhsKbK66tbEU9QVIxbhN18YiniAwA7XQYTVBqrBy+P2p5JcdqsHgKM2zWylp8d7J6eszocfds5Sw==} + engines: {node: '>=4'} + dependencies: + cssesc: 3.0.0 + util-deprecate: 1.0.2 + dev: true + + /postcss-value-parser@4.2.0: + resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} + dev: true + + /postcss@8.4.31: + resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.0 + source-map-js: 1.0.2 + dev: false + + /postcss@8.4.35: + resolution: {integrity: sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.0 + source-map-js: 1.0.2 + dev: true + + /prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + dev: true + + /pretty-ms@7.0.1: + resolution: {integrity: sha512-973driJZvxiGOQ5ONsFhOF/DtzPMOMtgC11kCpUrPGMTgqp2q/1gwzCquocrN33is0VZ5GFHXZYMM9l6h67v2Q==} + engines: {node: '>=10'} + dependencies: + parse-ms: 2.1.0 + dev: true + + /printable-characters@1.0.42: + resolution: {integrity: sha512-dKp+C4iXWK4vVYZmYSd0KBH5F/h1HoZRsbJ82AVKRO3PEo8L4lBS/vLwhVtpwwuYcoIsVY+1JYKR268yn480uQ==} + dev: true + + /promisepipe@3.0.0: + resolution: {integrity: sha512-V6TbZDJ/ZswevgkDNpGt/YqNCiZP9ASfgU+p83uJE6NrGtvSGoOcHLiDCqkMs2+yg7F5qHdLV8d0aS8O26G/KA==} + dev: true + + /prop-types@15.8.1: + resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + react-is: 16.13.1 + dev: true + + /pump@3.0.0: + resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} + dependencies: + end-of-stream: 1.4.4 + once: 1.4.0 + dev: true + + /punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + dev: true + + /queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + dev: true + + /raw-body@2.4.1: + resolution: {integrity: sha512-9WmIKF6mkvA0SLmA2Knm9+qj89e+j1zqgyn8aXGd7+nAduPoqgI9lO57SAZNn/Byzo5P7JhXTyg9PzaJbH73bA==} + engines: {node: '>= 0.8'} + dependencies: + bytes: 3.1.0 + http-errors: 1.7.3 + iconv-lite: 0.4.24 + unpipe: 1.0.0 + dev: true + + /react-dom@18.2.0(react@18.2.0): + resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==} + peerDependencies: + react: ^18.2.0 + dependencies: + loose-envify: 1.4.0 + react: 18.2.0 + scheduler: 0.23.0 + dev: false + + /react-is@16.13.1: + resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} + dev: true + + /react@18.2.0: + resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==} + engines: {node: '>=0.10.0'} + dependencies: + loose-envify: 1.4.0 + dev: false + + /read-cache@1.0.0: + resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} + dependencies: + pify: 2.3.0 + dev: true + + /readable-stream@3.6.2: + resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} + engines: {node: '>= 6'} + dependencies: + inherits: 2.0.4 + string_decoder: 1.3.0 + util-deprecate: 1.0.2 + dev: true + + /readdirp@3.3.0: + resolution: {integrity: sha512-zz0pAkSPOXXm1viEwygWIPSPkcBYjW1xU5j/JBh5t9bGCJwa6f9+BJa6VaB2g+b55yVrmXzqkyLf4xaWYM0IkQ==} + engines: {node: '>=8.10.0'} + dependencies: + picomatch: 2.3.1 + dev: true + + /readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + dependencies: + picomatch: 2.3.1 + dev: true + + /reflect.getprototypeof@1.0.5: + resolution: {integrity: sha512-62wgfC8dJWrmxv44CA36pLDnP6KKl3Vhxb7PL+8+qrrFMMoJij4vgiMP8zV4O8+CBMXY1mHxI5fITGHXFHVmQQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + globalthis: 1.0.3 + which-builtin-type: 1.1.3 + dev: true + + /regenerator-runtime@0.14.1: + resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} + dev: true + + /regexp.prototype.flags@1.5.2: + resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-errors: 1.3.0 + set-function-name: 2.0.2 + dev: true + + /reghex@1.0.2: + resolution: {integrity: sha512-bYtyDmFGHxn1Y4gxIs12+AUQ1WRDNvaIhn6ZuKc5KUbSVcmm6U6vx/RA66s26xGhTWBErKKDKK7lorkvvIBB5g==} + dev: true + + /require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + dev: true + + /resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + dev: true + + /resolve-from@5.0.0: + resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} + engines: {node: '>=8'} + dev: true + + /resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + dev: true + + /resolve.exports@2.0.2: + resolution: {integrity: sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==} + engines: {node: '>=10'} + dev: true + + /resolve@1.22.8: + resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} + hasBin: true + dependencies: + is-core-module: 2.13.1 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + dev: true + + /resolve@2.0.0-next.5: + resolution: {integrity: sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==} + hasBin: true + dependencies: + is-core-module: 2.13.1 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + dev: true + + /reusify@1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + dev: true + + /rimraf@3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + hasBin: true + dependencies: + glob: 7.2.3 + dev: true + + /rollup-plugin-inject@3.0.2: + resolution: {integrity: sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==} + deprecated: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject. + dependencies: + estree-walker: 0.6.1 + magic-string: 0.25.9 + rollup-pluginutils: 2.8.2 + dev: true + + /rollup-plugin-node-polyfills@0.2.1: + resolution: {integrity: sha512-4kCrKPTJ6sK4/gLL/U5QzVT8cxJcofO0OU74tnB19F40cmuAKSzH5/siithxlofFEjwvw1YAhPmbvGNA6jEroA==} + dependencies: + rollup-plugin-inject: 3.0.2 + dev: true + + /rollup-pluginutils@2.8.2: + resolution: {integrity: sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==} + dependencies: + estree-walker: 0.6.1 + dev: true + + /run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + dependencies: + queue-microtask: 1.2.3 + dev: true + + /safe-array-concat@1.1.0: + resolution: {integrity: sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg==} + engines: {node: '>=0.4'} + dependencies: + call-bind: 1.0.7 + get-intrinsic: 1.2.4 + has-symbols: 1.0.3 + isarray: 2.0.5 + dev: true + + /safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + dev: true + + /safe-regex-test@1.0.3: + resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-regex: 1.1.4 + dev: true + + /safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + dev: true + + /scheduler@0.23.0: + resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==} + dependencies: + loose-envify: 1.4.0 + dev: false + + /selfsigned@2.4.1: + resolution: {integrity: sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q==} + engines: {node: '>=10'} + dependencies: + '@types/node-forge': 1.3.11 + node-forge: 1.3.1 + dev: true + + /semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + hasBin: true + dev: true + + /semver@7.3.5: + resolution: {integrity: sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + + /semver@7.6.0: + resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + + /set-blocking@2.0.0: + resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} + dev: true + + /set-function-length@1.2.1: + resolution: {integrity: sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.4 + es-errors: 1.3.0 + function-bind: 1.1.2 + get-intrinsic: 1.2.4 + gopd: 1.0.1 + has-property-descriptors: 1.0.2 + dev: true + + /set-function-name@2.0.2: + resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.4 + es-errors: 1.3.0 + functions-have-names: 1.2.3 + has-property-descriptors: 1.0.2 + dev: true + + /setprototypeof@1.1.1: + resolution: {integrity: sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==} + dev: true + + /shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + dependencies: + shebang-regex: 3.0.0 + dev: true + + /shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + dev: true + + /shellac@0.8.0: + resolution: {integrity: sha512-M3F2vzYIM7frKOs0+kgs/ITMlXhGpgtqs9HxDPciz3bckzAqqfd4LrBn+CCmSbICyJS+Jz5UDkmkR1jE+m+g+Q==} + dependencies: + reghex: 1.0.2 + dev: true + + /side-channel@1.0.5: + resolution: {integrity: sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + object-inspect: 1.13.1 + dev: true + + /signal-exit@3.0.7: + resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} + dev: true + + /signal-exit@4.0.2: + resolution: {integrity: sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q==} + engines: {node: '>=14'} + dev: true + + /signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + dev: true + + /slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + dev: true + + /source-map-js@1.0.2: + resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} + engines: {node: '>=0.10.0'} + + /source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + dev: true + + /sourcemap-codec@1.4.8: + resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} + deprecated: Please use @jridgewell/sourcemap-codec instead + dev: true + + /stacktracey@2.1.8: + resolution: {integrity: sha512-Kpij9riA+UNg7TnphqjH7/CzctQ/owJGNbFkfEeve4Z4uxT5+JapVLFXcsurIfN34gnTWZNJ/f7NMG0E8JDzTw==} + dependencies: + as-table: 1.0.55 + get-source: 2.0.12 + dev: true + + /stat-mode@0.3.0: + resolution: {integrity: sha512-QjMLR0A3WwFY2aZdV0okfFEJB5TRjkggXZjxP3A1RsWsNHNu3YPv8btmtc6iCFZ0Rul3FE93OYogvhOUClU+ng==} + dev: true + + /statuses@1.5.0: + resolution: {integrity: sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==} + engines: {node: '>= 0.6'} + dev: true + + /stoppable@1.1.0: + resolution: {integrity: sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==} + engines: {node: '>=4', npm: '>=6'} + dev: true + + /stream-to-array@2.3.0: + resolution: {integrity: sha512-UsZtOYEn4tWU2RGLOXr/o/xjRBftZRlG3dEWoaHr8j4GuypJ3isitGbVyjQKAuMu+xbiop8q224TjiZWc4XTZA==} + dependencies: + any-promise: 1.3.0 + dev: true + + /stream-to-promise@2.2.0: + resolution: {integrity: sha512-HAGUASw8NT0k8JvIVutB2Y/9iBk7gpgEyAudXwNJmZERdMITGdajOa4VJfD/kNiA3TppQpTP4J+CtcHwdzKBAw==} + dependencies: + any-promise: 1.3.0 + end-of-stream: 1.1.0 + stream-to-array: 2.3.0 + dev: true + + /streamsearch@1.1.0: + resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} + engines: {node: '>=10.0.0'} + dev: false + + /string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + dev: true + + /string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + dev: true + + /string.prototype.matchall@4.0.10: + resolution: {integrity: sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + get-intrinsic: 1.2.4 + has-symbols: 1.0.3 + internal-slot: 1.0.7 + regexp.prototype.flags: 1.5.2 + set-function-name: 2.0.2 + side-channel: 1.0.5 + dev: true + + /string.prototype.trim@1.2.8: + resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + dev: true + + /string.prototype.trimend@1.0.7: + resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + dev: true + + /string.prototype.trimstart@1.0.7: + resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.4 + dev: true + + /string_decoder@1.3.0: + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + dependencies: + safe-buffer: 5.2.1 + dev: true + + /strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + dependencies: + ansi-regex: 5.0.1 + dev: true + + /strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + dependencies: + ansi-regex: 6.0.1 + dev: true + + /strip-bom@3.0.0: + resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} + engines: {node: '>=4'} + dev: true + + /strip-final-newline@2.0.0: + resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} + engines: {node: '>=6'} + dev: true + + /strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + dev: true + + /styled-jsx@5.1.1(react@18.2.0): + resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==} + engines: {node: '>= 12.0.0'} + peerDependencies: + '@babel/core': '*' + babel-plugin-macros: '*' + react: '>= 16.8.0 || 17.x.x || ^18.0.0-0' + peerDependenciesMeta: + '@babel/core': + optional: true + babel-plugin-macros: + optional: true + dependencies: + client-only: 0.0.1 + react: 18.2.0 + dev: false + + /sucrase@3.35.0: + resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==} + engines: {node: '>=16 || 14 >=14.17'} + hasBin: true + dependencies: + '@jridgewell/gen-mapping': 0.3.3 + commander: 4.1.1 + glob: 10.3.10 + lines-and-columns: 1.2.4 + mz: 2.7.0 + pirates: 4.0.6 + ts-interface-checker: 0.1.13 + dev: true + + /supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + dependencies: + has-flag: 4.0.0 + dev: true + + /supports-preserve-symlinks-flag@1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + dev: true + + /tailwindcss@3.4.1: + resolution: {integrity: sha512-qAYmXRfk3ENzuPBakNK0SRrUDipP8NQnEY6772uDhflcQz5EhRdD7JNZxyrFHVQNCwULPBn6FNPp9brpO7ctcA==} + engines: {node: '>=14.0.0'} + hasBin: true + dependencies: + '@alloc/quick-lru': 5.2.0 + arg: 5.0.2 + chokidar: 3.6.0 + didyoumean: 1.2.2 + dlv: 1.1.3 + fast-glob: 3.3.2 + glob-parent: 6.0.2 + is-glob: 4.0.3 + jiti: 1.21.0 + lilconfig: 2.1.0 + micromatch: 4.0.5 + normalize-path: 3.0.0 + object-hash: 3.0.0 + picocolors: 1.0.0 + postcss: 8.4.35 + postcss-import: 15.1.0(postcss@8.4.35) + postcss-js: 4.0.1(postcss@8.4.35) + postcss-load-config: 4.0.2(postcss@8.4.35) + postcss-nested: 6.0.1(postcss@8.4.35) + postcss-selector-parser: 6.0.15 + resolve: 1.22.8 + sucrase: 3.35.0 + transitivePeerDependencies: + - ts-node + dev: true + + /tapable@2.2.1: + resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} + engines: {node: '>=6'} + dev: true + + /tar@4.4.18: + resolution: {integrity: sha512-ZuOtqqmkV9RE1+4odd+MhBpibmCxNP6PJhH/h2OqNuotTX7/XHPZQJv2pKvWMplFH9SIZZhitehh6vBH6LO8Pg==} + engines: {node: '>=4.5'} + dependencies: + chownr: 1.1.4 + fs-minipass: 1.2.7 + minipass: 2.9.0 + minizlib: 1.3.3 + mkdirp: 0.5.6 + safe-buffer: 5.2.1 + yallist: 3.1.1 + dev: true + + /tar@6.2.0: + resolution: {integrity: sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==} + engines: {node: '>=10'} + dependencies: + chownr: 2.0.0 + fs-minipass: 2.1.0 + minipass: 5.0.0 + minizlib: 2.1.2 + mkdirp: 1.0.4 + yallist: 4.0.0 + dev: true + + /text-table@0.2.0: + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} + dev: true + + /thenify-all@1.6.0: + resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} + engines: {node: '>=0.8'} + dependencies: + thenify: 3.3.1 + dev: true + + /thenify@3.3.1: + resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} + dependencies: + any-promise: 1.3.0 + dev: true + + /time-span@4.0.0: + resolution: {integrity: sha512-MyqZCTGLDZ77u4k+jqg4UlrzPTPZ49NDlaekU6uuFaJLzPIN1woaRXCbGeqOfxwc3Y37ZROGAJ614Rdv7Olt+g==} + engines: {node: '>=10'} + dependencies: + convert-hrtime: 3.0.0 + dev: true + + /to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + dependencies: + is-number: 7.0.0 + dev: true + + /toidentifier@1.0.0: + resolution: {integrity: sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==} + engines: {node: '>=0.6'} + dev: true + + /tr46@0.0.3: + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + dev: true + + /tree-kill@1.2.2: + resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} + hasBin: true + dev: true + + /ts-api-utils@1.2.1(typescript@5.3.3): + resolution: {integrity: sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA==} + engines: {node: '>=16'} + peerDependencies: + typescript: '>=4.2.0' + dependencies: + typescript: 5.3.3 + dev: true + + /ts-interface-checker@0.1.13: + resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} + dev: true + + /ts-morph@12.0.0: + resolution: {integrity: sha512-VHC8XgU2fFW7yO1f/b3mxKDje1vmyzFXHWzOYmKEkCEwcLjDtbdLgBQviqj4ZwP4MJkQtRo6Ha2I29lq/B+VxA==} + dependencies: + '@ts-morph/common': 0.11.1 + code-block-writer: 10.1.1 + dev: true + + /ts-node@10.9.1(@types/node@14.18.33)(typescript@4.9.5): + resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.9 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 14.18.33 + acorn: 8.11.3 + acorn-walk: 8.3.2 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 4.9.5 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: true + + /ts-toolbelt@6.15.5: + resolution: {integrity: sha512-FZIXf1ksVyLcfr7M317jbB67XFJhOO1YqdTcuGaq9q5jLUoTikukZ+98TPjKiP2jC5CgmYdWWYs0s2nLSU0/1A==} + dev: true + + /tsconfig-paths@3.15.0: + resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==} + dependencies: + '@types/json5': 0.0.29 + json5: 1.0.2 + minimist: 1.2.8 + strip-bom: 3.0.0 + dev: true + + /tslib@2.6.2: + resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} + + /type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.2.1 + dev: true + + /type-fest@0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} + engines: {node: '>=10'} + dev: true + + /typed-array-buffer@1.0.2: + resolution: {integrity: sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-typed-array: 1.1.13 + dev: true + + /typed-array-byte-length@1.0.1: + resolution: {integrity: sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-proto: 1.0.3 + is-typed-array: 1.1.13 + dev: true + + /typed-array-byte-offset@1.0.2: + resolution: {integrity: sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==} + engines: {node: '>= 0.4'} + dependencies: + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-proto: 1.0.3 + is-typed-array: 1.1.13 + dev: true + + /typed-array-length@1.0.5: + resolution: {integrity: sha512-yMi0PlwuznKHxKmcpoOdeLwxBoVPkqZxd7q2FgMkmD3bNwvF5VW0+UlUQ1k1vmktTu4Yu13Q0RIxEP8+B+wloA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-proto: 1.0.3 + is-typed-array: 1.1.13 + possible-typed-array-names: 1.0.0 + dev: true + + /typescript@4.9.5: + resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: true + + /typescript@5.3.3: + resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} + engines: {node: '>=14.17'} + hasBin: true + dev: true + + /uid-promise@1.0.0: + resolution: {integrity: sha512-R8375j0qwXyIu/7R0tjdF06/sElHqbmdmWC9M2qQHpEVbvE4I5+38KJI7LUUmQMp7NVq4tKHiBMkT0NFM453Ig==} + dev: true + + /unbox-primitive@1.0.2: + resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} + dependencies: + call-bind: 1.0.7 + has-bigints: 1.0.2 + has-symbols: 1.0.3 + which-boxed-primitive: 1.0.2 + dev: true + + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + dev: true + + /undici@5.26.5: + resolution: {integrity: sha512-cSb4bPFd5qgR7qr2jYAi0hlX9n5YKK2ONKkLFkxl+v/9BvC0sOpZjBHDBSXc5lWAf5ty9oZdRXytBIHzgUcerw==} + engines: {node: '>=14.0'} + dependencies: + '@fastify/busboy': 2.1.0 + dev: true + + /undici@5.28.3: + resolution: {integrity: sha512-3ItfzbrhDlINjaP0duwnNsKpDQk3acHI3gVJ1z4fmwMK31k5G9OVIAMLSIaP6w4FaGkaAkN6zaQO9LUvZ1t7VA==} + engines: {node: '>=14.0'} + dependencies: + '@fastify/busboy': 2.1.0 + dev: true + + /universalify@0.1.2: + resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} + engines: {node: '>= 4.0.0'} + dev: true + + /universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} + dev: true + + /unpipe@1.0.0: + resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} + engines: {node: '>= 0.8'} + dev: true + + /update-browserslist-db@1.0.13(browserslist@4.23.0): + resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + dependencies: + browserslist: 4.23.0 + escalade: 3.1.2 + picocolors: 1.0.0 + dev: true + + /uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + dependencies: + punycode: 2.3.1 + dev: true + + /util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + dev: true + + /uuid@3.3.2: + resolution: {integrity: sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==} + deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. + hasBin: true + dev: true + + /v8-compile-cache-lib@3.0.1: + resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} + dev: true + + /vercel@33.5.2: + resolution: {integrity: sha512-Ywt+fpNyfKNQrlOPmsSO5xxzbZD7piiSvgkVUOkO7Bqe1jCExhwmz9933aC6J9hVhhxnLFqSDbcn7dIHCqz6tw==} + engines: {node: '>= 16'} + hasBin: true + dependencies: + '@vercel/build-utils': 7.7.0 + '@vercel/fun': 1.1.0 + '@vercel/go': 3.0.5 + '@vercel/hydrogen': 1.0.2 + '@vercel/next': 4.1.2 + '@vercel/node': 3.0.20 + '@vercel/python': 4.1.1 + '@vercel/redwood': 2.0.8 + '@vercel/remix-builder': 2.0.20 + '@vercel/ruby': 2.0.5 + '@vercel/static-build': 2.4.0 + chokidar: 3.3.1 + transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' + - encoding + - supports-color + dev: true + + /web-vitals@0.2.4: + resolution: {integrity: sha512-6BjspCO9VriYy12z356nL6JBS0GYeEcA457YyRzD+dD6XYCQ75NKhcOHUMHentOE7OcVCIXXDvOm0jKFfQG2Gg==} + dev: true + + /webidl-conversions@3.0.1: + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + dev: true + + /whatwg-url@5.0.0: + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + dev: true + + /which-boxed-primitive@1.0.2: + resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==} + dependencies: + is-bigint: 1.0.4 + is-boolean-object: 1.1.2 + is-number-object: 1.0.7 + is-string: 1.0.7 + is-symbol: 1.0.4 + dev: true + + /which-builtin-type@1.1.3: + resolution: {integrity: sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==} + engines: {node: '>= 0.4'} + dependencies: + function.prototype.name: 1.1.6 + has-tostringtag: 1.0.2 + is-async-function: 2.0.0 + is-date-object: 1.0.5 + is-finalizationregistry: 1.0.2 + is-generator-function: 1.0.10 + is-regex: 1.1.4 + is-weakref: 1.0.2 + isarray: 2.0.5 + which-boxed-primitive: 1.0.2 + which-collection: 1.0.1 + which-typed-array: 1.1.14 + dev: true + + /which-collection@1.0.1: + resolution: {integrity: sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==} + dependencies: + is-map: 2.0.2 + is-set: 2.0.2 + is-weakmap: 2.0.1 + is-weakset: 2.0.2 + dev: true + + /which-typed-array@1.1.14: + resolution: {integrity: sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg==} + engines: {node: '>= 0.4'} + dependencies: + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-tostringtag: 1.0.2 + dev: true + + /which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /wide-align@1.1.5: + resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} + dependencies: + string-width: 4.2.3 + dev: true + + /workerd@1.20240208.0: + resolution: {integrity: sha512-edFdwHU95Ww2SmjBvBJhbc7hhVXMEo6Y7qqSWCl6W9lGScTlCMCXd4AU3f/EGJ3P++FC+CWqu+XuAywebbKF2Q==} + engines: {node: '>=16'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@cloudflare/workerd-darwin-64': 1.20240208.0 + '@cloudflare/workerd-darwin-arm64': 1.20240208.0 + '@cloudflare/workerd-linux-64': 1.20240208.0 + '@cloudflare/workerd-linux-arm64': 1.20240208.0 + '@cloudflare/workerd-windows-64': 1.20240208.0 + dev: true + + /wrangler@3.29.0(@cloudflare/workers-types@4.20240222.0): + resolution: {integrity: sha512-VXUUltM0/fxCF20Z3tH39zpnykDJNPH2lMWI5wA0VmRpuKG0Gffjj5lU2vJaI/PfUCo3q4JErxWcgLezBGnFyA==} + engines: {node: '>=16.17.0'} + hasBin: true + peerDependencies: + '@cloudflare/workers-types': ^4.20230914.0 + peerDependenciesMeta: + '@cloudflare/workers-types': + optional: true + dependencies: + '@cloudflare/kv-asset-handler': 0.3.1 + '@cloudflare/workers-types': 4.20240222.0 + '@esbuild-plugins/node-globals-polyfill': 0.2.3(esbuild@0.17.19) + '@esbuild-plugins/node-modules-polyfill': 0.2.2(esbuild@0.17.19) + blake3-wasm: 2.1.5 + chokidar: 3.6.0 + esbuild: 0.17.19 + miniflare: 3.20240208.0 + nanoid: 3.3.7 + path-to-regexp: 6.2.1 + resolve: 1.22.8 + resolve.exports: 2.0.2 + selfsigned: 2.4.1 + source-map: 0.6.1 + xxhash-wasm: 1.0.2 + optionalDependencies: + fsevents: 2.3.3 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: true + + /wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: true + + /wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + dev: true + + /wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + dev: true + + /ws@8.16.0: + resolution: {integrity: sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + + /xdg-app-paths@5.1.0: + resolution: {integrity: sha512-RAQ3WkPf4KTU1A8RtFx3gWywzVKe00tfOPFfl2NDGqbIFENQO4kqAJp7mhQjNj/33W5x5hiWWUdyfPq/5SU3QA==} + engines: {node: '>=6'} + dependencies: + xdg-portable: 7.3.0 + dev: true + + /xdg-portable@7.3.0: + resolution: {integrity: sha512-sqMMuL1rc0FmMBOzCpd0yuy9trqF2yTTVe+E9ogwCSWQCdDEtQUwrZPT6AxqtsFGRNxycgncbP/xmOOSPw5ZUw==} + engines: {node: '>= 6.0'} + dependencies: + os-paths: 4.4.0 + dev: true + + /xxhash-wasm@1.0.2: + resolution: {integrity: sha512-ibF0Or+FivM9lNrg+HGJfVX8WJqgo+kCLDc4vx6xMeTce7Aj+DLttKbxxRR/gNLSAelRc1omAPlJ77N/Jem07A==} + dev: true + + /yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + dev: true + + /yallist@4.0.0: + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + dev: true + + /yaml@2.3.4: + resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==} + engines: {node: '>= 14'} + dev: true + + /yauzl-clone@1.0.4: + resolution: {integrity: sha512-igM2RRCf3k8TvZoxR2oguuw4z1xasOnA31joCqHIyLkeWrvAc2Jgay5ISQ2ZplinkoGaJ6orCz56Ey456c5ESA==} + engines: {node: '>=6'} + dependencies: + events-intercept: 2.0.0 + dev: true + + /yauzl-promise@2.1.3: + resolution: {integrity: sha512-A1pf6fzh6eYkK0L4Qp7g9jzJSDrM6nN0bOn5T0IbY4Yo3w+YkWlHFkJP7mzknMXjqusHFHlKsK2N+4OLsK2MRA==} + engines: {node: '>=6'} + dependencies: + yauzl: 2.10.0 + yauzl-clone: 1.0.4 + dev: true + + /yauzl@2.10.0: + resolution: {integrity: sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==} + dependencies: + buffer-crc32: 0.2.13 + fd-slicer: 1.1.0 + dev: true + + /yn@3.1.1: + resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} + engines: {node: '>=6'} + dev: true + + /yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + dev: true + + /youch@3.3.3: + resolution: {integrity: sha512-qSFXUk3UZBLfggAW3dJKg0BMblG5biqSF8M34E06o5CSsZtH92u9Hqmj2RzGiHDi64fhe83+4tENFP2DB6t6ZA==} + dependencies: + cookie: 0.5.0 + mustache: 4.2.0 + stacktracey: 2.1.8 + dev: true + + /zod@3.22.4: + resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} + dev: true diff --git a/apps/anycontext-front/postcss.config.js b/apps/anycontext-front/postcss.config.js new file mode 100644 index 00000000..12a703d9 --- /dev/null +++ b/apps/anycontext-front/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/apps/anycontext-front/public/next.svg b/apps/anycontext-front/public/next.svg new file mode 100644 index 00000000..5174b28c --- /dev/null +++ b/apps/anycontext-front/public/next.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/anycontext-front/public/vercel.svg b/apps/anycontext-front/public/vercel.svg new file mode 100644 index 00000000..d2f84222 --- /dev/null +++ b/apps/anycontext-front/public/vercel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/anycontext-front/src/app/MessagePoster.tsx b/apps/anycontext-front/src/app/MessagePoster.tsx new file mode 100644 index 00000000..ad7d450d --- /dev/null +++ b/apps/anycontext-front/src/app/MessagePoster.tsx @@ -0,0 +1,19 @@ +'use client'; + +import { useEffect } from 'react'; + +function MessagePoster({ jwt }: { jwt: string }) { + useEffect(() => { + if (typeof window === 'undefined') return; + + window.postMessage({ jwt }, '*'); + }, [jwt]); + + return ( + + ); +} + +export default MessagePoster; diff --git a/apps/anycontext-front/src/app/api/[...nextauth]/route.ts b/apps/anycontext-front/src/app/api/[...nextauth]/route.ts new file mode 100644 index 00000000..db7d1fb8 --- /dev/null +++ b/apps/anycontext-front/src/app/api/[...nextauth]/route.ts @@ -0,0 +1,2 @@ +export { GET, POST } from "@/server/auth"; +export const runtime = "edge"; diff --git a/apps/anycontext-front/src/app/api/hello/route.ts b/apps/anycontext-front/src/app/api/hello/route.ts new file mode 100644 index 00000000..705b3cb8 --- /dev/null +++ b/apps/anycontext-front/src/app/api/hello/route.ts @@ -0,0 +1,22 @@ +import type { NextRequest } from 'next/server' +import { getRequestContext } from '@cloudflare/next-on-pages' + +export const runtime = 'edge' + +export async function GET(request: NextRequest) { + let responseText = 'Hello World' + + // In the edge runtime you can use Bindings that are available in your application + // (for more details see: + // - https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/#use-bindings-in-your-nextjs-application + // - https://developers.cloudflare.com/pages/functions/bindings/ + // ) + // + // KV Example: + // const myKv = getRequestContext().env.MY_KV + // await myKv.put('suffix', ' from a KV store!') + // const suffix = await myKv.get('suffix') + // responseText += suffix + + return new Response(responseText) +} diff --git a/apps/anycontext-front/src/app/api/store/route.ts b/apps/anycontext-front/src/app/api/store/route.ts new file mode 100644 index 00000000..0d1c38ff --- /dev/null +++ b/apps/anycontext-front/src/app/api/store/route.ts @@ -0,0 +1,22 @@ +import { db } from "@/server/db"; +import { eq } from "drizzle-orm"; +import { sessions, users } from "@/server/db/schema"; +import { type NextRequest, NextResponse } from "next/server"; + +export const runtime = "edge"; + +export async function GET(req: NextRequest) { + try { + const token = req.cookies.get("next-auth.session-token")?.value ?? req.headers.get("Authorization")?.replace("Bearer ", ""); + + const session = await db.select().from(sessions).where(eq(sessions.sessionToken, token!)) + .leftJoin(users, eq(sessions.userId, users.id)) + + if (!session || session.length === 0) { + return NextResponse.json({ message: "Invalid Key, session not found." }, { status: 404 }); + } + return NextResponse.json({ message: "OK", data: session[0] }, { status: 200 }); + } catch (error) { + return NextResponse.json({ message: "Error", error }, { status: 500 }); + } +} \ No newline at end of file diff --git a/apps/anycontext-front/src/app/favicon.ico b/apps/anycontext-front/src/app/favicon.ico new file mode 100644 index 00000000..718d6fea Binary files /dev/null and b/apps/anycontext-front/src/app/favicon.ico differ diff --git a/apps/anycontext-front/src/app/globals.css b/apps/anycontext-front/src/app/globals.css new file mode 100644 index 00000000..875c01e8 --- /dev/null +++ b/apps/anycontext-front/src/app/globals.css @@ -0,0 +1,33 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +:root { + --foreground-rgb: 0, 0, 0; + --background-start-rgb: 214, 219, 220; + --background-end-rgb: 255, 255, 255; +} + +@media (prefers-color-scheme: dark) { + :root { + --foreground-rgb: 255, 255, 255; + --background-start-rgb: 0, 0, 0; + --background-end-rgb: 0, 0, 0; + } +} + +body { + color: rgb(var(--foreground-rgb)); + background: linear-gradient( + to bottom, + transparent, + rgb(var(--background-end-rgb)) + ) + rgb(var(--background-start-rgb)); +} + +@layer utilities { + .text-balance { + text-wrap: balance; + } +} diff --git a/apps/anycontext-front/src/app/layout.tsx b/apps/anycontext-front/src/app/layout.tsx new file mode 100644 index 00000000..3314e478 --- /dev/null +++ b/apps/anycontext-front/src/app/layout.tsx @@ -0,0 +1,22 @@ +import type { Metadata } from "next"; +import { Inter } from "next/font/google"; +import "./globals.css"; + +const inter = Inter({ subsets: ["latin"] }); + +export const metadata: Metadata = { + title: "Create Next App", + description: "Generated by create next app", +}; + +export default function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + return ( + + {children} + + ); +} diff --git a/apps/anycontext-front/src/app/not-found.tsx b/apps/anycontext-front/src/app/not-found.tsx new file mode 100644 index 00000000..3409889a --- /dev/null +++ b/apps/anycontext-front/src/app/not-found.tsx @@ -0,0 +1,58 @@ +export const runtime = "edge"; + +export default function NotFound() { + return ( + <> + 404: This page could not be found. +
+
+

404

This page could not be found.

\ No newline at end of file +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 index 1b0d12fe..12eaa23f 100644 --- a/apps/web/.next/server/app/_not-found.js +++ b/apps/web/.next/server/app/_not-found.js @@ -1 +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 +(()=>{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")},1608:e=>{e.exports={style:{fontFamily:"'__Inter_aaf875', '__Inter_Fallback_aaf875'",fontStyle:"normal"},className:"__className_aaf875",variable:"__variable_aaf875"}},3145:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>l.a,__next_app__:()=>f,originalPathname:()=>d,pages:()=>c,routeModule:()=>p,tree:()=>s});var n=r(9441),o=r(1498),a=r(6580),l=r.n(a),i=r(5511),u={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(u[e]=()=>i[e]);r.d(t,u);let s=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.t.bind(r,3250,23)),"next/dist/client/components/not-found-error"]}]},{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=[],d="/_not-found",f={require:r,loadChunk:()=>Promise.resolve()},p=new n.AppPageRouteModule({definition:{kind:o.x.APP_PAGE,page:"/_not-found",pathname:"/_not-found",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:s}})},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:()=>{},9517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(8800),o=r(7294);function a(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 l}});let n=r(3810),o=r(914),a="next-route-announcer";function l(e){let{tree:t}=e,[r,l]=(0,n.useState)(null);(0,n.useEffect)(()=>(l(function(){var e;let t=document.getElementsByName(a)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(a);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(a)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[i,u]=(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&&u(e),s.current=e},[t]),r?(0,o.createPortal)(i,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 a},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return i},RSC_VARY_HEADER:function(){return u},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",a="Next-Router-Prefetch",l="Next-Url",i="text/x-component",u=r+", "+o+", "+a+", "+l,s=[[r],[o],[a]],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 x},createEmptyCacheNode:function(){return M},default:function(){return w}});let n=r(4816),o=r(7685),a=n._(r(3810)),l=r(7874),i=r(4967),u=r(5458),s=r(7321),c=r(1274),d=r(6225),f=r(4782),p=r(8866),g=r(9517),h=r(2023),_=r(5369),v=r(3567),y=r(8937),b=r(2848),m=r(5084),P=r(8977),S=null,R=null;function O(){return R}let E={};function x(e){let t=new URL(e,location.origin);return t.searchParams.delete(b.NEXT_RSC_UNION_QUERY),t}function T(e){return e.origin!==window.location.origin}function j(e){let{appRouterState:t,sync:r}=e;return(0,a.useInsertionEffect)(()=>{let{tree:e,pushRef:n,canonicalUrl:o}=t,a={...n.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};n.pendingPush&&(0,u.createHrefFromUrl)(new URL(window.location.href))!==o?(n.pendingPush=!1,window.history.pushState(a,"",o)):window.history.replaceState(a,"",o),r(t)},[t,r]),null}function M(){return{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map}}function C(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 N(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,o=null!==n?n:r;return(0,a.useDeferredValue)(r,o)}function A(e){let t,{buildId:r,initialHead:n,initialTree:u,initialCanonicalUrl:d,initialSeedData:b,assetPrefix:O,missingSlots:x}=e,M=(0,a.useMemo)(()=>(0,f.createInitialRouterState)({buildId:r,initialSeedData:b,initialCanonicalUrl:d,initialTree:u,initialParallelRoutes:S,isServer:!0,location:null,initialHead:n}),[r,b,d,u,n]),[A,w,I]=(0,c.useReducerWithReduxDevtools)(M);(0,a.useEffect)(()=>{S=null},[]);let{canonicalUrl:D}=(0,c.useUnwrapState)(A),{searchParams:L,pathname:U}=(0,a.useMemo)(()=>{let e=new URL(D,"http://n");return{searchParams:e.searchParams,pathname:(0,P.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[D]),F=(0,a.useCallback)((e,t,r)=>{(0,a.startTransition)(()=>{w({type:i.ACTION_SERVER_PATCH,flightData:t,previousTree:e,overrideCanonicalUrl:r})})},[w]),G=(0,a.useCallback)((e,t,r)=>{let n=new URL((0,g.addBasePath)(e),location.href);return w({type:i.ACTION_NAVIGATE,url:n,isExternalUrl:T(n),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t})},[w]);R=(0,a.useCallback)(e=>{(0,a.startTransition)(()=>{w({...e,type:i.ACTION_SERVER_ACTION})})},[w]);let H=(0,a.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,g.addBasePath)(e),window.location.href);T(r)||(0,a.startTransition)(()=>{var e;w({type:i.ACTION_PREFETCH,url:r,kind:null!=(e=null==t?void 0:t.kind)?e:i.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,a.startTransition)(()=>{var r;G(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,a.startTransition)(()=>{var r;G(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,a.startTransition)(()=>{w({type:i.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[w,G]);(0,a.useEffect)(()=>{window.next&&(window.next.router=H)},[H]),(0,a.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&w({type:i.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)}},[w]);let{pushRef:B}=(0,c.useUnwrapState)(A);if(B.mpaNavigation){if(E.pendingMpaPath!==D){let e=window.location;B.pendingPush?e.assign(D):e.replace(D),E.pendingMpaPath=D}(0,a.use)((0,y.createInfinitePromise)())}(0,a.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{let t=window.location.href;(0,a.startTransition)(()=>{w({type:i.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=C(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=C(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,a.startTransition)(()=>{w({type:i.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)}},[w]);let{cache:V,tree:k,nextUrl:W,focusAndScrollRef:X}=(0,c.useUnwrapState)(A),K=(0,a.useMemo)(()=>(0,v.findHeadInCache)(V,k[1]),[V,k]);if(null!==K){let[e,r]=K;t=(0,o.jsx)(N,{headCacheNode:e},r)}else t=null;let $=(0,o.jsxs)(_.RedirectBoundary,{children:[t,V.rsc,(0,o.jsx)(h.AppRouterAnnouncer,{tree:k})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(j,{appRouterState:(0,c.useUnwrapState)(A),sync:I}),(0,o.jsx)(s.PathnameContext.Provider,{value:U,children:(0,o.jsx)(s.SearchParamsContext.Provider,{value:L,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:r,changeByServerResponse:F,tree:k,focusAndScrollRef:X,nextUrl:W},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:H,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:V.parallelRoutes,tree:k,url:D},children:$})})})})})]})}function w(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 a}});let n=r(2768),o=r(4749);function a(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),a=n._(r(3810)),l=r(7435),i=r(2241),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"},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 a.default.Component{static getDerivedStateFromError(e){if((0,i.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:u.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:u.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:u.text,children:"Digest: "+r}):null]})})]})]})}let f=d;function p(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:a}=e,i=(0,l.usePathname)();return t?(0,o.jsx)(c,{pathname:i,errorComponent:t,errorStyles:r,errorScripts:n,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)},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 a}});let n=r(1951),o=r(8591);function a(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 S}}),r(3444);let n=r(4816),o=r(7685),a=n._(r(3810));r(914);let l=r(7874),i=r(5917),u=r(8937),s=r(6225),c=r(7666),d=r(3848),f=r(5369),p=r(5804),g=r(9010),h=r(3711),_=["bottom","height","left","right","top","width","x","y"];function v(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class y extends a.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;!v(r,t)&&(e.scrollTop=0,v(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function b(e){let{segmentPath:t,children:r}=e,n=(0,a.useContext)(l.GlobalLayoutRouterContext);if(!n)throw Error("invariant global layout router not mounted");return(0,o.jsx)(y,{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,a.useContext)(l.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:g,changeByServerResponse:h,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 y=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,b=(0,a.useDeferredValue)(v.rsc,y),m="object"==typeof b&&null!==b&&"function"==typeof b.then?(0,a.use)(b):b;if(!m){let e=v.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,o]=t,a=2===t.length;if((0,c.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(a){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],_);v.lazyData=e=(0,i.fetchServerResponse)(new URL(r,location.origin),t,p.nextUrl,g)}let[t,n]=(0,a.use)(e);v.lazyData=null,setTimeout(()=>{(0,a.startTransition)(()=>{h(_,t,n)})}),(0,a.use)((0,u.createInfinitePromise)())}return(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{tree:d[1][t],childNodes:v.parallelRoutes,url:r},children:m})}function P(e){let{children:t,loading:r,loadingStyles:n,loadingScripts:l,hasLoading:i}=e;return i?(0,o.jsx)(a.Suspense,{fallback:(0,o.jsxs)(o.Fragment,{children:[n,l,r]}),children:t}):(0,o.jsx)(o.Fragment,{children:t})}function S(e){let{parallelRouterKey:t,segmentPath:r,error:n,errorStyles:i,errorScripts:u,templateStyles:c,templateScripts:d,loading:_,loadingStyles:v,loadingScripts:y,hasLoading:S,template:R,notFound:O,notFoundStyles:E,styles:x}=e,T=(0,a.useContext)(l.LayoutRouterContext);if(!T)throw Error("invariant expected layout router to be mounted");let{childNodes:j,tree:M,url:C}=T,N=j.get(t);N||(N=new Map,j.set(t,N));let A=M[1][t][0],w=(0,g.getSegmentValue)(A),I=[A];return(0,o.jsxs)(o.Fragment,{children:[x,I.map(e=>{let a=(0,g.getSegmentValue)(e),x=(0,h.createRouterCacheKey)(e);return(0,o.jsxs)(l.TemplateContext.Provider,{value:(0,o.jsx)(b,{segmentPath:r,children:(0,o.jsx)(s.ErrorBoundary,{errorComponent:n,errorStyles:i,errorScripts:u,children:(0,o.jsx)(P,{hasLoading:S,loading:_,loadingStyles:v,loadingScripts:y,children:(0,o.jsx)(p.NotFoundBoundary,{notFound:O,notFoundStyles:E,children:(0,o.jsx)(f.RedirectBoundary,{children:(0,o.jsx)(m,{parallelRouterKey:t,url:C,tree:M,childNodes:N,segmentPath:r,cacheKey:x,isActive:w===a})})})})})}),children:[c,d,R]},(0,h.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 a}});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],a=(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 g},useSearchParams:function(){return h},usePathname:function(){return _},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return s.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return y},useSelectedLayoutSegments:function(){return b},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),a=r(7321),l=r(6515),i=r(9010),u=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 g{[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 h(){(0,l.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(a.SearchParamsContext),t=(0,n.useMemo)(()=>e?new g(e):null,[e]);{let{bailoutToClientRendering:e}=r(7391);e("useSearchParams()")}return t}function _(){return(0,l.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(a.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 y(){(0,l.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(o.GlobalLayoutRouterContext),t=(0,n.useContext)(a.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),a=o?t[1]:t;!a||a.startsWith(u.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 b(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 a;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)a=t[1][r];else{var l;let e=t[1];a=null!=(l=e.children)?l:Object.values(e)[0]}if(!a)return o;let s=a[0],c=(0,i.getSegmentValue)(s);return!c||c.startsWith(u.PAGE_SEGMENT_KEY)?o:(o.push(c),e(a,r,!1,o))}(t,e)}function m(e){void 0===e&&(e="children"),(0,l.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=b(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),a=n._(r(3810)),l=r(7435),i=r(1951);r(4586);let u=r(7874);class s extends a.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,i.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:i}=e,c=(0,l.usePathname)(),d=(0,a.useContext)(u.MissingSlotContext);return t?(0,o.jsx)(s,{pathname:c,notFound:t,notFoundStyles:r,asNotFound:n,missingSlots:d,children:i}):(0,o.jsx)(o.Fragment,{children: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)},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 a=o._("_maxConcurrency"),l=o._("_runningCount"),i=o._("_queue"),u=o._("_processNext");class s{enqueue(e){let t,r;let o=new Promise((e,n)=>{t=e,r=n}),a=async()=>{try{n._(this,l)[l]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,l)[l]--,n._(this,u)[u]()}};return n._(this,i)[i].push({promiseFn:o,task:a}),n._(this,u)[u](),o}bump(e){let t=n._(this,i)[i].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,i)[i].splice(t,1)[0];n._(this,i)[i].unshift(e),n._(this,u)[u](!0)}}constructor(e=5){Object.defineProperty(this,u,{value:c}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,i,{writable:!0,value:void 0}),n._(this,a)[a]=e,n._(this,l)[l]=0,n._(this,i)[i]=[]}}function c(e){if(void 0===e&&(e=!1),(n._(this,l)[l]0){var t;null==(t=n._(this,i)[i].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),a=n._(r(3810)),l=r(7435),i=r(8591);function u(e){let{redirect:t,reset:r,redirectType:n}=e,o=(0,l.useRouter)();return(0,a.useEffect)(()=>{a.default.startTransition(()=>{n===i.RedirectType.push?o.push(t,{}):o.replace(t,{}),r()})},[t,n,r,o]),null}class s extends a.default.Component{static getDerivedStateFromError(e){if((0,i.isRedirectError)(e))return{redirect:(0,i.getURLFromRedirectError)(e),redirectType:(0,i.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(u,{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,l.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 u},redirect:function(){return s},permanentRedirect:function(){return c},isRedirectError:function(){return d},getURLFromRedirectError:function(){return f},getRedirectTypeFromError:function(){return p},getRedirectStatusCodeFromError:function(){return g}});let o=r(5403),a=r(7849),l=r(4011),i="NEXT_REDIRECT";function u(e,t,r){void 0===r&&(r=l.RedirectStatusCode.TemporaryRedirect);let n=Error(i);n.digest=i+";"+t+";"+e+";"+r+";";let a=o.requestAsyncStorage.getStore();return a&&(n.mutableCookies=a.mutableCookies),n}function s(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw u(e,t,(null==r?void 0:r.isAction)?l.RedirectStatusCode.SeeOther:l.RedirectStatusCode.TemporaryRedirect)}function c(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw u(e,t,(null==r?void 0:r.isAction)?l.RedirectStatusCode.SeeOther:l.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),a=Number(o);return t===i&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(a)&&a in l.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 g(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 i}});let n=r(4816),o=r(7685),a=n._(r(3810)),l=r(7874);function i(){let e=(0,a.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)},1968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return a}});let n=r(1678),o=r(7756);function a(e,t,r,a){void 0===a&&(a=!1);let[l,i,u]=r.slice(-3);if(null===i)return!1;if(3===r.length){let r=i[2];t.rsc=r,t.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(t,e,l,i,u,a)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),(0,o.fillCacheWithNewSubTreeData)(t,e,r,a);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 i},applyRouterStatePatchToTreeSkipDefault:function(){return u}});let n=r(3940),o=r(7666);function a(e,t,r){void 0===r&&(r=!1);let[l,i]=e,[u,s]=t;if(!r&&u===n.DEFAULT_SEGMENT_KEY&&l!==n.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(l,u)){let t={};for(let e in i)void 0!==s[e]?t[e]=a(i[e],s[e],r):t[e]=i[e];for(let e in s)t[e]||(t[e]=s[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 i;void 0===n&&(n=!1);let[u,s,,,c]=t;if(1===e.length)return a(t,r,n);let[d,f]=e;if(!(0,o.matchSegment)(d,u))return null;if(2===e.length)i=a(s[f],r,n);else if(null===(i=l(e.slice(2),s[f],r,n)))return null;let p=[e[0],{...s,[f]:i}];return c&&(p[4]=!0),p}function i(e,t,r){return l(e,t,r,!0)}function u(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)},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),a=r(7666),l=e=>"/"===e[0]?e.slice(1):e,i=e=>"string"==typeof e?e:e[1];function u(e){return e.reduce((e,t)=>""===(t=l(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 a=[r],l=null!=(t=e[1])?t:{},i=l.children?s(l.children):void 0;if(void 0!==i)a.push(i);else for(let[e,t]of Object.entries(l)){if("children"===e)continue;let r=s(t);void 0!==r&&a.push(r)}return u(a)}function c(e,t){let r=function e(t,r){let[o,l]=t,[u,c]=r,d=i(o),f=i(u);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)||f.startsWith(e)))return"";if(!(0,a.matchSegment)(o,u)){var p;return null!=(p=s(r))?p:""}for(let t in l)if(c[t]){let r=e(l[t],c[t]);if(null!==r)return i(u)+"/"+r}return null}(e,t);return null==r||"/"===r?r:u(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 l}});let n=r(5458),o=r(1678),a=r(1545);function l(e){var t;let{buildId:r,initialTree:l,initialSeedData:i,initialCanonicalUrl:u,initialParallelRoutes:s,isServer:c,location:d,initialHead:f}=e,p={lazyData:null,rsc:i[2],prefetchRsc:null,parallelRoutes:c?new Map:s};return(null===s||0===s.size)&&(0,o.fillLazyItemsTillLeafWithHead)(p,void 0,l,i,f),{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:d?(0,n.createHrefFromUrl)(d):u,nextUrl:null!=(t=(0,a.extractPathFromFlightRouterState)(l)||(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),a=r(2641),l=r(4967),i=r(8467),{createFromFetch:u}=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===l.PrefetchKind.AUTO&&(f[n.NEXT_ROUTER_PREFETCH_HEADER]="1"),r&&(f[n.NEXT_URL]=r);let p=(0,i.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}),l=(0,o.urlToUrlWithoutFlightMarker)(r.url),i=r.redirected?l:void 0,d=r.headers.get("content-type")||"",g=!!r.headers.get(n.NEXT_DID_POSTPONE_HEADER);if(d!==n.RSC_CONTENT_TYPE_HEADER||!r.ok)return e.hash&&(l.hash=e.hash),s(l.toString());let[h,_]=await u(Promise.resolve(r),{callServer:a.callServer});if(c!==h)return s(r.url);return[_,i,g]}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,a){let l=o.length<=2,[i,u]=o,s=(0,n.createRouterCacheKey)(u),c=r.parallelRoutes.get(i),d=t.parallelRoutes.get(i);d&&d!==c||(d=new Map(c),t.parallelRoutes.set(i,d));let f=null==c?void 0:c.get(s),p=d.get(s);if(l){p&&p.lazyData&&p!==f||d.set(s,{lazyData:a(),rsc:null,prefetchRsc:null,parallelRoutes:new Map});return}if(!p||!f){p||d.set(s,{lazyData:a(),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),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)},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,l,i){let u=l.length<=5,[s,c]=l,d=(0,a.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 g=f.get(d),h=p.get(d);if(u){if(!h||!h.lazyData||h===g){let e=l[3];h={lazyData:null,rsc:e[2],prefetchRsc:null,parallelRoutes:g?new Map(g.parallelRoutes):new Map},g&&(0,n.invalidateCacheByRouterState)(h,g,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(h,g,l[2],e,l[4],i),p.set(d,h)}return}h&&g&&(h===g&&(h={lazyData:h.lazyData,rsc:h.rsc,prefetchRsc:h.prefetchRsc,parallelRoutes:new Map(h.parallelRoutes)},p.set(d,h)),e(h,g,l.slice(2),i))}}});let n=r(7241),o=r(1678),a=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,a,l,i){if(0===Object.keys(o[1]).length){t.head=l;return}for(let u in o[1]){let s;let c=o[1][u],d=c[0],f=(0,n.createRouterCacheKey)(d),p=null!==a&&void 0!==a[1][u]?a[1][u]:null;if(r){let n=r.parallelRoutes.get(u);if(n){let r,o=new Map(n),a=o.get(f);r=null!==p?{lazyData:null,rsc:p[2],prefetchRsc:null,parallelRoutes:new Map(null==a?void 0:a.parallelRoutes)}:i&&a?{lazyData:a.lazyData,rsc:a.rsc,prefetchRsc:a.prefetchRsc,parallelRoutes:new Map(a.parallelRoutes)}:{lazyData:null,rsc:null,prefetchRsc:null,parallelRoutes:new Map(null==a?void 0:a.parallelRoutes)},o.set(f,r),e(r,a,c,p||null,l,i),t.parallelRoutes.set(u,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 g=t.parallelRoutes.get(u);g?g.set(f,s):t.parallelRoutes.set(u,new Map([[f,s]])),e(s,void 0,c,p,l,i)}}}});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 a}});let n=r(1545);function o(e){return void 0!==e}function a(e,t){var r,a,l;let i=null==(a=t.shouldScroll)||a,u=e.nextUrl;if(o(t.patchedTree)){let r=(0,n.computeChangedPath)(e.tree,t.patchedTree);r?u=r:u||(u=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:!!i&&(!!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:i?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:i?null!=(l=null==t?void 0:t.scrollableSegments)?l: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: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)},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 a=o.length<=2,[l,i]=o,u=(0,n.createRouterCacheKey)(i),s=r.parallelRoutes.get(l);if(!s)return;let c=t.parallelRoutes.get(l);if(c&&c!==s||(c=new Map(s),t.parallelRoutes.set(l,c)),a){c.delete(u);return}let d=s.get(u),f=c.get(u);f&&d&&(f===d&&(f={lazyData:f.lazyData,rsc:f.rsc,prefetchRsc:f.prefetchRsc,parallelRoutes:new Map(f.parallelRoutes)},c.set(u,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 a=r[1][o][0],l=(0,n.createRouterCacheKey)(a),i=t.parallelRoutes.get(o);if(i){let t=new Map(i);t.delete(l),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 a=Object.values(t[1])[0],l=Object.values(r[1])[0];return!a||!l||e(a,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)},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,i,s,c,d){let f=r[1],p=i[1],g=s[1],h=t.parallelRoutes,_=new Map(h),v={},y=null;for(let t in p){let r;let i=p[t],s=f[t],b=h.get(t),m=g[t],P=i[0],S=(0,a.createRouterCacheKey)(P),R=void 0!==s?s[0]:void 0,O=void 0!==b?b.get(S):void 0;if(null!==(r=P===n.PAGE_SEGMENT_KEY?l(i,void 0!==m?m:null,c,d):P===n.DEFAULT_SEGMENT_KEY?void 0!==s?{route:s,node:null,children:null}:l(i,void 0!==m?m:null,c,d):void 0!==R&&(0,o.matchSegment)(P,R)&&void 0!==O&&void 0!==s?null!=m?e(O,s,i,m,c,d):function(e){let t=u(e,null,null,!1);return{route:e,node:t,children:null}}(i):l(i,void 0!==m?m:null,c,d))){null===y&&(y=new Map),y.set(t,r);let e=r.node;if(null!==e){let r=new Map(b);r.set(S,e),_.set(t,r)}v[t]=r.route}else v[t]=i}if(null===y)return null;let b={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}(i,v),node:b,children:y}}},listenForDynamicRequest:function(){return i},abortTask:function(){return s},updateCacheNodeOnPopstateRestoration:function(){return function e(t,r){let n=r[1],o=t.parallelRoutes,l=new Map(o);for(let t in n){let r=n[t],i=r[0],u=(0,a.createRouterCacheKey)(i),s=o.get(t);if(void 0!==s){let n=s.get(u);if(void 0!==n){let o=e(n,r),a=new Map(s);a.set(u,o),l.set(t,a)}}}let i=t.rsc,u=f(i)&&"pending"===i.status;return{lazyData:null,rsc:i,head:t.head,prefetchHead:u?t.prefetchHead:null,prefetchRsc:u?t.prefetchRsc:null,parallelRoutes:l}}}});let n=r(3940),o=r(7666),a=r(3711);function l(e,t,r,n){let o=u(e,t,r,n);return{route:e,node:o,children:null}}function i(e,t){t.then(t=>{for(let r of t[0]){let t=r.slice(0,-3),n=r[r.length-3],l=r[r.length-2],i=r[r.length-1];"string"!=typeof t&&function(e,t,r,n,l){let i=e;for(let e=0;e{s(e,t)})}function u(e,t,r,n){let o=e[1],l=null!==t?t[1]:null,i=new Map;for(let e in o){let t=o[e],s=null!==l?l[e]:null,c=t[0],d=(0,a.createRouterCacheKey)(c),f=u(t,void 0===s?null:s,r,n),p=new Map;p.set(d,f),i.set(e,p)}let s=0===i.size,c=null!==t?t[2]:null;return{lazyData:null,parallelRoutes:i,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],l=o.get(e);if(void 0===l)continue;let i=t[0],u=(0,a.createRouterCacheKey)(i),s=l.get(u);void 0!==s&&c(t,s,r)}let l=t.rsc;f(l)&&(null===r?l.resolve(null):l.reject(r));let i=t.head;f(i)&&i.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 l}});let n=r(8800),o=r(1369),a=r(5458);function l(e,t){let r=(0,a.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 a in r){let[l,i]=r[a],u=t.parallelRoutes.get(a);if(!u)continue;let s=(0,n.createRouterCacheKey)(l),c=u.get(s);if(!c)continue;let d=e(c,i,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 b},navigateReducer:function(){return P}});let n=r(5917),o=r(5458),a=r(5322),l=r(3558),i=r(9219),u=r(9877),s=r(6571),c=r(4967),d=r(1206),f=r(1968),p=r(5011),g=r(4991),h=r(8959),_=r(9489),v=r(3940),y=(r(5111),r(2025));function b(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 P=function(e,t){let{url:r,isExternalUrl:P,navigateType:S,shouldScroll:R}=t,O={},{hash:E}=r,x=(0,o.createHrefFromUrl)(r),T="push"===S;if((0,g.prunePrefetchCache)(e.prefetchCache),O.preserveCustomHistoryState=!1,P)return b(e,O,r.toString(),T);let j=(0,y.createPrefetchCacheKey)(r,e.nextUrl),M=e.prefetchCache.get(j);if(!M){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(j,t),M=t}let C=(0,p.getPrefetchEntryCacheStatus)(M),{treeAtTimeOfPrefetch:N,data:A}=M;return h.prefetchQueue.bump(A),A.then(t=>{let[c,g,h]=t;if(M&&!M.lastUsedTime&&(M.lastUsedTime=Date.now()),"string"==typeof c)return b(e,O,c,T);let y=e.tree,P=e.cache,S=[];for(let t of c){let o=t.slice(0,-4),c=t.slice(-3)[0],d=["",...o],g=(0,i.applyRouterStatePatchToTreeSkipDefault)(d,y,c);if(null===g&&(g=(0,i.applyRouterStatePatchToTreeSkipDefault)(d,N,c)),null!==g){if((0,s.isNavigatingToNewRootLayout)(y,g))return b(e,O,x,T);let i=(0,_.createEmptyCacheNode)(),R=(0,f.applyFlightData)(P,i,t,(null==M?void 0:M.kind)==="auto"&&C===p.PrefetchCacheEntryStatus.reusable);for(let t of((!R&&C===p.PrefetchCacheEntryStatus.stale||h)&&(R=function(e,t,r,n,o){let a=!1;for(let i 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,i,o),a=!0;return a}(i,P,o,c,()=>(0,n.fetchServerResponse)(r,y,e.nextUrl,e.buildId))),(0,u.shouldHardNavigate)(d,y)?(i.rsc=P.rsc,i.prefetchRsc=P.prefetchRsc,(0,a.invalidateCacheBelowFlightSegmentPath)(i,P,o),O.cache=i):R&&(O.cache=i),P=i,y=g,m(c))){let e=[...o,...t];e[e.length-1]!==v.DEFAULT_SEGMENT_KEY&&S.push(e)}}}return O.patchedTree=y,O.canonicalUrl=g?(0,o.createHrefFromUrl)(g):x,O.pendingPush=T,O.scrollableSegments=S,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),a=r(4991),l=r(2848),i=r(5808),u=r(2025),s=new i.PromiseQueue(5);function c(e,t){(0,a.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;r.searchParams.delete(l.NEXT_RSC_UNION_QUERY);let i=(0,u.createPrefetchCacheKey)(r,e.nextUrl),c=e.prefetchCache.get(i);if(c&&(c.kind===o.PrefetchKind.TEMPORARY&&e.prefetchCache.set(i,{...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(i,{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),a=r(9219),l=r(6571),i=r(4007),u=r(1206),s=r(1678),c=r(9489),d=r(6939);function f(e,t){let{origin:r}=t,f={},p=e.canonicalUrl,g=e.tree;f.preserveCustomHistoryState=!1;let h=(0,c.createEmptyCacheNode)();return h.lazyData=(0,n.fetchServerResponse)(new URL(p,r),[g[0],g[1],g[2],"refetch"],e.nextUrl,e.buildId),h.lazyData.then(r=>{let[n,c]=r;if("string"==typeof n)return(0,i.handleExternalUrl)(e,f,n,e.pushRef.pendingPush);for(let r of(h.lazyData=null,n)){if(3!==r.length)return console.log("REFRESH FAILED"),e;let[n]=r,u=(0,a.applyRouterStatePatchToFullTree)([""],g,n);if(null===u)return(0,d.handleSegmentMismatch)(e,t,n);if((0,l.isNavigatingToNewRootLayout)(g,u))return(0,i.handleExternalUrl)(e,f,p,e.pushRef.pendingPush);let _=c?(0,o.createHrefFromUrl)(c):void 0;c&&(f.canonicalUrl=_);let[v,y]=r.slice(-2);if(null!==v){let e=v[2];h.rsc=e,h.prefetchRsc=null,(0,s.fillLazyItemsTillLeafWithHead)(h,void 0,n,v,y),f.cache=h,f.prefetchCache=new Map}f.patchedTree=u,f.canonicalUrl=p,g=u}return(0,u.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 a}});let n=r(5458),o=r(1545);function a(e,t){var r;let{url:a,tree:l}=t,i=(0,n.createHrefFromUrl)(a),u=e.cache;return{buildId:e.buildId,canonicalUrl:i,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:u,prefetchCache:e.prefetchCache,tree:l,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(l))?r:a.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 y}});let n=r(2641),o=r(2848),a=r(9517),l=r(5458),i=r(4007),u=r(9219),s=r(6571),c=r(1206),d=r(1678),f=r(9489),p=r(1545),g=r(6939),{createFromFetch:h,encodeReply:_}=r(5492);async function v(e,t){let r,{actionId:l,actionArgs:i}=t,u=await _(i),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]:l,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...c?{[o.NEXT_URL]:e.nextUrl}:{}},body:u}),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 g=f?new URL((0,a.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 h(Promise.resolve(d),{callServer:n.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:g,revalidatedParts:r}}let[t,[,o]]=null!=e?e:[];return{actionResult:t,actionFlightData:o,redirectLocation:g,revalidatedParts:r}}return{redirectLocation:g,revalidatedParts:r}}function y(e,t){let{resolve:r,reject:n}=t,o={},a=e.canonicalUrl,p=e.tree;return o.preserveCustomHistoryState=!1,o.inFlightServerAction=v(e,t),o.inFlightServerAction.then(n=>{let{actionResult:h,actionFlightData:_,redirectLocation:v}=n;if(v&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!_)return(o.actionResultResolved||(r(h),o.actionResultResolved=!0),v)?(0,i.handleExternalUrl)(e,o,v.href,e.pushRef.pendingPush):e;if("string"==typeof _)return(0,i.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,u.applyRouterStatePatchToFullTree)([""],p,n);if(null===l)return(0,g.handleSegmentMismatch)(e,t,n);if((0,s.isNavigatingToNewRootLayout)(p,l))return(0,i.handleExternalUrl)(e,o,a,e.pushRef.pendingPush);let[c,h]=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,h),o.cache=e,o.prefetchCache=new Map}o.patchedTree=l,o.canonicalUrl=a,p=l}if(v){let e=(0,l.createHrefFromUrl)(v,!1);o.canonicalUrl=e}return o.actionResultResolved||(r(h),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),a=r(6571),l=r(4007),i=r(1968),u=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,l.handleExternalUrl)(e,f,r,e.pushRef.pendingPush);let p=e.tree,g=e.cache;for(let u of r){let r=u.slice(0,-4),[h]=u.slice(-3,-2),_=(0,o.applyRouterStatePatchToTreeSkipDefault)(["",...r],p,h);if(null===_)return(0,c.handleSegmentMismatch)(e,t,h);if((0,a.isNavigatingToNewRootLayout)(p,_))return(0,l.handleExternalUrl)(e,f,e.canonicalUrl,e.pushRef.pendingPush);let v=d?(0,n.createHrefFromUrl)(d):void 0;v&&(f.canonicalUrl=v);let y=(0,s.createEmptyCacheNode)();(0,i.applyFlightData)(g,y,u),f.patchedTree=_,f.cache=y,g=y,p=_}return(0,u.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 a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return i},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return s},isThenable:function(){return c}});let n="refresh",o="navigate",a="restore",l="server-patch",i="prefetch",u="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,a]=r,[l,i]=t;return(0,n.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),a[i]):!!Array.isArray(l)}}});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 i},staticGenerationBailout:function(){return s}});let n=r(999),o=r(4749),a="NEXT_STATIC_GEN_BAILOUT";class l extends Error{constructor(...e){super(...e),this.code=a}}function i(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===a}function u(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:a}=void 0===t?{}:t,i=o.staticGenerationAsyncStorage.getStore();if(!i)return!1;if(i.forceStatic)return!0;if(i.dynamicShouldError)throw new l(u(e,{link:a,dynamic:null!=r?r:"error"}));let s=u(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==i.postpone||i.postpone.call(i,e),i.revalidate=0,i.isStaticGeneration){let t=new n.DynamicServerError(s);throw i.dynamicUsageDescription=e,i.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 a}}),r(3444);let n=r(7685);r(3810);let o=r(9523);function a(e){let{Component:t,propsForComponent:r,isStaticGeneration:a}=e;if(a){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 l},useReducerWithReduxDevtools:function(){return i}});let n=r(4816)._(r(3810)),o=r(4967);function a(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]=a(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]=a(n)}return t}return Array.isArray(e)?e.map(a):e}function l(e){return(0,o.isThenable)(e)?(0,n.use)(e):e}r(3240);let i=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 a}});let n=r(3370),o=r(8032),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+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)},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 a},extractInterceptionRouteInformation:function(){return l}});let n=r(590),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=l.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},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 i},createMutableActionQueue:function(){return c}});let n=r(4816),o=r(4967),a=r(6417),l=n._(r(3810)),i=l.default.createContext(null);function u(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,a=t.state;if(!a)throw Error("Invariant: Router state not initialized");t.pending=r;let l=r.payload,i=t.action(a,l);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(l,e),u(t,n),r.resolve(e)}(0,o.isThenable)(i)?i.then(s,e=>{u(t,n),r.reject(e)}):s(i)}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,l.startTransition)(()=>{r(e)})}let a={payload:t,next:null,resolve:n.resolve,reject:n.reject};null===e.pending?(e.last=a,s({actionQueue:e,action:a,setState:r})):t.type===o.ACTION_NAVIGATE?(e.pending.discarded=!0,e.last=a,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),s({actionQueue:e,action:a,setState:r})):(null!==e.last&&(e.last.next=a),e.last=a)})(e,t,r),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,a.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:a}=(0,n.parsePath)(e);return""+t+r+o+a}},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 a},normalizeRscURL:function(){return l}});let n=r(8699),o=r(3940);function a(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")}},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=>{}},8205:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u,metadata:()=>l,runtime:()=>i});var n=r(6491),o=r(1608),a=r.n(o);r(1603);let l={title:"Create T3 App",description:"Generated by create-t3-app",icons:[{rel:"icon",url:"/favicon.ico"}]},i="edge";function u({children:e}){return n.jsx("html",{lang:"en",children:n.jsx("body",{className:`font-sans ${a().variable}`,children:e})})}},3181:(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,{prefixes:function(){return o},bootstrap:function(){return i},wait:function(){return u},error:function(){return s},warn:function(){return c},ready:function(){return d},info:function(){return f},event:function(){return p},trace:function(){return g},warnOnce:function(){return _}});let n=r(2761),o={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"))},a={log:"log",warn:"warn",error:"error"};function l(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in a?a[e]:"log",n=o[e];0===t.length?console[r](""):console[r](" "+n,...t)}function i(...e){console.log(" ",...e)}function u(...e){l("wait",...e)}function s(...e){l("error",...e)}function c(...e){l("warn",...e)}function d(...e){l("ready",...e)}function f(...e){l("info",...e)}function p(...e){l("event",...e)}function g(...e){l("trace",...e)}let h=new Set;function _(...e){h.has(e[0])||(h.add(e.join(" ")),c(...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 a}}),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 a(){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 i},staticGenerationBailout:function(){return s}});let n=r(9625),o=r(5869),a="NEXT_STATIC_GEN_BAILOUT";class l extends Error{constructor(...e){super(...e),this.code=a}}function i(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===a}function u(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:a}=void 0===t?{}:t,i=o.staticGenerationAsyncStorage.getStore();if(!i)return!1;if(i.forceStatic)return!0;if(i.dynamicShouldError)throw new l(u(e,{link:a,dynamic:null!=r?r:"error"}));let s=u(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==i.postpone||i.postpone.call(i,e),i.revalidate=0,i.isStaticGeneration){let t=new n.DynamicServerError(s);throw i.dynamicUsageDescription=e,i.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")},1405:e=>{"use strict";(()=>{var t={491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextAPI=void 0;let n=r(223),o=r(172),a=r(930),l="context",i=new n.NoopContextManager;class u{constructor(){}static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalContextManager(e){return(0,o.registerGlobal)(l,e,a.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,o.getGlobal)(l)||i}disable(){this._getContextManager().disable(),(0,o.unregisterGlobal)(l,a.DiagAPI.instance())}}t.ContextAPI=u},930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagAPI=void 0;let n=r(56),o=r(912),a=r(957),l=r(172);class i{constructor(){function e(e){return function(...t){let r=(0,l.getGlobal)("diag");if(r)return r[e](...t)}}let t=this;t.setLogger=(e,r={logLevel:a.DiagLogLevel.INFO})=>{var n,i,u;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 s=(0,l.getGlobal)("diag"),c=(0,o.createLogLevelDiagLogger)(null!==(i=r.logLevel)&&void 0!==i?i:a.DiagLogLevel.INFO,e);if(s&&!r.suppressOverrideMessage){let e=null!==(u=Error().stack)&&void 0!==u?u:"";s.warn(`Current logger will be overwritten from ${e}`),c.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,l.registerGlobal)("diag",c,t,!0)},t.disable=()=>{(0,l.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 i),this._instance}}t.DiagAPI=i},653:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsAPI=void 0;let n=r(660),o=r(172),a=r(930),l="metrics";class i{constructor(){}static getInstance(){return this._instance||(this._instance=new i),this._instance}setGlobalMeterProvider(e){return(0,o.registerGlobal)(l,e,a.DiagAPI.instance())}getMeterProvider(){return(0,o.getGlobal)(l)||n.NOOP_METER_PROVIDER}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,o.unregisterGlobal)(l,a.DiagAPI.instance())}}t.MetricsAPI=i},181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropagationAPI=void 0;let n=r(172),o=r(874),a=r(194),l=r(277),i=r(369),u=r(930),s="propagation",c=new o.NoopTextMapPropagator;class d{constructor(){this.createBaggage=i.createBaggage,this.getBaggage=l.getBaggage,this.getActiveBaggage=l.getActiveBaggage,this.setBaggage=l.setBaggage,this.deleteBaggage=l.deleteBaggage}static getInstance(){return this._instance||(this._instance=new d),this._instance}setGlobalPropagator(e){return(0,n.registerGlobal)(s,e,u.DiagAPI.instance())}inject(e,t,r=a.defaultTextMapSetter){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=a.defaultTextMapGetter){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,n.unregisterGlobal)(s,u.DiagAPI.instance())}_getGlobalPropagator(){return(0,n.getGlobal)(s)||c}}t.PropagationAPI=d},997:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceAPI=void 0;let n=r(172),o=r(846),a=r(139),l=r(607),i=r(930),u="trace";class s{constructor(){this._proxyTracerProvider=new o.ProxyTracerProvider,this.wrapSpanContext=a.wrapSpanContext,this.isSpanContextValid=a.isSpanContextValid,this.deleteSpan=l.deleteSpan,this.getSpan=l.getSpan,this.getActiveSpan=l.getActiveSpan,this.getSpanContext=l.getSpanContext,this.setSpan=l.setSpan,this.setSpanContext=l.setSpanContext}static getInstance(){return this._instance||(this._instance=new s),this._instance}setGlobalTracerProvider(e){let t=(0,n.registerGlobal)(u,this._proxyTracerProvider,i.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,n.getGlobal)(u)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,n.unregisterGlobal)(u,i.DiagAPI.instance()),this._proxyTracerProvider=new o.ProxyTracerProvider}}t.TraceAPI=s},277:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deleteBaggage=t.setBaggage=t.getActiveBaggage=t.getBaggage=void 0;let n=r(491),o=(0,r(780).createContextKey)("OpenTelemetry Baggage Key");function a(e){return e.getValue(o)||void 0}t.getBaggage=a,t.getActiveBaggage=function(){return a(n.ContextAPI.getInstance().active())},t.setBaggage=function(e,t){return e.setValue(o,t)},t.deleteBaggage=function(e){return e.deleteValue(o)}},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),o=r(993),a=r(830),l=n.DiagAPI.instance();t.createBaggage=function(e={}){return new o.BaggageImpl(new Map(Object.entries(e)))},t.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(l.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:a.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 o{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=o},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 o=new r(t._currentContext);return o._currentContext.set(e,n),o},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 o{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return a("debug",this._namespace,e)}error(...e){return a("error",this._namespace,e)}info(...e){return a("info",this._namespace,e)}warn(...e){return a("warn",this._namespace,e)}verbose(...e){return a("verbose",this._namespace,e)}}function a(e,t,r){let o=(0,n.getGlobal)("diag");if(o)return r.unshift(t),o[e](...r)}t.DiagComponentLogger=o},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 o=t[r];return"function"==typeof o&&e>=n?o.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),o=r(521),a=r(130),l=o.VERSION.split(".")[0],i=Symbol.for(`opentelemetry.js.api.${l}`),u=n._globalThis;t.registerGlobal=function(e,t,r,n=!1){var a;let l=u[i]=null!==(a=u[i])&&void 0!==a?a:{version:o.VERSION};if(!n&&l[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(l.version!==o.VERSION){let t=Error(`@opentelemetry/api: Registration of version v${l.version} for ${e} does not match previously registered API v${o.VERSION}`);return r.error(t.stack||t.message),!1}return l[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${o.VERSION}.`),!0},t.getGlobal=function(e){var t,r;let n=null===(t=u[i])||void 0===t?void 0:t.version;if(n&&(0,a.isCompatible)(n))return null===(r=u[i])||void 0===r?void 0:r[e]},t.unregisterGlobal=function(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${o.VERSION}.`);let r=u[i];r&&delete r[e]}},130:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isCompatible=t._makeCompatibilityCheck=void 0;let n=r(521),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function a(e){let t=new Set([e]),r=new Set,n=e.match(o);if(!n)return()=>!1;let a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=a.prerelease)return function(t){return t===e};function l(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(o);if(!n)return l(e);let i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};return null!=i.prerelease||a.major!==i.major?l(e):0===a.major?a.minor===i.minor&&a.patch<=i.patch?(t.add(e),!0):l(e):a.minor<=i.minor?(t.add(e),!0):l(e)}}t._makeCompatibilityCheck=a,t.isCompatible=a(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 o extends n{add(e,t){}}t.NoopCounterMetric=o;class a extends n{add(e,t){}}t.NoopUpDownCounterMetric=a;class l extends n{record(e,t){}}t.NoopHistogramMetric=l;class i{addCallback(e){}removeCallback(e){}}t.NoopObservableMetric=i;class u extends i{}t.NoopObservableCounterMetric=u;class s extends i{}t.NoopObservableGaugeMetric=s;class c extends i{}t.NoopObservableUpDownCounterMetric=c,t.NOOP_METER=new r,t.NOOP_COUNTER_METRIC=new o,t.NOOP_HISTOGRAM_METRIC=new l,t.NOOP_UP_DOWN_COUNTER_METRIC=new a,t.NOOP_OBSERVABLE_COUNTER_METRIC=new u,t.NOOP_OBSERVABLE_GAUGE_METRIC=new s,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 o{getMeter(e,t,r){return n.NOOP_METER}}t.NoopMeterProvider=o,t.NOOP_METER_PROVIDER=new o},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]}),o=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}),o(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]}),o=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}),o(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 o{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=o},614:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracer=void 0;let n=r(491),o=r(607),a=r(403),l=r(139),i=n.ContextAPI.getInstance();class u{startSpan(e,t,r=i.active()){if(null==t?void 0:t.root)return new a.NonRecordingSpan;let n=r&&(0,o.getSpanContext)(r);return"object"==typeof n&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,l.isSpanContextValid)(n)?new a.NonRecordingSpan(n):new a.NonRecordingSpan}startActiveSpan(e,t,r,n){let a,l,u;if(arguments.length<2)return;2==arguments.length?u=t:3==arguments.length?(a=t,u=r):(a=t,l=r,u=n);let s=null!=l?l:i.active(),c=this.startSpan(e,a,s),d=(0,o.setSpan)(s,c);return i.with(d,u,void 0,c)}}t.NoopTracer=u},124:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracerProvider=void 0;let n=r(614);class o{getTracer(e,t,r){return new n.NoopTracer}}t.NoopTracerProvider=o},125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracer=void 0;let n=new(r(614)).NoopTracer;class o{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 o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,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=o},846:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracerProvider=void 0;let n=r(125),o=new(r(124)).NoopTracerProvider;class a{getTracer(e,t,r){var o;return null!==(o=this.getDelegateTracer(e,t,r))&&void 0!==o?o:new n.ProxyTracer(this,e,t,r)}getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:o}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=a},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),o=r(403),a=r(491),l=(0,n.createContextKey)("OpenTelemetry Context Key SPAN");function i(e){return e.getValue(l)||void 0}function u(e,t){return e.setValue(l,t)}t.getSpan=i,t.getActiveSpan=function(){return i(a.ContextAPI.getInstance().active())},t.setSpan=u,t.deleteSpan=function(e){return e.deleteValue(l)},t.setSpanContext=function(e,t){return u(e,new o.NonRecordingSpan(t))},t.getSpanContext=function(e){var t;return null===(t=i(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 o{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(),o=r.indexOf("=");if(-1!==o){let a=r.slice(0,o),l=r.slice(o+1,t.length);(0,n.validateKey)(a)&&(0,n.validateValue)(l)&&e.set(a,l)}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 o;return e._internalState=new Map(this._internalState),e}}t.TraceStateImpl=o},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}`,o=`[a-z0-9]${r}{0,240}@[a-z]${r}{0,13}`,a=RegExp(`^(?:${n}|${o})$`),l=/^[ -~]{0,255}[!-~]$/,i=/,|=/;t.validateKey=function(e){return a.test(e)},t.validateValue=function(e){return l.test(e)&&!i.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),o=r(403),a=/^([0-9a-f]{32})$/i,l=/^[0-9a-f]{16}$/i;function i(e){return a.test(e)&&e!==n.INVALID_TRACEID}function u(e){return l.test(e)&&e!==n.INVALID_SPANID}t.isValidTraceId=i,t.isValidSpanId=u,t.isSpanContextValid=function(e){return i(e.traceId)&&u(e.spanId)},t.wrapSpanContext=function(e){return new o.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 o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}},l=!0;try{t[e].call(a.exports,a,a.exports,n),l=!1}finally{l&&delete r[e]}return a.exports}n.ab=__dirname+"/";var o={};(()=>{Object.defineProperty(o,"__esModule",{value:!0}),o.trace=o.propagation=o.metrics=o.diag=o.context=o.INVALID_SPAN_CONTEXT=o.INVALID_TRACEID=o.INVALID_SPANID=o.isValidSpanId=o.isValidTraceId=o.isSpanContextValid=o.createTraceState=o.TraceFlags=o.SpanStatusCode=o.SpanKind=o.SamplingDecision=o.ProxyTracerProvider=o.ProxyTracer=o.defaultTextMapSetter=o.defaultTextMapGetter=o.ValueType=o.createNoopMeter=o.DiagLogLevel=o.DiagConsoleLogger=o.ROOT_CONTEXT=o.createContextKey=o.baggageEntryMetadataFromString=void 0;var e=n(369);Object.defineProperty(o,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return e.baggageEntryMetadataFromString}});var t=n(780);Object.defineProperty(o,"createContextKey",{enumerable:!0,get:function(){return t.createContextKey}}),Object.defineProperty(o,"ROOT_CONTEXT",{enumerable:!0,get:function(){return t.ROOT_CONTEXT}});var r=n(972);Object.defineProperty(o,"DiagConsoleLogger",{enumerable:!0,get:function(){return r.DiagConsoleLogger}});var a=n(957);Object.defineProperty(o,"DiagLogLevel",{enumerable:!0,get:function(){return a.DiagLogLevel}});var l=n(102);Object.defineProperty(o,"createNoopMeter",{enumerable:!0,get:function(){return l.createNoopMeter}});var i=n(901);Object.defineProperty(o,"ValueType",{enumerable:!0,get:function(){return i.ValueType}});var u=n(194);Object.defineProperty(o,"defaultTextMapGetter",{enumerable:!0,get:function(){return u.defaultTextMapGetter}}),Object.defineProperty(o,"defaultTextMapSetter",{enumerable:!0,get:function(){return u.defaultTextMapSetter}});var s=n(125);Object.defineProperty(o,"ProxyTracer",{enumerable:!0,get:function(){return s.ProxyTracer}});var c=n(846);Object.defineProperty(o,"ProxyTracerProvider",{enumerable:!0,get:function(){return c.ProxyTracerProvider}});var d=n(996);Object.defineProperty(o,"SamplingDecision",{enumerable:!0,get:function(){return d.SamplingDecision}});var f=n(357);Object.defineProperty(o,"SpanKind",{enumerable:!0,get:function(){return f.SpanKind}});var p=n(847);Object.defineProperty(o,"SpanStatusCode",{enumerable:!0,get:function(){return p.SpanStatusCode}});var g=n(475);Object.defineProperty(o,"TraceFlags",{enumerable:!0,get:function(){return g.TraceFlags}});var h=n(98);Object.defineProperty(o,"createTraceState",{enumerable:!0,get:function(){return h.createTraceState}});var _=n(139);Object.defineProperty(o,"isSpanContextValid",{enumerable:!0,get:function(){return _.isSpanContextValid}}),Object.defineProperty(o,"isValidTraceId",{enumerable:!0,get:function(){return _.isValidTraceId}}),Object.defineProperty(o,"isValidSpanId",{enumerable:!0,get:function(){return _.isValidSpanId}});var v=n(476);Object.defineProperty(o,"INVALID_SPANID",{enumerable:!0,get:function(){return v.INVALID_SPANID}}),Object.defineProperty(o,"INVALID_TRACEID",{enumerable:!0,get:function(){return v.INVALID_TRACEID}}),Object.defineProperty(o,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return v.INVALID_SPAN_CONTEXT}});let y=n(67);Object.defineProperty(o,"context",{enumerable:!0,get:function(){return y.context}});let b=n(506);Object.defineProperty(o,"diag",{enumerable:!0,get:function(){return b.diag}});let m=n(886);Object.defineProperty(o,"metrics",{enumerable:!0,get:function(){return m.metrics}});let P=n(939);Object.defineProperty(o,"propagation",{enumerable:!0,get:function(){return P.propagation}});let S=n(845);Object.defineProperty(o,"trace",{enumerable:!0,get:function(){return S.trace}}),o.default={context:y.context,diag:b.diag,metrics:m.metrics,propagation:P.propagation,trace:S.trace}})(),e.exports=o})()},9226:(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,{NEXT_QUERY_PARAM_PREFIX:function(){return r},PRERENDER_REVALIDATE_HEADER:function(){return n},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return o},RSC_PREFETCH_SUFFIX:function(){return a},RSC_SUFFIX:function(){return l},NEXT_DATA_SUFFIX:function(){return i},NEXT_META_SUFFIX:function(){return u},NEXT_BODY_SUFFIX:function(){return s},NEXT_CACHE_TAGS_HEADER:function(){return c},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return f},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return p},NEXT_CACHE_TAG_MAX_LENGTH:function(){return g},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return h},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return _},CACHE_ONE_YEAR:function(){return v},MIDDLEWARE_FILENAME:function(){return y},MIDDLEWARE_LOCATION_REGEXP:function(){return b},INSTRUMENTATION_HOOK_FILENAME:function(){return m},PAGES_DIR_ALIAS:function(){return P},DOT_NEXT_ALIAS:function(){return S},ROOT_DIR_ALIAS:function(){return R},APP_DIR_ALIAS:function(){return O},RSC_MOD_REF_PROXY_ALIAS:function(){return E},RSC_ACTION_VALIDATE_ALIAS:function(){return x},RSC_ACTION_PROXY_ALIAS:function(){return T},RSC_ACTION_ENCRYPTION_ALIAS:function(){return j},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return M},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return C},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return N},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return A},SERVER_PROPS_SSG_CONFLICT:function(){return w},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return I},SERVER_PROPS_EXPORT_ERROR:function(){return D},GSP_NO_RETURNED_VALUE:function(){return L},GSSP_NO_RETURNED_VALUE:function(){return U},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return F},GSSP_COMPONENT_MEMBER_ERROR:function(){return G},NON_STANDARD_NODE_ENV:function(){return H},SSG_FALLBACK_EXPORT_ERROR:function(){return B},ESLINT_DEFAULT_DIRS:function(){return V},ESLINT_PROMPT_VALUES:function(){return k},SERVER_RUNTIME:function(){return W},WEBPACK_LAYERS:function(){return K},WEBPACK_RESOURCE_QUERIES:function(){return $}});let r="nxtP",n="x-prerender-revalidate",o="x-prerender-revalidate-if-generated",a=".prefetch.rsc",l=".rsc",i=".json",u=".meta",s=".body",c="x-next-cache-tags",d="x-next-cache-soft-tags",f="x-next-revalidated-tags",p="x-next-revalidate-tag-token",g=256,h=1024,_="_N_T_",v=31536e3,y="middleware",b=`(?:src/)?${y}`,m="instrumentation",P="private-next-pages",S="private-dot-next",R="private-next-root-dir",O="private-next-app-dir",E="next/dist/build/webpack/loaders/next-flight-loader/module-proxy",x="private-next-rsc-action-validate",T="private-next-rsc-action-proxy",j="private-next-rsc-action-encryption",M="private-next-rsc-action-client-wrapper",C="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",N="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",A="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",w="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",I="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",D="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",L="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",U="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",F="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",H='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',B="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",V=["app","pages","components","lib","src"],k=[{title:"Strict",recommended:!0,config:{extends:"next/core-web-vitals"}},{title:"Base",config:{extends:"next"}},{title:"Cancel",config:null}],W={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},X={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={...X,GROUP:{server:[X.reactServerComponents,X.actionBrowser,X.appMetadataRoute,X.appRouteHandler],nonClientServerTarget:[X.middleware,X.api],app:[X.reactServerComponents,X.actionBrowser,X.appMetadataRoute,X.appRouteHandler,X.serverSideRendering,X.appPagesBrowser,X.shared]}},$={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},2761:(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,{reset:function(){return u},bold:function(){return s},dim:function(){return c},italic:function(){return d},underline:function(){return f},inverse:function(){return p},hidden:function(){return g},strikethrough:function(){return h},black:function(){return _},red:function(){return v},green:function(){return y},yellow:function(){return b},blue:function(){return m},magenta:function(){return P},purple:function(){return S},cyan:function(){return R},white:function(){return O},gray:function(){return E},bgBlack:function(){return x},bgRed:function(){return T},bgGreen:function(){return j},bgYellow:function(){return M},bgBlue:function(){return C},bgMagenta:function(){return N},bgCyan:function(){return A},bgWhite:function(){return w}});let{env:n,stdout:o}=(null==(r=globalThis)?void 0:r.process)??{},a=n&&!n.NO_COLOR&&(n.FORCE_COLOR||(null==o?void 0:o.isTTY)&&!n.CI&&"dumb"!==n.TERM),l=(e,t,r,n)=>{let o=e.substring(0,n)+r,a=e.substring(n+t.length),i=a.indexOf(t);return~i?o+l(a,t,r,i):o+a},i=(e,t,r=e)=>a?n=>{let o=""+n,a=o.indexOf(t,e.length);return~a?e+l(o,t,r,a)+t:e+o+t}:String,u=a?e=>`\x1b[0m${e}\x1b[0m`:String,s=i("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),c=i("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),d=i("\x1b[3m","\x1b[23m"),f=i("\x1b[4m","\x1b[24m"),p=i("\x1b[7m","\x1b[27m"),g=i("\x1b[8m","\x1b[28m"),h=i("\x1b[9m","\x1b[29m"),_=i("\x1b[30m","\x1b[39m"),v=i("\x1b[31m","\x1b[39m"),y=i("\x1b[32m","\x1b[39m"),b=i("\x1b[33m","\x1b[39m"),m=i("\x1b[34m","\x1b[39m"),P=i("\x1b[35m","\x1b[39m"),S=i("\x1b[38;2;173;127;168m","\x1b[39m"),R=i("\x1b[36m","\x1b[39m"),O=i("\x1b[37m","\x1b[39m"),E=i("\x1b[90m","\x1b[39m"),x=i("\x1b[40m","\x1b[49m"),T=i("\x1b[41m","\x1b[49m"),j=i("\x1b[42m","\x1b[49m"),M=i("\x1b[43m","\x1b[49m"),C=i("\x1b[44m","\x1b[49m"),N=i("\x1b[45m","\x1b[49m"),A=i("\x1b[46m","\x1b[49m"),w=i("\x1b[47m","\x1b[49m")},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 a.default},RenderFromTemplateContext:function(){return l.default},staticGenerationAsyncStorage:function(){return i.staticGenerationAsyncStorage},requestAsyncStorage:function(){return u.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 v.taintObjectReference},StaticGenerationSearchParamsBailoutProvider:function(){return d.default},NotFoundBoundary:function(){return g.NotFoundBoundary},patchFetch:function(){return m}});let n=r(8187),o=y(r(8019)),a=y(r(9363)),l=y(r(277)),i=r(5869),u=r(4580),s=r(2934),c=r(2936),d=y(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=b(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(9625)),g=r(4860),h=r(9308);r(6580);let _=r(2588),v=r(3487);function y(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function m(){return(0,h.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:i.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 a},preconnect:function(){return l}});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 a(e,t,r){let o={as:"font",type:t};"string"==typeof r&&(o.crossOrigin=r),n.default.preload(e,o)}function l(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 a}}),r(1367);let o=n,a=n},1498:(e,t)=>{"use strict";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={}))},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},9308:(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,{validateRevalidate:function(){return u},validateTags:function(){return s},addImplicitTags:function(){return d},patchFetch:function(){return p}});let n=r(7087),o=r(8554),a=r(9226),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(3181));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function u(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 s(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>a.NEXT_CACHE_TAG_MAX_LENGTH?n.push({tag:t,reason:`exceeded max length of ${a.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,i=globalThis._nextOriginalFetch;globalThis.fetch=async(e,c)=>{var p,g;let h;try{(h=new URL(e instanceof Request?e.url:e)).username="",h.password=""}catch{h=void 0}let _=(null==h?void 0:h.href)??"",v=Date.now(),y=(null==c?void 0:null==(p=c.method)?void 0:p.toUpperCase())||"GET",b=(null==(g=null==c?void 0:c.next)?void 0:g.internal)===!0,m="1"===process.env.NEXT_OTEL_FETCH_DISABLED;return await (0,o.getTracer)().trace(b?n.NextNodeServerSpan.internalFetch:n.AppRenderSpan.fetch,{hideSpan:m,kind:o.SpanKind.CLIENT,spanName:["fetch",y,_].filter(Boolean).join(" "),attributes:{"http.url":_,"http.method":y,"net.peer.name":null==h?void 0:h.hostname,"net.peer.port":(null==h?void 0:h.port)||void 0}},async()=>{var n;let o,p,g;let h=t.getStore()||(null==fetch.__nextGetStaticStore?void 0:fetch.__nextGetStaticStore.call(fetch)),y=e&&"object"==typeof e&&"string"==typeof e.method,m=t=>(null==c?void 0:c[t])||(y?e[t]:null);if(!h||b||h.isDraftMode)return i(e,c);let P=t=>{var r,n,o;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]:y?null==(o=e.next)?void 0:o[t]:void 0},S=P("revalidate"),R=s(P("tags")||[],`fetch ${e.toString()}`);if(Array.isArray(R))for(let e of(h.tags||(h.tags=[]),R))h.tags.includes(e)||h.tags.push(e);let O=d(h),E="only-cache"===h.fetchCache,x="force-cache"===h.fetchCache,T="default-cache"===h.fetchCache,j="default-no-store"===h.fetchCache,M="only-no-store"===h.fetchCache,C="force-no-store"===h.fetchCache,N=!!h.isUnstableNoStore,A=m("cache"),w="";"string"==typeof A&&void 0!==S&&(y&&"default"===A||l.warn(`fetch for ${_} on ${h.urlPathname} specified "cache: ${A}" and "revalidate: ${S}", only one should be specified.`),A=void 0),"force-cache"===A?S=!1:("no-cache"===A||"no-store"===A||C||M)&&(S=0),("no-cache"===A||"no-store"===A)&&(w=`cache: ${A}`),g=u(S,h.urlPathname);let I=m("headers"),D="function"==typeof(null==I?void 0:I.get)?I:new Headers(I||{}),L=D.get("authorization")||D.get("cookie"),U=!["get","head"].includes((null==(n=m("method"))?void 0:n.toLowerCase())||"get"),F=(L||U)&&0===h.revalidate;if(C&&(w="fetchCache = force-no-store"),M){if("force-cache"===A||void 0!==g&&(!1===g||g>0))throw Error(`cache: 'force-cache' used on fetch for ${_} with 'export const fetchCache = 'only-no-store'`);w="fetchCache = only-no-store"}if(E&&"no-store"===A)throw Error(`cache: 'no-store' used on fetch for ${_} with 'export const fetchCache = 'only-cache'`);x&&(void 0===S||0===S)&&(w="fetchCache = force-cache",g=!1),void 0===g?T?(g=!1,w="fetchCache = default-cache"):F?(g=0,w="auto no cache"):j?(g=0,w="fetchCache = default-no-store"):N?(g=0,w="noStore call"):(w="auto cache",g="boolean"!=typeof h.revalidate&&void 0!==h.revalidate&&h.revalidate):w||(w=`revalidate: ${g}`),h.forceStatic&&0===g||F||void 0!==h.revalidate&&("number"!=typeof g||!1!==h.revalidate&&("number"!=typeof h.revalidate||!(g0||!1===g;if(h.incrementalCache&&G)try{o=await h.incrementalCache.fetchCacheKey(_,y?e:c)}catch(t){console.error("Failed to generate cache key for",e)}let H=h.nextFetchId??1;h.nextFetchId=H+1;let B="number"!=typeof g?a.CACHE_ONE_YEAR:g,V=async(t,r)=>{let n=["cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","window","duplex",...t?[]:["signal"]];if(y){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 a={...c,next:{...null==c?void 0:c.next,fetchType:"origin",fetchIdx:H}};return i(e,a).then(async n=>{if(t||f(h,{start:v,url:_,cacheReason:r||w,cacheStatus:0===g||r?"skip":"miss",status:n.status,method:a.method||"GET"}),200===n.status&&h.incrementalCache&&o&&G){let t=Buffer.from(await n.arrayBuffer());try{await h.incrementalCache.set(o,{kind:"FETCH",data:{headers:Object.fromEntries(n.headers.entries()),body:t.toString("base64"),status:n.status,url:n.url},revalidate:B},{fetchCache:!0,revalidate:g,fetchUrl:_,fetchIdx:H,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})},k=()=>Promise.resolve();if(o&&h.incrementalCache){k=await h.incrementalCache.lock(o);let e=h.isOnDemandRevalidate?null:await h.incrementalCache.get(o,{kindHint:"fetch",revalidate:g,fetchUrl:_,fetchIdx:H,tags:R,softTags:O});if(e?await k():p="cache-control: no-cache (hard refresh)",(null==e?void 0:e.value)&&"FETCH"===e.value.kind&&!(h.isRevalidate&&e.isStale)){e.isStale&&(h.pendingRevalidates??={},h.pendingRevalidates[o]||(h.pendingRevalidates[o]=V(!0).catch(console.error)));let t=e.value.data;f(h,{start:v,url:_,cacheReason:w,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(h.isStaticGeneration&&c&&"object"==typeof c){let{cache:t}=c;if(!h.forceStatic&&"no-store"===t){let t=`no-store fetch ${e}${h.urlPathname?` ${h.urlPathname}`:""}`;null==h.postpone||h.postpone.call(h,t),h.revalidate=0;let n=new r(t);h.dynamicUsageErr=n,h.dynamicUsageDescription=t}let n="next"in c,{next:o={}}=c;if("number"==typeof o.revalidate&&(void 0===h.revalidate||"number"==typeof h.revalidate&&o.revalidatet,globalThis.fetch.__nextPatched=!0}},7087:(e,t)=>{"use strict";var r,n,o,a,l,i,u,s,c,d,f;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 o},NextNodeServerSpan:function(){return a},StartServerSpan:function(){return l},RenderSpan:function(){return i},RouterSpan:function(){return s},AppRenderSpan:function(){return u},NodeSpan:function(){return c},AppRouteRouteHandlersSpan:function(){return d},ResolveMetadataSpan:function(){return f}}),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"}(o||(o={})),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"}(a||(a={})),(l||(l={})).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"}(i||(i={})),function(e){e.renderToString="AppRender.renderToString",e.renderToReadableStream="AppRender.renderToReadableStream",e.getBodyResult="AppRender.getBodyResult",e.fetch="AppRender.fetch"}(u||(u={})),(s||(s={})).executeRoute="Router.executeRoute",(c||(c={})).runHandler="Node.runHandler",(d||(d={})).runHandler="AppRouteRouteHandlers.runHandler",function(e){e.generateMetadata="ResolveMetadata.generateMetadata",e.generateViewport="ResolveMetadata.generateViewport"}(f||(f={}));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)=>{"use strict";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 y},SpanStatusCode:function(){return u},SpanKind:function(){return s}});let o=r(7087);try{n=r(1405)}catch(e){n=r(1405)}let{context:a,propagation:l,trace:i,SpanStatusCode:u,SpanKind:s,ROOT_CONTEXT:c}=n,d=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then,f=(e,t)=>{(null==t?void 0:t.bubble)===!0?e.setAttribute("next.bubble",!0):(t&&e.recordException(t),e.setStatus({code:u.ERROR,message:null==t?void 0:t.message})),e.end()},p=new Map,g=n.createContextKey("next.rootSpanId"),h=0,_=()=>h++;class v{getTracerInstance(){return i.getTracer("next.js","0.0.1")}getContext(){return a}getActiveScopeSpan(){return i.getSpan(null==a?void 0:a.active())}withPropagatedContext(e,t,r){let n=a.active();if(i.getSpanContext(n))return t();let o=l.extract(n,e,r);return a.with(o,t)}trace(...e){var t;let[r,n,l]=e,{fn:u,options:s}="function"==typeof n?{fn:n,options:{}}:{fn:l,options:{...n}};if(!o.NextVanillaSpanAllowlist.includes(r)&&"1"!==process.env.NEXT_OTEL_VERBOSE||s.hideSpan)return u();let h=s.spanName??r,v=this.getSpanContext((null==s?void 0:s.parentSpan)??this.getActiveScopeSpan()),y=!1;v?(null==(t=i.getSpanContext(v))?void 0:t.isRemote)&&(y=!0):(v=c,y=!0);let b=_();return s.attributes={"next.span_name":h,"next.span_type":r,...s.attributes},a.with(v.setValue(g,b),()=>this.getTracerInstance().startActiveSpan(h,s,e=>{let t=()=>{p.delete(b)};y&&p.set(b,new Map(Object.entries(s.attributes??{})));try{if(u.length>1)return u(e,t=>f(e,t));let r=u(e);if(d(r))return r.then(t=>(e.end(),t)).catch(t=>{throw f(e,t),t}).finally(t);return e.end(),t(),r}catch(r){throw f(e,r),t(),r}}))}wrap(...e){let t=this,[r,n,l]=3===e.length?e:[e[0],{},e[1]];return o.NextVanillaSpanAllowlist.includes(r)||"1"===process.env.NEXT_OTEL_VERBOSE?function(){let e=n;"function"==typeof e&&"function"==typeof l&&(e=e.apply(this,arguments));let o=arguments.length-1,i=arguments[o];if("function"!=typeof i)return t.trace(r,e,()=>l.apply(this,arguments));{let n=t.getContext().bind(a.active(),i);return t.trace(r,e,(e,t)=>(arguments[o]=function(e){return null==t||t(e),n.apply(this,arguments)},l.apply(this,arguments)))}}:l}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?i.setSpan(a.active(),e):void 0}getRootSpanAttributes(){let e=a.active().getValue(g);return p.get(e)}}let y=(()=>{let e=new v;return()=>e})()},1603:()=>{},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={},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,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})}};var t=require("../webpack-runtime.js");t.C(e);var r=t(t.s=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 index f6282d10..f1414531 100644 --- a/apps/web/.next/server/app/_not-found.js.nft.json +++ b/apps/web/.next/server/app/_not-found.js.nft.json @@ -1 +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 +{"version":1,"files":["../../package.json","../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.rsc b/apps/web/.next/server/app/_not-found.rsc index 4d3be41a..e3a1ecbe 100644 --- a/apps/web/.next/server/app/_not-found.rsc +++ b/apps/web/.next/server/app/_not-found.rsc @@ -4,6 +4,6 @@ 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"]]]] +0:["yGeZZitS1W4Rar-yoH8R4",[[["",{"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 index 5b986991..4140e457 100644 --- a/apps/web/.next/server/app/_not-found_client-reference-manifest.js +++ b/apps/web/.next/server/app/_not-found_client-reference-manifest.js @@ -1 +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 +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":{"2172":{"*":{"id":"7364","name":"*","chunks":[],"async":false}},"2533":{"*":{"id":"8535","name":"*","chunks":[],"async":false}},"3362":{"*":{"id":"3054","name":"*","chunks":[],"async":false}},"3398":{"*":{"id":"188","name":"*","chunks":[],"async":false}},"4841":{"*":{"id":"991","name":"*","chunks":[],"async":false}},"5119":{"*":{"id":"990","name":"*","chunks":[],"async":false}},"6379":{"*":{"id":"4198","name":"*","chunks":[],"async":false}},"7167":{"*":{"id":"1271","name":"*","chunks":[],"async":false}},"8251":{"*":{"id":"7125","name":"*","chunks":[],"async":false}},"8950":{"*":{"id":"7560","name":"*","chunks":[],"async":false}},"9256":{"*":{"id":"8486","name":"*","chunks":[],"async":false}}},"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/dist/shared/lib/app-router-context.shared-runtime.js":{"id":8251,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js":{"id":8251,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js":{"id":6379,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/hooks-client-context.shared-runtime.js":{"id":6379,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js":{"id":3362,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/loadable-context.shared-runtime.js":{"id":3362,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js":{"id":7167,"name":"*","chunks":[],"async":false},"/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/server-inserted-html.shared-runtime.js":{"id":7167,"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-dff3f08819de4584.js"],"async":false},"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/styles/globals.css":{"id":3744,"name":"*","chunks":["185","static/chunks/app/layout-dff3f08819de4584.js"],"async":false},"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/MessagePoster.tsx":{"id":4841,"name":"*","chunks":["931","static/chunks/app/page-eb5778122b1e1134.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 deleted file mode 100644 index 94f45e43..00000000 --- a/apps/web/.next/server/app/account/page.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{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 deleted file mode 100644 index f4e8c4e6..00000000 --- a/apps/web/.next/server/app/account/page.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"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 deleted file mode 100644 index a4174cae..00000000 --- a/apps/web/.next/server/app/account/page_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -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 index b1472e8b..fd45c788 100644 --- a/apps/web/.next/server/app/api/auth/[...nextauth]/route.js +++ b/apps/web/.next/server/app/api/auth/[...nextauth]/route.js @@ -1,51 +1,404 @@ -(()=>{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)} ( +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[912],{2067:e=>{"use strict";e.exports=require("node:async_hooks")},6195:e=>{"use strict";e.exports=require("node:buffer")},6817:(e,t,r)=>{"use strict";let i,n,s,a;r.r(t),r.d(t,{ComponentMod:()=>un,default:()=>us});var o={};r.r(o),r.d(o,{GET:()=>l6,POST:()=>l2,runtime:()=>l5});var l={};r.r(l),r.d(l,{headerHooks:()=>ue,originalPathname:()=>ur,patchFetch:()=>ui,requestAsyncStorage:()=>l8,routeModule:()=>l3,serverHooks:()=>l7,staticGenerationAsyncStorage:()=>l9,staticGenerationBailout:()=>ut});var u=r(4915),c=r(4392),d=r(4399),h=r(5373);!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),i={};for(let e of r)i[e]=t[e];return e.objectValues(i)},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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},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}(sG||(sG={})),(sX||(sX={})).mergeShapes=(e,t)=>({...e,...t});let p=sG.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),f=e=>{switch(typeof e){case"undefined":return p.undefined;case"string":return p.string;case"number":return isNaN(e)?p.nan:p.number;case"boolean":return p.boolean;case"function":return p.function;case"bigint":return p.bigint;case"symbol":return p.symbol;case"object":if(Array.isArray(e))return p.array;if(null===e)return p.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return p.promise;if("undefined"!=typeof Map&&e instanceof Map)return p.map;if("undefined"!=typeof Set&&e instanceof Set)return p.set;if("undefined"!=typeof Date&&e instanceof Date)return p.date;return p.object;default:return p.unknown}},m=sG.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 g 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},r={_errors:[]},i=e=>{for(let n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(i);else if("invalid_return_type"===n.code)i(n.returnTypeError);else if("invalid_arguments"===n.code)i(n.argumentsError);else if(0===n.path.length)r._errors.push(t(n));else{let e=r,i=0;for(;ie.message){let t={},r=[];for(let i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):r.push(e(i));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}g.create=e=>new g(e);let y=(e,t)=>{let r;switch(e.code){case m.invalid_type:r=e.received===p.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case m.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,sG.jsonStringifyReplacer)}`;break;case m.unrecognized_keys:r=`Unrecognized key(s) in object: ${sG.joinValues(e.keys,", ")}`;break;case m.invalid_union:r="Invalid input";break;case m.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${sG.joinValues(e.options)}`;break;case m.invalid_enum_value:r=`Invalid enum value. Expected ${sG.joinValues(e.options)}, received '${e.received}'`;break;case m.invalid_arguments:r="Invalid function arguments";break;case m.invalid_return_type:r="Invalid function return type";break;case m.invalid_date:r="Invalid date";break;case m.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:sG.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case m.too_small:r="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 m.too_big:r="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 m.custom:r="Invalid input";break;case m.invalid_intersection_types:r="Intersection results could not be merged";break;case m.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case m.not_finite:r="Number must be finite";break;default:r=t.defaultError,sG.assertNever(e)}return{message:r}},v=y;function b(){return v}let w=e=>{let{data:t,path:r,errorMaps:i,issueData:n}=e,s=[...r,...n.path||[]],a={...n,path:s},o="";for(let e of i.filter(e=>!!e).slice().reverse())o=e(a,{data:t,defaultError:o}).message;return{...n,path:s,message:n.message||o}};function _(e,t){let r=w({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,b(),y].filter(e=>!!e)});e.common.issues.push(r)}class S{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let i of t){if("aborted"===i.status)return x;"dirty"===i.status&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t)r.push({key:await e.key,value:await e.value});return S.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let i of t){let{key:t,value:n}=i;if("aborted"===t.status||"aborted"===n.status)return x;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==n.value||i.alwaysSet)&&(r[t.value]=n.value)}return{status:e.value,value:r}}}let x=Object.freeze({status:"aborted"}),k=e=>({status:"dirty",value:e}),E=e=>({status:"valid",value:e}),A=e=>"aborted"===e.status,T=e=>"dirty"===e.status,C=e=>"valid"===e.status,O=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}(sY||(sY={}));class P{constructor(e,t,r,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=i}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 $=(e,t)=>{if(C(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 g(e.common.issues);return this._error=t,this._error}}};function N(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:n}=e;if(t&&(r||i))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:n}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=i?i:t.defaultError}:{message:null!=r?r:t.defaultError},description:n}}class R{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 f(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new S,ctx:{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(O(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let i={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},n=this._parseSync({data:e,path:i.path,parent:i});return $(i,n)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={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:f(e)},i=this._parse({data:e,path:r.path,parent:r});return $(r,await (O(i)?i:Promise.resolve(i)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,i)=>{let n=e(t),s=()=>i.addIssue({code:m.custom,...r(t)});return"undefined"!=typeof Promise&&n instanceof Promise?n.then(e=>!!e||(s(),!1)):!!n||(s(),!1)})}refinement(e,t){return this._refinement((r,i)=>!!e(r)||(i.addIssue("function"==typeof t?t(r,i):t),!1))}_refinement(e){return new ey({schema:this,typeName:s0.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ev.create(this,this._def)}nullable(){return eb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ee.create(this,this._def)}promise(){return eg.create(this,this._def)}or(e){return er.create([this,e],this._def)}and(e){return es.create(this,e,this._def)}transform(e){return new ey({...N(this._def),schema:this,typeName:s0.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ew({...N(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:s0.ZodDefault})}brand(){return new ek({typeName:s0.ZodBranded,type:this,...N(this._def)})}catch(e){return new e_({...N(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:s0.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eE.create(this,e)}readonly(){return eA.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let I=/^c[^\s-]{8,}$/i,j=/^[a-z][a-z0-9]*$/,L=/^[0-9A-HJKMNP-TV-Z]{26}$/,D=/^[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,M=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,U=/^(((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}))$/,q=/^(([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})))$/,Q=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 B extends R{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==p.string){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.string,received:t.parsedType}),x}let r=new S;for(let a of this._def.checks)if("min"===a.kind)e.data.lengtha.value&&(_(t=this._getOrReturnCtx(e,t),{code:m.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if("length"===a.kind){let i=e.data.length>a.value,n=e.data.lengthe.test(t),{validation:t,code:m.invalid_string,...sY.errToObj(r)})}_addCheck(e){return new B({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...sY.errToObj(e)})}url(e){return this._addCheck({kind:"url",...sY.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...sY.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...sY.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...sY.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...sY.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...sY.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...sY.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,...sY.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...sY.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...sY.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...sY.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...sY.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...sY.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...sY.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...sY.errToObj(t)})}nonempty(e){return this.min(1,sY.errToObj(e))}trim(){return new B({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new B({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new B({...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 B({checks:[],typeName:s0.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...N(e)})};class H extends R{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)!==p.number){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.number,received:t.parsedType}),x}let r=new S;for(let i of this._def.checks)"int"===i.kind?sG.isInteger(e.data)||(_(t=this._getOrReturnCtx(e,t),{code:m.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):"min"===i.kind?(i.inclusive?e.datai.value:e.data>=i.value)&&(_(t=this._getOrReturnCtx(e,t),{code:m.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):"multipleOf"===i.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i;return parseInt(e.toFixed(n).replace(".",""))%parseInt(t.toFixed(n).replace(".",""))/Math.pow(10,n)}(e.data,i.value)&&(_(t=this._getOrReturnCtx(e,t),{code:m.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(_(t=this._getOrReturnCtx(e,t),{code:m.not_finite,message:i.message}),r.dirty()):sG.assertNever(i);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,sY.toString(t))}gt(e,t){return this.setLimit("min",e,!1,sY.toString(t))}lte(e,t){return this.setLimit("max",e,!0,sY.toString(t))}lt(e,t){return this.setLimit("max",e,!1,sY.toString(t))}setLimit(e,t,r,i){return new H({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:sY.toString(i)}]})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:sY.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:sY.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:sY.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:sY.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:sY.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:sY.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:sY.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:sY.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:sY.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&&sG.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.valuenew H({checks:[],typeName:s0.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...N(e)});class K extends R{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)!==p.bigint){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.bigint,received:t.parsedType}),x}let r=new S;for(let i of this._def.checks)"min"===i.kind?(i.inclusive?e.datai.value:e.data>=i.value)&&(_(t=this._getOrReturnCtx(e,t),{code:m.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(_(t=this._getOrReturnCtx(e,t),{code:m.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):sG.assertNever(i);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,sY.toString(t))}gt(e,t){return this.setLimit("min",e,!1,sY.toString(t))}lte(e,t){return this.setLimit("max",e,!0,sY.toString(t))}lt(e,t){return this.setLimit("max",e,!1,sY.toString(t))}setLimit(e,t,r,i){return new K({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:sY.toString(i)}]})}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:sY.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:sY.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:sY.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:sY.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:sY.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 K({checks:[],typeName:s0.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...N(e)})};class F extends R{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==p.boolean){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.boolean,received:t.parsedType}),x}return E(e.data)}}F.create=e=>new F({typeName:s0.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...N(e)});class V extends R{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==p.date){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.date,received:t.parsedType}),x}if(isNaN(e.data.getTime()))return _(this._getOrReturnCtx(e),{code:m.invalid_date}),x;let r=new S;for(let i of this._def.checks)"min"===i.kind?e.data.getTime()i.value&&(_(t=this._getOrReturnCtx(e,t),{code:m.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):sG.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:sY.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:sY.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 V({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:s0.ZodDate,...N(e)});class W extends R{_parse(e){if(this._getType(e)!==p.symbol){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.symbol,received:t.parsedType}),x}return E(e.data)}}W.create=e=>new W({typeName:s0.ZodSymbol,...N(e)});class z extends R{_parse(e){if(this._getType(e)!==p.undefined){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.undefined,received:t.parsedType}),x}return E(e.data)}}z.create=e=>new z({typeName:s0.ZodUndefined,...N(e)});class J extends R{_parse(e){if(this._getType(e)!==p.null){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.null,received:t.parsedType}),x}return E(e.data)}}J.create=e=>new J({typeName:s0.ZodNull,...N(e)});class Z extends R{constructor(){super(...arguments),this._any=!0}_parse(e){return E(e.data)}}Z.create=e=>new Z({typeName:s0.ZodAny,...N(e)});class G extends R{constructor(){super(...arguments),this._unknown=!0}_parse(e){return E(e.data)}}G.create=e=>new G({typeName:s0.ZodUnknown,...N(e)});class X extends R{_parse(e){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.never,received:t.parsedType}),x}}X.create=e=>new X({typeName:s0.ZodNever,...N(e)});class Y extends R{_parse(e){if(this._getType(e)!==p.undefined){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.void,received:t.parsedType}),x}return E(e.data)}}Y.create=e=>new Y({typeName:s0.ZodVoid,...N(e)});class ee extends R{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),i=this._def;if(t.parsedType!==p.array)return _(t,{code:m.invalid_type,expected:p.array,received:t.parsedType}),x;if(null!==i.exactLength){let e=t.data.length>i.exactLength.value,n=t.data.lengthi.maxLength.value&&(_(t,{code:m.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>i.type._parseAsync(new P(t,e,t.path,r)))).then(e=>S.mergeArray(r,e));let n=[...t.data].map((e,r)=>i.type._parseSync(new P(t,e,t.path,r)));return S.mergeArray(r,n)}get element(){return this._def.type}min(e,t){return new ee({...this._def,minLength:{value:e,message:sY.toString(t)}})}max(e,t){return new ee({...this._def,maxLength:{value:e,message:sY.toString(t)}})}length(e,t){return new ee({...this._def,exactLength:{value:e,message:sY.toString(t)}})}nonempty(e){return this.min(1,e)}}ee.create=(e,t)=>new ee({type:e,minLength:null,maxLength:null,exactLength:null,typeName:s0.ZodArray,...N(t)});class et extends R{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=sG.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==p.object){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.object,received:t.parsedType}),x}let{status:t,ctx:r}=this._processInputParams(e),{shape:i,keys:n}=this._getCached(),s=[];if(!(this._def.catchall instanceof X&&"strip"===this._def.unknownKeys))for(let e in r.data)n.includes(e)||s.push(e);let a=[];for(let e of n){let t=i[e],n=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new P(r,n,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof X){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)s.length>0&&(_(r,{code:m.unrecognized_keys,keys:s}),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 s){let i=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new P(r,i,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>S.mergeObjectSync(t,e)):S.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return sY.errToObj,new et({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var i,n,s,a;let o=null!==(s=null===(n=(i=this._def).errorMap)||void 0===n?void 0:n.call(i,t,r).message)&&void 0!==s?s:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=sY.errToObj(e).message)&&void 0!==a?a:o}:{message:o}}}:{}})}strip(){return new et({...this._def,unknownKeys:"strip"})}passthrough(){return new et({...this._def,unknownKeys:"passthrough"})}extend(e){return new et({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new et({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:s0.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new et({...this._def,catchall:e})}pick(e){let t={};return sG.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new et({...this._def,shape:()=>t})}omit(e){let t={};return sG.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new et({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof et){let r={};for(let i in t.shape){let n=t.shape[i];r[i]=ev.create(e(n))}return new et({...t._def,shape:()=>r})}return t instanceof ee?new ee({...t._def,type:e(t.element)}):t instanceof ev?ev.create(e(t.unwrap())):t instanceof eb?eb.create(e(t.unwrap())):t instanceof ea?ea.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return sG.objectKeys(this.shape).forEach(r=>{let i=this.shape[r];e&&!e[r]?t[r]=i:t[r]=i.optional()}),new et({...this._def,shape:()=>t})}required(e){let t={};return sG.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ev;)e=e._def.innerType;t[r]=e}}),new et({...this._def,shape:()=>t})}keyof(){return ep(sG.objectKeys(this.shape))}}et.create=(e,t)=>new et({shape:()=>e,unknownKeys:"strip",catchall:X.create(),typeName:s0.ZodObject,...N(t)}),et.strictCreate=(e,t)=>new et({shape:()=>e,unknownKeys:"strict",catchall:X.create(),typeName:s0.ZodObject,...N(t)}),et.lazycreate=(e,t)=>new et({shape:e,unknownKeys:"strip",catchall:X.create(),typeName:s0.ZodObject,...N(t)});class er extends R{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new g(e.ctx.common.issues));return _(t,{code:m.invalid_union,unionErrors:r}),x});{let e;let i=[];for(let n of r){let r={...t,common:{...t.common,issues:[]},parent:null},s=n._parseSync({data:t.data,path:t.path,parent:r});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,ctx:r}),r.common.issues.length&&i.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let n=i.map(e=>new g(e));return _(t,{code:m.invalid_union,unionErrors:n}),x}}get options(){return this._def.options}}er.create=(e,t)=>new er({options:e,typeName:s0.ZodUnion,...N(t)});let ei=e=>{if(e instanceof ed)return ei(e.schema);if(e instanceof ey)return ei(e.innerType());if(e instanceof eh)return[e.value];if(e instanceof ef)return e.options;if(e instanceof em)return Object.keys(e.enum);if(e instanceof ew)return ei(e._def.innerType);if(e instanceof z)return[void 0];else if(e instanceof J)return[null];else return null};class en extends R{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.object)return _(t,{code:m.invalid_type,expected:p.object,received:t.parsedType}),x;let r=this.discriminator,i=t.data[r],n=this.optionsMap.get(i);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}):(_(t,{code:m.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),x)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let i=new Map;for(let r of t){let t=ei(r.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of t){if(i.has(n))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);i.set(n,r)}}return new en({typeName:s0.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...N(r)})}}class es extends R{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=(e,i)=>{if(A(e)||A(i))return x;let n=function e(t,r){let i=f(t),n=f(r);if(t===r)return{valid:!0,data:t};if(i===p.object&&n===p.object){let i=sG.objectKeys(r),n=sG.objectKeys(t).filter(e=>-1!==i.indexOf(e)),s={...t,...r};for(let i of n){let n=e(t[i],r[i]);if(!n.valid)return{valid:!1};s[i]=n.data}return{valid:!0,data:s}}if(i===p.array&&n===p.array){if(t.length!==r.length)return{valid:!1};let i=[];for(let n=0;ni(e,t)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}es.create=(e,t,r)=>new es({left:e,right:t,typeName:s0.ZodIntersection,...N(r)});class ea extends R{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.array)return _(r,{code:m.invalid_type,expected:p.array,received:r.parsedType}),x;if(r.data.lengththis._def.items.length&&(_(r,{code:m.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...r.data].map((e,t)=>{let i=this._def.items[t]||this._def.rest;return i?i._parse(new P(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(i).then(e=>S.mergeArray(t,e)):S.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new ea({...this._def,rest:e})}}ea.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ea({items:e,typeName:s0.ZodTuple,rest:null,...N(t)})};class eo extends R{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.object)return _(r,{code:m.invalid_type,expected:p.object,received:r.parsedType}),x;let i=[],n=this._def.keyType,s=this._def.valueType;for(let e in r.data)i.push({key:n._parse(new P(r,e,r.path,e)),value:s._parse(new P(r,r.data[e],r.path,e))});return r.common.async?S.mergeObjectAsync(t,i):S.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,r){return new eo(t instanceof R?{keyType:e,valueType:t,typeName:s0.ZodRecord,...N(r)}:{keyType:B.create(),valueType:e,typeName:s0.ZodRecord,...N(t)})}}class el extends R{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.map)return _(r,{code:m.invalid_type,expected:p.map,received:r.parsedType}),x;let i=this._def.keyType,n=this._def.valueType,s=[...r.data.entries()].map(([e,t],s)=>({key:i._parse(new P(r,e,r.path,[s,"key"])),value:n._parse(new P(r,t,r.path,[s,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of s){let i=await r.key,n=await r.value;if("aborted"===i.status||"aborted"===n.status)return x;("dirty"===i.status||"dirty"===n.status)&&t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of s){let i=r.key,n=r.value;if("aborted"===i.status||"aborted"===n.status)return x;("dirty"===i.status||"dirty"===n.status)&&t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}}}}el.create=(e,t,r)=>new el({valueType:t,keyType:e,typeName:s0.ZodMap,...N(r)});class eu extends R{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.set)return _(r,{code:m.invalid_type,expected:p.set,received:r.parsedType}),x;let i=this._def;null!==i.minSize&&r.data.sizei.maxSize.value&&(_(r,{code:m.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let n=this._def.valueType;function s(e){let r=new Set;for(let i of e){if("aborted"===i.status)return x;"dirty"===i.status&&t.dirty(),r.add(i.value)}return{status:t.value,value:r}}let a=[...r.data.values()].map((e,t)=>n._parse(new P(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>s(e)):s(a)}min(e,t){return new eu({...this._def,minSize:{value:e,message:sY.toString(t)}})}max(e,t){return new eu({...this._def,maxSize:{value:e,message:sY.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eu.create=(e,t)=>new eu({valueType:e,minSize:null,maxSize:null,typeName:s0.ZodSet,...N(t)});class ec extends R{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.function)return _(t,{code:m.invalid_type,expected:p.function,received:t.parsedType}),x;function r(e,r){return w({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,b(),y].filter(e=>!!e),issueData:{code:m.invalid_arguments,argumentsError:r}})}function i(e,r){return w({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,b(),y].filter(e=>!!e),issueData:{code:m.invalid_return_type,returnTypeError:r}})}let n={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof eg){let e=this;return E(async function(...t){let a=new g([]),o=await e._def.args.parseAsync(t,n).catch(e=>{throw a.addIssue(r(t,e)),a}),l=await Reflect.apply(s,this,o);return await e._def.returns._def.type.parseAsync(l,n).catch(e=>{throw a.addIssue(i(l,e)),a})})}{let e=this;return E(function(...t){let a=e._def.args.safeParse(t,n);if(!a.success)throw new g([r(t,a.error)]);let o=Reflect.apply(s,this,a.data),l=e._def.returns.safeParse(o,n);if(!l.success)throw new g([i(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ec({...this._def,args:ea.create(e).rest(G.create())})}returns(e){return new ec({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ec({args:e||ea.create([]).rest(G.create()),returns:t||G.create(),typeName:s0.ZodFunction,...N(r)})}}class ed extends R{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})}}ed.create=(e,t)=>new ed({getter:e,typeName:s0.ZodLazy,...N(t)});class eh extends R{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return _(t,{received:t.data,code:m.invalid_literal,expected:this._def.value}),x}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ep(e,t){return new ef({values:e,typeName:s0.ZodEnum,...N(t)})}eh.create=(e,t)=>new eh({value:e,typeName:s0.ZodLiteral,...N(t)});class ef extends R{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return _(t,{expected:sG.joinValues(r),received:t.parsedType,code:m.invalid_type}),x}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return _(t,{received:t.data,code:m.invalid_enum_value,options:r}),x}return E(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 ef.create(e)}exclude(e){return ef.create(this.options.filter(t=>!e.includes(t)))}}ef.create=ep;class em extends R{_parse(e){let t=sG.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==p.string&&r.parsedType!==p.number){let e=sG.objectValues(t);return _(r,{expected:sG.joinValues(e),received:r.parsedType,code:m.invalid_type}),x}if(-1===t.indexOf(e.data)){let e=sG.objectValues(t);return _(r,{received:r.data,code:m.invalid_enum_value,options:e}),x}return E(e.data)}get enum(){return this._def.values}}em.create=(e,t)=>new em({values:e,typeName:s0.ZodNativeEnum,...N(t)});class eg extends R{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==p.promise&&!1===t.common.async?(_(t,{code:m.invalid_type,expected:p.promise,received:t.parsedType}),x):E((t.parsedType===p.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eg.create=(e,t)=>new eg({type:e,typeName:s0.ZodPromise,...N(t)});class ey extends R{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===s0.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=this._def.effect||null,n={addIssue:e=>{_(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(n.addIssue=n.addIssue.bind(n),"preprocess"===i.type){let e=i.transform(r.data,n);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:e,path:r.path,parent:r})}if("refinement"===i.type){let e=e=>{let t=i.refinement(e,n);if(r.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!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?x:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===i.status?x:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}}if("transform"===i.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>C(e)?Promise.resolve(i.transform(e.value,n)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!C(e))return e;let s=i.transform(e.value,n);if(s instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}}sG.assertNever(i)}}ey.create=(e,t,r)=>new ey({schema:e,typeName:s0.ZodEffects,effect:t,...N(r)}),ey.createWithPreprocess=(e,t,r)=>new ey({schema:t,effect:{type:"preprocess",transform:e},typeName:s0.ZodEffects,...N(r)});class ev extends R{_parse(e){return this._getType(e)===p.undefined?E(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:s0.ZodOptional,...N(t)});class eb extends R{_parse(e){return this._getType(e)===p.null?E(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:s0.ZodNullable,...N(t)});class ew extends R{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===p.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:s0.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...N(t)});class e_ extends R{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return O(i)?i.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new g(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new g(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:s0.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...N(t)});class eS extends R{_parse(e){if(this._getType(e)!==p.nan){let t=this._getOrReturnCtx(e);return _(t,{code:m.invalid_type,expected:p.nan,received:t.parsedType}),x}return{status:"valid",value:e.data}}}eS.create=e=>new eS({typeName:s0.ZodNaN,...N(e)});let ex=Symbol("zod_brand");class ek extends R{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eE extends R{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?x:"dirty"===e.status?(t.dirty(),k(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?x:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eE({in:e,out:t,typeName:s0.ZodPipeline})}}class eA extends R{_parse(e){let t=this._def.innerType._parse(e);return C(t)&&(t.value=Object.freeze(t.value)),t}}eA.create=(e,t)=>new eA({innerType:e,typeName:s0.ZodReadonly,...N(t)});let eT=(e,t={},r)=>e?Z.create().superRefine((i,n)=>{var s,a;if(!e(i)){let e="function"==typeof t?t(i):"string"==typeof t?{message:t}:t,o=null===(a=null!==(s=e.fatal)&&void 0!==s?s:r)||void 0===a||a;n.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:o})}}):Z.create(),eC={object:et.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"}(s0||(s0={}));let eO=B.create,eP=H.create,e$=eS.create,eN=K.create,eR=F.create,eI=V.create,ej=W.create,eL=z.create,eD=J.create,eM=Z.create,eU=G.create,eq=X.create,eQ=Y.create,eB=ee.create,eH=et.create,eK=et.strictCreate,eF=er.create,eV=en.create,eW=es.create,ez=ea.create,eJ=eo.create,eZ=el.create,eG=eu.create,eX=ec.create,eY=ed.create,e0=eh.create,e1=ef.create,e6=em.create,e2=eg.create,e4=ey.create,e5=ev.create,e3=eb.create,e8=ey.createWithPreprocess,e9=eE.create;var e7=Object.freeze({__proto__:null,defaultErrorMap:y,setErrorMap:function(e){v=e},getErrorMap:b,makeIssue:w,EMPTY_PATH:[],addIssueToContext:_,ParseStatus:S,INVALID:x,DIRTY:k,OK:E,isAborted:A,isDirty:T,isValid:C,isAsync:O,get util(){return sG},get objectUtil(){return sX},ZodParsedType:p,getParsedType:f,ZodType:R,ZodString:B,ZodNumber:H,ZodBigInt:K,ZodBoolean:F,ZodDate:V,ZodSymbol:W,ZodUndefined:z,ZodNull:J,ZodAny:Z,ZodUnknown:G,ZodNever:X,ZodVoid:Y,ZodArray:ee,ZodObject:et,ZodUnion:er,ZodDiscriminatedUnion:en,ZodIntersection:es,ZodTuple:ea,ZodRecord:eo,ZodMap:el,ZodSet:eu,ZodFunction:ec,ZodLazy:ed,ZodLiteral:eh,ZodEnum:ef,ZodNativeEnum:em,ZodPromise:eg,ZodEffects:ey,ZodTransformer:ey,ZodOptional:ev,ZodNullable:eb,ZodDefault:ew,ZodCatch:e_,ZodNaN:eS,BRAND:ex,ZodBranded:ek,ZodPipeline:eE,ZodReadonly:eA,custom:eT,Schema:R,ZodSchema:R,late:eC,get ZodFirstPartyTypeKind(){return s0},coerce:{string:e=>B.create({...e,coerce:!0}),number:e=>H.create({...e,coerce:!0}),boolean:e=>F.create({...e,coerce:!0}),bigint:e=>K.create({...e,coerce:!0}),date:e=>V.create({...e,coerce:!0})},any:eM,array:eB,bigint:eN,boolean:eR,date:eI,discriminatedUnion:eV,effect:e4,enum:e1,function:eX,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eT(t=>t instanceof e,t),intersection:eW,lazy:eY,literal:e0,map:eZ,nan:e$,nativeEnum:e6,never:eq,null:eD,nullable:e3,number:eP,object:eH,oboolean:()=>eR().optional(),onumber:()=>eP().optional(),optional:e5,ostring:()=>eO().optional(),pipeline:e9,preprocess:e8,promise:e2,record:eJ,set:eG,strictObject:eK,string:eO,symbol:ej,transformer:e4,tuple:ez,undefined:eL,union:eF,unknown:eU,void:eQ,NEVER:x,ZodIssueCode:m,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:g});let te=function(e){let t="object"==typeof e.client?e.client:{},r="object"==typeof e.server?e.server:{},i=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,r]of Object.entries(t))""===r&&delete t[e];if(e.skipValidation)return t;let r="object"==typeof e.client?e.client:{},i="object"==typeof e.server?e.server:{},n="object"==typeof e.shared?e.shared:{},s=e7.object(r),a=e7.object(i),o=e7.object(n),l=e.isServer??!0,u=s.merge(o),c=a.merge(o).merge(s),d=l?c.safeParse(t):u.safeParse(t),h=e.onValidationError??(e=>{throw console.error("❌ Invalid environment variables:",e.flatten().fieldErrors),Error("Invalid environment variables")}),p=e.onInvalidAccess??(e=>{throw Error("❌ Attempted to access a server-side environment variable on the client")});return!1===d.success?h(d.error):new Proxy(d.data,{get(t,r){if("string"==typeof r&&"__esModule"!==r&&"$$typeof"!==r)return l||!e.clientPrefix||r.startsWith(e.clientPrefix)||void 0!==o.shape[r]?t[r]:p(r)}})}({...e,shared:i,client:t,server:r,clientPrefix:"NEXT_PUBLIC_",runtimeEnv:n})}({server:{DATABASE_URL:e7.string().refine(e=>!e.includes("YOUR_MYSQL_URL_HERE"),"You forgot to change the default URL"),NODE_ENV:e7.enum(["development","test","production"]).default("development"),NEXTAUTH_SECRET:e7.string(),NEXTAUTH_URL:e7.preprocess(e=>process.env.VERCEL_URL??e,process.env.VERCEL?e7.string():e7.string().url()),GOOGLE_CLIENT_ID:e7.string(),GOOGLE_CLIENT_SECRET:e7.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 tt=r(2209),tr=r(4711),ti=r(4135),tn=r(7921),ts=r(2396),ta=r(2801),to=r(5469),tl=r(1677),tu=r(753),tc=r(1404),td=r(9355),th=r(2688),tp=r(2878);let tf=Symbol.for("drizzle:MySqlInlineForeignKeys");class tm extends tl.iA{static{tl.iA.Symbol.Columns,n=tl.iA.Symbol.ExtraConfigBuilder}static{this[tt.Q]="MySqlTable"}static{this.Symbol=Object.assign({},tl.iA.Symbol,{InlineForeignKeys:tf})}constructor(...e){super(...e),this[tf]=[],this[n]=void 0}}let tg=(e,t,r)=>(function(e,t,r,i,n=e){let s=new tm(e,i,n),a=Object.fromEntries(Object.entries(t).map(([e,t])=>{let r=t.build(s);return s[tf].push(...t.buildForeignKeys(r,s)),[e,r]})),o=Object.assign(s,a);return o[tl.iA.Symbol.Columns]=a,r&&(o[tm.Symbol.ExtraConfigBuilder]=r),o})(e,t,r,void 0,e);class ty{static{this[tt.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 tv(e,this)}}class tv{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static{this[tt.Q]="MySqlForeignKey"}getName(){let{name:e,columns:t,foreignColumns:r}=this.reference(),i=t.map(e=>e.name),n=r.map(e=>e.name),s=[this.table[tm.Symbol.Name],...i,r[0].table[tm.Symbol.Name],...n];return e??`${s.join("_")}_fk`}}function tb(e,t){return`${e[tm.Symbol.Name]}_${t.join("_")}_unique`}class tw{constructor(e,t){this.name=t,this.columns=e}static{this[tt.Q]="MySqlUniqueConstraintBuilder"}build(e){return new tS(e,this.columns,this.name)}}class t_{static{this[tt.Q]="MySqlUniqueOnConstraintBuilder"}constructor(e){this.name=e}on(...e){return new tw(e,this.name)}}class tS{constructor(e,t,r){this.nullsNotDistinct=!1,this.table=e,this.columns=t,this.name=r??tb(this.table,this.columns.map(e=>e.name))}static{this[tt.Q]="MySqlUniqueConstraint"}getName(){return this.name}}class tx extends tp.L{static{this[tt.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 ty(()=>({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 tk extends ts.s{constructor(e,t){t.uniqueName||(t.uniqueName=tb(e,[t.name])),super(e,t),this.table=e}static{this[tt.Q]="MySqlColumn"}}class tE extends tx{static{this[tt.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 tA extends tk{static{this[tt.Q]="MySqlColumnWithAutoIncrement"}constructor(...e){super(...e),this.autoIncrement=this.config.autoIncrement}}class tT extends to.G7{static{this[tt.Q]="MySqlViewBase"}}class tC{static{this[tt.Q]="MySqlDialect"}async migrate(e,t,r){let i=r.migrationsTable??"__drizzle_migrations",n=to.i6` + create table if not exists ${to.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` + `;await t.execute(n);let s=(await t.all(to.i6`select id, hash, created_at from ${to.i6.identifier(i)} order by created_at desc limit 1`))[0];await t.transaction(async t=>{for(let r of e)if(!s||Number(s.created_at){let s=e[tl.iA.Symbol.Columns][t],a=to.i6`${to.i6.identifier(s.name)} = ${r}`;return n{let n=[];if((0,tt.is)(e,to.$s.Aliased)&&e.isSelectionField)n.push(to.i6.identifier(e.fieldAlias));else if((0,tt.is)(e,to.$s.Aliased)||(0,tt.is)(e,to.$s)){let r=(0,tt.is)(e,to.$s.Aliased)?e.sql:e;t?n.push(new to.$s(r.queryChunks.map(e=>(0,tt.is)(e,tk)?to.i6.identifier(e.name):e))):n.push(r),(0,tt.is)(e,to.$s.Aliased)&&n.push(to.i6` as ${to.i6.identifier(e.fieldAlias)}`)}else(0,tt.is)(e,ts.s)&&(t?n.push(to.i6.identifier(e.name)):n.push(e));return ie===(b[tl.iA.Symbol.IsAlias]?tl.SP(b):b[tl.iA.Symbol.BaseName])))){let t=(0,tl.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 w=!a||0===a.length;if(e?.length){let t=[to.i6`with `];for(let[r,i]of e.entries())t.push(to.i6`${to.i6.identifier(i[ti.g1].alias)} as (${i[ti.g1].sql})`),r0&&(m=to.i6` order by ${to.i6.join(o,to.i6`, `)}`),l&&l.length>0&&(g=to.i6` group by ${to.i6.join(l,to.i6`, `)}`);let C=u?to.i6` limit ${u}`:void 0,O=c?to.i6` offset ${c}`:void 0;if(d){let{config:e,strength:t}=d;y=to.i6` for ${to.i6.raw(t)}`,e.noWait?y.append(to.i6` no wait`):e.skipLocked&&y.append(to.i6` skip locked`)}let P=to.i6`${f}select${_} ${S} from ${x}${E}${A}${g}${T}${m}${C}${O}${y}`;return p.length>0?this.buildSetOperations(P,p):P}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:s,offset:a}}){let o;let l=to.i6`(${e.getSQL()}) `,u=to.i6`(${i.getSQL()})`;if(s&&s.length>0){let e=[];for(let t of s)if((0,tt.is)(t,tk))e.push(to.i6.identifier(t.name));else if((0,tt.is)(t,to.$s)){for(let e=0;eto.i6.identifier(e.name));for(let[e,r]of t.entries()){let i=[];for(let[e,t]of s){let n=r[e];if(void 0===n||(0,tt.is)(n,to.dO)&&void 0===n.value){if(void 0!==t.defaultFn){let e=t.defaultFn(),r=(0,tt.is)(e,to.$s)?e:to.i6.param(e,t);i.push(r)}else i.push(to.i6`default`)}else i.push(n)}n.push(i),e({dbKey:t.name,tsKey:e,field:(0,tn.lw)(t,a),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let i=Object.fromEntries(Object.entries(n.columns).map(([e,t])=>[e,(0,tn.lw)(t,a)]));if(s.where){let e="function"==typeof s.where?s.where(i,(0,ta.vU)()):s.where;h=e&&(0,tn.UI)(e,a)}let o=[],l=[];if(s.columns){let e=!1;for(let[t,r]of Object.entries(s.columns))void 0!==r&&t in n.columns&&(e||!0!==r||(e=!0),l.push(t));l.length>0&&(l=e?l.filter(e=>s.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];o.push({tsKey:e,value:t})}let p=[];if(s.with&&(p=Object.entries(s.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:n.relations[e]}))),s.extras)for(let[e,t]of Object.entries("function"==typeof s.extras?s.extras(i,{sql:to.i6}):s.extras))o.push({tsKey:e,value:(0,tn.qD)(t,a)});for(let{tsKey:e,value:t}of o)f.push({dbKey:(0,tt.is)(t,to.$s.Aliased)?t.fieldAlias:n.columns[e].name,tsKey:e,field:(0,tt.is)(t,ts.s)?(0,tn.lw)(t,a):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let g="function"==typeof s.orderBy?s.orderBy(i,(0,ta.pl)()):s.orderBy??[];for(let{tsKey:i,queryConfig:n,relation:o}of(Array.isArray(g)||(g=[g]),d=g.map(e=>(0,tt.is)(e,ts.s)?(0,tn.lw)(e,a):(0,tn.UI)(e,a)),u=s.limit,c=s.offset,p)){let s=(0,ta.wG)(t,r,o),l=r[o.referencedTable[tl.iA.Symbol.Name]],u=`${a}_${i}`,c=(0,td.xD)(...s.fields.map((e,t)=>(0,td.eq)((0,tn.lw)(s.references[t],u),(0,tn.lw)(e,a)))),d=this.buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:r,table:e[l],tableConfig:t[l],queryConfig:(0,tt.is)(o,ta.fh)?!0===n?{limit:1}:{...n,limit:1}:n,tableAlias:u,joinOn:c,nestedQueryRelation:o}),h=to.i6`${to.i6.identifier(u)}.${to.i6.identifier("data")}`.as(i);m.push({on:to.i6`true`,table:new ti.k(d.sql,{},u),alias:u,joinType:"left",lateral:!0}),f.push({dbKey:i,tsKey:i,field:h,relationTableTsKey:l,isJson:!0,selection:d.selection})}}if(0===f.length)throw new th.k({message:`No fields selected for table "${n.tsName}" ("${a}")`});if(h=(0,td.xD)(l,h),o){let e=to.i6`json_array(${to.i6.join(f.map(({field:e,tsKey:t,isJson:r})=>r?to.i6`${to.i6.identifier(`${a}_${t}`)}.${to.i6.identifier("data")}`:(0,tt.is)(e,to.$s.Aliased)?e.sql:e),to.i6`, `)})`;(0,tt.is)(o,ta.sj)&&(e=to.i6`coalesce(json_arrayagg(${e}), json_array())`);let t=[{dbKey:"data",tsKey:"data",field:e.as("data"),isJson:!0,relationTableTsKey:n.tsName,selection:f}];void 0!==u||void 0!==c||(d?.length??0)>0?(p=this.buildSelectQuery({table:(0,tn.RQ)(i,a),fields:{},fieldsFlat:[{path:[],field:to.i6.raw("*")},...(d?.length??0)>0?[{path:[],field:to.i6`row_number() over (order by ${to.i6.join(d,to.i6`, `)})`}]:[]],where:h,limit:u,offset:c,setOperators:[]}),h=void 0,u=void 0,c=void 0,d=void 0):p=(0,tn.RQ)(i,a),p=this.buildSelectQuery({table:(0,tt.is)(p,tm)?p:new ti.k(p,{},a),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,tt.is)(e,ts.s)?(0,tn.lw)(e,a):e})),joins:m,where:h,limit:u,offset:c,orderBy:d,setOperators:[]})}else p=this.buildSelectQuery({table:(0,tn.RQ)(i,a),fields:{},fieldsFlat:f.map(({field:e})=>({path:[],field:(0,tt.is)(e,ts.s)?(0,tn.lw)(e,a):e})),joins:m,where:h,limit:u,offset:c,orderBy:d,setOperators:[]});return{tableTsKey:n.tsName,sql:p,selection:f}}buildRelationalQueryWithoutLateralSubqueries({fullSchema:e,schema:t,tableNamesMap:r,table:i,tableConfig:n,queryConfig:s,tableAlias:a,nestedQueryRelation:o,joinOn:l}){let u,c=[],d,h,p=[],f;if(!0===s)c=Object.entries(n.columns).map(([e,t])=>({dbKey:t.name,tsKey:e,field:(0,tn.lw)(t,a),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let i=Object.fromEntries(Object.entries(n.columns).map(([e,t])=>[e,(0,tn.lw)(t,a)]));if(s.where){let e="function"==typeof s.where?s.where(i,(0,ta.vU)()):s.where;f=e&&(0,tn.UI)(e,a)}let o=[],l=[];if(s.columns){let e=!1;for(let[t,r]of Object.entries(s.columns))void 0!==r&&t in n.columns&&(e||!0!==r||(e=!0),l.push(t));l.length>0&&(l=e?l.filter(e=>s.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];o.push({tsKey:e,value:t})}let u=[];if(s.with&&(u=Object.entries(s.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:n.relations[e]}))),s.extras)for(let[e,t]of Object.entries("function"==typeof s.extras?s.extras(i,{sql:to.i6}):s.extras))o.push({tsKey:e,value:(0,tn.qD)(t,a)});for(let{tsKey:e,value:t}of o)c.push({dbKey:(0,tt.is)(t,to.$s.Aliased)?t.fieldAlias:n.columns[e].name,tsKey:e,field:(0,tt.is)(t,ts.s)?(0,tn.lw)(t,a):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let m="function"==typeof s.orderBy?s.orderBy(i,(0,ta.pl)()):s.orderBy??[];for(let{tsKey:i,queryConfig:n,relation:o}of(Array.isArray(m)||(m=[m]),p=m.map(e=>(0,tt.is)(e,ts.s)?(0,tn.lw)(e,a):(0,tn.UI)(e,a)),d=s.limit,h=s.offset,u)){let s=(0,ta.wG)(t,r,o),l=r[o.referencedTable[tl.iA.Symbol.Name]],u=`${a}_${i}`,d=(0,td.xD)(...s.fields.map((e,t)=>(0,td.eq)((0,tn.lw)(s.references[t],u),(0,tn.lw)(e,a)))),h=this.buildRelationalQueryWithoutLateralSubqueries({fullSchema:e,schema:t,tableNamesMap:r,table:e[l],tableConfig:t[l],queryConfig:(0,tt.is)(o,ta.fh)?!0===n?{limit:1}:{...n,limit:1}:n,tableAlias:u,joinOn:d,nestedQueryRelation:o}),p=to.i6`(${h.sql})`;(0,tt.is)(o,ta.sj)&&(p=to.i6`coalesce(${p}, json_array())`);let f=p.as(i);c.push({dbKey:i,tsKey:i,field:f,relationTableTsKey:l,isJson:!0,selection:h.selection})}}if(0===c.length)throw new th.k({message:`No fields selected for table "${n.tsName}" ("${a}"). 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(f=(0,td.xD)(l,f),o){let e=to.i6`json_array(${to.i6.join(c.map(({field:e})=>(0,tt.is)(e,tk)?to.i6.identifier(e.name):(0,tt.is)(e,to.$s.Aliased)?e.sql:e),to.i6`, `)})`;(0,tt.is)(o,ta.sj)&&(e=to.i6`json_arrayagg(${e})`);let t=[{dbKey:"data",tsKey:"data",field:e,isJson:!0,relationTableTsKey:n.tsName,selection:c}];void 0!==d||void 0!==h||p.length>0?(u=this.buildSelectQuery({table:(0,tn.RQ)(i,a),fields:{},fieldsFlat:[{path:[],field:to.i6.raw("*")},...p.length>0?[{path:[],field:to.i6`row_number() over (order by ${to.i6.join(p,to.i6`, `)})`}]:[]],where:f,limit:d,offset:h,setOperators:[]}),f=void 0,d=void 0,h=void 0,p=void 0):u=(0,tn.RQ)(i,a),u=this.buildSelectQuery({table:(0,tt.is)(u,tm)?u:new ti.k(u,{},a),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,tt.is)(e,ts.s)?(0,tn.lw)(e,a):e})),where:f,limit:d,offset:h,orderBy:p,setOperators:[]})}else u=this.buildSelectQuery({table:(0,tn.RQ)(i,a),fields:{},fieldsFlat:c.map(({field:e})=>({path:[],field:(0,tt.is)(e,ts.s)?(0,tn.lw)(e,a):e})),where:f,limit:d,offset:h,orderBy:p,setOperators:[]});return{tableTsKey:n.tsName,sql:u,selection:c}}}var tO=r(678),tP=r(130);class t${static{this[tt.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,tt.is)(e,ti.k)?Object.fromEntries(Object.keys(e[ti.g1].selection).map(t=>[t,e[t]])):(0,tt.is)(e,tT)?e[tc.d].selectedFields:(0,tt.is)(e,to.$s)?{}:(0,tu.SS)(e),new tR({table:e,fields:t,isPartialSelect:r,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct})}}class tN extends tO.b{static{this[tt.Q]="MySqlSelectQueryBuilder"}constructor({table:e,fields:t,isPartialSelect:r,session:i,dialect:n,withList:s,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.intersectAll=this.createSetOperator("intersect",!0),this.except=this.createSetOperator("except",!1),this.exceptAll=this.createSetOperator("except",!0),this.config={withList:s,table:e,fields:{...t},distinct:a,setOperators:[]},this.isPartialSelect=r,this.session=i,this.dialect=n,this._={selectedFields:t},this.tableName=(0,tu.dP)(e),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}createJoin(e){return(t,r)=>{let i=this.tableName,n=(0,tu.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,tt.is)(t,to.$s))){let e=(0,tt.is)(t,ti.k)?t[ti.g1].selection:(0,tt.is)(t,to.G7)?t[tc.d].selectedFields:t[tl.iA.Symbol.Columns];this.config.fields[n]=e}if("function"==typeof r&&(r=r(new Proxy(this.config.fields,new tr.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(tj()):r;if(!(0,tu.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 tr.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=e,this}having(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new tr.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 tr.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 tr.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 ti.k(this.getSQL(),this.config.fields,e),new tr.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new tr.e({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}}class tR extends tN{static{this[tt.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,tu.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 tI(e,t){return(r,i,...n)=>{let s=[i,...n].map(r=>({type:e,isAll:t,rightSelect:r}));for(let e of s)if(!(0,tu.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(s)}}(0,tu.ef)(tR,[tP.N]);let tj=()=>({union:tL,unionAll:tD,intersect:tM,intersectAll:tU,except:tq,exceptAll:tQ}),tL=tI("union",!1),tD=tI("union",!0),tM=tI("intersect",!1),tU=tI("intersect",!0),tq=tI("except",!1),tQ=tI("except",!0);class tB{static{this[tt.Q]="MySqlQueryBuilder"}$with(e){let t=this;return{as:r=>("function"==typeof r&&(r=r(t)),new Proxy(new ti.SC(r.getSQL(),r.getSelectedFields(),e,!0),new tr.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new t$({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e})},selectDistinct:function(r){return new t$({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e,distinct:!0})}}}select(e){return new t$({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new t$({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}getDialect(){return this.dialect||(this.dialect=new tC),this.dialect}}class tH{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[tt.Q]="MySqlUpdateBuilder"}set(e){return new tK(this.table,(0,tu.M6)(this.table,e),this.session,this.dialect)}}class tK extends tP.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[tt.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 tF{constructor(e,t,r){this.shouldIgnore=!1,this.table=e,this.session=t,this.dialect=r}static{this[tt.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[tl.iA.Symbol.Columns];for(let i of Object.keys(e)){let n=e[i];t[i]=(0,tt.is)(n,to.$s)?n:new to.dO(n,r[i])}return t});return new tV(this.table,t,this.shouldIgnore,this.session,this.dialect)}}class tV extends tP.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[tt.Q]="MySqlInsert"}onDuplicateKeyUpdate(e){let t=this.dialect.buildUpdateSet(this.config.table,(0,tu.M6)(this.config.table,e.set));return this.config.onConflict=to.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 tW extends tP.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[tt.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 tz{constructor(e,t,r,i,n,s,a,o){this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=s,this.session=a,this.mode=o}static{this[tt.Q]="MySqlRelationalQueryBuilder"}findMany(e){return new tJ(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many",this.mode)}findFirst(e){return new tJ(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first",this.mode)}}class tJ extends tP.N{constructor(e,t,r,i,n,s,a,o,l,u){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=s,this.session=a,this.config=o,this.queryMode=l,this.mode=u}static{this[tt.Q]="MySqlRelationalQuery"}prepare(){let{query:e,builtQuery:t}=this._toSQL();return this.session.prepareQuery(t,void 0,t=>{let r=t.map(t=>(0,ta.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 tZ{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 tz(r.fullSchema,this._.schema,this._.tableNamesMap,r.fullSchema[i],n,e,t,this.mode)}static{this[tt.Q]="MySqlDatabase"}$with(e){return{as:t=>("function"==typeof t&&(t=t(new tB)),new Proxy(new ti.SC(t.getSQL(),t.getSelectedFields(),e,!0),new tr.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new t$({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e})},selectDistinct:function(r){return new t$({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})}}}select(e){return new t$({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new t$({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}update(e){return new tH(e,this.session,this.dialect)}insert(e){return new tF(e,this.session,this.dialect)}delete(e){return new tW(e,this.session,this.dialect)}execute(e){return this.session.execute(e.getSQL())}transaction(e,t){return this.session.transaction(e,t)}}var tG=r(4131);class tX{static{this[tt.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 tY(e,this)}}class tY{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static{this[tt.Q]="PgForeignKey"}getName(){let{name:e,columns:t,foreignColumns:r}=this.reference(),i=t.map(e=>e.name),n=r.map(e=>e.name),s=[this.table[tG.YA.Symbol.Name],...i,r[0].table[tG.YA.Symbol.Name],...n];return e??`${s.join("_")}_fk`}}function t0(e,t){return`${e[tG.YA.Symbol.Name]}_${t.join("_")}_unique`}class t1{constructor(e,t){this.nullsNotDistinctConfig=!1,this.name=t,this.columns=e}static{this[tt.Q]="PgUniqueConstraintBuilder"}nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(e){return new t2(e,this.columns,this.nullsNotDistinctConfig,this.name)}}class t6{static{this[tt.Q]="PgUniqueOnConstraintBuilder"}constructor(e){this.name=e}on(...e){return new t1(e,this.name)}}class t2{constructor(e,t,r,i){this.nullsNotDistinct=!1,this.table=e,this.columns=t,this.name=i??t0(this.table,this.columns.map(e=>e.name)),this.nullsNotDistinct=r}static{this[tt.Q]="PgUniqueConstraint"}getName(){return this.name}}function t4(e,t,r){for(let i=t;i(0,t5.t)((r,i)=>{let n=new tX(()=>({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 t8 extends ts.s{constructor(e,t){t.uniqueName||(t.uniqueName=t0(e,[t.name])),super(e,t),this.table=e}static{this[tt.Q]="PgColumn"}}class t9 extends t3{static{this[tt.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 t7(e,this.config,t)}}class t7 extends t8{constructor(e,t,r,i){super(e,t),this.baseColumn=r,this.range=i,this.size=t.size}static{this[tt.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,s=!1;for(;nthis.baseColumn.mapFromDriverValue(e))}mapToDriverValue(e,t=!1){let r=e.map(e=>null===e?null:(0,tt.is)(this.baseColumn,t7)?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 re extends t3{static{this[tt.Q]="PgJsonbBuilder"}constructor(e){super(e,"json","PgJsonb")}build(e){return new rt(e,this.config)}}class rt extends t8{static{this[tt.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 rr extends t3{static{this[tt.Q]="PgJsonBuilder"}constructor(e){super(e,"json","PgJson")}build(e){return new ri(e,this.config)}}class ri extends t8{static{this[tt.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 rn extends t3{static{this[tt.Q]="PgNumericBuilder"}constructor(e,t,r){super(e,"string","PgNumeric"),this.config.precision=t,this.config.scale=r}build(e){return new rs(e,this.config)}}class rs extends t8{static{this[tt.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 ra extends t3{static{this[tt.Q]="PgDateColumnBaseBuilder"}defaultNow(){return this.default(to.i6`now()`)}}class ro extends ra{constructor(e,t,r){super(e,"string","PgTime"),this.withTimezone=t,this.precision=r,this.config.withTimezone=t,this.config.precision=r}static{this[tt.Q]="PgTimeBuilder"}build(e){return new rl(e,this.config)}}class rl extends t8{static{this[tt.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 ru extends ra{static{this[tt.Q]="PgTimestampBuilder"}constructor(e,t,r){super(e,"date","PgTimestamp"),this.config.withTimezone=t,this.config.precision=r}build(e){return new rc(e,this.config)}}class rc extends t8{static{this[tt.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 rd extends ra{static{this[tt.Q]="PgTimestampStringBuilder"}constructor(e,t,r){super(e,"string","PgTimestampString"),this.config.withTimezone=t,this.config.precision=r}build(e){return new rh(e,this.config)}}class rh extends t8{static{this[tt.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 rp(e,t={}){return"string"===t.mode?new rd(e,t.withTimezone??!1,t.precision):new ru(e,t.withTimezone??!1,t.precision)}class rf extends ra{static{this[tt.Q]="PgDateBuilder"}constructor(e){super(e,"date","PgDate")}build(e){return new rm(e,this.config)}}class rm extends t8{static{this[tt.Q]="PgDate"}getSQLType(){return"date"}mapFromDriverValue(e){return new Date(e)}mapToDriverValue(e){return e.toISOString()}}class rg extends ra{static{this[tt.Q]="PgDateStringBuilder"}constructor(e){super(e,"string","PgDateString")}build(e){return new ry(e,this.config)}}class ry extends t8{static{this[tt.Q]="PgDateString"}getSQLType(){return"date"}}class rv extends t3{static{this[tt.Q]="PgUUIDBuilder"}constructor(e){super(e,"string","PgUUID")}defaultRandom(){return this.default(to.i6`gen_random_uuid()`)}build(e){return new rb(e,this.config)}}class rb extends t8{static{this[tt.Q]="PgUUID"}getSQLType(){return"uuid"}}class rw extends to.G7{static{this[tt.Q]="PgViewBase"}}class r_{static{this[tt.Q]="PgDialect"}async migrate(e,t){let r=to.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:` + `;await t.execute(to.i6`CREATE SCHEMA IF NOT EXISTS "drizzle"`),await t.execute(r);let i=(await t.all(to.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 s=e[tl.iA.Symbol.Columns][t],a=to.i6`${to.i6.identifier(s.name)} = ${r}`;return n{let n=[];if((0,tt.is)(e,to.$s.Aliased)&&e.isSelectionField)n.push(to.i6.identifier(e.fieldAlias));else if((0,tt.is)(e,to.$s.Aliased)||(0,tt.is)(e,to.$s)){let r=(0,tt.is)(e,to.$s.Aliased)?e.sql:e;t?n.push(new to.$s(r.queryChunks.map(e=>(0,tt.is)(e,t8)?to.i6.identifier(e.name):e))):n.push(r),(0,tt.is)(e,to.$s.Aliased)&&n.push(to.i6` as ${to.i6.identifier(e.fieldAlias)}`)}else(0,tt.is)(e,ts.s)&&(t?n.push(to.i6.identifier(e.name)):n.push(e));return ie===(b[tl.iA.Symbol.IsAlias]?tl.SP(b):b[tl.iA.Symbol.BaseName])))){let t=(0,tl.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 w=!a||0===a.length;if(e?.length){let t=[to.i6`with `];for(let[r,i]of e.entries())t.push(to.i6`${to.i6.identifier(i[ti.g1].alias)} as (${i[ti.g1].sql})`),r{if((0,tt.is)(s,tl.iA)&&s[tl.iA.Symbol.OriginalName]!==s[tl.iA.Symbol.Name]){let e=to.i6`${to.i6.identifier(s[tl.iA.Symbol.OriginalName])}`;return s[tl.iA.Symbol.Schema]&&(e=to.i6`${to.i6.identifier(s[tl.iA.Symbol.Schema])}.${e}`),to.i6`${e} ${to.i6.identifier(s[tl.iA.Symbol.Name])}`}return s})(),x=[];if(a)for(let[e,t]of a.entries()){0===e&&x.push(to.i6` `);let r=t.table,i=t.lateral?to.i6` lateral`:void 0;if((0,tt.is)(r,tG.YA)){let e=r[tG.YA.Symbol.Name],n=r[tG.YA.Symbol.Schema],s=r[tG.YA.Symbol.OriginalName],a=e===s?void 0:t.alias;x.push(to.i6`${to.i6.raw(t.joinType)} join${i} ${n?to.i6`${to.i6.identifier(n)}.`:void 0}${to.i6.identifier(s)}${a&&to.i6` ${to.i6.identifier(a)}`} on ${t.on}`)}else if((0,tt.is)(r,to.G7)){let e=r[tc.d].name,n=r[tc.d].schema,s=r[tc.d].originalName,a=e===s?void 0:t.alias;x.push(to.i6`${to.i6.raw(t.joinType)} join${i} ${n?to.i6`${to.i6.identifier(n)}.`:void 0}${to.i6.identifier(s)}${a&&to.i6` ${to.i6.identifier(a)}`} on ${t.on}`)}else x.push(to.i6`${to.i6.raw(t.joinType)} join${i} ${r} on ${t.on}`);e0&&(g=to.i6` order by ${to.i6.join(o,to.i6`, `)}`),l&&l.length>0&&(y=to.i6` group by ${to.i6.join(l,to.i6`, `)}`);let T=u?to.i6` limit ${u}`:void 0,C=c?to.i6` offset ${c}`:void 0,O=to.i6.empty();if(d){let e=to.i6` for ${to.i6.raw(d.strength)}`;d.config.of&&e.append(to.i6` of ${to.i6.join(Array.isArray(d.config.of)?d.config.of:[d.config.of],to.i6`, `)}`),d.config.noWait?e.append(to.i6` no wait`):d.config.skipLocked&&e.append(to.i6` skip locked`),O.append(e)}let P=to.i6`${f}select${m} ${_} from ${S}${k}${E}${y}${A}${g}${T}${C}${O}`;return p.length>0?this.buildSetOperations(P,p):P}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:s,offset:a}}){let o;let l=to.i6`(${e.getSQL()}) `,u=to.i6`(${i.getSQL()})`;if(s&&s.length>0){let e=[];for(let t of s)if((0,tt.is)(t,t8))e.push(to.i6.identifier(t.name));else if((0,tt.is)(t,to.$s)){for(let e=0;eto.i6.identifier(e.name));for(let[e,r]of t.entries()){let i=[];for(let[e,t]of s){let n=r[e];if(void 0===n||(0,tt.is)(n,to.dO)&&void 0===n.value){if(void 0!==t.defaultFn){let e=t.defaultFn(),r=(0,tt.is)(e,to.$s)?e:to.i6.param(e,t);i.push(r)}else i.push(to.i6`default`)}else i.push(n)}n.push(i),e({dbKey:t.name,tsKey:e,field:(0,tn.lw)(t,a),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let i=Object.fromEntries(Object.entries(n.columns).map(([e,t])=>[e,(0,tn.lw)(t,a)]));if(s.where){let e="function"==typeof s.where?s.where(i,(0,ta.vU)()):s.where;f=e&&(0,tn.UI)(e,a)}let o=[],l=[];if(s.columns){let e=!1;for(let[t,r]of Object.entries(s.columns))void 0!==r&&t in n.columns&&(e||!0!==r||(e=!0),l.push(t));l.length>0&&(l=e?l.filter(e=>s.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];o.push({tsKey:e,value:t})}let u=[];if(s.with&&(u=Object.entries(s.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:n.relations[e]}))),s.extras)for(let[e,t]of Object.entries("function"==typeof s.extras?s.extras(i,{sql:to.i6}):s.extras))o.push({tsKey:e,value:(0,tn.qD)(t,a)});for(let{tsKey:e,value:t}of o)c.push({dbKey:(0,tt.is)(t,to.$s.Aliased)?t.fieldAlias:n.columns[e].name,tsKey:e,field:(0,tt.is)(t,ts.s)?(0,tn.lw)(t,a):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let g="function"==typeof s.orderBy?s.orderBy(i,(0,ta.pl)()):s.orderBy??[];for(let{tsKey:i,queryConfig:n,relation:o}of(Array.isArray(g)||(g=[g]),p=g.map(e=>(0,tt.is)(e,ts.s)?(0,tn.lw)(e,a):(0,tn.UI)(e,a)),d=s.limit,h=s.offset,u)){let s=(0,ta.wG)(t,r,o),l=r[o.referencedTable[tl.iA.Symbol.Name]],u=`${a}_${i}`,d=(0,td.xD)(...s.fields.map((e,t)=>(0,td.eq)((0,tn.lw)(s.references[t],u),(0,tn.lw)(e,a)))),h=this.buildRelationalQueryWithoutPK({fullSchema:e,schema:t,tableNamesMap:r,table:e[l],tableConfig:t[l],queryConfig:(0,tt.is)(o,ta.fh)?!0===n?{limit:1}:{...n,limit:1}:n,tableAlias:u,joinOn:d,nestedQueryRelation:o}),p=to.i6`${to.i6.identifier(u)}.${to.i6.identifier("data")}`.as(i);m.push({on:to.i6`true`,table:new ti.k(h.sql,{},u),alias:u,joinType:"left",lateral:!0}),c.push({dbKey:i,tsKey:i,field:p,relationTableTsKey:l,isJson:!0,selection:h.selection})}}if(0===c.length)throw new th.k({message:`No fields selected for table "${n.tsName}" ("${a}")`});if(f=(0,td.xD)(l,f),o){let e=to.i6`json_build_array(${to.i6.join(c.map(({field:e,tsKey:t,isJson:r})=>r?to.i6`${to.i6.identifier(`${a}_${t}`)}.${to.i6.identifier("data")}`:(0,tt.is)(e,to.$s.Aliased)?e.sql:e),to.i6`, `)})`;(0,tt.is)(o,ta.sj)&&(e=to.i6`coalesce(json_agg(${e}${p.length>0?to.i6` order by ${to.i6.join(p,to.i6`, `)}`:void 0}), '[]'::json)`);let t=[{dbKey:"data",tsKey:"data",field:e.as("data"),isJson:!0,relationTableTsKey:n.tsName,selection:c}];void 0!==d||void 0!==h||p.length>0?(u=this.buildSelectQuery({table:(0,tn.RQ)(i,a),fields:{},fieldsFlat:[{path:[],field:to.i6.raw("*")}],where:f,limit:d,offset:h,orderBy:p,setOperators:[]}),f=void 0,d=void 0,h=void 0,p=[]):u=(0,tn.RQ)(i,a),u=this.buildSelectQuery({table:(0,tt.is)(u,tG.YA)?u:new ti.k(u,{},a),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,tt.is)(e,ts.s)?(0,tn.lw)(e,a):e})),joins:m,where:f,limit:d,offset:h,orderBy:p,setOperators:[]})}else u=this.buildSelectQuery({table:(0,tn.RQ)(i,a),fields:{},fieldsFlat:c.map(({field:e})=>({path:[],field:(0,tt.is)(e,ts.s)?(0,tn.lw)(e,a):e})),joins:m,where:f,limit:d,offset:h,orderBy:p,setOperators:[]});return{tableTsKey:n.tsName,sql:u,selection:c}}}var rS=r(8772);class rx{static{this[tt.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,tt.is)(e,ti.k)?Object.fromEntries(Object.keys(e[ti.g1].selection).map(t=>[t,e[t]])):(0,tt.is)(e,rw)?e[tc.d].selectedFields:(0,tt.is)(e,to.$s)?{}:(0,tu.SS)(e),new rE({table:e,fields:t,isPartialSelect:r,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct})}}class rk extends tO.b{static{this[tt.Q]="PgSelectQueryBuilder"}constructor({table:e,fields:t,isPartialSelect:r,session:i,dialect:n,withList:s,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.intersectAll=this.createSetOperator("intersect",!0),this.except=this.createSetOperator("except",!1),this.exceptAll=this.createSetOperator("except",!0),this.config={withList:s,table:e,fields:{...t},distinct:a,setOperators:[]},this.isPartialSelect=r,this.session=i,this.dialect=n,this._={selectedFields:t},this.tableName=(0,tu.dP)(e),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}createJoin(e){return(t,r)=>{let i=this.tableName,n=(0,tu.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,tt.is)(t,to.$s))){let e=(0,tt.is)(t,ti.k)?t[ti.g1].selection:(0,tt.is)(t,to.G7)?t[tc.d].selectedFields:t[tl.iA.Symbol.Columns];this.config.fields[n]=e}if("function"==typeof r&&(r=r(new Proxy(this.config.fields,new tr.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(rT()):r;if(!(0,tu.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 tr.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=e,this}having(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new tr.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 tr.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 tr.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 ti.k(this.getSQL(),this.config.fields,e),new tr.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new tr.e({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}}class rE extends rk{static{this[tt.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 rS.Z.startActiveSpan("drizzle.prepareQuery",()=>{let s=(0,tu.ZS)(r.fields),a=t.prepareQuery(i.sqlToQuery(this.getSQL()),s,e);return a.joinsNotNullableMap=n,a})}prepare(e){return this._prepare(e)}constructor(...e){super(...e),this.execute=e=>rS.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e))}}function rA(e,t){return(r,i,...n)=>{let s=[i,...n].map(r=>({type:e,isAll:t,rightSelect:r}));for(let e of s)if(!(0,tu.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(s)}}(0,tu.ef)(rE,[tP.N]);let rT=()=>({union:rC,unionAll:rO,intersect:rP,intersectAll:r$,except:rN,exceptAll:rR}),rC=rA("union",!1),rO=rA("union",!0),rP=rA("intersect",!1),r$=rA("intersect",!0),rN=rA("except",!1),rR=rA("except",!0);class rI{static{this[tt.Q]="PgQueryBuilder"}$with(e){let t=this;return{as:r=>("function"==typeof r&&(r=r(t)),new Proxy(new ti.SC(r.getSQL(),r.getSelectedFields(),e,!0),new tr.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new rx({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e})},selectDistinct:function(e){return new rx({fields:e??void 0,session:void 0,dialect:t.getDialect(),distinct:!0})},selectDistinctOn:function(e,r){return new rx({fields:r??void 0,session:void 0,dialect:t.getDialect(),distinct:{on:e}})}}}select(e){return new rx({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new rx({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}selectDistinctOn(e,t){return new rx({fields:t??void 0,session:void 0,dialect:this.getDialect(),distinct:{on:e}})}getDialect(){return this.dialect||(this.dialect=new r_),this.dialect}}class rj{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[tt.Q]="PgUpdateBuilder"}set(e){return new rL(this.table,(0,tu.M6)(this.table,e),this.session,this.dialect)}}class rL extends tP.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[tt.Q]="PgUpdate"}where(e){return this.config.where=e,this}returning(e=this.config.table[tl.iA.Symbol.Columns]){return this.config.returning=(0,tu.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 rD{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[tt.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[tl.iA.Symbol.Columns];for(let i of Object.keys(e)){let n=e[i];t[i]=(0,tt.is)(n,to.$s)?n:new to.dO(n,r[i])}return t});return new rM(this.table,t,this.session,this.dialect)}}class rM extends tP.N{constructor(e,t,r,i){super(),this.execute=e=>rS.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e)),this.session=r,this.dialect=i,this.config={table:e,values:t}}static{this[tt.Q]="PgInsert"}returning(e=this.config.table[tl.iA.Symbol.Columns]){return this.config.returning=(0,tu.ZS)(e),this}onConflictDoNothing(e={}){if(void 0===e.target)this.config.onConflict=to.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?to.i6` where ${e.where}`:void 0;this.config.onConflict=to.i6`(${to.i6.raw(t)}) do nothing${r}`}return this}onConflictDoUpdate(e){let t=e.where?to.i6` where ${e.where}`:void 0,r=this.dialect.buildUpdateSet(this.config.table,(0,tu.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=to.i6`(${to.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 rS.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 rU extends tP.N{constructor(e,t,r){super(),this.execute=e=>rS.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e)),this.session=t,this.dialect=r,this.config={table:e}}static{this[tt.Q]="PgDelete"}where(e){return this.config.where=e,this}returning(e=this.config.table[tl.iA.Symbol.Columns]){return this.config.returning=(0,tu.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 rS.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 rq{constructor(e,t,r,i,n,s,a){this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=s,this.session=a}static{this[tt.Q]="PgRelationalQueryBuilder"}findMany(e){return new rQ(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many")}findFirst(e){return new rQ(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first")}}class rQ extends tP.N{constructor(e,t,r,i,n,s,a,o,l){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=s,this.session=a,this.config=o,this.mode=l}static{this[tt.Q]="PgRelationalQuery"}_prepare(e){return rS.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,ta.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 rS.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute())}}class rB extends tP.N{constructor(e,t,r,i){super(),this.execute=e,this.sql=t,this.query=r,this.mapBatchResult=i}static{this[tt.Q]="PgRaw"}getSQL(){return this.sql}getQuery(){return this.query}mapResult(e,t){return t?this.mapBatchResult(e):e}_prepare(){return this}}class rH extends tP.N{constructor(e,t,r){super(),this.execute=e=>rS.Z.startActiveSpan("drizzle.operation",()=>this._prepare().execute(e)),this.session=t,this.dialect=r,this.config={view:e}}static{this[tt.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 rS.Z.startActiveSpan("drizzle.prepareQuery",()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0,e))}prepare(e){return this._prepare(e)}}class rK{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 rq(r.fullSchema,this._.schema,this._.tableNamesMap,r.fullSchema[i],n,e,t)}static{this[tt.Q]="PgDatabase"}$with(e){return{as:t=>("function"==typeof t&&(t=t(new rI)),new Proxy(new ti.SC(t.getSQL(),t.getSelectedFields(),e,!0),new tr.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new rx({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e})}}}select(e){return new rx({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new rx({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}selectDistinctOn(e,t){return new rx({fields:t??void 0,session:this.session,dialect:this.dialect,distinct:{on:e}})}update(e){return new rj(e,this.session,this.dialect)}insert(e){return new rD(e,this.session,this.dialect)}delete(e){return new rU(e,this.session,this.dialect)}refreshMaterializedView(e){return new rH(e,this.session,this.dialect)}execute(e){let t=e.getSQL(),r=this.dialect.sqlToQuery(t),i=this.session.prepareQuery(r,void 0,void 0);return new rB(()=>i.execute(),t,r,e=>i.mapResult(e,!1))}transaction(e,t){return this.session.transaction(e,t)}}var rF=r(4078);class rV extends tx{static{this[tt.Q]="MySqlVarCharBuilder"}constructor(e,t){super(e,"string","MySqlVarChar"),this.config.length=t.length,this.config.enum=t.enum}build(e){return new rW(e,this.config)}}class rW extends tk{static{this[tt.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 rz(e,t){return new rV(e,t)}class rJ extends tx{static{this[tt.Q]="MySqlDateColumnBuilder"}defaultNow(){return this.default(to.i6`(now())`)}onUpdateNow(){return this.config.hasOnUpdateNow=!0,this.config.hasDefault=!0,this}}class rZ extends tk{static{this[tt.Q]="MySqlDateColumn"}constructor(...e){super(...e),this.hasOnUpdateNow=this.config.hasOnUpdateNow}}class rG extends rJ{static{this[tt.Q]="MySqlTimestampBuilder"}constructor(e,t){super(e,"date","MySqlTimestamp"),this.config.fsp=t?.fsp}build(e){return new rX(e,this.config)}}class rX extends rZ{static{this[tt.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 rY extends rJ{static{this[tt.Q]="MySqlTimestampStringBuilder"}constructor(e,t){super(e,"string","MySqlTimestampString"),this.config.fsp=t?.fsp}build(e){return new r0(e,this.config)}}class r0 extends rZ{static{this[tt.Q]="MySqlTimestampString"}getSQLType(){let e=void 0===this.fsp?"":`(${this.fsp})`;return`timestamp${e}`}constructor(...e){super(...e),this.fsp=this.config.fsp}}function r1(e,t={}){return"string"===t.mode?new rY(e,t):new rG(e,t)}class r6 extends tE{static{this[tt.Q]="MySqlIntBuilder"}constructor(e,t){super(e,"number","MySqlInt"),this.config.unsigned=!!t&&t.unsigned}build(e){return new r2(e,this.config)}}class r2 extends tA{static{this[tt.Q]="MySqlInt"}getSQLType(){return`int${this.config.unsigned?" unsigned":""}`}mapFromDriverValue(e){return"string"==typeof e?Number(e):e}}function r4(...e){return e[0].columns?new r5(e[0].columns,e[0].name):new r5(e)}class r5{static{this[tt.Q]="MySqlPrimaryKeyBuilder"}constructor(e,t){this.columns=e,this.name=t}build(e){return new r3(e,this.columns,this.name)}}class r3{constructor(e,t,r){this.table=e,this.columns=t,this.name=r}static{this[tt.Q]="MySqlPrimaryKey"}getName(){return this.name??`${this.table[tm.Symbol.Name]}_${this.columns.map(e=>e.name).join("_")}_pk`}}class r8 extends t3{static{this[tt.Q]="PgTextBuilder"}constructor(e,t){super(e,"string","PgText"),this.config.enumValues=t.enum}build(e){return new r9(e,this.config)}}class r9 extends t8{static{this[tt.Q]="PgText"}getSQLType(){return"text"}constructor(...e){super(...e),this.enumValues=this.config.enumValues}}function r7(e,t={}){return new r8(e,t)}class ie extends t3{static{this[tt.Q]="PgIntegerBuilder"}constructor(e){super(e,"number","PgInteger")}build(e){return new it(e,this.config)}}class it extends t8{static{this[tt.Q]="PgInteger"}getSQLType(){return"integer"}mapFromDriverValue(e){return"string"==typeof e?Number.parseInt(e):e}}var ir=r(8018);function ii(e){let t={};for(let r in e)void 0!==e[r]&&(t[r]=e[r]);return t}var is=r(1701),ia=r(2404),io=r(9352),il=r(5315),iu=function(e,t,r,i,n){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(e,r):n?n.value=r:t.set(e,r),r},ic=function(e,t,r,i){if("a"===r&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:t.get(e)};function id(e){let t=e?"__Secure-":"";return{sessionToken:{name:`${t}authjs.session-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},callbackUrl:{name:`${t}authjs.callback-url`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},csrfToken:{name:`${e?"__Host-":""}authjs.csrf-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},pkceCodeVerifier:{name:`${t}authjs.pkce.code_verifier`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},state:{name:`${t}authjs.state`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},nonce:{name:`${t}authjs.nonce`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},webauthnChallenge:{name:`${t}authjs.challenge`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}}}}class ih{constructor(e,t,r){if(s1.add(this),s6.set(this,{}),s2.set(this,void 0),s4.set(this,void 0),iu(this,s4,r,"f"),iu(this,s2,e,"f"),!t)return;let{name:i}=e;for(let[e,r]of Object.entries(t))e.startsWith(i)&&r&&(ic(this,s6,"f")[e]=r)}get value(){return Object.keys(ic(this,s6,"f")).sort((e,t)=>parseInt(e.split(".").pop()||"0")-parseInt(t.split(".").pop()||"0")).map(e=>ic(this,s6,"f")[e]).join("")}chunk(e,t){let r=ic(this,s1,"m",s3).call(this);for(let i of ic(this,s1,"m",s5).call(this,{name:ic(this,s2,"f").name,value:e,options:{...ic(this,s2,"f").options,...t}}))r[i.name]=i;return Object.values(r)}clean(){return Object.values(ic(this,s1,"m",s3).call(this))}}s6=new WeakMap,s2=new WeakMap,s4=new WeakMap,s1=new WeakSet,s5=function(e){let t=Math.ceil(e.value.length/3936);if(1===t)return ic(this,s6,"f")[e.name]=e.value,[e];let r=[];for(let i=0;ie.value.length+160)}),r},s3=function(){let e={};for(let t in ic(this,s6,"f"))delete ic(this,s6,"f")?.[t],e[t]={name:t,value:"",options:{...ic(this,s2,"f").options,maxAge:0}};return e};class ip extends Error{constructor(e,t){e instanceof Error?super(void 0,{cause:{err:e,...e.cause,...t}}):"string"==typeof e?(t instanceof Error&&(t={err:t,...t.cause}),super(e,t)):super(void 0,e),this.name=this.constructor.name,this.type=this.constructor.type??"AuthError",this.kind=this.constructor.kind??"error",Error.captureStackTrace?.(this,this.constructor);let r=`https://errors.authjs.dev#${this.type.toLowerCase()}`;this.message+=`${this.message?" .":""}Read more at ${r}`}}class im extends ip{}im.kind="signIn";class ig extends ip{}ig.type="AdapterError";class iy extends ip{}iy.type="AuthorizedCallbackError";class iv extends ip{}iv.type="CallbackRouteError";class ib extends ip{}ib.type="ErrorPageLoop";class iw extends ip{}iw.type="EventError";class i_ extends ip{}i_.type="InvalidCallbackUrl";class iS extends im{}iS.type="CredentialsSignin";class ix extends ip{}ix.type="InvalidEndpoints";class ik extends ip{}ik.type="InvalidCheck";class iE extends ip{}iE.type="JWTSessionError";class iA extends ip{}iA.type="MissingAdapter";class iT extends ip{}iT.type="MissingAdapterMethods";class iC extends ip{}iC.type="MissingAuthorize";class iO extends ip{}iO.type="MissingSecret";class iP extends im{}iP.type="OAuthAccountNotLinked";class i$ extends im{}i$.type="OAuthCallbackError";class iN extends ip{}iN.type="OAuthProfileParseError";class iR extends ip{}iR.type="SessionTokenError";class iI extends im{}iI.type="OAuthSignInError";class ij extends im{}ij.type="EmailSignInError";class iL extends ip{}iL.type="SignOutError";class iD extends ip{}iD.type="UnknownAction";class iM extends ip{}iM.type="UnsupportedStrategy";class iU extends ip{}iU.type="InvalidProvider";class iq extends ip{}iq.type="UntrustedHost";class iQ extends ip{}iQ.type="Verification";class iB extends im{}iB.type="MissingCSRF";class iH extends ip{}iH.type="DuplicateConditionalUI";class iK extends ip{}iK.type="MissingWebAuthnAutocomplete";class iF extends ip{}iF.type="WebAuthnVerificationError";class iV extends im{}iV.type="AccountNotLinked";class iW extends ip{}iW.type="ExperimentalFeatureNotEnabled";let iz=!1;function iJ(e,t){try{return/^https?:/.test(new URL(e,e.startsWith("/")?t:void 0).protocol)}catch{return!1}}let iZ=!1,iG=!1,iX=!1,iY=["createVerificationToken","useVerificationToken","getUserByEmail"],i0=["createUser","getUser","getUserByEmail","getUserByAccount","updateUser","linkAccount","createSession","getSessionAndUser","updateSession","deleteSession"],i1=["createUser","getUser","linkAccount","getAccount","getAuthenticator","createAuthenticator","listAuthenticatorsByUserId","updateAuthenticatorCounter"],i6=()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;throw Error("unable to locate global object")},i2=async(e,t,r,i,n)=>{let{crypto:{subtle:s}}=i6();return new Uint8Array(await s.deriveBits({name:"HKDF",hash:`SHA-${e.substr(3)}`,salt:r,info:i},await s.importKey("raw",t,"HKDF",!1,["deriveBits"]),n<<3))};function i4(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 i5(e,t,r,i,n){return i2(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=i4(e,"ikm");if(!t.byteLength)throw TypeError('"ikm" must be at least one byte in length');return t}(t),i4(r,"salt"),function(e){let t=i4(e,"info");if(t.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return t}(i),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}(n,e))}let i3=crypto,i8=e=>e instanceof CryptoKey,i9=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await i3.subtle.digest(r,t))},i7=new TextEncoder,ne=new TextDecoder;function nt(...e){let t=e.reduce((e,{length:t})=>e+t,0),r=new Uint8Array(t),i=0;for(let t of e)r.set(t,i),i+=t.length;return r}function nr(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 ni(e){let t=new Uint8Array(8);return nr(t,Math.floor(e/4294967296),0),nr(t,e%4294967296,4),t}function nn(e){let t=new Uint8Array(4);return nr(t,e),t}function ns(e){return nt(nn(e.length),e)}async function na(e,t,r){let i=Math.ceil((t>>3)/32),n=new Uint8Array(32*i);for(let t=0;t>3)}let no=e=>{let t=e;"string"==typeof t&&(t=i7.encode(t));let r=[];for(let e=0;eno(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),nu=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e{let t=e;t instanceof Uint8Array&&(t=ne.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return nu(t)}catch{throw TypeError("The input to be decoded is not correctly encoded.")}};class nd extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}class nh extends nd{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}}class np extends nd{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}}class nf extends nd{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}class nm extends nd{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class ng extends nd{constructor(){super(...arguments),this.code="ERR_JWE_DECRYPTION_FAILED",this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}class ny extends nd{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}class nv extends nd{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class nb extends nd{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}Symbol.asyncIterator;let nw=i3.getRandomValues.bind(i3);function n_(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 nm(`Unsupported JWE Algorithm: ${e}`)}}let nS=e=>nw(new Uint8Array(n_(e)>>3)),nx=(e,t)=>{if(t.length<<3!==n_(e))throw new ny("Invalid Initialization Vector length")},nk=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new ny(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)},nE=(e,t)=>{if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(e.length!==t.length)throw TypeError("Input buffers must have the same length");let r=e.length,i=0,n=-1;for(;++ne.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)}}(e,r)}function nO(e,t,...r){if(r.length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}let nP=(e,...t)=>nO("Key must be ",e,...t);function n$(e,t,...r){return nO(`Key for the ${e} algorithm must be `,t,...r)}let nN=e=>i8(e),nR=["CryptoKey"];async function nI(e,t,r,i,n,s){let a,o;if(!(t instanceof Uint8Array))throw TypeError(nP(t,"Uint8Array"));let l=parseInt(e.slice(1,4),10),u=await i3.subtle.importKey("raw",t.subarray(l>>3),"AES-CBC",!1,["decrypt"]),c=await i3.subtle.importKey("raw",t.subarray(0,l>>3),{hash:`SHA-${l<<1}`,name:"HMAC"},!1,["sign"]),d=nt(s,i,r,ni(s.length<<3)),h=new Uint8Array((await i3.subtle.sign("HMAC",c,d)).slice(0,l>>3));try{a=nE(n,h)}catch{}if(!a)throw new ng;try{o=new Uint8Array(await i3.subtle.decrypt({iv:i,name:"AES-CBC"},u,r))}catch{}if(!o)throw new ng;return o}async function nj(e,t,r,i,n,s){let a;t instanceof Uint8Array?a=await i3.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(nC(t,e,"decrypt"),a=t);try{return new Uint8Array(await i3.subtle.decrypt({additionalData:s,iv:i,name:"AES-GCM",tagLength:128},a,nt(r,n)))}catch{throw new ng}}let nL=async(e,t,r,i,n,s)=>{if(!i8(t)&&!(t instanceof Uint8Array))throw TypeError(nP(t,...nR,"Uint8Array"));if(!i)throw new ny("JWE Initialization Vector missing");if(!n)throw new ny("JWE Authentication Tag missing");switch(nx(e,i),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&nk(t,parseInt(e.slice(-3),10)),nI(e,t,r,i,n,s);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&nk(t,parseInt(e.slice(1,4),10)),nj(e,t,r,i,n,s);default:throw new nm("Unsupported JWE Content Encryption Algorithm")}},nD=(...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};function nM(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}let nU=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function nq(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function nQ(e,t,r){if(i8(e))return nC(e,t,r),e;if(e instanceof Uint8Array)return i3.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw TypeError(nP(e,...nR,"Uint8Array"))}let nB=async(e,t,r)=>{let i=await nQ(t,e,"wrapKey");nq(i,e);let n=await i3.subtle.importKey("raw",r,...nU);return new Uint8Array(await i3.subtle.wrapKey("raw",n,i,"AES-KW"))},nH=async(e,t,r)=>{let i=await nQ(t,e,"unwrapKey");nq(i,e);let n=await i3.subtle.unwrapKey("raw",r,i,"AES-KW",...nU);return new Uint8Array(await i3.subtle.exportKey("raw",n))};async function nK(e,t,r,i,n=new Uint8Array(0),s=new Uint8Array(0)){let a;if(!i8(e))throw TypeError(nP(e,...nR));if(nC(e,"ECDH"),!i8(t))throw TypeError(nP(t,...nR));nC(t,"ECDH","deriveBits");let o=nt(ns(i7.encode(r)),ns(n),ns(s),nn(i));return a="X25519"===e.algorithm.name?256:"X448"===e.algorithm.name?448:Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3,na(new Uint8Array(await i3.subtle.deriveBits({name:e.algorithm.name,public:e},t,a)),i,o)}async function nF(e){if(!i8(e))throw TypeError(nP(e,...nR));return i3.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function nV(e){if(!i8(e))throw TypeError(nP(e,...nR));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||"X25519"===e.algorithm.name||"X448"===e.algorithm.name}async function nW(e,t,r,i){!function(e){if(!(e instanceof Uint8Array)||e.length<8)throw new ny("PBES2 Salt Input must be 8 or more octets")}(e);let n=nt(i7.encode(t),new Uint8Array([0]),e),s=parseInt(t.slice(13,16),10),a={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:n},o=await function(e,t){if(e instanceof Uint8Array)return i3.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(i8(e))return nC(e,t,"deriveBits","deriveKey"),e;throw TypeError(nP(e,...nR,"Uint8Array"))}(i,t);if(o.usages.includes("deriveBits"))return new Uint8Array(await i3.subtle.deriveBits(a,o,s));if(o.usages.includes("deriveKey"))return i3.subtle.deriveKey(a,o,{length:s,name:"AES-KW"},!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let nz=async(e,t,r,i=2048,n=nw(new Uint8Array(16)))=>{let s=await nW(n,e,i,t);return{encryptedKey:await nB(e.slice(-6),s,r),p2c:i,p2s:nl(n)}},nJ=async(e,t,r,i,n)=>{let s=await nW(n,e,i,t);return nH(e.slice(-6),s,r)};function nZ(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new nm(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}let nG=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}},nX=async(e,t,r)=>{if(!i8(t))throw TypeError(nP(t,...nR));if(nC(t,e,"encrypt","wrapKey"),nG(e,t),t.usages.includes("encrypt"))return new Uint8Array(await i3.subtle.encrypt(nZ(e),t,r));if(t.usages.includes("wrapKey")){let i=await i3.subtle.importKey("raw",r,...nU);return new Uint8Array(await i3.subtle.wrapKey("raw",i,t,nZ(e)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},nY=async(e,t,r)=>{if(!i8(t))throw TypeError(nP(t,...nR));if(nC(t,e,"decrypt","unwrapKey"),nG(e,t),t.usages.includes("decrypt"))return new Uint8Array(await i3.subtle.decrypt(nZ(e),t,r));if(t.usages.includes("unwrapKey")){let i=await i3.subtle.unwrapKey("raw",r,t,nZ(e),...nU);return new Uint8Array(await i3.subtle.exportKey("raw",i))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function n0(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 nm(`Unsupported JWE Algorithm: ${e}`)}}let n1=e=>nw(new Uint8Array(n0(e)>>3)),n6=async e=>{if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=function(e){let t,r;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new nm('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new nm('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new nm('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new nm('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}(e),i=[t,e.ext??!1,e.key_ops??r],n={...e};return delete n.alg,delete n.use,i3.subtle.importKey("jwk",n,...i)};async function n2(e,t){if(!nM(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');return nc(e.k);case"RSA":if(void 0!==e.oth)throw new nm('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return n6({...e,alg:t});default:throw new nm('Unsupported "kty" (Key Type) Parameter value')}}let n4=(e,t)=>{if(!(t instanceof Uint8Array)){if(!nN(t))throw TypeError(n$(e,t,...nR,"Uint8Array"));if("secret"!==t.type)throw TypeError(`${nR.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},n5=(e,t,r)=>{if(!nN(t))throw TypeError(n$(e,t,...nR));if("secret"===t.type)throw TypeError(`${nR.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${nR.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${nR.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${nR.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${nR.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)},n3=(e,t,r)=>{e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?n4(e,t):n5(e,t,r)};async function n8(e,t,r,i,n){if(!(r instanceof Uint8Array))throw TypeError(nP(r,"Uint8Array"));let s=parseInt(e.slice(1,4),10),a=await i3.subtle.importKey("raw",r.subarray(s>>3),"AES-CBC",!1,["encrypt"]),o=await i3.subtle.importKey("raw",r.subarray(0,s>>3),{hash:`SHA-${s<<1}`,name:"HMAC"},!1,["sign"]),l=new Uint8Array(await i3.subtle.encrypt({iv:i,name:"AES-CBC"},a,t)),u=nt(n,i,l,ni(n.length<<3));return{ciphertext:l,tag:new Uint8Array((await i3.subtle.sign("HMAC",o,u)).slice(0,s>>3))}}async function n9(e,t,r,i,n){let s;r instanceof Uint8Array?s=await i3.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(nC(r,e,"encrypt"),s=r);let a=new Uint8Array(await i3.subtle.encrypt({additionalData:n,iv:i,name:"AES-GCM",tagLength:128},s,t)),o=a.slice(-16);return{ciphertext:a.slice(0,-16),tag:o}}let n7=async(e,t,r,i,n)=>{if(!i8(r)&&!(r instanceof Uint8Array))throw TypeError(nP(r,...nR,"Uint8Array"));switch(nx(e,i),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&nk(r,parseInt(e.slice(-3),10)),n8(e,t,r,i,n);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&nk(r,parseInt(e.slice(1,4),10)),n9(e,t,r,i,n);default:throw new nm("Unsupported JWE Content Encryption Algorithm")}};async function se(e,t,r,i){let n=e.slice(0,7);i||(i=nS(n));let{ciphertext:s,tag:a}=await n7(n,r,t,i,new Uint8Array(0));return{encryptedKey:s,iv:nl(i),tag:nl(a)}}async function st(e,t,r,i,n){return nL(e.slice(0,7),t,r,i,n,new Uint8Array(0))}async function sr(e,t,r,i,n){switch(n3(e,t,"decrypt"),e){case"dir":if(void 0!==r)throw new ny("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new ny("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let n,s;if(!nM(i.epk))throw new ny('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!nV(t))throw new nm("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await n2(i.epk,e);if(void 0!==i.apu){if("string"!=typeof i.apu)throw new ny('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{n=nc(i.apu)}catch{throw new ny("Failed to base64url decode the apu")}}if(void 0!==i.apv){if("string"!=typeof i.apv)throw new ny('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{s=nc(i.apv)}catch{throw new ny("Failed to base64url decode the apv")}}let o=await nK(a,t,"ECDH-ES"===e?i.enc:e,"ECDH-ES"===e?n0(i.enc):parseInt(e.slice(-5,-2),10),n,s);if("ECDH-ES"===e)return o;if(void 0===r)throw new ny("JWE Encrypted Key missing");return nH(e.slice(-6),o,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 ny("JWE Encrypted Key missing");return nY(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let s;if(void 0===r)throw new ny("JWE Encrypted Key missing");if("number"!=typeof i.p2c)throw new ny('JOSE Header "p2c" (PBES2 Count) missing or invalid');let a=n?.maxPBES2Count||1e4;if(i.p2c>a)throw new ny('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof i.p2s)throw new ny('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{s=nc(i.p2s)}catch{throw new ny("Failed to base64url decode the p2s")}return nJ(e,t,r,i.p2c,s)}case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new ny("JWE Encrypted Key missing");return nH(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let n,s;if(void 0===r)throw new ny("JWE Encrypted Key missing");if("string"!=typeof i.iv)throw new ny('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof i.tag)throw new ny('JOSE Header "tag" (Authentication Tag) missing or invalid');try{n=nc(i.iv)}catch{throw new ny("Failed to base64url decode the iv")}try{s=nc(i.tag)}catch{throw new ny("Failed to base64url decode the tag")}return st(e,t,r,n,s)}default:throw new nm('Invalid or unsupported "alg" (JWE Algorithm) header value')}}let si=function(e,t,r,i,n){let s;if(void 0!==n.crit&&void 0===i.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||void 0===i.crit)return new Set;if(!Array.isArray(i.crit)||0===i.crit.length||i.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,i.crit)){if(!s.has(a))throw new nm(`Extension Header Parameter "${a}" is not recognized`);if(void 0===n[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(s.get(a)&&void 0===i[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(i.crit)},sn=(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)};async function ss(e,t,r){let i,n,s,a,o,l,u;if(!nM(e))throw new ny("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new ny("JOSE Header missing");if(void 0!==e.iv&&"string"!=typeof e.iv)throw new ny("JWE Initialization Vector incorrect type");if("string"!=typeof e.ciphertext)throw new ny("JWE Ciphertext missing or incorrect type");if(void 0!==e.tag&&"string"!=typeof e.tag)throw new ny("JWE Authentication Tag incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new ny("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new ny("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new ny("JWE AAD incorrect type");if(void 0!==e.header&&!nM(e.header))throw new ny("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!nM(e.unprotected))throw new ny("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=nc(e.protected);i=JSON.parse(ne.decode(t))}catch{throw new ny("JWE Protected Header is invalid")}if(!nD(i,e.header,e.unprotected))throw new ny("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let c={...i,...e.header,...e.unprotected};if(si(ny,new Map,r?.crit,i,c),void 0!==c.zip)throw new nm('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:d,enc:h}=c;if("string"!=typeof d||!d)throw new ny("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof h||!h)throw new ny("missing JWE Encryption Algorithm (enc) in JWE Header");let p=r&&sn("keyManagementAlgorithms",r.keyManagementAlgorithms),f=r&&sn("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(p&&!p.has(d)||!p&&d.startsWith("PBES2"))throw new nf('"alg" (Algorithm) Header Parameter value not allowed');if(f&&!f.has(h))throw new nf('"enc" (Encryption Algorithm) Header Parameter value not allowed');if(void 0!==e.encrypted_key)try{n=nc(e.encrypted_key)}catch{throw new ny("Failed to base64url decode the encrypted_key")}let m=!1;"function"==typeof t&&(t=await t(i,e),m=!0);try{s=await sr(d,t,n,c,r)}catch(e){if(e instanceof TypeError||e instanceof ny||e instanceof nm)throw e;s=n1(h)}if(void 0!==e.iv)try{a=nc(e.iv)}catch{throw new ny("Failed to base64url decode the iv")}if(void 0!==e.tag)try{o=nc(e.tag)}catch{throw new ny("Failed to base64url decode the tag")}let g=i7.encode(e.protected??"");l=void 0!==e.aad?nt(g,i7.encode("."),i7.encode(e.aad)):g;try{u=nc(e.ciphertext)}catch{throw new ny("Failed to base64url decode the ciphertext")}let y={plaintext:await nL(h,s,u,a,o,l)};if(void 0!==e.protected&&(y.protectedHeader=i),void 0!==e.aad)try{y.additionalAuthenticatedData=nc(e.aad)}catch{throw new ny("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(y.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(y.unprotectedHeader=e.header),m)?{...y,key:t}:y}async function sa(e,t,r){if(e instanceof Uint8Array&&(e=ne.decode(e)),"string"!=typeof e)throw new ny("Compact JWE must be a string or Uint8Array");let{0:i,1:n,2:s,3:a,4:o,length:l}=e.split(".");if(5!==l)throw new ny("Invalid Compact JWE");let u=await ss({ciphertext:a,iv:s||void 0,protected:i,tag:o||void 0,encrypted_key:n||void 0},t,r),c={plaintext:u.plaintext,protectedHeader:u.protectedHeader};return"function"==typeof t?{...c,key:u.key}:c}let so=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:nl(e)};if(!i8(e))throw TypeError(nP(e,...nR,"Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:i,use:n,...s}=await i3.subtle.exportKey("jwk",e);return s};async function sl(e){return so(e)}async function su(e,t,r,i,n={}){let s,a,o;switch(n3(e,r,"encrypt"),e){case"dir":o=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!nV(r))throw new nm("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:l,apv:u}=n,{epk:c}=n;c||(c=(await nF(r)).privateKey);let{x:d,y:h,crv:p,kty:f}=await sl(c),m=await nK(r,c,"ECDH-ES"===e?t:e,"ECDH-ES"===e?n0(t):parseInt(e.slice(-5,-2),10),l,u);if(a={epk:{x:d,crv:p,kty:f}},"EC"===f&&(a.epk.y=h),l&&(a.apu=nl(l)),u&&(a.apv=nl(u)),"ECDH-ES"===e){o=m;break}o=i||n1(t);let g=e.slice(-6);s=await nB(g,m,o);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":o=i||n1(t),s=await nX(e,r,o);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{o=i||n1(t);let{p2c:l,p2s:u}=n;({encryptedKey:s,...a}=await nz(e,r,o,l,u));break}case"A128KW":case"A192KW":case"A256KW":o=i||n1(t),s=await nB(e,r,o);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{o=i||n1(t);let{iv:l}=n;({encryptedKey:s,...a}=await se(e,r,o,l));break}default:throw new nm('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:o,encryptedKey:s,parameters:a}}let sc=Symbol();class sd{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,t){let r,i,n,s,a;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new ny("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!nD(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new ny("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let o={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(si(ny,new Map,t?.crit,this._protectedHeader,o),void 0!==o.zip)throw new nm('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:l,enc:u}=o;if("string"!=typeof l||!l)throw new ny('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof u||!u)throw new ny('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if("dir"===l){if(this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}else if("ECDH-ES"===l&&this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement");{let n;({cek:i,encryptedKey:r,parameters:n}=await su(l,u,e,this._cek,this._keyManagementParameters)),n&&(t&&sc in t?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...n}:this.setUnprotectedHeader(n):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...n}:this.setProtectedHeader(n))}this._iv||(this._iv=nS(u)),s=this._protectedHeader?i7.encode(nl(JSON.stringify(this._protectedHeader))):i7.encode(""),this._aad?(a=nl(this._aad),n=nt(s,i7.encode("."),i7.encode(a))):n=s;let{ciphertext:c,tag:d}=await n7(u,this._plaintext,i,this._iv,n),h={ciphertext:nl(c),iv:nl(this._iv),tag:nl(d)};return r&&(h.encrypted_key=nl(r)),a&&(h.aad=a),this._protectedHeader&&(h.protected=ne.decode(s)),this._sharedUnprotectedHeader&&(h.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(h.header=this._unprotectedHeader),h}}let sh=e=>Math.floor(e.getTime()/1e3),sp=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,sf=e=>{let t;let r=sp.exec(e);if(!r||r[4]&&r[1])throw TypeError("Invalid time period format");let i=parseFloat(r[2]);switch(r[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":t=Math.round(i);break;case"minute":case"minutes":case"min":case"mins":case"m":t=Math.round(60*i);break;case"hour":case"hours":case"hr":case"hrs":case"h":t=Math.round(3600*i);break;case"day":case"days":case"d":t=Math.round(86400*i);break;case"week":case"weeks":case"w":t=Math.round(604800*i);break;default:t=Math.round(31557600*i)}return"-"===r[1]||"ago"===r[4]?-t:t},sm=e=>e.toLowerCase().replace(/^application\//,""),sg=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e))),sy=(e,t,r={})=>{let i,n;let{typ:s}=r;if(s&&("string"!=typeof e.typ||sm(e.typ)!==sm(s)))throw new nh('unexpected "typ" JWT header value',"typ","check_failed");try{i=JSON.parse(ne.decode(t))}catch{}if(!nM(i))throw new nv("JWT Claims Set must be a top-level JSON object");let{requiredClaims:a=[],issuer:o,subject:l,audience:u,maxTokenAge:c}=r,d=[...a];for(let e of(void 0!==c&&d.push("iat"),void 0!==u&&d.push("aud"),void 0!==l&&d.push("sub"),void 0!==o&&d.push("iss"),new Set(d.reverse())))if(!(e in i))throw new nh(`missing required "${e}" claim`,e,"missing");if(o&&!(Array.isArray(o)?o:[o]).includes(i.iss))throw new nh('unexpected "iss" claim value',"iss","check_failed");if(l&&i.sub!==l)throw new nh('unexpected "sub" claim value',"sub","check_failed");if(u&&!sg(i.aud,"string"==typeof u?[u]:u))throw new nh('unexpected "aud" claim value',"aud","check_failed");switch(typeof r.clockTolerance){case"string":n=sf(r.clockTolerance);break;case"number":n=r.clockTolerance;break;case"undefined":n=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:h}=r,p=sh(h||new Date);if((void 0!==i.iat||c)&&"number"!=typeof i.iat)throw new nh('"iat" claim must be a number',"iat","invalid");if(void 0!==i.nbf){if("number"!=typeof i.nbf)throw new nh('"nbf" claim must be a number',"nbf","invalid");if(i.nbf>p+n)throw new nh('"nbf" claim timestamp check failed',"nbf","check_failed")}if(void 0!==i.exp){if("number"!=typeof i.exp)throw new nh('"exp" claim must be a number',"exp","invalid");if(i.exp<=p-n)throw new np('"exp" claim timestamp check failed',"exp","check_failed")}if(c){let e=p-i.iat;if(e-n>("number"==typeof c?c:sf(c)))throw new np('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed");if(e<0-n)throw new nh('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}return i};async function sv(e,t,r){let i=await sa(e,t,r),n=sy(i.protectedHeader,i.plaintext,r),{protectedHeader:s}=i;if(void 0!==s.iss&&s.iss!==n.iss)throw new nh('replicated "iss" claim header parameter mismatch',"iss","mismatch");if(void 0!==s.sub&&s.sub!==n.sub)throw new nh('replicated "sub" claim header parameter mismatch',"sub","mismatch");if(void 0!==s.aud&&JSON.stringify(s.aud)!==JSON.stringify(n.aud))throw new nh('replicated "aud" claim header parameter mismatch',"aud","mismatch");let a={payload:n,protectedHeader:s};return"function"==typeof t?{...a,key:i.key}:a}class sb{constructor(e){this._flattened=new sd(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(".")}}function sw(e,t){if(!Number.isFinite(t))throw TypeError(`Invalid ${e} input`);return t}class s_{constructor(e={}){if(!nM(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:sw("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:sw("setNotBefore",sh(e))}:this._payload={...this._payload,nbf:sh(new Date)+sf(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:sw("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:sw("setExpirationTime",sh(e))}:this._payload={...this._payload,exp:sh(new Date)+sf(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:sh(new Date)}:e instanceof Date?this._payload={...this._payload,iat:sw("setIssuedAt",sh(e))}:"string"==typeof e?this._payload={...this._payload,iat:sw("setIssuedAt",sh(new Date)+sf(e))}:this._payload={...this._payload,iat:sw("setIssuedAt",e)},this}}class sS extends s_{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 sb(i7.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)}}let sx=(e,t)=>{if("string"!=typeof e||!e)throw new nb(`${t} missing or invalid`)};async function sk(e,t){let r;if(!nM(e))throw TypeError("JWK must be an object");if(t??(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":sx(e.crv,'"crv" (Curve) Parameter'),sx(e.x,'"x" (X Coordinate) Parameter'),sx(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":sx(e.crv,'"crv" (Subtype of Key Pair) Parameter'),sx(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":sx(e.e,'"e" (Exponent) Parameter'),sx(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":sx(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new nm('"kty" (Key Type) Parameter missing or unsupported')}let i=i7.encode(JSON.stringify(r));return nl(await i9(t,i))}"undefined"!=typeof navigator&&navigator.userAgent?.startsWith?.("Mozilla/5.0 ");var sE=r(6076);let sA=()=>Date.now()/1e3|0,sT="A256CBC-HS512";async function sC(e){let{token:t={},secret:r,maxAge:i=2592e3,salt:n}=e,s=Array.isArray(r)?r:[r],a=await sP(sT,s[0],n),o=await sk({kty:"oct",k:nl(a)},`sha${a.byteLength<<3}`);return await new sS(t).setProtectedHeader({alg:"dir",enc:sT,kid:o}).setIssuedAt().setExpirationTime(sA()+i).setJti(crypto.randomUUID()).encrypt(a)}async function sO(e){let{token:t,secret:r,salt:i}=e,n=Array.isArray(r)?r:[r];if(!t)return null;let{payload:s}=await sv(t,async({kid:e,enc:t})=>{for(let r of n){let n=await sP(t,r,i);if(void 0===e||e===await sk({kty:"oct",k:nl(n)},`sha${n.byteLength<<3}`))return n}throw Error("no matching decryption secret")},{clockTolerance:15,keyManagementAlgorithms:["dir"],contentEncryptionAlgorithms:[sT,"A256GCM"]});return s}async function sP(e,t,r){let i;switch(e){case"A256CBC-HS512":i=64;break;case"A256GCM":i=32;break;default:throw Error("Unsupported JWT Content Encryption Algorithm")}return await i5("sha256",t,r,`Auth.js Generated Encryption Key (${r})`,i)}async function s$({options:e,paramValue:t,cookieValue:r}){let{url:i,callbacks:n}=e,s=i.origin;return t?s=await n.redirect({url:t,baseUrl:i.origin}):r&&(s=await n.redirect({url:r,baseUrl:i.origin})),{callbackUrl:s,callbackUrlCookie:s!==r?s:void 0}}let sN=["providers","session","csrf","signin","signout","callback","verify-request","error","webauthn-options"];async function sR(e){if(!("body"in e)||!e.body||"POST"!==e.method)return;let t=e.headers.get("content-type");return t?.includes("application/json")?await e.json():t?.includes("application/x-www-form-urlencoded")?Object.fromEntries(new URLSearchParams(await e.text())):void 0}async function sI(e,t){try{if("GET"!==e.method&&"POST"!==e.method)throw new iD("Only GET and POST requests are supported.");t.basePath??(t.basePath="/auth");let r=new URL(e.url),{action:i,providerId:n}=function(e,t){let r=e.match(RegExp(`^${t}(.+)`));if(null===r)throw new iD(`Cannot parse action at ${e}`);let[i,n]=r,s=n.replace(/^\//,"").split("/");if(1!==s.length&&2!==s.length)throw new iD(`Cannot parse action at ${e}`);let[a,o]=s;if(!sN.includes(a)||o&&!["signin","callback","webauthn-options"].includes(a))throw new iD(`Cannot parse action at ${e}`);return{action:a,providerId:o}}(r.pathname,t.basePath);return{url:r,action:i,providerId:n,method:e.method,headers:Object.fromEntries(e.headers),body:e.body?await sR(e):void 0,cookies:(0,sE.Q)(e.headers.get("cookie")??"")??{},error:r.searchParams.get("error")??void 0,query:Object.fromEntries(r.searchParams)}}catch(e){return e}}function sj(e){let t=new Headers(e.headers);e.cookies?.forEach(e=>{let{name:r,value:i,options:n}=e,s=sE.q(r,i,n);t.has("Set-Cookie")?t.append("Set-Cookie",s):t.set("Set-Cookie",s)});let r=e.body;"application/json"===t.get("content-type")?r=JSON.stringify(e.body):"application/x-www-form-urlencoded"===t.get("content-type")&&(r=new URLSearchParams(e.body).toString());let i=e.redirect?302:e.status??200,n=new Response(r,{headers:t,status:i});return e.redirect&&n.headers.set("Location",e.redirect),n}async function sL(e){let t=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(r)).map(e=>e.toString(16).padStart(2,"0")).join("").toString()}function sD(e){let t=e=>("0"+e.toString(16)).slice(-2);return Array.from(crypto.getRandomValues(new Uint8Array(e))).reduce((e,r)=>e+t(r),"")}async function sM({options:e,cookieValue:t,isPost:r,bodyValue:i}){if(t){let[n,s]=t.split("|");if(s===await sL(`${n}${e.secret}`))return{csrfTokenVerified:r&&n===i,csrfToken:n}}let n=sD(32),s=await sL(`${n}${e.secret}`);return{cookie:`${n}|${s}`,csrfToken:n}}function sU(e,t){if(!t)throw new iB(`CSRF token was missing during an action ${e}.`)}function sq(e){return e&&"object"==typeof e&&!Array.isArray(e)}function sQ(e,...t){if(!t.length)return e;let r=t.shift();if(sq(e)&&sq(r))for(let t in r)sq(r[t])?(e[t]||Object.assign(e,{[t]:{}}),sQ(e[t],r[t])):Object.assign(e,{[t]:r[t]});return sQ(e,...t)}let sB=e=>sK({id:e.sub??e.id??crypto.randomUUID(),name:e.name??e.nickname??e.preferred_username,email:e.email,image:e.picture}),sH=e=>sK({access_token:e.access_token,id_token:e.id_token,refresh_token:e.refresh_token,expires_at:e.expires_at,scope:e.scope,token_type:e.token_type,session_state:e.session_state});function sK(e){let t={};for(let[r,i]of Object.entries(e))void 0!==i&&(t[r]=i);return t}function sF(e,t){if(!e&&t)return;if("string"==typeof e)return{url:new URL(e)};let r=new URL(e?.url??"https://authjs.dev");if(e?.params!=null)for(let[t,i]of Object.entries(e.params))"claims"===t&&(i=JSON.stringify(i)),r.searchParams.set(t,String(i));return{url:r,request:e?.request,conform:e?.conform}}let sV="\x1b[31m",sW="\x1b[0m",sz={error(e){let t=e instanceof ip?e.type:e.name;if(console.error(`${sV}[auth][error]${sW} ${t}: ${e.message}`),e.cause&&"object"==typeof e.cause&&"err"in e.cause&&e.cause.err instanceof Error){let{err:t,...r}=e.cause;console.error(`${sV}[auth][cause]${sW}:`,t.stack),r&&console.error(`${sV}[auth][details]${sW}:`,JSON.stringify(r,null,2))}else e.stack&&console.error(e.stack.replace(/.*/,"").substring(1))},warn(e){let t=`https://warnings.authjs.dev#${e}`;console.warn(`[auth][warn][${e}]${sW}`,`Read more: ${t}`)},debug(e,t){console.log(`[auth][debug]:${sW} ${e}`,JSON.stringify(t,null,2))}},sJ={signIn:()=>!0,redirect:({url:e,baseUrl:t})=>e.startsWith("/")?`${t}${e}`:new URL(e).origin===t?e:t,session:({session:e})=>({user:{name:e.user?.name,email:e.user?.email,image:e.user?.image},expires:e.expires?.toISOString?.()??e.expires}),jwt:({token:e})=>e};async function sZ({authOptions:e,providerId:t,action:r,url:i,cookies:n,callbackUrl:s,csrfToken:a,csrfDisabled:o,isPost:l}){var u;let{providers:c,provider:d}=function(e){let{providerId:t,options:r}=e,i=new URL(r.basePath??"/auth",e.url.origin),n=e.providers.map(e=>{let t="function"==typeof e?e():e,{options:n,...s}=t,a=n?.id??s.id,o=sQ(s,n,{signinUrl:`${i}/signin/${a}`,callbackUrl:`${i}/callback/${a}`});return"oauth"===t.type||"oidc"===t.type?(o.redirectProxyUrl??(o.redirectProxyUrl=r.redirectProxyUrl),function(e){e.issuer&&(e.wellKnown??(e.wellKnown=`${e.issuer}/.well-known/openid-configuration`));let t=sF(e.authorization,e.issuer);t&&!t.url?.searchParams.has("scope")&&t.url.searchParams.set("scope","openid profile email");let r=sF(e.token,e.issuer),i=sF(e.userinfo,e.issuer),n=e.checks??["pkce"];return e.redirectProxyUrl&&(n.includes("state")||n.push("state"),e.redirectProxyUrl=`${e.redirectProxyUrl}/callback/${e.id}`),{...e,authorization:t,token:r,checks:n,userinfo:i,profile:e.profile??sB,account:e.account??sH}}(o)):o});return{providers:n,provider:n.find(({id:e})=>e===t)}}({providers:e.providers,url:i,providerId:t,options:e}),h=!1;if((d?.type==="oauth"||d?.type==="oidc")&&d.redirectProxyUrl)try{h=new URL(d.redirectProxyUrl).origin===i.origin}catch{throw TypeError(`redirectProxyUrl must be a valid URL. Received: ${d.redirectProxyUrl}`)}let p={debug:!1,pages:{},theme:{colorScheme:"auto",logo:"",brandColor:"",buttonText:""},...e,url:i,action:r,provider:d,cookies:sQ(id(e.useSecureCookies??"https:"===i.protocol),e.cookies),providers:c,session:{strategy:e.adapter?"database":"jwt",maxAge:2592e3,updateAge:86400,generateSessionToken:()=>crypto.randomUUID(),...e.session},jwt:{secret:e.secret,maxAge:e.session?.maxAge??2592e3,encode:sC,decode:sO,...e.jwt},events:Object.keys(u=e.events??{}).reduce((e,t)=>(e[t]=async(...e)=>{try{let r=u[t];return await r(...e)}catch(e){sz.error(new iw(e))}},e),{}),adapter:function(e,t){if(e)return Object.keys(e).reduce((r,i)=>(r[i]=async(...r)=>{try{t.debug(`adapter_${i}`,{args:r});let n=e[i];return await n(...r)}catch(r){let e=new ig(r);throw t.error(e),e}},r),{})}(e.adapter,sz),callbacks:{...sJ,...e.callbacks},logger:sz,callbackUrl:i.origin,isOnRedirectProxy:h,experimental:{...e.experimental}},f=[];if(o)p.csrfTokenVerified=!0;else{let{csrfToken:e,cookie:t,csrfTokenVerified:r}=await sM({options:p,cookieValue:n?.[p.cookies.csrfToken.name],isPost:l,bodyValue:a});p.csrfToken=e,p.csrfTokenVerified=r,t&&f.push({name:p.cookies.csrfToken.name,value:t,options:p.cookies.csrfToken.options})}let{callbackUrl:m,callbackUrlCookie:g}=await s$({options:p,cookieValue:n?.[p.cookies.callbackUrl.name],paramValue:s});return p.callbackUrl=m,g&&f.push({name:p.cookies.callbackUrl.name,value:g,options:p.cookies.callbackUrl.options}),{options:p,cookies:f}}var sG,sX,sY,s0,s1,s6,s2,s4,s5,s3,s8,s9,s7,ae,at,ar={},ai=[],an=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function as(e,t){for(var r in t)e[r]=t[r];return e}function aa(e){var t=e.parentNode;t&&t.removeChild(e)}function ao(e,t,r,i,n){var s={type:e,props:t,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==n?++s7:n};return null==n&&null!=s9.vnode&&s9.vnode(s),s}function al(e){return e.children}function au(e,t){this.props=e,this.context=t}function ac(e,t){if(null==t)return e.__?ac(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t0?ao(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)){if(p.__=r,p.__b=r.__b+1,null===(h=y[c])||h&&p.key==h.key&&p.type===h.type)y[c]=void 0;else for(d=0;d2&&(a.children=arguments.length>3?s8.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return ao(e,a,i,n,null)}(al,null,[r]),n||ar,ar,void 0!==t.ownerSVGElement,!i&&ax?[ax]:n?null:t.firstChild?s8.call(t.childNodes):null,s,!i&&ax?ax:n?n.__e:t.firstChild,i),aw(s,r)}s8=ai.slice,s9={__e:function(e,t,r,i){for(var n,s,a;t=t.__;)if((n=t.__c)&&!n.__)try{if((s=n.constructor)&&null!=s.getDerivedStateFromError&&(n.setState(s.getDerivedStateFromError(e)),a=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e,i||{}),a=n.__d),a)return n.__E=n}catch(t){e=t}throw e}},s7=0,au.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=as({},this.state),"function"==typeof e&&(e=e(as({},r),this.props)),e&&as(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),ad(this))},au.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ad(this))},au.prototype.render=al,ae=[],ah.__r=0;var ak=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,aE=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,aA=/[\s\n\\/='"\0<>]/,aT=/^xlink:?./,aC=/["&<]/;function aO(e){if(!1===aC.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("<")},aN={},aR=/([A-Z])/g;function aI(e){var t="";for(var r in e){var i=e[r];null!=i&&""!==i&&(t&&(t+=" "),t+="-"==r[0]?r:aN[r]||(aN[r]=r.replace(aR,"-$1").toLowerCase()),t="number"==typeof i&&!1===ak.test(r)?t+": "+i+"px;":t+": "+i+";")}return t||void 0}function aj(e,t){return Array.isArray(t)?t.reduce(aj,e):null!=t&&!1!==t&&e.push(t),e}function aL(){this.__d=!0}function aD(e,t){return{__v:e,context:t,props:e.props,setState:aL,forceUpdate:aL,__d:!0,__h:[]}}function aM(e,t){var r=e.contextType,i=r&&t[r.__c];return null!=r?i?i.props.value:r.__:t}var aU=[],aq={shallow:!0};aB.render=aB;var aQ=[];function aB(e,t,r){t=t||{};var i,n=s9.__s;return s9.__s=!0,i=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?function e(t,r,i,n,s,a){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return aO(t);var o=i.pretty,l=o&&"string"==typeof o?o:" ";if(Array.isArray(t)){for(var u="",c=0;c0&&(u+="\n"),u+=e(t[c],r,i,n,s,a);return u}var d,h=t.type,p=t.props,f=!1;if("function"==typeof h){if(f=!0,!i.shallow||!n&&!1!==i.renderRootComponent){if(h===al){var m=[];return aj(m,t.props.children),e(m,r,i,!1!==i.shallowHighOrder,s,a)}var g,y=t.__c=aD(t,r);s9.__b&&s9.__b(t);var v=s9.__r;if(h.prototype&&"function"==typeof h.prototype.render){var b=aM(h,r);(y=t.__c=new h(p,b)).__v=t,y._dirty=y.__d=!0,y.props=p,null==y.state&&(y.state={}),null==y._nextState&&null==y.__s&&(y._nextState=y.__s=y.state),y.context=b,h.getDerivedStateFromProps?y.state=Object.assign({},y.state,h.getDerivedStateFromProps(y.props,y.state)):y.componentWillMount&&(y.componentWillMount(),y.state=y._nextState!==y.state?y._nextState:y.__s!==y.state?y.__s:y.state),v&&v(t),g=y.render(y.props,y.state,y.context)}else for(var w=aM(h,r),_=0;y.__d&&_++<25;)y.__d=!1,v&&v(t),g=h.call(t.__c,p,w);return y.getChildContext&&(r=Object.assign({},r,y.getChildContext())),s9.diffed&&s9.diffed(t),e(g,r,i,!1!==i.shallowHighOrder,s,a)}h=(d=h).displayName||d!==Function&&d.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,i=aU.length;i--;)if(aU[i]===e){r=i;break}r<0&&(r=aU.push(e)-1),t="UnnamedComponent"+r}return t}(d)}var S,x,k="<"+h;if(p){var E=Object.keys(p);i&&!0===i.sortAttributes&&E.sort();for(var A=0;A",aA.test(h))throw Error(h+" is not a valid HTML tag name in "+k);var $,N=aE.test(h)||i.voidElements&&i.voidElements.test(h),R=[];if(x)o&&a$(x)&&(x="\n"+l+aP(x,l)),k+=x;else if(null!=S&&aj($=[],S).length){for(var I=o&&~k.indexOf("\n"),j=!1,L=0;L<$.length;L++){var D=$[L];if(null!=D&&!1!==D){var M=e(D,r,i,!0,"svg"===h||"foreignObject"!==h&&s,a);if(o&&!I&&a$(M)&&(I=!0),M){if(o){var U=M.length>0&&"<"!=M[0];j&&U?R[R.length-1]+=M:R.push(M),j=U}else R.push(M)}}}if(o&&I)for(var q=R.length;q--;)R[q]="\n"+l+aP(R[q],l)}if(R.length||x)k+=R.join("");else if(i&&i.xml)return k.substring(0,k.length-1)+" />";return!N||$||x?(o&&~k.indexOf("\n")&&(k+="\n"),k=k+""):k=k.replace(/>$/," />"),k}(e,t,r):function e(t,r,i,n){if(null==t||!0===t||!1===t||""===t)return"";if("object"!=typeof t)return aO(t);if(aH(t)){for(var s="",a=0;a",aA.test(o))throw Error(o+" is not a valid HTML tag name in "+b);var A="",T=!1;if(v)A+=v,T=!0;else if("string"==typeof y)A+=aO(y),T=!0;else if(aH(y))for(var C=0;C";return b+""}(e,t,!1,void 0),s9.__c&&s9.__c(e,aQ),s9.__s=n,aQ.length=0,i}var aH=Array.isArray,aK=Object.assign;aB.shallowRender=function(e,t){return aB(e,t,aq)};var aF=0;function aV(e,t,r,i,n){var s,a,o={};for(a in t)"ref"==a?s=t[a]:o[a]=t[a];var l={type:e,props:o,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--aF,__source:n,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(a in s)void 0===o[a]&&(o[a]=s[a]);return s9.vnode&&s9.vnode(l),l}async function aW(e,t){let r=window.SimpleWebAuthnBrowser;async function i(r){let i=new URL(`${e}/webauthn-options/${t}`);r&&i.searchParams.append("action",r),s().forEach(e=>{i.searchParams.append(e.name,e.value)});let n=await fetch(i);if(!n.ok){console.error("Failed to fetch options",n);return}return n.json()}function n(){let e=`#${t}-form`,r=document.querySelector(e);if(!r)throw Error(`Form '${e}' not found`);return r}function s(){return Array.from(n().querySelectorAll("input[data-form-field]"))}async function a(e,t){let r=n();if(e){let t=document.createElement("input");t.type="hidden",t.name="action",t.value=e,r.appendChild(t)}if(t){let e=document.createElement("input");e.type="hidden",e.name="data",e.value=JSON.stringify(t),r.appendChild(e)}return r.submit()}async function o(e,t){let i=await r.startAuthentication(e,t);return await a("authenticate",i)}async function l(e){s().forEach(e=>{if(e.required&&!e.value)throw Error(`Missing required field: ${e.name}`)});let t=await r.startRegistration(e);return await a("register",t)}async function u(){if(!r.browserSupportsWebAuthnAutofill())return;let e=await i("authenticate");if(!e){console.error("Failed to fetch option for autofill authentication");return}try{await o(e.options,!0)}catch(e){console.error(e)}}(async function(){let e=n();if(!r.browserSupportsWebAuthn()){e.style.display="none";return}e&&e.addEventListener("submit",async e=>{e.preventDefault();let t=await i(void 0);if(!t){console.error("Failed to fetch options for form submission");return}if("authenticate"===t.action)try{await o(t.options,!1)}catch(e){console.error(e)}else if("register"===t.action)try{await l(t.options)}catch(e){console.error(e)}})})(),u()}let az={default:"Unable to sign in.",Signin:"Try signing in with a different account.",OAuthSignin:"Try signing in with a different account.",OAuthCallbackError:"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."};function aJ(e,t=1){if(!e)return;3===(e=e.replace(/^#/,"")).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let r=parseInt(e,16);return t=Math.min(Math.max(t,0),1),`rgba(${r>>16&255}, ${r>>8&255}, ${255&r}, ${t})`}let aZ=`: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: rgba(236, 236, 236, 0.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, 0.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, 0.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; + } + + button, + a.button { + color: var(--provider-dark-color, var(--color-primary)); + background-color: var(--provider-dark-bg, var(--color-background)); + } + :is(button,a.button):hover { + background-color: var( + --provider-dark-bg-hover, + var(--color-background-hover) + ) !important; + } + #provider-logo { + display: none !important; + } + #provider-logo-dark { + width: 25px; + display: block !important; + } +} +html { + box-sizing: border-box; +} +*, +*:before, +*:after { + box-sizing: inherit; + margin: 0; + padding: 0; +} + +body { + background-color: var(--color-background); + margin: 0; + padding: 0; + 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"; +} + +h1 { + margin-bottom: 1.5rem; + padding: 0 1rem; + font-weight: 400; + color: var(--color-text); +} + +p { + margin-bottom: 1.5rem; + padding: 0 1rem; + color: var(--color-text); +} + +form { + margin: 0; + padding: 0; +} + +label { + font-weight: 500; + text-align: left; + margin-bottom: 0.25rem; + display: block; + color: var(--color-text); +} + +input[type] { + box-sizing: border-box; + display: block; + width: 100%; + padding: 0.5rem 1rem; + border: var(--border-width) solid var(--color-control-border); + background: var(--color-background-card); + font-size: 1rem; + border-radius: var(--border-radius); + color: var(--color-text); +} + +input[type]:focus { + box-shadow: none; + } + +p { + font-size: 1.1rem; + line-height: 2rem; +} + +a.button { + text-decoration: none; + line-height: 1rem; +} + +a.button:link, + a.button:visited { + background-color: var(--color-background); + color: var(--color-primary); + } + +button span { + flex-grow: 1; +} + +button, +a.button { + padding: 0.75rem 1rem; + color: var(--provider-color, var(--color-primary)); + background-color: var(--provider-bg); + font-size: 1.1rem; + min-height: 62px; + border-color: rgba(0, 0, 0, 0.1); + border-radius: var(--border-radius); + transition: all 0.1s ease-in-out; + font-weight: 500; + position: relative; + display: flex; + align-items: center; + justify-content: center; +} + +:is(button,a.button):hover { + background-color: var(--provider-bg-hover, var(--color-background-hover)); + cursor: pointer; + } + +:is(button,a.button):active { + cursor: pointer; + } + +:is(button,a.button) #provider-logo { + width: 25px; + display: block; + } + +:is(button,a.button) #provider-logo-dark { + display: none; + } + +#submitButton { + color: var(--button-text-color, var(--color-info-text)); + background-color: var(--brand-color, var(--color-info)); + width: 100%; +} + +#submitButton:hover { + background-color: var( + --button-hover-bg, + var(--color-info-hover) + ) !important; + } + +a.site { + color: var(--color-primary); + text-decoration: none; + font-size: 1rem; + line-height: 2rem; +} + +a.site:hover { + text-decoration: underline; + } + +.page { + position: absolute; + width: 100%; + height: 100%; + display: grid; + place-items: center; + margin: 0; + padding: 0; + box-sizing: border-box; +} + +.page > div { + text-align: center; + } + +.error a.button { + padding-left: 2rem; + padding-right: 2rem; + margin-top: 0.5rem; + } + +.error .message { + margin-bottom: 1.5rem; + } + +.signin input[type="text"] { + margin-left: auto; + margin-right: auto; + display: block; + } + +.signin hr { + display: block; + border: 0; + border-top: 1px solid var(--color-separator); + margin: 2rem auto 1rem auto; + overflow: visible; + } + +.signin hr::before { + content: "or"; + background: var(--color-background-card); + color: #888; + padding: 0 0.4rem; + position: relative; + top: -0.7rem; + } + +.signin .error { + background: #f5f5f5; + font-weight: 500; + border-radius: 0.3rem; + background: var(--color-error); + } + +.signin .error p { + text-align: left; + padding: 0.5rem 1rem; + font-size: 0.9rem; + line-height: 1.2rem; + color: var(--color-info-text); + } + +.signin > div, + .signin form { + display: block; + } + +.signin > div input[type], .signin form input[type] { + margin-bottom: 0.5rem; + } + +.signin > div button, .signin form button { + width: 100%; + } + +.signin .provider + .provider { + margin-top: 1rem; + } + +.logo { + display: inline-block; + max-width: 150px; + margin: 1.25rem 0; + max-height: 70px; +} + +.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; + } +} +`;function aG({html:e,title:t,status:r,cookies:i,theme:n,headTags:s}){return{cookies:i,status:r,headers:{"Content-Type":"text/html"},body:`${t}${s??""}
${aB(e)}
`}}function aX(e){let{url:t,theme:r,query:i,cookies:n,pages:s,providers:a}=e;return{csrf:(e,t,r)=>e?(t.logger.warn("csrf-disabled"),r.push({name:t.cookies.csrfToken.name,value:"",options:{...t.cookies.csrfToken.options,maxAge:0}}),{status:404,cookies:r}):{headers:{"Content-Type":"application/json"},body:{csrfToken:t.csrfToken},cookies:r},providers:e=>({headers:{"Content-Type":"application/json"},body:e.reduce((e,{id:t,name:r,type:i,signinUrl:n,callbackUrl:s})=>(e[t]={id:t,name:r,type:i,signinUrl:n,callbackUrl:s},e),{})}),signin(t,o){if(t)throw new iD("Unsupported action");if(s?.signIn){let t=`${s.signIn}${s.signIn.includes("?")?"&":"?"}${new URLSearchParams({callbackUrl:e.callbackUrl??"/"})}`;return o&&(t=`${t}&${new URLSearchParams({error:o})}`),{redirect:t,cookies:n}}let l=a?.find(e=>"webauthn"===e.type&&e.enableConditionalUI&&!!e.simpleWebAuthnBrowserVersion),u="";if(l){let{simpleWebAuthnBrowserVersion:e}=l;u=``}return aG({cookies:n,theme:r,html:function(e){let{csrfToken:t,providers:r=[],callbackUrl:i,theme:n,email:s,error:a}=e;"undefined"!=typeof document&&n?.brandColor&&document.documentElement.style.setProperty("--brand-color",n.brandColor),"undefined"!=typeof document&&n?.buttonText&&document.documentElement.style.setProperty("--button-text-color",n.buttonText);let o=a&&(az[a]??az.default),l="https://authjs.dev/img/providers",u=r.find(e=>"webauthn"===e.type&&e.enableConditionalUI)?.id;return aV("div",{className:"signin",children:[n?.brandColor&&aV("style",{dangerouslySetInnerHTML:{__html:`:root {--brand-color: ${n.brandColor}}`}}),n?.buttonText&&aV("style",{dangerouslySetInnerHTML:{__html:` :root { - --brand-color: ${l.brandColor} + --button-text-color: ${n.buttonText} } - `}}),l.buttonText&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:` + `}}),aV("div",{className:"card",children:[o&&aV("div",{className:"error",children:aV("p",{children:o})}),n?.logo&&aV("img",{src:n.logo,alt:"Logo",className:"logo"}),r.map((e,n)=>{let a,o,u,c,d,h;return("oauth"===e.type||"oidc"===e.type)&&({bg:a="",text:o="",logo:u="",bgDark:d=a,textDark:h=o,logoDark:c=""}=e.style??{},u=u.startsWith("/")?l+u:u,(c=c.startsWith("/")?l+c:c||u)||(c=u)),aV("div",{className:"provider",children:["oauth"===e.type||"oidc"===e.type?aV("form",{action:e.signinUrl,method:"POST",children:[aV("input",{type:"hidden",name:"csrfToken",value:t}),i&&aV("input",{type:"hidden",name:"callbackUrl",value:i}),aV("button",{type:"submit",className:"button",style:{"--provider-bg":a,"--provider-dark-bg":d,"--provider-color":o,"--provider-dark-color":h,"--provider-bg-hover":aJ(a,.8),"--provider-dark-bg-hover":aJ(d,.8)},tabIndex:0,children:[u&&aV("img",{loading:"lazy",height:24,width:24,id:"provider-logo",src:u}),c&&aV("img",{loading:"lazy",height:24,width:24,id:"provider-logo-dark",src:c}),aV("span",{children:["Sign in with ",e.name]})]})]}):null,("email"===e.type||"credentials"===e.type||"webauthn"===e.type)&&n>0&&"email"!==r[n-1].type&&"credentials"!==r[n-1].type&&"webauthn"!==r[n-1].type&&aV("hr",{}),"email"===e.type&&aV("form",{action:e.signinUrl,method:"POST",children:[aV("input",{type:"hidden",name:"csrfToken",value:t}),aV("label",{className:"section-header",htmlFor:`input-email-for-${e.id}-provider`,children:"Email"}),aV("input",{id:`input-email-for-${e.id}-provider`,autoFocus:!0,type:"email",name:"email",value:s,placeholder:"email@example.com",required:!0}),aV("button",{id:"submitButton",type:"submit",tabIndex:0,children:["Sign in with ",e.name]})]}),"credentials"===e.type&&aV("form",{action:e.callbackUrl,method:"POST",children:[aV("input",{type:"hidden",name:"csrfToken",value:t}),Object.keys(e.credentials).map(t=>aV("div",{children:[aV("label",{className:"section-header",htmlFor:`input-${t}-for-${e.id}-provider`,children:e.credentials[t].label??t}),aV("input",{name:t,id:`input-${t}-for-${e.id}-provider`,type:e.credentials[t].type??"text",placeholder:e.credentials[t].placeholder??"",...e.credentials[t]})]},`input-group-${e.id}`)),aV("button",{id:"submitButton",type:"submit",tabIndex:0,children:["Sign in with ",e.name]})]}),"webauthn"===e.type&&aV("form",{action:e.callbackUrl,method:"POST",id:`${e.id}-form`,children:[aV("input",{type:"hidden",name:"csrfToken",value:t}),Object.keys(e.formFields).map(t=>aV("div",{children:[aV("label",{className:"section-header",htmlFor:`input-${t}-for-${e.id}-provider`,children:e.formFields[t].label??t}),aV("input",{name:t,"data-form-field":!0,id:`input-${t}-for-${e.id}-provider`,type:e.formFields[t].type??"text",placeholder:e.formFields[t].placeholder??"",...e.formFields[t]})]},`input-group-${e.id}`)),aV("button",{id:`submitButton-${e.id}`,type:"submit",tabIndex:0,children:["Sign in with ",e.name]})]}),("email"===e.type||"credentials"===e.type||"webauthn"===e.type)&&n+1["email","oauth","oidc"].includes(e.type)||"credentials"===e.type&&e.credentials||"webauthn"===e.type&&e.formFields||!1),callbackUrl:e.callbackUrl,theme:e.theme,error:o,...i}),title:"Sign In",headTags:u})},signout:()=>s?.signOut?{redirect:s.signOut,cookies:n}:aG({cookies:n,theme:r,html:function(e){let{url:t,csrfToken:r,theme:i}=e;return aV("div",{className:"signout",children:[i?.brandColor&&aV("style",{dangerouslySetInnerHTML:{__html:` :root { - --button-text-color: ${l.buttonText} + --brand-color: ${i.brandColor} } - `}}),(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:` + `}}),i?.buttonText&&aV("style",{dangerouslySetInnerHTML:{__html:` :root { - --brand-color: ${n.brandColor} + --button-text-color: ${i.buttonText} } - `}}),n.buttonText&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:` + `}}),aV("div",{className:"card",children:[i?.logo&&aV("img",{src:i.logo,alt:"Logo",className:"logo"}),aV("h1",{children:"Signout"}),aV("p",{children:"Are you sure you want to sign out?"}),aV("form",{action:t?.toString(),method:"POST",children:[aV("input",{type:"hidden",name:"csrfToken",value:r}),aV("button",{id:"submitButton",type:"submit",children:"Sign out"})]})]})]})}({csrfToken:e.csrfToken,url:t,theme:r}),title:"Sign Out"}),verifyRequest:e=>s?.verifyRequest?{redirect:s.verifyRequest,cookies:n}:aG({cookies:n,theme:r,html:function(e){let{url:t,theme:r}=e;return aV("div",{className:"verify-request",children:[r.brandColor&&aV("style",{dangerouslySetInnerHTML:{__html:` :root { - --button-text-color: ${n.buttonText} + --brand-color: ${r.brandColor} } - `}}),(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:` + `}}),aV("div",{className:"card",children:[r.logo&&aV("img",{src:r.logo,alt:"Logo",className:"logo"}),aV("h1",{children:"Check your email"}),aV("p",{children:"A sign in link has been sent to your email address."}),aV("p",{children:aV("a",{className:"site",href:t.origin,children:t.host})})]})]})}({url:t,theme:r,...e}),title:"Verify Request"}),error:e=>s?.error?{redirect:`${s.error}${s.error.includes("?")?"&":"?"}error=${e}`,cookies:n}:aG({cookies:n,theme:r,...function(e){let{url:t,error:r="default",theme:i}=e,n=`${t}/signin`,s={default:{status:200,heading:"Error",message:aV("p",{children:aV("a",{className:"site",href:t?.origin,children:t?.host})})},Configuration:{status:500,heading:"Server error",message:aV("div",{children:[aV("p",{children:"There is a problem with the server configuration."}),aV("p",{children:"Check the server logs for more information."})]})},AccessDenied:{status:403,heading:"Access Denied",message:aV("div",{children:[aV("p",{children:"You do not have permission to sign in."}),aV("p",{children:aV("a",{className:"button",href:n,children:"Sign in"})})]})},Verification:{status:403,heading:"Unable to sign in",message:aV("div",{children:[aV("p",{children:"The sign in link is no longer valid."}),aV("p",{children:"It may have been used already or it may have expired."})]}),signin:aV("a",{className:"button",href:n,children:"Sign in"})}},{status:a,heading:o,message:l,signin:u}=s[r]??s.default;return{status:a,html:aV("div",{className:"error",children:[i?.brandColor&&aV("style",{dangerouslySetInnerHTML:{__html:` :root { - --brand-color: ${r.brandColor} + --brand-color: ${i?.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 + `}}),aV("div",{className:"card",children:[i?.logo&&aV("img",{src:i?.logo,alt:"Logo",className:"logo"}),aV("h1",{children:o}),aV("div",{className:"message",children:l}),u]})]})}}({url:t,theme:r,error:e}),title:"Error"})}}function aY(e,t=Date.now()){return new Date(t+1e3*e)}async function a0(e,t,r,i){if(!r?.providerAccountId||!r.type)throw Error("Missing or invalid provider account");if(!["email","oauth","oidc","webauthn"].includes(r.type))throw Error("Provider not supported");let{adapter:n,jwt:s,events:a,session:{strategy:o,generateSessionToken:l}}=i;if(!n)return{user:t,account:r};let u=r,{createUser:c,updateUser:d,getUser:h,getUserByAccount:p,getUserByEmail:f,linkAccount:m,createSession:g,getSessionAndUser:y,deleteSession:v}=n,b=null,w=null,_=!1,S="jwt"===o;if(e){if(S)try{let t=i.cookies.sessionToken.name;(b=await s.decode({...s,token:e,salt:t}))&&"sub"in b&&b.sub&&(w=await h(b.sub))}catch{}else{let t=await y(e);t&&(b=t.session,w=t.user)}}if("email"===u.type){let r=await f(t.email);return r?(w?.id!==r.id&&!S&&e&&await v(e),w=await d({id:r.id,emailVerified:new Date}),await a.updateUser?.({user:w})):(w=await c({...t,emailVerified:new Date}),await a.createUser?.({user:w}),_=!0),{session:b=S?{}:await g({sessionToken:l(),userId:w.id,expires:aY(i.session.maxAge)}),user:w,isNewUser:_}}if("webauthn"===u.type){let e=await p({providerAccountId:u.providerAccountId,provider:u.provider});if(e){if(w){if(e.id===w.id){let e={...u,userId:w.id};return{session:b,user:w,isNewUser:_,account:e}}throw new iV("The account is already associated with another user",{provider:u.provider})}b=S?{}:await g({sessionToken:l(),userId:e.id,expires:aY(i.session.maxAge)});let t={...u,userId:e.id};return{session:b,user:e,isNewUser:_,account:t}}{if(w){await m({...u,userId:w.id}),await a.linkAccount?.({user:w,account:u,profile:t});let e={...u,userId:w.id};return{session:b,user:w,isNewUser:_,account:e}}if(t.email?await f(t.email):null)throw new iV("Another account already exists with the same e-mail address",{provider:u.provider});w=await c({...t}),await a.createUser?.({user:w}),await m({...u,userId:w.id}),await a.linkAccount?.({user:w,account:u,profile:t}),b=S?{}:await g({sessionToken:l(),userId:w.id,expires:aY(i.session.maxAge)});let e={...u,userId:w.id};return{session:b,user:w,isNewUser:!0,account:e}}}let x=await p({providerAccountId:u.providerAccountId,provider:u.provider});if(x){if(w){if(x.id===w.id)return{session:b,user:w,isNewUser:_};throw new iP("The account is already associated with another user",{provider:u.provider})}return{session:b=S?{}:await g({sessionToken:l(),userId:x.id,expires:aY(i.session.maxAge)}),user:x,isNewUser:_}}{let{provider:e}=i,{type:r,provider:n,providerAccountId:s,userId:o,...d}=u;if(u=Object.assign(e.account(d)??{},{providerAccountId:s,provider:n,type:r,userId:o}),w)return await m({...u,userId:w.id}),await a.linkAccount?.({user:w,account:u,profile:t}),{session:b,user:w,isNewUser:_};let h=t.email?await f(t.email):null;if(h){let e=i.provider;if(e?.allowDangerousEmailAccountLinking)w=h;else throw new iP("Another account already exists with the same e-mail address",{provider:u.provider})}else w=await c({...t,emailVerified:null});return await a.createUser?.({user:w}),await m({...u,userId:w.id}),await a.linkAccount?.({user:w,account:u,profile:t}),{session:b=S?{}:await g({sessionToken:l(),userId:w.id,expires:aY(i.session.maxAge)}),user:w,isNewUser:!0}}}function a1(e,t){if(null==e)return!1;try{return e instanceof t||Object.getPrototypeOf(e)[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}catch{return!1}}"undefined"!=typeof navigator&&navigator.userAgent?.startsWith?.("Mozilla/5.0 ")||(s="oauth4webapi/v2.10.3");let a6=Symbol(),a2=Symbol(),a4=Symbol(),a5=Symbol(),a3=new TextEncoder,a8=new TextDecoder;function a9(e){return"string"==typeof e?a3.encode(e):a8.decode(e)}function a7(e){return"string"==typeof e?function(e){try{let t=atob(e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"")),r=new Uint8Array(t.length);for(let e=0;e=this.maxSize&&(this._cache=this.cache,this.cache=new Map)}}class ot extends Error{constructor(e){super(e??"operation not supported"),this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}class or extends Error{constructor(e,t){super(e,t),this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}let oi=or,on=new oe(100);function os(e){return e instanceof CryptoKey}function oa(e){return os(e)&&"private"===e.type}function oo(e){try{let t=e.headers.get("dpop-nonce");t&&on.set(new URL(e.url).origin,t)}catch{}return e}function ol(e){return!(null===e||"object"!=typeof e||Array.isArray(e))}function ou(e){a1(e,Headers)&&(e=Object.fromEntries(e.entries()));let t=new Headers(e);if(s&&!t.has("user-agent")&&t.set("user-agent",s),t.has("authorization"))throw TypeError('"options.headers" must not include the "authorization" header name');if(t.has("dpop"))throw TypeError('"options.headers" must not include the "dpop" header name');return t}function oc(e){if("function"==typeof e&&(e=e()),!(e instanceof AbortSignal))throw TypeError('"options.signal" must return or be an instance of AbortSignal');return e}async function od(e,t){if(!(e instanceof URL))throw TypeError('"issuerIdentifier" must be an instance of URL');if("https:"!==e.protocol&&"http:"!==e.protocol)throw TypeError('"issuer.protocol" must be "https:" or "http:"');let r=new URL(e.href);switch(t?.algorithm){case void 0:case"oidc":r.pathname=`${r.pathname}/.well-known/openid-configuration`.replace("//","/");break;case"oauth2":"/"===r.pathname?r.pathname=".well-known/oauth-authorization-server":r.pathname=`.well-known/oauth-authorization-server/${r.pathname}`.replace("//","/");break;default:throw TypeError('"options.algorithm" must be "oidc" (default), or "oauth2"')}let i=ou(t?.headers);return i.set("accept","application/json"),(t?.[a4]||fetch)(r.href,{headers:Object.fromEntries(i.entries()),method:"GET",redirect:"manual",signal:t?.signal?oc(t.signal):null}).then(oo)}function oh(e){return"string"==typeof e&&0!==e.length}async function op(e,t){let r;if(!(e instanceof URL))throw TypeError('"expectedIssuer" must be an instance of URL');if(!a1(t,Response))throw TypeError('"response" must be an instance of Response');if(200!==t.status)throw new oi('"response" is not a conform Authorization Server Metadata response');o0(t);try{r=await t.json()}catch(e){throw new oi('failed to parse "response" body as JSON',{cause:e})}if(!ol(r))throw new oi('"response" body must be a top level object');if(!oh(r.issuer))throw new oi('"response" body "issuer" property must be a non-empty string');if(new URL(r.issuer).href!==e.href)throw new oi('"response" body "issuer" does not match "expectedIssuer"');return r}function of(){return a7(crypto.getRandomValues(new Uint8Array(32)))}async function om(e){if(!oh(e))throw TypeError('"codeVerifier" must be a non-empty string');return a7(await crypto.subtle.digest("SHA-256",a9(e)))}function og(e){return encodeURIComponent(e).replace(/%20/g,"+")}function oy(e){switch(e.algorithm.name){case"RSA-PSS":return function(e){switch(e.algorithm.hash.name){case"SHA-256":return"PS256";case"SHA-384":return"PS384";case"SHA-512":return"PS512";default:throw new ot("unsupported RsaHashedKeyAlgorithm hash name")}}(e);case"RSASSA-PKCS1-v1_5":return function(e){switch(e.algorithm.hash.name){case"SHA-256":return"RS256";case"SHA-384":return"RS384";case"SHA-512":return"RS512";default:throw new ot("unsupported RsaHashedKeyAlgorithm hash name")}}(e);case"ECDSA":return function(e){switch(e.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512";default:throw new ot("unsupported EcKeyAlgorithm namedCurve")}}(e);case"Ed25519":case"Ed448":return"EdDSA";default:throw new ot("unsupported CryptoKey algorithm name")}}function ov(e){let t=e?.[a6];return"number"==typeof t&&Number.isFinite(t)?t:0}function ob(e){let t=e?.[a2];return"number"==typeof t&&Number.isFinite(t)&&-1!==Math.sign(t)?t:30}function ow(){return Math.floor(Date.now()/1e3)}async function o_(e,t,r,i){return oC({alg:oy(r),kid:i},function(e,t){let r=ow()+ov(t);return{jti:of(),aud:[e.issuer,e.token_endpoint],exp:r+60,iat:r,nbf:r,iss:t.client_id,sub:t.client_id}}(e,t),r)}function oS(e){if("object"!=typeof e||null===e)throw TypeError('"as" must be an object');if(!oh(e.issuer))throw TypeError('"as.issuer" property must be a non-empty string');return!0}function ox(e){if("object"!=typeof e||null===e)throw TypeError('"client" must be an object');if(!oh(e.client_id))throw TypeError('"client.client_id" property must be a non-empty string');return!0}function ok(e){if(!oh(e))throw TypeError('"client.client_secret" property must be a non-empty string');return e}function oE(e,t){if(void 0!==t)throw TypeError(`"options.clientPrivateKey" property must not be provided when ${e} client authentication method is used.`)}function oA(e,t){if(void 0!==t)throw TypeError(`"client.client_secret" property must not be provided when ${e} client authentication method is used.`)}async function oT(e,t,r,i,n){switch(r.delete("client_secret"),r.delete("client_assertion_type"),r.delete("client_assertion"),t.token_endpoint_auth_method){case void 0:case"client_secret_basic":oE("client_secret_basic",n),i.set("authorization",function(e,t){let r=og(e),i=og(t),n=btoa(`${r}:${i}`);return`Basic ${n}`}(t.client_id,ok(t.client_secret)));break;case"client_secret_post":oE("client_secret_post",n),r.set("client_id",t.client_id),r.set("client_secret",ok(t.client_secret));break;case"private_key_jwt":{if(oA("private_key_jwt",t.client_secret),void 0===n)throw TypeError('"options.clientPrivateKey" must be provided when "client.token_endpoint_auth_method" is "private_key_jwt"');let{key:i,kid:s}=function(e){if(e instanceof CryptoKey)return{key:e};if(!(e?.key instanceof CryptoKey))return{};if(void 0!==e.kid&&!oh(e.kid))throw TypeError('"kid" must be a non-empty string');return{key:e.key,kid:e.kid}}(n);if(!oa(i))throw TypeError('"options.clientPrivateKey.key" must be a private CryptoKey');r.set("client_id",t.client_id),r.set("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),r.set("client_assertion",await o_(e,t,i,s));break}case"tls_client_auth":case"self_signed_tls_client_auth":case"none":oA(t.token_endpoint_auth_method,t.client_secret),oE(t.token_endpoint_auth_method,n),r.set("client_id",t.client_id);break;default:throw new ot("unsupported client token_endpoint_auth_method")}}async function oC(e,t,r){if(!r.usages.includes("sign"))throw TypeError('CryptoKey instances used for signing assertions must include "sign" in their "usages"');let i=`${a7(a9(JSON.stringify(e)))}.${a7(a9(JSON.stringify(t)))}`,n=a7(await crypto.subtle.sign(o2(r),r,a9(i)));return`${i}.${n}`}async function oO(e,t,r,i,n,s){let{privateKey:a,publicKey:o,nonce:l=on.get(r.origin)}=t;if(!oa(a))throw TypeError('"DPoP.privateKey" must be a private CryptoKey');if(!(os(o)&&"public"===o.type))throw TypeError('"DPoP.publicKey" must be a public CryptoKey');if(void 0!==l&&!oh(l))throw TypeError('"DPoP.nonce" must be a non-empty string or undefined');if(!o.extractable)throw TypeError('"DPoP.publicKey.extractable" must be true');let u=ow()+n,c=await oC({alg:oy(a),typ:"dpop+jwt",jwk:await o$(o)},{iat:u,jti:of(),htm:i,nonce:l,htu:`${r.origin}${r.pathname}`,ath:s?a7(await crypto.subtle.digest("SHA-256",a9(s))):void 0},a);e.set("dpop",c)}async function oP(e){let{kty:t,e:r,n:i,x:n,y:s,crv:o}=await crypto.subtle.exportKey("jwk",e),l={kty:t,e:r,n:i,x:n,y:s,crv:o};return a.set(e,l),l}async function o$(e){return a||(a=new WeakMap),a.get(e)||oP(e)}function oN(e,t,r){if("string"!=typeof e){if(r?.[a5])throw TypeError(`"as.mtls_endpoint_aliases.${t}" must be a string`);throw TypeError(`"as.${t}" must be a string`)}return new URL(e)}function oR(e,t,r){return r?.[a5]&&e.mtls_endpoint_aliases&&t in e.mtls_endpoint_aliases?oN(e.mtls_endpoint_aliases[t],t,r):oN(e[t],t)}function oI(e){return!("object"!=typeof e||Array.isArray(e))&&null!==e&&void 0!==e.error}let oj=/((?:,|, )?[0-9a-zA-Z!#$%&'*+-.^_`|~]+=)/,oL=/(?:^|, ?)([0-9a-zA-Z!#$%&'*+\-.^_`|~]+)(?=$|[ ,])/g;async function oD(e,t,r,i,n,s){if(!oh(e))throw TypeError('"accessToken" must be a non-empty string');if(!(r instanceof URL))throw TypeError('"url" must be an instance of URL');return i=ou(i),s?.DPoP===void 0?i.set("authorization",`Bearer ${e}`):(await oO(i,s.DPoP,r,"GET",ov({[a6]:s?.[a6]}),e),i.set("authorization",`DPoP ${e}`)),(s?.[a4]||fetch)(r.href,{body:n,headers:Object.fromEntries(i.entries()),method:t,redirect:"manual",signal:s?.signal?oc(s.signal):null}).then(oo)}async function oM(e,t,r,i){oS(e),ox(t);let n=oR(e,"userinfo_endpoint",i),s=ou(i?.headers);return t.userinfo_signed_response_alg?s.set("accept","application/jwt"):(s.set("accept","application/json"),s.append("accept","application/jwt")),oD(r,"GET",n,s,null,{...i,[a6]:ov(t)})}async function oU(e,t,r,i,n,s,a){return await oT(e,t,n,s,a?.clientPrivateKey),s.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),(a?.[a4]||fetch)(i.href,{body:n,headers:Object.fromEntries(s.entries()),method:r,redirect:"manual",signal:a?.signal?oc(a.signal):null}).then(oo)}async function oq(e,t,r,i,n){let s=oR(e,"token_endpoint",n);i.set("grant_type",r);let a=ou(n?.headers);return a.set("accept","application/json"),n?.DPoP!==void 0&&await oO(a,n.DPoP,s,"POST",ov(t)),oU(e,t,"POST",s,i,a,n)}Symbol();let oQ=new WeakMap;function oB(e){if(!e.id_token)return;let t=oQ.get(e);if(!t)throw TypeError('"ref" was already garbage collected or did not resolve from the proper sources');return t}async function oH(e,t,r,i=!1,n=!1){let s;if(oS(e),ox(t),!a1(r,Response))throw TypeError('"response" must be an instance of Response');if(200!==r.status){let e;if(e=await o1(r))return e;throw new oi('"response" is not a conform Token Endpoint response')}o0(r);try{s=await r.json()}catch(e){throw new oi('failed to parse "response" body as JSON',{cause:e})}if(!ol(s))throw new oi('"response" body must be a top level object');if(!oh(s.access_token))throw new oi('"response" body "access_token" property must be a non-empty string');if(!oh(s.token_type))throw new oi('"response" body "token_type" property must be a non-empty string');if(s.token_type=s.token_type.toLowerCase(),"dpop"!==s.token_type&&"bearer"!==s.token_type)throw new ot("unsupported `token_type` value");if(void 0!==s.expires_in&&("number"!=typeof s.expires_in||s.expires_in<=0))throw new oi('"response" body "expires_in" property must be a positive number');if(!n&&void 0!==s.refresh_token&&!oh(s.refresh_token))throw new oi('"response" body "refresh_token" property must be a non-empty string');if(void 0!==s.scope&&"string"!=typeof s.scope)throw new oi('"response" body "scope" property must be a string');if(!i){if(void 0!==s.id_token&&!oh(s.id_token))throw new oi('"response" body "id_token" property must be a non-empty string');if(s.id_token){let{claims:r}=await o5(s.id_token,o3.bind(void 0,t.id_token_signed_response_alg,e.id_token_signing_alg_values_supported),o4,ov(t),ob(t)).then(oJ.bind(void 0,["aud","exp","iat","iss","sub"])).then(oF.bind(void 0,e.issuer)).then(oK.bind(void 0,t.client_id));if(Array.isArray(r.aud)&&1!==r.aud.length&&r.azp!==t.client_id)throw new oi('unexpected ID Token "azp" (authorized party) claim value');if(t.require_auth_time&&"number"!=typeof r.auth_time)throw new oi('unexpected ID Token "auth_time" (authentication time) claim value');oQ.set(s,r)}}return s}function oK(e,t){if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e))throw new oi('unexpected JWT "aud" (audience) claim value')}else if(t.claims.aud!==e)throw new oi('unexpected JWT "aud" (audience) claim value');return t}function oF(e,t){if(t.claims.iss!==e)throw new oi('unexpected JWT "iss" (issuer) claim value');return t}let oV=new WeakSet;async function oW(e,t,r,i,n,s){if(oS(e),ox(t),!oV.has(r))throw TypeError('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()');if(!oh(i))throw TypeError('"redirectUri" must be a non-empty string');if(!oh(n))throw TypeError('"codeVerifier" must be a non-empty string');let a=o8(r,"code");if(!a)throw new oi('no authorization code in "callbackParameters"');let o=new URLSearchParams(s?.additionalParameters);return o.set("redirect_uri",i),o.set("code_verifier",n),o.set("code",a),oq(e,t,"authorization_code",o,s)}let oz={aud:"audience",c_hash:"code hash",client_id:"client id",exp:"expiration time",iat:"issued at",iss:"issuer",jti:"jwt id",nonce:"nonce",s_hash:"state hash",sub:"subject",ath:"access token hash",htm:"http method",htu:"http uri",cnf:"confirmation"};function oJ(e,t){for(let r of e)if(void 0===t.claims[r])throw new oi(`JWT "${r}" (${oz[r]}) claim missing`);return t}let oZ=Symbol(),oG=Symbol();async function oX(e,t,r,i,n){let s=await oH(e,t,r);if(oI(s))return s;if(!oh(s.id_token))throw new oi('"response" body "id_token" property must be a non-empty string');n??(n=t.default_max_age??oG);let a=oB(s);if((t.require_auth_time||n!==oG)&&void 0===a.auth_time)throw new oi('ID Token "auth_time" (authentication time) claim missing');if(n!==oG){if("number"!=typeof n||n<0)throw TypeError('"options.max_age" must be a non-negative number');let e=ow()+ov(t),r=ob(t);if(a.auth_time+n399&&e.status<500){o0(e);try{let t=await e.json();if(ol(t)&&"string"==typeof t.error&&t.error.length)return void 0!==t.error_description&&"string"!=typeof t.error_description&&delete t.error_description,void 0!==t.error_uri&&"string"!=typeof t.error_uri&&delete t.error_uri,void 0!==t.algs&&"string"!=typeof t.algs&&delete t.algs,void 0!==t.scope&&"string"!=typeof t.scope&&delete t.scope,t}catch{}}}function o6(e){if("number"!=typeof e.modulusLength||e.modulusLength<2048)throw new oi(`${e.name} modulusLength must be at least 2048 bits`)}function o2(e){switch(e.algorithm.name){case"ECDSA":return{name:e.algorithm.name,hash:function(e){switch(e){case"P-256":return"SHA-256";case"P-384":return"SHA-384";case"P-521":return"SHA-512";default:throw new ot}}(e.algorithm.namedCurve)};case"RSA-PSS":switch(o6(e.algorithm),e.algorithm.hash.name){case"SHA-256":case"SHA-384":case"SHA-512":return{name:e.algorithm.name,saltLength:parseInt(e.algorithm.hash.name.slice(-3),10)>>3};default:throw new ot}case"RSASSA-PKCS1-v1_5":return o6(e.algorithm),e.algorithm.name;case"Ed448":case"Ed25519":return e.algorithm.name}throw new ot}let o4=Symbol();async function o5(e,t,r,i,n){let s,a,o;let{0:l,1:u,2:c,length:d}=e.split(".");if(5===d)throw new ot("JWE structure JWTs are not supported");if(3!==d)throw new oi("Invalid JWT");try{s=JSON.parse(a9(a7(l)))}catch(e){throw new oi("failed to parse JWT Header body as base64url encoded JSON",{cause:e})}if(!ol(s))throw new oi("JWT Header must be a top level object");if(t(s),void 0!==s.crit)throw new oi('unexpected JWT "crit" header parameter');let h=a7(c);if(r!==o4){a=await r(s);let e=`${l}.${u}`;if(!await crypto.subtle.verify(o2(a),a,h,a9(e)))throw new oi("JWT signature verification failed")}try{o=JSON.parse(a9(a7(u)))}catch(e){throw new oi("failed to parse JWT Payload body as base64url encoded JSON",{cause:e})}if(!ol(o))throw new oi("JWT Payload must be a top level object");let p=ow()+i;if(void 0!==o.exp){if("number"!=typeof o.exp)throw new oi('unexpected JWT "exp" (expiration time) claim type');if(o.exp<=p-n)throw new oi('unexpected JWT "exp" (expiration time) claim value, timestamp is <= now()')}if(void 0!==o.iat&&"number"!=typeof o.iat)throw new oi('unexpected JWT "iat" (issued at) claim type');if(void 0!==o.iss&&"string"!=typeof o.iss)throw new oi('unexpected JWT "iss" (issuer) claim type');if(void 0!==o.nbf){if("number"!=typeof o.nbf)throw new oi('unexpected JWT "nbf" (not before) claim type');if(o.nbf>p+n)throw new oi('unexpected JWT "nbf" (not before) claim value, timestamp is > now()')}if(void 0!==o.aud&&"string"!=typeof o.aud&&!Array.isArray(o.aud))throw new oi('unexpected JWT "aud" (audience) claim type');return{header:s,claims:o,signature:h,key:a}}function o3(e,t,r){if(void 0!==e){if(r.alg!==e)throw new oi('unexpected JWT "alg" header parameter');return}if(Array.isArray(t)){if(!t.includes(r.alg))throw new oi('unexpected JWT "alg" header parameter');return}if("RS256"!==r.alg)throw new oi('unexpected JWT "alg" header parameter')}function o8(e,t){let{0:r,length:i}=e.getAll(t);if(i>1)throw new oi(`"${t}" parameter must be provided only once`);return r}let o9=Symbol(),o7=Symbol();async function le(e,t,r,i,n){let{cookies:s,logger:a}=i;a.debug(`CREATE_${e.toUpperCase()}`,{value:t,maxAge:r});let o=new Date;o.setTime(o.getTime()+1e3*r);let l={value:t};"state"===e&&n&&(l.data=n);let u=s[e].name;return{name:u,value:await sC({...i.jwt,maxAge:r,token:l,salt:u}),options:{...s[e].options,expires:o}}}let lt={async create(e){let t=of(),r=await om(t);return{cookie:await le("pkceCodeVerifier",t,900,e),value:r}},async use(e,t,r){let{provider:i}=r;if(!i?.checks?.includes("pkce"))return;let n=e?.[r.cookies.pkceCodeVerifier.name];if(!n)throw new ik("PKCE code_verifier cookie was missing.");let s=await sO({...r.jwt,token:n,salt:r.cookies.pkceCodeVerifier.name});if(!s?.value)throw new ik("PKCE code_verifier value could not be parsed.");return t.push({name:r.cookies.pkceCodeVerifier.name,value:"",options:{...r.cookies.pkceCodeVerifier.options,maxAge:0}}),s.value}};function lr(e){try{let t=new TextDecoder;return JSON.parse(t.decode(nc(e)))}catch{}}let li={async create(e,t){let{provider:r}=e;if(!r.checks.includes("state")){if(t)throw new ik("State data was provided but the provider is not configured to use state.");return}let i=nl(JSON.stringify({...t,random:of()}));return{cookie:await le("state",i,900,e,t),value:i}},async use(e,t,r,i){let{provider:n}=r;if(!n.checks.includes("state"))return;let s=e?.[r.cookies.state.name];if(!s)throw new ik("State cookie was missing.");let a=await sO({...r.jwt,token:s,salt:r.cookies.state.name});if(!a?.value)throw new ik("State (cookie) value could not be parsed.");let o=lr(a.value);if(!o)throw new ik("State (encoded) value could not be parsed.");if(o.random!==i)throw new ik(`Random state values did not match. Expected: ${o.random}. Got: ${i}`);return t.push({name:r.cookies.state.name,value:"",options:{...r.cookies.state.options,maxAge:0}}),a.value}},ln={async create(e){if(!e.provider.checks.includes("nonce"))return;let t=of();return{cookie:await le("nonce",t,900,e),value:t}},async use(e,t,r){let{provider:i}=r;if(!i?.checks?.includes("nonce"))return;let n=e?.[r.cookies.nonce.name];if(!n)throw new ik("Nonce cookie was missing.");let s=await sO({...r.jwt,token:n,salt:r.cookies.nonce.name});if(!s?.value)throw new ik("Nonce value could not be parsed.");return t.push({name:r.cookies.nonce.name,value:"",options:{...r.cookies.nonce.options,maxAge:0}}),s.value}},ls={create:async(e,t,r)=>({cookie:await le("webauthnChallenge",JSON.stringify({challenge:t,registerData:r}),900,e)}),async use(e,t,r){let i=t?.[e.cookies.webauthnChallenge.name];if(!i)throw new ik("Challenge cookie missing.");let n=await sO({...e.jwt,token:i,salt:e.cookies.webauthnChallenge.name});if(!n?.value)throw new ik("Challenge value could not be parsed.");let s={name:e.cookies.webauthnChallenge.name,value:"",options:{...e.cookies.webauthnChallenge.options,maxAge:0}};return r.push(s),JSON.parse(n.value)}};async function la(e,t,r,i){let n,s,a;let{logger:o,provider:l}=r,{token:u,userinfo:c}=l;if(u?.url&&"authjs.dev"!==u.url.host||c?.url&&"authjs.dev"!==c.url.host)n={issuer:l.issuer??"https://authjs.dev",token_endpoint:u?.url.toString(),userinfo_endpoint:c?.url.toString()};else{let e=new URL(l.issuer),t=await od(e),r=await op(e,t);if(!r.token_endpoint)throw TypeError("TODO: Authorization server did not provide a token endpoint.");if(!r.userinfo_endpoint)throw TypeError("TODO: Authorization server did not provide a userinfo endpoint.");n=r}let d={client_id:l.clientId,client_secret:l.clientSecret,...l.client},h=[],p=await li.use(t,h,r,i),f=function(e,t,r,i){var n;if(oS(e),ox(t),r instanceof URL&&(r=r.searchParams),!(r instanceof URLSearchParams))throw TypeError('"parameters" must be an instance of URLSearchParams, or URL');if(o8(r,"response"))throw new oi('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()');let s=o8(r,"iss"),a=o8(r,"state");if(!s&&e.authorization_response_iss_parameter_supported)throw new oi('response parameter "iss" (issuer) missing');if(s&&s!==e.issuer)throw new oi('unexpected "iss" (issuer) response parameter value');switch(i){case void 0:case o7:if(void 0!==a)throw new oi('unexpected "state" response parameter encountered');break;case o9:break;default:if(!oh(i))throw new oi('"expectedState" must be a non-empty string');if(void 0===a)throw new oi('response parameter "state" missing');if(a!==i)throw new oi('unexpected "state" response parameter value')}let o=o8(r,"error");if(o)return{error:o,error_description:o8(r,"error_description"),error_uri:o8(r,"error_uri")};let l=o8(r,"id_token"),u=o8(r,"token");if(void 0!==l||void 0!==u)throw new ot("implicit and hybrid flows are not supported");return n=new URLSearchParams(r),oV.add(n),n}(n,d,new URLSearchParams(e),l.checks.includes("state")?p:o9);if(oI(f)){let e={providerId:l.id,...f};throw o.debug("OAuthCallbackError",e),new i$("OAuth Provider returned an error",e)}let m=await lt.use(t,h,r),g=l.callbackUrl;!r.isOnRedirectProxy&&l.redirectProxyUrl&&(g=l.redirectProxyUrl);let y=await oW(n,d,f,g,m??"auth");if(l.token?.conform&&(y=await l.token.conform(y.clone())??y),s=function(e){if(!a1(e,Response))throw TypeError('"response" must be an instance of Response');let t=e.headers.get("www-authenticate");if(null===t)return;let r=[];for(let{1:e,index:i}of t.matchAll(oL))r.push([e,i]);if(r.length)return r.map(([e,r],i,n)=>{let s=n[i+1];return function(e,t){let r=t.split(oj).slice(1);if(!r.length)return{scheme:e.toLowerCase(),parameters:{}};r[r.length-1]=r[r.length-1].replace(/,$/,"");let i={};for(let e=1;e=2&&'"'===n[0]&&'"'===n[n.length-1]?n.slice(1,-1):n}return{scheme:e.toLowerCase(),parameters:i}}(e,s?t.slice(r,s[1]):t.slice(r))})}(y)){for(let e of s)console.log("challenge",e);throw Error("TODO: Handle www-authenticate challenges as needed")}let v={};if("oidc"===l.type){let e=await ln.use(t,h,r),i=await oX(n,d,y,e??oZ);if(oI(i))throw console.log("error",i),Error("TODO: Handle OIDC response body error");v=oB(i),a=i}else{if(oI(a=await oY(n,d,y)))throw console.log("error",a),Error("TODO: Handle OAuth 2.0 response body error");if(c?.request){let e=await c.request({tokens:a,provider:l});e instanceof Object&&(v=e)}else if(c?.url){let e=await oM(n,d,a.access_token);v=await e.json()}else throw TypeError("No userinfo endpoint configured")}return a.expires_in&&(a.expires_at=Math.floor(Date.now()/1e3)+Number(a.expires_in)),{...await lo(v,l,a,o),profile:v,cookies:h}}async function lo(e,t,r,i){try{let i=await t.profile(e,r);return{user:{...i,id:crypto.randomUUID(),email:i.email?.toLowerCase()},account:{...r,provider:t.id,type:t.type,providerAccountId:i.id??crypto.randomUUID()}}}catch(r){i.debug("getProfile error details",e),i.error(new iN(r,{provider:t.id}))}}var ll=r(6195).Buffer;async function lu(e,t,r,i){let n=await lf(e,t,r),{cookie:s}=await ls.create(e,n.challenge,r);return{status:200,cookies:[...i??[],s],body:{action:"register",options:n},headers:{"Content-Type":"application/json"}}}async function lc(e,t,r,i){let n=await lp(e,t,r),{cookie:s}=await ls.create(e,n.challenge);return{status:200,cookies:[...i??[],s],body:{action:"authenticate",options:n},headers:{"Content-Type":"application/json"}}}async function ld(e,t,r){let i;let{adapter:n,provider:s}=e,a=t.body&&"string"==typeof t.body.data?JSON.parse(t.body.data):void 0;if(!a||"object"!=typeof a||!("id"in a)||"string"!=typeof a.id)throw new ip("Invalid WebAuthn Authentication response.");let o=ly(lg(a.id)),l=await n.getAuthenticator(o);if(!l)throw new ip(`WebAuthn authenticator not found in database: ${JSON.stringify({credentialID:o})}`);let{challenge:u}=await ls.use(e,t.cookies,r);try{let r=s.getRelayingParty(e,t);i=await s.simpleWebAuthn.verifyAuthenticationResponse({...s.verifyAuthenticationOptions,expectedChallenge:u,response:a,authenticator:{...l,credentialDeviceType:l.credentialDeviceType,transports:lv(l.transports),credentialID:lg(l.credentialID),credentialPublicKey:lg(l.credentialPublicKey)},expectedOrigin:r.origin,expectedRPID:r.id})}catch(e){throw new iF(e)}let{verified:c,authenticationInfo:d}=i;if(!c)throw new iF("WebAuthn authentication response could not be verified.");try{let{newCounter:e}=d;await n.updateAuthenticatorCounter(l.credentialID,e)}catch(e){throw new ig(`Failed to update authenticator counter. This may cause future authentication attempts to fail. ${JSON.stringify({credentialID:o,oldCounter:l.counter,newCounter:d.newCounter})}`,e)}let h=await n.getAccount(l.providerAccountId,s.id);if(!h)throw new ip(`WebAuthn account not found in database: ${JSON.stringify({credentialID:o,providerAccountId:l.providerAccountId})}`);let p=await n.getUser(h.userId);if(!p)throw new ip(`WebAuthn user not found in database: ${JSON.stringify({credentialID:o,providerAccountId:l.providerAccountId,userID:h.userId})}`);return{account:h,user:p}}async function lh(e,t,r){var i;let n;let{provider:s}=e,a=t.body&&"string"==typeof t.body.data?JSON.parse(t.body.data):void 0;if(!a||"object"!=typeof a||!("id"in a)||"string"!=typeof a.id)throw new ip("Invalid WebAuthn Registration response.");let{challenge:o,registerData:l}=await ls.use(e,t.cookies,r);if(!l)throw new ip("Missing user registration data in WebAuthn challenge cookie.");try{let r=s.getRelayingParty(e,t);n=await s.simpleWebAuthn.verifyRegistrationResponse({...s.verifyRegistrationOptions,expectedChallenge:o,response:a,expectedOrigin:r.origin,expectedRPID:r.id})}catch(e){throw new iF(e)}if(!n.verified||!n.registrationInfo)throw new iF("WebAuthn registration response could not be verified.");let u={providerAccountId:ly(n.registrationInfo.credentialID),provider:e.provider.id,type:s.type},c={providerAccountId:u.providerAccountId,counter:n.registrationInfo.counter,credentialID:ly(n.registrationInfo.credentialID),credentialPublicKey:ly(n.registrationInfo.credentialPublicKey),credentialBackedUp:n.registrationInfo.credentialBackedUp,credentialDeviceType:n.registrationInfo.credentialDeviceType,transports:(i=a.response.transports,i?.join(","))};return{user:l,account:u,authenticator:c}}async function lp(e,t,r){let{provider:i,adapter:n}=e,s=r&&r.id?await n.listAuthenticatorsByUserId(r.id):null,a=i.getRelayingParty(e,t);return await i.simpleWebAuthn.generateAuthenticationOptions({...i.authenticationOptions,rpID:a.id,allowCredentials:s?.map(e=>({id:lg(e.credentialID),type:"public-key",transports:lv(e.transports)}))})}async function lf(e,t,r){let{provider:i,adapter:n}=e,s=r.id?await n.listAuthenticatorsByUserId(r.id):null,a=sD(32),o=i.getRelayingParty(e,t);return await i.simpleWebAuthn.generateRegistrationOptions({...i.registrationOptions,userID:a,userName:r.email,userDisplayName:r.name??void 0,rpID:o.id,rpName:o.name,excludeCredentials:s?.map(e=>({id:lg(e.credentialID),type:"public-key",transports:lv(e.transports)}))})}function lm(e){let{provider:t,adapter:r}=e;if(!r)throw new iA("An adapter is required for the WebAuthn provider");if(!t||"webauthn"!==t.type)throw new iU("Provider must be WebAuthn");return{...e,provider:t,adapter:r}}function lg(e){return new Uint8Array(ll.from(e,"base64"))}function ly(e){return ll.from(e).toString("base64")}function lv(e){return e?e.split(","):void 0}async function lb(e,t,r,i){if(!t.provider)throw new iU("Callback route called without provider");let{query:n,body:s,method:a,headers:o}=e,{provider:l,adapter:u,url:c,callbackUrl:d,pages:h,jwt:p,events:f,callbacks:m,session:{strategy:g,maxAge:y},logger:v}=t,b="jwt"===g;try{if("oauth"===l.type||"oidc"===l.type){let s;let{proxyRedirect:a,randomState:o}=function(e,t,r){let i,n;if(t.redirectProxyUrl&&!e?.state)throw new ik("Missing state in query, but required for redirect proxy");let s=lr(e?.state);if(i=s?.random,r){if(!s?.origin)return{randomState:i};n=`${s.origin}?${new URLSearchParams(e)}`}return{randomState:i,proxyRedirect:n}}(n,l,t.isOnRedirectProxy);if(a)return v.debug("proxy redirect",{proxyRedirect:a,randomState:o}),{redirect:a};let g=await la(n,e.cookies,t,o);g.cookies.length&&i.push(...g.cookies),v.debug("authorization result",g);let{user:w,account:_,profile:S}=g;if(!w||!_||!S)return{redirect:`${c}/signin`,cookies:i};if(u){let{getUserByAccount:e}=u;s=await e({providerAccountId:_.providerAccountId,provider:l.id})}let x=await lw({user:s??w,account:_,profile:S},t);if(x)return{redirect:x,cookies:i};let{user:k,session:E,isNewUser:A}=await a0(r.value,w,_,t);if(b){let e={name:k.name,email:k.email,picture:k.image,sub:k.id?.toString()},n=await m.jwt({token:e,user:k,account:_,profile:S,isNewUser:A,trigger:A?"signUp":"signIn"});if(null===n)i.push(...r.clean());else{let e=t.cookies.sessionToken.name,s=await p.encode({...p,token:n,salt:e}),a=new Date;a.setTime(a.getTime()+1e3*y);let o=r.chunk(s,{expires:a});i.push(...o)}}else i.push({name:t.cookies.sessionToken.name,value:E.sessionToken,options:{...t.cookies.sessionToken.options,expires:E.expires}});if(await f.signIn?.({user:k,account:_,profile:S,isNewUser:A}),A&&h.newUser)return{redirect:`${h.newUser}${h.newUser.includes("?")?"&":"?"}${new URLSearchParams({callbackUrl:d})}`,cookies:i};return{redirect:d,cookies:i}}if("email"===l.type){let e=n?.token,s=n?.email;if(!e||!s){let t=TypeError("Missing token or email. The sign-in URL was manually opened without token/identifier or the link was not sent correctly in the email.",{cause:{hasToken:!!e,hasEmail:!!s}});throw t.name="Configuration",t}let a=l.secret??t.secret,o=await u.useVerificationToken({identifier:s,token:await sL(`${e}${a}`)}),c=!!o,g=o?o.expires.valueOf()c.searchParams.set(e,t));let u=await l.authorize(e,new Request(c,{headers:o,method:a,body:JSON.stringify(s)})),h=u&&{...u,id:u?.id?.toString()??crypto.randomUUID()};if(!h)throw new iS;let g={providerAccountId:h.id,type:"credentials",provider:l.id},v=await lw({user:h,account:g,credentials:e},t);if(v)return{redirect:v,cookies:i};let b={name:h.name,email:h.email,picture:h.image,sub:h.id},w=await m.jwt({token:b,user:h,account:g,isNewUser:!1,trigger:"signIn"});if(null===w)i.push(...r.clean());else{let e=t.cookies.sessionToken.name,n=await p.encode({...p,token:w,salt:e}),s=new Date;s.setTime(s.getTime()+1e3*y);let a=r.chunk(n,{expires:s});i.push(...a)}return await f.signIn?.({user:h,account:g}),{redirect:d,cookies:i}}if("webauthn"===l.type&&"POST"===a){let n,s,a;let o=e.body?.action;if("string"!=typeof o||"authenticate"!==o&&"register"!==o)throw new ip("Invalid action parameter");let l=lm(t);switch(o){case"authenticate":{let t=await ld(l,e,i);n=t.user,s=t.account;break}case"register":{let r=await lh(t,e,i);n=r.user,s=r.account,a=r.authenticator}}await lw({user:n,account:s},t);let{user:u,isNewUser:c,session:g,account:v}=await a0(r.value,n,s,t);if(!v)throw new ip("Error creating or finding account");if(a&&u.id&&await l.adapter.createAuthenticator({...a,userId:u.id}),b){let e={name:u.name,email:u.email,picture:u.image,sub:u.id?.toString()},n=await m.jwt({token:e,user:u,account:v,isNewUser:c,trigger:c?"signUp":"signIn"});if(null===n)i.push(...r.clean());else{let e=t.cookies.sessionToken.name,s=await p.encode({...p,token:n,salt:e}),a=new Date;a.setTime(a.getTime()+1e3*y);let o=r.chunk(s,{expires:a});i.push(...o)}}else i.push({name:t.cookies.sessionToken.name,value:g.sessionToken,options:{...t.cookies.sessionToken.options,expires:g.expires}});if(await f.signIn?.({user:u,account:v,isNewUser:c}),c&&h.newUser)return{redirect:`${h.newUser}${h.newUser.includes("?")?"&":"?"}${new URLSearchParams({callbackUrl:d})}`,cookies:i};return{redirect:d,cookies:i}}throw new iU(`Callback for provider type (${l.type}) is not supported`)}catch(t){if(t instanceof ip)throw t;let e=new iv(t,{provider:l.id});throw v.debug("callback route error details",{method:a,query:n,body:s}),e}}async function lw(e,t){let r;let{signIn:i,redirect:n}=t.callbacks;try{r=await i(e)}catch(e){if(e instanceof ip)throw e;throw new iy(e)}if(!r)throw new iy("AccessDenied");if("string"==typeof r)return await n({url:r,baseUrl:t.url.origin})}async function l_(e,t,r,i,n){let{adapter:s,jwt:a,events:o,callbacks:l,logger:u,session:{strategy:c,maxAge:d}}=e,h={body:null,headers:{"Content-Type":"application/json"},cookies:r},p=t.value;if(!p)return h;if("jwt"===c){try{let r=e.cookies.sessionToken.name,s=await a.decode({...a,token:p,salt:r});if(!s)throw Error("Invalid JWT");let u=await l.jwt({token:s,...i&&{trigger:"update"},session:n}),c=aY(d);if(null!==u){let e={user:{name:u.name,email:u.email,image:u.picture},expires:c.toISOString()},i=await l.session({session:e,token:u});h.body=i;let n=await a.encode({...a,token:u,salt:r}),s=t.chunk(n,{expires:c});h.cookies?.push(...s),await o.session?.({session:i,token:u})}else h.cookies?.push(...t.clean())}catch(e){u.error(new iE(e)),h.cookies?.push(...t.clean())}return h}try{let{getSessionAndUser:r,deleteSession:a,updateSession:u}=s,c=await r(p);if(c&&c.session.expires.valueOf(){}),e.error&&(sz.error=e.error),e.warn&&(sz.warn=e.warn),e.debug&&(sz.debug=e.debug)}(t.logger,t.debug);let i=await sI(e,t);if(i instanceof Error)return sz.error(i),Response.json(`Error: This action with HTTP ${e.method} is not supported.`,{status:400});let n=function(e,t){let{url:r}=e,i=[];if(!iz&&t.debug&&i.push("debug-enabled"),!t.trustHost)return new iq(`Host must be trusted. URL was: ${e.url}`);if(!t.secret)return new iO("Please define a `secret`.");let n=e.query?.callbackUrl;if(n&&!iJ(n,r.origin))return new i_(`Invalid callback URL. Received: ${n}`);let{callbackUrl:s}=id(t.useSecureCookies??"https:"===r.protocol),a=e.cookies?.[t.cookies?.callbackUrl?.name??s.name];if(a&&!iJ(a,r.origin))return new i_(`Invalid callback URL. Received: ${a}`);let o=!1;for(let e of t.providers){let t="function"==typeof e?e():e;if(("oauth"===t.type||"oidc"===t.type)&&!(t.issuer??t.options?.issuer)){let e;let{authorization:r,token:i,userinfo:n}=t;if("string"==typeof r||r?.url?"string"==typeof i||i?.url?"string"==typeof n||n?.url||(e="userinfo"):e="token":e="authorization",e)return new ix(`Provider "${t.id}" is missing both \`issuer\` and \`${e}\` endpoint config. At least one of them is required.`)}if("credentials"===t.type)iZ=!0;else if("email"===t.type)iG=!0;else if("webauthn"===t.type){var l;if(iX=!0,t.simpleWebAuthnBrowserVersion&&(l=t.simpleWebAuthnBrowserVersion,!/^v\d+(?:\.\d+){0,2}$/.test(l)))return new ip(`Invalid provider config for "${t.id}": simpleWebAuthnBrowserVersion "${t.simpleWebAuthnBrowserVersion}" must be a valid semver string.`);if(t.enableConditionalUI){if(o)return new iH("Multiple webauthn providers have 'enableConditionalUI' set to True. Only one provider can have this option enabled at a time.");if(o=!0,!Object.values(t.formFields).some(e=>e.autocomplete&&e.autocomplete.toString().indexOf("webauthn")>-1))return new iK(`Provider "${t.id}" has 'enableConditionalUI' set to True, but none of its formFields have 'webauthn' in their autocomplete param.`)}}}if(iZ){let e=t.session?.strategy==="database",r=!t.providers.some(e=>"credentials"!==("function"==typeof e?e():e).type);if(e&&r)return new iM("Signing in with credentials only supported if JWT strategy is enabled");if(t.providers.some(e=>{let t="function"==typeof e?e():e;return"credentials"===t.type&&!t.authorize}))return new iC("Must define an authorize() handler to use credentials authentication provider")}let{adapter:u,session:c}=t,d=[];if(iG||c?.strategy==="database"||!c?.strategy&&u){if(iG){if(!u)return new iA("Email login requires an adapter.");d.push(...iY)}else{if(!u)return new iA("Database session requires an adapter.");d.push(...i0)}}if(iX){if(!t.experimental?.enableWebAuthn)return new iW("WebAuthn is an experimental feature. To enable it, set `experimental.enableWebAuthn` to `true` in your config.");if(i.push("experimental-webauthn"),!u)return new iA("WebAuthn requires an adapter.");d.push(...i1)}if(u){let e=d.filter(e=>!(e in u));if(e.length)return new iT(`Required adapter methods were missing: ${e.join(", ")}`)}return iz||(iz=!0),i}(i,t);if(Array.isArray(n))n.forEach(sz.warn);else if(n instanceof Error){if(sz.error(n),!["signin","signout","error","verify-request"].includes(i.action)||"GET"!==i.method)return Response.json({message:"There was a problem with the server configuration. Check the server logs for more information."},{status:500});let{pages:e,theme:r}=t,s=e?.error&&i.url.searchParams.get("callbackUrl")?.startsWith(e.error);return!e?.error||s?(s&&sz.error(new ib(`The error page ${e?.error} should not require authentication`)),sj(aX({theme:r}).error("Configuration"))):Response.redirect(`${e.error}?error=Configuration`)}let s=e.headers?.has("X-Auth-Return-Redirect"),a=t.raw===lP;try{let e=await lC(i,t);if(a)return e;r=await sj(e)}catch(d){sz.error(d);let r=d instanceof ip;if(r&&a&&!s)throw d;if("POST"===e.method&&"session"===i.action)return Response.json(null,{status:400});let n=r?d.type:"Configuration",o=r&&d.kind||"error",l=new URLSearchParams({error:n}),u=t.pages?.[o]??`${t.basePath}/${o.toLowerCase()}`,c=`${i.url.origin}${u}?${l}`;if(s)return Response.json({url:c});return Response.redirect(c)}let o=r.headers.get("Location");return s&&o?Response.json({url:o},{headers:r.headers}):r}var lN=r(9858);function lR(e){let t=process.env.AUTH_URL??process.env.NEXTAUTH_URL;if(!t)return e;let{origin:r}=new URL(t),{href:i,origin:n}=e.nextUrl;return new lN.I(i.replace(n,r),e)}function lI(e){try{e.secret??(e.secret=process.env.AUTH_SECRET??process.env.NEXTAUTH_SECRET);let t=process.env.AUTH_URL??process.env.NEXTAUTH_URL;if(!t)return;let{pathname:r}=new URL(t);if("/"===r)return;e.basePath||(e.basePath=r)}catch{}finally{e.basePath||(e.basePath="/api/auth"),function(e,t){try{let r=e.AUTH_URL;r&&!t.basePath&&(t.basePath=new URL(r).pathname)}catch{}finally{t.basePath??(t.basePath="/auth")}if(!t.secret?.length){t.secret=[];let r=e.AUTH_SECRET;for(let i of(r&&t.secret.push(r),[1,2,3])){let r=e[`AUTH_SECRET_${i}`];r&&t.secret.unshift(r)}}t.redirectProxyUrl??(t.redirectProxyUrl=e.AUTH_REDIRECT_PROXY_URL),t.trustHost??(t.trustHost=!!(e.AUTH_URL??e.AUTH_TRUST_HOST??e.VERCEL??e.CF_PAGES??"production"!==e.NODE_ENV)),t.providers=t.providers.map(t=>{let r="function"==typeof t?t({}):t,i=r.id.toUpperCase();return"oauth"===r.type||"oidc"===r.type?(r.clientId??(r.clientId=e[`AUTH_${i}_ID`]),r.clientSecret??(r.clientSecret=e[`AUTH_${i}_SECRET`]),"oidc"===r.type&&(r.issuer??(r.issuer=e[`AUTH_${i}_ISSUER`]))):"email"===r.type&&(r.apiKey??(r.apiKey=e[`AUTH_${i}_KEY`])),r})}(process.env,e)}}var lj=r(4352),lL=r(5662);r(9475),r(4532);var lD=r(4421);let lM=(0,lD.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/hooks-client-context.shared-runtime.js`),{__esModule:lU,$$typeof:lq}=lM;lM.default,(0,lD.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/hooks-client-context.shared-runtime.js#SearchParamsContext`),(0,lD.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/hooks-client-context.shared-runtime.js#PathnameContext`),(0,lD.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/hooks-client-context.shared-runtime.js#PathParamsContext`);let lQ=(0,lD.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/server-inserted-html.shared-runtime.js`),{__esModule:lB,$$typeof:lH}=lQ;lQ.default,(0,lD.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/server-inserted-html.shared-runtime.js#ServerInsertedHTMLContext`),(0,lD.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/server-inserted-html.shared-runtime.js#useServerInsertedHTML`);var lK=r(6674);Symbol("internal for urlsearchparams readonly");async function lF(e,t={},r,i){let n=new Headers((0,lj.A)()),{redirect:s=!0,redirectTo:a,...o}=t instanceof FormData?Object.fromEntries(t):t,l=a?.toString()??n.get("Referer")??"/",u=lz("signin",n,i.basePath);if(!e)return u.searchParams.append("callbackUrl",l),s&&(0,lK.uX)(u.toString()),u.toString();let c=`${u}/${e}?${new URLSearchParams(r)}`,d={};for(let t of i.providers){let{options:r,...i}="function"==typeof t?t():t,n=r?.id??i.id;if(n===e){d={id:n,type:r?.type??i.type};break}}if(!d.id){let e=`${u}?${new URLSearchParams({callbackUrl:l})}`;return s&&(0,lK.uX)(e),e}"credentials"===d.type&&(c=c.replace("signin","callback")),n.set("Content-Type","application/x-www-form-urlencoded");let h=new URLSearchParams({...o,callbackUrl:l}),p=new Request(c,{method:"POST",headers:n,body:h}),f=await l$(p,{...i,raw:lP,skipCSRFCheck:lO});for(let e of f?.cookies??[])(0,lj.Qk)().set(e.name,e.value,e.options);return s?(0,lK.uX)(f.redirect):f.redirect}async function lV(e,t){let r=new Headers((0,lj.A)());r.set("Content-Type","application/x-www-form-urlencoded");let i=lz("signout",r,t.basePath),n=e?.redirectTo??r.get("Referer")??"/",s=new URLSearchParams({callbackUrl:n}),a=new Request(i,{method:"POST",headers:r,body:s}),o=await l$(a,{...t,raw:lP,skipCSRFCheck:lO});for(let e of o?.cookies??[])(0,lj.Qk)().set(e.name,e.value,e.options);return e?.redirect??!0?(0,lK.uX)(o.redirect):o}async function lW(e,t){let r=new Headers((0,lj.A)());r.set("Content-Type","application/json");let i=lz("session",r,t.basePath),n=JSON.stringify({data:e}),s=new Request(i,{method:"POST",headers:r,body:n}),a=await l$(s,{...t,raw:lP,skipCSRFCheck:lO});for(let e of a?.cookies??[])(0,lj.Qk)().set(e.name,e.value,e.options);return a.body}function lz(e,t,r){let i=process.env.AUTH_URL??process.env.NEXTAUTH_URL;if(i){let{origin:t,pathname:r}=new URL(i),n=r.endsWith("/")?"":"/";return new URL(`${t}${r}${n}${e}`)}let n=t.get("x-forwarded-host")??t.get("host"),s="http"===t.get("x-forwarded-proto")?"http":"https",{origin:a,pathname:o}=new URL(r,`${s}://${n}`),l=o.endsWith("/")?"":"/";return new URL(`${a}${o}${l}${e}`)}async function lJ(e,t){let r=lz("session",e,t.basePath);return l$(new Request(r,{headers:{cookie:e.get("cookie")??""}}),{...t,callbacks:{...t.callbacks,async session(...e){let r=await t.callbacks?.session?.(...e)??{...e[0].session,expires:e[0].session.expires?.toISOString?.()??e[0].session.expires};return{user:e[0].user??e[0].token,...r}}}})}function lZ(e){return"function"==typeof e}function lG(e,t){return"function"==typeof e?(...r)=>{if(!r.length){let r=(0,lj.A)(),i=e(void 0);return t?.(i),lJ(r,i).then(e=>e.json())}if(r[0]instanceof Request){let i=r[0],n=r[1],s=e(i);return t?.(s),lX([i,n],s)}if(lZ(r[0])){let t=r[0];return async(...r)=>lX(r,e(r[0]),t)}let i="req"in r[0]?r[0].req:r[0],n="res"in r[0]?r[0].res:r[1],s=e(i);return t?.(s),lJ(new Headers(i.headers),s).then(async e=>{let t=await e.json();for(let t of e.headers.getSetCookie())n.headers.append("set-cookie",t);return t})}:(...t)=>{if(!t.length)return lJ((0,lj.A)(),e).then(e=>e.json());if(t[0]instanceof Request)return lX([t[0],t[1]],e);if(lZ(t[0])){let r=t[0];return async(...t)=>lX(t,e,r).then(e=>e)}let r="req"in t[0]?t[0].req:t[0],i="res"in t[0]?t[0].res:t[1];return lJ(new Headers(r.headers),e).then(async e=>{let t=await e.json();for(let t of e.headers.getSetCookie())i.headers.append("set-cookie",t);return t})}}async function lX(e,t,r){let i=lR(e[0]),n=await lJ(i.headers,t),s=await n.json(),a=!0;t.callbacks?.authorized&&(a=await t.callbacks.authorized({request:i,auth:s}));let o=lL.Z.next?.();if(a instanceof Response){o=a;let e=a.headers.get("Location"),{pathname:r}=i.nextUrl;e&&function(e,t,r){let i=t.replace(`${e}/`,""),n=Object.values(r.pages??{});return(lY.has(i)||n.includes(t))&&t===e}(r,new URL(e).pathname,t)&&(a=!0)}else if(r)i.auth=s,o=await r(i,e[1])??lL.Z.next();else if(!a){let e=t.pages?.signIn??`${t.basePath}/signin`;if(i.nextUrl.pathname!==e){let t=i.nextUrl.clone();t.pathname=e,t.searchParams.set("callbackUrl",i.nextUrl.href),o=lL.Z.redirect(t)}}let l=new Response(o?.body,o);for(let e of n.headers.getSetCookie())l.headers.append("set-cookie",e);return l}Symbol.iterator;let lY=new Set(["providers","session","csrf","signin","signout","callback","verify-request","error"]);var l0=r(8594),l1=r(4680);let{handlers:{GET:l6,POST:l2},auth:l4}=function(e){if("function"==typeof e){let t=t=>{let r=e(t);return lI(r),l$(lR(t),r)};return{handlers:{GET:t,POST:t},auth:lG(e,e=>lI(e)),signIn:(t,r,i)=>{let n=e(void 0);return lI(n),lF(t,r,i,n)},signOut:t=>{let r=e(void 0);return lI(r),lV(t,r)},unstable_update:t=>{let r=e(void 0);return lI(r),lW(t,r)}}}lI(e);let t=t=>l$(lR(t),e);return{handlers:{GET:t,POST:t},auth:lG(e),signIn:(t,r,i)=>lF(t,r,i,e),signOut:t=>lV(t,e),unstable_update:t=>lW(t,e)}}({secret:te.NEXTAUTH_SECRET,callbacks:{session:({session:e,token:t})=>({...e,user:{...e.user,id:t.id,token:t}})},adapter:function(e,t){if((0,tt.is)(e,tZ))return function(e,t=tg){let{users:r,accounts:i,sessions:n,verificationTokens:s}=function(e){let t=e("user",{id:rz("id",{length:255}).notNull().primaryKey(),name:rz("name",{length:255}),email:rz("email",{length:255}).notNull(),emailVerified:r1("emailVerified",{mode:"date",fsp:3}).defaultNow(),image:rz("image",{length:255})}),r=e("account",{userId:rz("userId",{length:255}).notNull().references(()=>t.id,{onDelete:"cascade"}),type:rz("type",{length:255}).$type().notNull(),provider:rz("provider",{length:255}).notNull(),providerAccountId:rz("providerAccountId",{length:255}).notNull(),refresh_token:rz("refresh_token",{length:255}),access_token:rz("access_token",{length:255}),expires_at:new r6("expires_at",void 0),token_type:rz("token_type",{length:255}),scope:rz("scope",{length:255}),id_token:rz("id_token",{length:255}),session_state:rz("session_state",{length:255})},e=>({compoundKey:r4(e.provider,e.providerAccountId)})),i=e("session",{sessionToken:rz("sessionToken",{length:255}).notNull().primaryKey(),userId:rz("userId",{length:255}).notNull().references(()=>t.id,{onDelete:"cascade"}),expires:r1("expires",{mode:"date"}).notNull()});return{users:t,accounts:r,sessions:i,verificationTokens:e("verificationToken",{identifier:rz("identifier",{length:255}).notNull(),token:rz("token",{length:255}).notNull(),expires:r1("expires",{mode:"date"}).notNull()},e=>({compoundKey:r4(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,td.eq)(r.id,i)).then(e=>e[0])},getUser:async t=>await e.select().from(r).where((0,td.eq)(r.id,t)).then(e=>e[0])??null,getUserByEmail:async t=>await e.select().from(r).where((0,td.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,td.eq)(n.sessionToken,t.sessionToken)).then(e=>e[0])),getSessionAndUser:async t=>await e.select({session:n,user:r}).from(n).where((0,td.eq)(n.sessionToken,t)).innerJoin(r,(0,td.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,td.eq)(r.id,t.id)),await e.select().from(r).where((0,td.eq)(r.id,t.id)).then(e=>e[0])},updateSession:async t=>(await e.update(n).set(t).where((0,td.eq)(n.sessionToken,t.sessionToken)),await e.select().from(n).where((0,td.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,td.xD)((0,td.eq)(i.providerAccountId,t.providerAccountId),(0,td.eq)(i.provider,t.provider))).leftJoin(r,(0,td.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,td.eq)(n.sessionToken,t)).then(e=>e[0])??null;return await e.delete(n).where((0,td.eq)(n.sessionToken,t)),r},createVerificationToken:async t=>(await e.insert(s).values(t),await e.select().from(s).where((0,td.eq)(s.identifier,t.identifier)).then(e=>e[0])),async useVerificationToken(t){try{let r=await e.select().from(s).where((0,td.xD)((0,td.eq)(s.identifier,t.identifier),(0,td.eq)(s.token,t.token))).then(e=>e[0])??null;return await e.delete(s).where((0,td.xD)((0,td.eq)(s.identifier,t.identifier),(0,td.eq)(s.token,t.token))),r}catch(e){throw Error("No verification token found.")}},async deleteUser(t){let i=await e.select().from(r).where((0,td.eq)(r.id,t)).then(e=>e[0]??null);return await e.delete(r).where((0,td.eq)(r.id,t)),i},async unlinkAccount(t){await e.delete(i).where((0,td.xD)((0,td.eq)(i.providerAccountId,t.providerAccountId),(0,td.eq)(i.provider,t.provider)))}}}(e,t);if((0,tt.is)(e,rK))return function(e,t=tG.af){let{users:r,accounts:i,sessions:n,verificationTokens:s}=function(e){let t=e("user",{id:r7("id").notNull().primaryKey(),name:r7("name"),email:r7("email").notNull(),emailVerified:rp("emailVerified",{mode:"date"}),image:r7("image")}),r=e("account",{userId:r7("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),type:r7("type").$type().notNull(),provider:r7("provider").notNull(),providerAccountId:r7("providerAccountId").notNull(),refresh_token:r7("refresh_token"),access_token:r7("access_token"),expires_at:new ie("expires_at"),token_type:r7("token_type"),scope:r7("scope"),id_token:r7("id_token"),session_state:r7("session_state")},e=>({compoundKey:(0,ir.CK)(e.provider,e.providerAccountId)})),i=e("session",{sessionToken:r7("sessionToken").notNull().primaryKey(),userId:r7("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),expires:rp("expires",{mode:"date"}).notNull()});return{users:t,accounts:r,sessions:i,verificationTokens:e("verificationToken",{identifier:r7("identifier").notNull(),token:r7("token").notNull(),expires:rp("expires",{mode:"date"}).notNull()},e=>({compoundKey:(0,ir.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,td.eq)(r.id,t)).then(e=>e[0]??null),getUserByEmail:async t=>await e.select().from(r).where((0,td.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,td.eq)(n.sessionToken,t)).innerJoin(r,(0,td.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,td.eq)(r.id,t.id)).returning().then(e=>e[0])},updateSession:async t=>await e.update(n).set(t).where((0,td.eq)(n.sessionToken,t.sessionToken)).returning().then(e=>e[0]),linkAccount:async t=>ii(await e.insert(i).values(t).returning().then(e=>e[0])),async getUserByAccount(t){let n=await e.select().from(i).where((0,td.xD)((0,td.eq)(i.providerAccountId,t.providerAccountId),(0,td.eq)(i.provider,t.provider))).leftJoin(r,(0,td.eq)(i.userId,r.id)).then(e=>e[0])??null;return n?.user??null},deleteSession:async t=>await e.delete(n).where((0,td.eq)(n.sessionToken,t)).returning().then(e=>e[0]??null),createVerificationToken:async t=>await e.insert(s).values(t).returning().then(e=>e[0]),async useVerificationToken(t){try{return await e.delete(s).where((0,td.xD)((0,td.eq)(s.identifier,t.identifier),(0,td.eq)(s.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,td.eq)(r.id,t)).returning().then(e=>e[0]??null)},async unlinkAccount(t){let{type:r,provider:n,providerAccountId:s,userId:a}=await e.delete(i).where((0,td.xD)((0,td.eq)(i.providerAccountId,t.providerAccountId),(0,td.eq)(i.provider,t.provider))).returning().then(e=>e[0]??null);return{provider:n,type:r,providerAccountId:s,userId:a}}}}(e,t);if((0,tt.is)(e,rF.z))return function(e,t=il.Px){let{users:r,accounts:i,sessions:n,verificationTokens:s}=function(e){let t=e("user",{id:(0,is.fL)("id").notNull().primaryKey(),name:(0,is.fL)("name"),email:(0,is.fL)("email").notNull(),emailVerified:(0,ia._L)("emailVerified",{mode:"timestamp_ms"}),image:(0,is.fL)("image")}),r=e("account",{userId:(0,is.fL)("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),type:(0,is.fL)("type").$type().notNull(),provider:(0,is.fL)("provider").notNull(),providerAccountId:(0,is.fL)("providerAccountId").notNull(),refresh_token:(0,is.fL)("refresh_token"),access_token:(0,is.fL)("access_token"),expires_at:(0,ia._L)("expires_at"),token_type:(0,is.fL)("token_type"),scope:(0,is.fL)("scope"),id_token:(0,is.fL)("id_token"),session_state:(0,is.fL)("session_state")},e=>({compoundKey:(0,io.CK)(e.provider,e.providerAccountId)})),i=e("session",{sessionToken:(0,is.fL)("sessionToken").notNull().primaryKey(),userId:(0,is.fL)("userId").notNull().references(()=>t.id,{onDelete:"cascade"}),expires:(0,ia._L)("expires",{mode:"timestamp_ms"}).notNull()});return{users:t,accounts:r,sessions:i,verificationTokens:e("verificationToken",{identifier:(0,is.fL)("identifier").notNull(),token:(0,is.fL)("token").notNull(),expires:(0,ia._L)("expires",{mode:"timestamp_ms"}).notNull()},e=>({compoundKey:(0,io.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,td.eq)(r.id,t)).get()??null,getUserByEmail:async t=>await e.select().from(r).where((0,td.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,td.eq)(n.sessionToken,t)).innerJoin(r,(0,td.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,td.eq)(r.id,t.id)).returning().get()??null},updateSession:async t=>await e.update(n).set(t).where((0,td.eq)(n.sessionToken,t.sessionToken)).returning().get()??null,linkAccount:async t=>ii(await e.insert(i).values(t).returning().get()),async getUserByAccount(t){let n=await e.select().from(i).leftJoin(r,(0,td.eq)(r.id,i.userId)).where((0,td.xD)((0,td.eq)(i.provider,t.provider),(0,td.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,td.eq)(n.sessionToken,t)).returning().get()??null,createVerificationToken:async t=>await e.insert(s).values(t).returning().get()??null,async useVerificationToken(t){try{return await e.delete(s).where((0,td.xD)((0,td.eq)(s.identifier,t.identifier),(0,td.eq)(s.token,t.token))).returning().get()??null}catch(e){throw Error("No verification token found.")}},deleteUser:async t=>await e.delete(r).where((0,td.eq)(r.id,t)).returning().get()??null,async unlinkAccount(t){await e.delete(i).where((0,td.xD)((0,td.eq)(i.providerAccountId,t.providerAccountId),(0,td.eq)(i.provider,t.provider))).run()}}}(e,t);throw Error(`Unsupported database type (${typeof e}) in Auth.js Drizzle adapter.`)}(l0.db,l1.createTable),providers:[{id:"google",name:"Google",type:"oidc",issuer:"https://accounts.google.com",style:{logo:"/google.svg",bg:"#fff",text:"#000"},options:{clientId:te.GOOGLE_CLIENT_ID,clientSecret:te.GOOGLE_CLIENT_SECRET,authorization:{params:{prompt:"consent",response_type:"code"}}}}]}),l5="edge",l3=new c.AppRouteRouteModule({definition:{kind:d.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:o}),{requestAsyncStorage:l8,staticGenerationAsyncStorage:l9,serverHooks:l7,headerHooks:ue,staticGenerationBailout:ut}=l3,ur="/api/auth/[...nextauth]/route";function ui(){return(0,h.XH)({serverHooks:l7,staticGenerationAsyncStorage:l9})}let un=l,us=u.a.wrap(l3)},8594:(e,t,r)=>{"use strict";r.d(t,{db:()=>k});var i=r(2209);class n{static{this[i.Q]="ConsoleLogWriter"}write(e){console.log(e)}}class s{static{this[i.Q]="DefaultLogger"}constructor(e){this.writer=e?.writer??new n}logQuery(e,t){let r=t.map(e=>{try{return JSON.stringify(e)}catch{return String(e)}}),i=r.length?` -- params: [${r.join(", ")}]`:"";this.writer.write(`Query: ${e}${i}`)}}class a{static{this[i.Q]="NoopLogger"}logQuery(){}}var o=r(2801),l=r(4078),u=r(2350),c=r(5469),d=r(2688),h=r(130);class p extends h.N{constructor(e){super(),this.resultCb=e}static{this[i.Q]="ExecuteResultSync"}async execute(){return this.resultCb()}sync(){return this.resultCb()}}class f{constructor(e,t,r){this.mode=e,this.executeMethod=t,this.query=r}static{this[i.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[i.Q]="SQLiteSession"}prepareOneTimeQuery(e,t,r){return this.prepareQuery(e,t,r)}run(e){let t=this.dialect.sqlToQuery(e);try{return this.prepareOneTimeQuery(t,void 0,"run").run()}catch(e){throw new d.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 g extends l.z{constructor(e,t,r,i,n=0){super(e,t,r,i),this.schema=i,this.nestedIndex=n}static{this[i.Q]="SQLiteTransaction"}rollback(){throw new d.F}}var y=r(753);class v extends m{constructor(e,t,r,i={}){super(t),this.client=e,this.schema=r,this.options=i,this.logger=i.logger??new a}static{this[i.Q]="SQLiteD1Session"}prepareQuery(e,t,r,i){return new _(this.client.prepare(e.sql),e,this.logger,t,r,i)}async batch(e){let t=[],r=[];for(let i of e){let e=i._prepare(),n=e.getQuery();if(t.push(e),n.params.length>0)r.push(e.stmt.bind(...n.params));else{let t=e.getQuery();r.push(this.client.prepare(t.sql).bind(...t.params))}}return(await this.client.batch(r)).map((e,r)=>t[r].mapResult(e,!0))}extractRawAllValueFromBatchResult(e){return e.results}extractRawGetValueFromBatchResult(e){return e.results[0]}extractRawValuesValueFromBatchResult(e){return w(e.results)}async transaction(e,t){let r=new b("async",this.dialect,this,this.schema);await this.run(c.i6.raw(`begin${t?.behavior?" "+t.behavior:""}`));try{let t=await e(r);return await this.run(c.i6`commit`),t}catch(e){throw await this.run(c.i6`rollback`),e}}}class b extends g{static{this[i.Q]="D1Transaction"}async transaction(e){let t=`sp${this.nestedIndex}`,r=new b("async",this.dialect,this.session,this.schema,this.nestedIndex+1);await this.session.run(c.i6.raw(`savepoint ${t}`));try{let i=await e(r);return await this.session.run(c.i6.raw(`release savepoint ${t}`)),i}catch(e){throw await this.session.run(c.i6.raw(`rollback to savepoint ${t}`)),e}}}function w(e){let t=[];for(let r of e){let e=Object.keys(r).map(e=>r[e]);t.push(e)}return t}class _ extends f{constructor(e,t,r,i,n,s){super("async",n,t),this.logger=r,this.customResultMapper=s,this.fields=i,this.stmt=e}static{this[i.Q]="D1PreparedQuery"}run(e){let t=(0,c.Pr)(this.query.params,e??{});return this.logger.logQuery(this.query.sql,t),this.stmt.bind(...t).run()}async all(e){let{fields:t,query:r,logger:i,stmt:n,customResultMapper:s}=this;if(!t&&!s){let t=(0,c.Pr)(r.params,e??{});return i.logQuery(r.sql,t),n.bind(...t).all().then(({results:e})=>this.mapAllResult(e))}let a=await this.values(e);return this.mapAllResult(a)}mapAllResult(e,t){return(t&&(e=w(e.results)),this.fields||this.customResultMapper)?this.customResultMapper?this.customResultMapper(e):e.map(e=>(0,y.M4)(this.fields,e,this.joinsNotNullableMap)):e}async get(e){let{fields:t,joinsNotNullableMap:r,query:i,logger:n,stmt:s,customResultMapper:a}=this;if(!t&&!a){let t=(0,c.Pr)(i.params,e??{});return n.logQuery(i.sql,t),s.bind(...t).all().then(({results:e})=>e[0])}let o=await this.values(e);return o[0]?a?a(o):(0,y.M4)(t,o[0],r):void 0}mapGetResult(e,t){return(t&&(e=w(e.results)[0]),this.fields||this.customResultMapper)?this.customResultMapper?this.customResultMapper([e]):(0,y.M4)(this.fields,e,this.joinsNotNullableMap):e}values(e){let t=(0,c.Pr)(this.query.params,e??{});return this.logger.logQuery(this.query.sql,t),this.stmt.bind(...t).raw()}}class S extends l.z{static{this[i.Q]="LibSQLDatabase"}async batch(e){return this.session.batch(e)}}var x=r(4680);let k=function(e,t={}){let r,i;let n=new u.Oz;if(!0===t.logger?r=new s:!1!==t.logger&&(r=t.logger),t.schema){let e=(0,o.pb)(t.schema,o._J);i={fullSchema:t.schema,schema:e.tables,tableNamesMap:e.tableNamesMap}}let a=new v(e,n,i,{logger:r});return new S("async",n,a,i)}(process.env.D1Database,{schema:x})},4680:(e,t,r)=>{"use strict";r.r(t),r.d(t,{accounts:()=>v,accountsRelations:()=>b,createTable:()=>f,posts:()=>m,sessions:()=>w,sessionsRelations:()=>_,users:()=>g,usersRelations:()=>y,verificationTokens:()=>S});var i=r(5469),n=r(2801),s=r(5315),a=r(2404),o=r(1701),l=r(2209);class u{constructor(e,t){this.name=e,this.unique=t}static{this[l.Q]="SQLiteIndexBuilderOn"}on(...e){return new c(this.name,e,this.unique)}}class c{static{this[l.Q]="SQLiteIndexBuilder"}constructor(e,t,r){this.config={name:e,columns:t,unique:r,where:void 0}}where(e){return this.config.where=e,this}build(e){return new d(this.config,e)}}class d{static{this[l.Q]="SQLiteIndex"}constructor(e,t){this.config={...e,table:t}}}function h(e){return new u(e,!1)}var p=r(9352);let f=(0,s._9)(e=>`anycontext_${e}`),m=f("post",{id:(0,a.e$)("id",{mode:"number"}).primaryKey({autoIncrement:!0}),name:(0,o.fL)("name",{length:256}),createdById:(0,o.fL)("createdById",{length:255}).notNull().references(()=>g.id),createdAt:(0,a.e$)("created_at",{mode:"timestamp"}).default(i.i6`CURRENT_TIMESTAMP`).notNull(),updatedAt:(0,a.e$)("updatedAt",{mode:"timestamp"})},e=>({createdByIdIdx:h("createdById_idx").on(e.createdById),nameIndex:h("name_idx").on(e.name)})),g=f("user",{id:(0,o.fL)("id",{length:255}).notNull().primaryKey(),name:(0,o.fL)("name",{length:255}),email:(0,o.fL)("email",{length:255}).notNull(),emailVerified:(0,a.e$)("emailVerified",{mode:"timestamp"}).default(i.i6`CURRENT_TIMESTAMP`),image:(0,o.fL)("image",{length:255})}),y=(0,n.lE)(g,({many:e})=>({accounts:e(v)})),v=f("account",{userId:(0,o.fL)("userId",{length:255}).notNull().references(()=>g.id),type:(0,o.fL)("type",{length:255}).$type().notNull(),provider:(0,o.fL)("provider",{length:255}).notNull(),providerAccountId:(0,o.fL)("providerAccountId",{length:255}).notNull(),refresh_token:(0,o.fL)("refresh_token"),access_token:(0,o.fL)("access_token"),expires_at:(0,a.e$)("expires_at"),token_type:(0,o.fL)("token_type",{length:255}),scope:(0,o.fL)("scope",{length:255}),id_token:(0,o.fL)("id_token"),session_state:(0,o.fL)("session_state",{length:255})},e=>({compoundKey:(0,p.CK)({columns:[e.provider,e.providerAccountId]}),userIdIdx:h("account_userId_idx").on(e.userId)})),b=(0,n.lE)(v,({one:e})=>({user:e(g,{fields:[v.userId],references:[g.id]})})),w=f("session",{sessionToken:(0,o.fL)("sessionToken",{length:255}).notNull().primaryKey(),userId:(0,o.fL)("userId",{length:255}).notNull().references(()=>g.id),expires:(0,a.e$)("expires",{mode:"timestamp"}).notNull()},e=>({userIdIdx:h("session_userId_idx").on(e.userId)})),_=(0,n.lE)(w,({one:e})=>({user:e(g,{fields:[w.userId],references:[g.id]})})),S=f("verificationToken",{identifier:(0,o.fL)("identifier",{length:255}).notNull(),token:(0,o.fL)("token",{length:255}).notNull(),expires:(0,a.e$)("expires",{mode:"timestamp"}).notNull()},e=>({compoundKey:(0,p.CK)({columns:[e.identifier,e.token]})}))},6076:(e,t)=>{"use strict";/*! + * cookie + * Copyright(c) 2012-2014 Roman Shtylman + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */t.Q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},i=(t||{}).decode||n,s=0;s{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s={};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 o(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[i,n]=[r.slice(0,e),r.slice(e+1)];try{t.set(i,decodeURIComponent(null!=n?n:"true"))}catch{}}return t}function l(e){var t,r;if(!e)return;let[[i,n],...s]=o(e),{domain:a,expires:l,httponly:d,maxage:h,path:p,samesite:f,secure:m,priority:g}=Object.fromEntries(s.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:i,value:decodeURIComponent(n),domain:a,...l&&{expires:new Date(l)},...d&&{httpOnly:!0},..."string"==typeof h&&{maxAge:Number(h)},path:p,...f&&{sameSite:u.includes(t=(t=f).toLowerCase())?t:void 0},...m&&{secure:!0},...g&&{priority:c.includes(r=(r=g).toLowerCase())?r:void 0}})}((e,r)=>{for(var i in r)t(e,i,{get:r[i],enumerable:!0})})(s,{RequestCookies:()=>d,ResponseCookies:()=>h,parseCookie:()=>o,parseSetCookie:()=>l,stringifyCookie:()=>a}),e.exports=((e,s,a,o)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let a of i(s))n.call(e,a)||void 0===a||t(e,a,{get:()=>s[a],enumerable:!(o=r(s,a))||o.enumerable});return e})(t({},"__esModule",{value:!0}),s);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 o(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 i="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===i).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,i=this._parsed;return i.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(i).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("; ")}},h=class{constructor(e){var t,r,i;this._parsed=new Map,this._headers=e;let n=null!=(i=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?i:[];for(let e of Array.isArray(n)?n:function(e){if(!e)return[];var t,r,i,n,s,a=[],o=0;function l(){for(;o=e.length)&&a.push(e.substring(t,e.length))}return a}(n)){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 i="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===i)}has(e){return this._parsed.has(e)}set(...e){let[t,r,i]=1===e.length?[e[0].name,e[0].value,e[0]]:e,n=this._parsed;return n.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,...i})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=a(r);t.append("set-cookie",e)}}(n,this._headers),this}delete(...e){let[t,r,i]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:i,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("; ")}}},4477:(e,t,r)=>{"use strict";(()=>{var t={491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextAPI=void 0;let i=r(223),n=r(172),s=r(930),a="context",o=new i.NoopContextManager;class l{constructor(){}static getInstance(){return this._instance||(this._instance=new l),this._instance}setGlobalContextManager(e){return(0,n.registerGlobal)(a,e,s.DiagAPI.instance())}active(){return this._getContextManager().active()}with(e,t,r,...i){return this._getContextManager().with(e,t,r,...i)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,n.getGlobal)(a)||o}disable(){this._getContextManager().disable(),(0,n.unregisterGlobal)(a,s.DiagAPI.instance())}}t.ContextAPI=l},930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagAPI=void 0;let i=r(56),n=r(912),s=r(957),a=r(172);class o{constructor(){function e(e){return function(...t){let r=(0,a.getGlobal)("diag");if(r)return r[e](...t)}}let t=this;t.setLogger=(e,r={logLevel:s.DiagLogLevel.INFO})=>{var i,o,l;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!==(i=e.stack)&&void 0!==i?i:e.message),!1}"number"==typeof r&&(r={logLevel:r});let u=(0,a.getGlobal)("diag"),c=(0,n.createLogLevelDiagLogger)(null!==(o=r.logLevel)&&void 0!==o?o:s.DiagLogLevel.INFO,e);if(u&&!r.suppressOverrideMessage){let e=null!==(l=Error().stack)&&void 0!==l?l:"";u.warn(`Current logger will be overwritten from ${e}`),c.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,a.registerGlobal)("diag",c,t,!0)},t.disable=()=>{(0,a.unregisterGlobal)("diag",t)},t.createComponentLogger=e=>new i.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 o),this._instance}}t.DiagAPI=o},653:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsAPI=void 0;let i=r(660),n=r(172),s=r(930),a="metrics";class o{constructor(){}static getInstance(){return this._instance||(this._instance=new o),this._instance}setGlobalMeterProvider(e){return(0,n.registerGlobal)(a,e,s.DiagAPI.instance())}getMeterProvider(){return(0,n.getGlobal)(a)||i.NOOP_METER_PROVIDER}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,n.unregisterGlobal)(a,s.DiagAPI.instance())}}t.MetricsAPI=o},181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropagationAPI=void 0;let i=r(172),n=r(874),s=r(194),a=r(277),o=r(369),l=r(930),u="propagation",c=new n.NoopTextMapPropagator;class d{constructor(){this.createBaggage=o.createBaggage,this.getBaggage=a.getBaggage,this.getActiveBaggage=a.getActiveBaggage,this.setBaggage=a.setBaggage,this.deleteBaggage=a.deleteBaggage}static getInstance(){return this._instance||(this._instance=new d),this._instance}setGlobalPropagator(e){return(0,i.registerGlobal)(u,e,l.DiagAPI.instance())}inject(e,t,r=s.defaultTextMapSetter){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=s.defaultTextMapGetter){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,i.unregisterGlobal)(u,l.DiagAPI.instance())}_getGlobalPropagator(){return(0,i.getGlobal)(u)||c}}t.PropagationAPI=d},997:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceAPI=void 0;let i=r(172),n=r(846),s=r(139),a=r(607),o=r(930),l="trace";class u{constructor(){this._proxyTracerProvider=new n.ProxyTracerProvider,this.wrapSpanContext=s.wrapSpanContext,this.isSpanContextValid=s.isSpanContextValid,this.deleteSpan=a.deleteSpan,this.getSpan=a.getSpan,this.getActiveSpan=a.getActiveSpan,this.getSpanContext=a.getSpanContext,this.setSpan=a.setSpan,this.setSpanContext=a.setSpanContext}static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalTracerProvider(e){let t=(0,i.registerGlobal)(l,this._proxyTracerProvider,o.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,i.getGlobal)(l)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,i.unregisterGlobal)(l,o.DiagAPI.instance()),this._proxyTracerProvider=new n.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 i=r(491),n=(0,r(780).createContextKey)("OpenTelemetry Baggage Key");function s(e){return e.getValue(n)||void 0}t.getBaggage=s,t.getActiveBaggage=function(){return s(i.ContextAPI.getInstance().active())},t.setBaggage=function(e,t){return e.setValue(n,t)},t.deleteBaggage=function(e){return e.deleteValue(n)}},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 i=new r(this._entries);return i._entries.set(e,t),i}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 i=r(930),n=r(993),s=r(830),a=i.DiagAPI.instance();t.createBaggage=function(e={}){return new n.BaggageImpl(new Map(Object.entries(e)))},t.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(a.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:s.baggageEntryMetadataSymbol,toString:()=>e}}},67:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.context=void 0;let i=r(491);t.context=i.ContextAPI.getInstance()},223:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopContextManager=void 0;let i=r(780);class n{active(){return i.ROOT_CONTEXT}with(e,t,r,...i){return t.call(r,...i)}bind(e,t){return t}enable(){return this}disable(){return this}}t.NoopContextManager=n},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,i)=>{let n=new r(t._currentContext);return n._currentContext.set(e,i),n},t.deleteValue=e=>{let i=new r(t._currentContext);return i._currentContext.delete(e),i}}}t.ROOT_CONTEXT=new r},506:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diag=void 0;let i=r(930);t.diag=i.DiagAPI.instance()},56:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagComponentLogger=void 0;let i=r(172);class n{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return s("debug",this._namespace,e)}error(...e){return s("error",this._namespace,e)}info(...e){return s("info",this._namespace,e)}warn(...e){return s("warn",this._namespace,e)}verbose(...e){return s("verbose",this._namespace,e)}}function s(e,t,r){let n=(0,i.getGlobal)("diag");if(n)return r.unshift(t),n[e](...r)}t.DiagComponentLogger=n},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 i{constructor(){for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.createLogLevelDiagLogger=void 0;let i=r(957);t.createLogLevelDiagLogger=function(e,t){function r(r,i){let n=t[r];return"function"==typeof n&&e>=i?n.bind(t):function(){}}return ei.DiagLogLevel.ALL&&(e=i.DiagLogLevel.ALL),t=t||{},{error:r("error",i.DiagLogLevel.ERROR),warn:r("warn",i.DiagLogLevel.WARN),info:r("info",i.DiagLogLevel.INFO),debug:r("debug",i.DiagLogLevel.DEBUG),verbose:r("verbose",i.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 i=r(200),n=r(521),s=r(130),a=n.VERSION.split(".")[0],o=Symbol.for(`opentelemetry.js.api.${a}`),l=i._globalThis;t.registerGlobal=function(e,t,r,i=!1){var s;let a=l[o]=null!==(s=l[o])&&void 0!==s?s:{version:n.VERSION};if(!i&&a[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(a.version!==n.VERSION){let t=Error(`@opentelemetry/api: Registration of version v${a.version} for ${e} does not match previously registered API v${n.VERSION}`);return r.error(t.stack||t.message),!1}return a[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${n.VERSION}.`),!0},t.getGlobal=function(e){var t,r;let i=null===(t=l[o])||void 0===t?void 0:t.version;if(i&&(0,s.isCompatible)(i))return null===(r=l[o])||void 0===r?void 0:r[e]},t.unregisterGlobal=function(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${n.VERSION}.`);let r=l[o];r&&delete r[e]}},130:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isCompatible=t._makeCompatibilityCheck=void 0;let i=r(521),n=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function s(e){let t=new Set([e]),r=new Set,i=e.match(n);if(!i)return()=>!1;let s={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(null!=s.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;let i=e.match(n);if(!i)return a(e);let o={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};return null!=o.prerelease||s.major!==o.major?a(e):0===s.major?s.minor===o.minor&&s.patch<=o.patch?(t.add(e),!0):a(e):s.minor<=o.minor?(t.add(e),!0):a(e)}}t._makeCompatibilityCheck=s,t.isCompatible=s(i.VERSION)},886:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.metrics=void 0;let i=r(653);t.metrics=i.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 i{}t.NoopMetric=i;class n extends i{add(e,t){}}t.NoopCounterMetric=n;class s extends i{add(e,t){}}t.NoopUpDownCounterMetric=s;class a extends i{record(e,t){}}t.NoopHistogramMetric=a;class o{addCallback(e){}removeCallback(e){}}t.NoopObservableMetric=o;class l extends o{}t.NoopObservableCounterMetric=l;class u extends o{}t.NoopObservableGaugeMetric=u;class c extends o{}t.NoopObservableUpDownCounterMetric=c,t.NOOP_METER=new r,t.NOOP_COUNTER_METRIC=new n,t.NOOP_HISTOGRAM_METRIC=new a,t.NOOP_UP_DOWN_COUNTER_METRIC=new s,t.NOOP_OBSERVABLE_COUNTER_METRIC=new l,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 i=r(102);class n{getMeter(e,t,r){return i.NOOP_METER}}t.NoopMeterProvider=n,t.NOOP_METER_PROVIDER=new n},200:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(46),t)},651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t._globalThis=void 0,t._globalThis="object"==typeof globalThis?globalThis:r.g},46:function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(651),t)},939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.propagation=void 0;let i=r(181);t.propagation=i.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 i=r(997);t.trace=i.TraceAPI.getInstance()},403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NonRecordingSpan=void 0;let i=r(476);class n{constructor(e=i.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=n},614:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracer=void 0;let i=r(491),n=r(607),s=r(403),a=r(139),o=i.ContextAPI.getInstance();class l{startSpan(e,t,r=o.active()){if(null==t?void 0:t.root)return new s.NonRecordingSpan;let i=r&&(0,n.getSpanContext)(r);return"object"==typeof i&&"string"==typeof i.spanId&&"string"==typeof i.traceId&&"number"==typeof i.traceFlags&&(0,a.isSpanContextValid)(i)?new s.NonRecordingSpan(i):new s.NonRecordingSpan}startActiveSpan(e,t,r,i){let s,a,l;if(arguments.length<2)return;2==arguments.length?l=t:3==arguments.length?(s=t,l=r):(s=t,a=r,l=i);let u=null!=a?a:o.active(),c=this.startSpan(e,s,u),d=(0,n.setSpan)(u,c);return o.with(d,l,void 0,c)}}t.NoopTracer=l},124:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracerProvider=void 0;let i=r(614);class n{getTracer(e,t,r){return new i.NoopTracer}}t.NoopTracerProvider=n},125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracer=void 0;let i=new(r(614)).NoopTracer;class n{constructor(e,t,r,i){this._provider=e,this.name=t,this.version=r,this.options=i}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,i){let n=this._getTracer();return Reflect.apply(n.startActiveSpan,n,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):i}}t.ProxyTracer=n},846:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracerProvider=void 0;let i=r(125),n=new(r(124)).NoopTracerProvider;class s{getTracer(e,t,r){var n;return null!==(n=this.getDelegateTracer(e,t,r))&&void 0!==n?n:new i.ProxyTracer(this,e,t,r)}getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:n}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var i;return null===(i=this._delegate)||void 0===i?void 0:i.getTracer(e,t,r)}}t.ProxyTracerProvider=s},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 i=r(780),n=r(403),s=r(491),a=(0,i.createContextKey)("OpenTelemetry Context Key SPAN");function o(e){return e.getValue(a)||void 0}function l(e,t){return e.setValue(a,t)}t.getSpan=o,t.getActiveSpan=function(){return o(s.ContextAPI.getInstance().active())},t.setSpan=l,t.deleteSpan=function(e){return e.deleteValue(a)},t.setSpanContext=function(e,t){return l(e,new n.NonRecordingSpan(t))},t.getSpanContext=function(e){var t;return null===(t=o(e))||void 0===t?void 0:t.spanContext()}},325:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceStateImpl=void 0;let i=r(564);class n{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(),n=r.indexOf("=");if(-1!==n){let s=r.slice(0,n),a=r.slice(n+1,t.length);(0,i.validateKey)(s)&&(0,i.validateValue)(a)&&e.set(s,a)}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 n;return e._internalState=new Map(this._internalState),e}}t.TraceStateImpl=n},564:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateValue=t.validateKey=void 0;let r="[_0-9a-z-*/]",i=`[a-z]${r}{0,255}`,n=`[a-z0-9]${r}{0,240}@[a-z]${r}{0,13}`,s=RegExp(`^(?:${i}|${n})$`),a=/^[ -~]{0,255}[!-~]$/,o=/,|=/;t.validateKey=function(e){return s.test(e)},t.validateValue=function(e){return a.test(e)&&!o.test(e)}},98:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTraceState=void 0;let i=r(325);t.createTraceState=function(e){return new i.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 i=r(475);t.INVALID_SPANID="0000000000000000",t.INVALID_TRACEID="00000000000000000000000000000000",t.INVALID_SPAN_CONTEXT={traceId:t.INVALID_TRACEID,spanId:t.INVALID_SPANID,traceFlags:i.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 i=r(476),n=r(403),s=/^([0-9a-f]{32})$/i,a=/^[0-9a-f]{16}$/i;function o(e){return s.test(e)&&e!==i.INVALID_TRACEID}function l(e){return a.test(e)&&e!==i.INVALID_SPANID}t.isValidTraceId=o,t.isValidSpanId=l,t.isSpanContextValid=function(e){return o(e.traceId)&&l(e.spanId)},t.wrapSpanContext=function(e){return new n.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"}},i={};function n(e){var r=i[e];if(void 0!==r)return r.exports;var s=i[e]={exports:{}},a=!0;try{t[e].call(s.exports,s,s.exports,n),a=!1}finally{a&&delete i[e]}return s.exports}n.ab="//";var s={};(()=>{Object.defineProperty(s,"__esModule",{value:!0}),s.trace=s.propagation=s.metrics=s.diag=s.context=s.INVALID_SPAN_CONTEXT=s.INVALID_TRACEID=s.INVALID_SPANID=s.isValidSpanId=s.isValidTraceId=s.isSpanContextValid=s.createTraceState=s.TraceFlags=s.SpanStatusCode=s.SpanKind=s.SamplingDecision=s.ProxyTracerProvider=s.ProxyTracer=s.defaultTextMapSetter=s.defaultTextMapGetter=s.ValueType=s.createNoopMeter=s.DiagLogLevel=s.DiagConsoleLogger=s.ROOT_CONTEXT=s.createContextKey=s.baggageEntryMetadataFromString=void 0;var e=n(369);Object.defineProperty(s,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return e.baggageEntryMetadataFromString}});var t=n(780);Object.defineProperty(s,"createContextKey",{enumerable:!0,get:function(){return t.createContextKey}}),Object.defineProperty(s,"ROOT_CONTEXT",{enumerable:!0,get:function(){return t.ROOT_CONTEXT}});var r=n(972);Object.defineProperty(s,"DiagConsoleLogger",{enumerable:!0,get:function(){return r.DiagConsoleLogger}});var i=n(957);Object.defineProperty(s,"DiagLogLevel",{enumerable:!0,get:function(){return i.DiagLogLevel}});var a=n(102);Object.defineProperty(s,"createNoopMeter",{enumerable:!0,get:function(){return a.createNoopMeter}});var o=n(901);Object.defineProperty(s,"ValueType",{enumerable:!0,get:function(){return o.ValueType}});var l=n(194);Object.defineProperty(s,"defaultTextMapGetter",{enumerable:!0,get:function(){return l.defaultTextMapGetter}}),Object.defineProperty(s,"defaultTextMapSetter",{enumerable:!0,get:function(){return l.defaultTextMapSetter}});var u=n(125);Object.defineProperty(s,"ProxyTracer",{enumerable:!0,get:function(){return u.ProxyTracer}});var c=n(846);Object.defineProperty(s,"ProxyTracerProvider",{enumerable:!0,get:function(){return c.ProxyTracerProvider}});var d=n(996);Object.defineProperty(s,"SamplingDecision",{enumerable:!0,get:function(){return d.SamplingDecision}});var h=n(357);Object.defineProperty(s,"SpanKind",{enumerable:!0,get:function(){return h.SpanKind}});var p=n(847);Object.defineProperty(s,"SpanStatusCode",{enumerable:!0,get:function(){return p.SpanStatusCode}});var f=n(475);Object.defineProperty(s,"TraceFlags",{enumerable:!0,get:function(){return f.TraceFlags}});var m=n(98);Object.defineProperty(s,"createTraceState",{enumerable:!0,get:function(){return m.createTraceState}});var g=n(139);Object.defineProperty(s,"isSpanContextValid",{enumerable:!0,get:function(){return g.isSpanContextValid}}),Object.defineProperty(s,"isValidTraceId",{enumerable:!0,get:function(){return g.isValidTraceId}}),Object.defineProperty(s,"isValidSpanId",{enumerable:!0,get:function(){return g.isValidSpanId}});var y=n(476);Object.defineProperty(s,"INVALID_SPANID",{enumerable:!0,get:function(){return y.INVALID_SPANID}}),Object.defineProperty(s,"INVALID_TRACEID",{enumerable:!0,get:function(){return y.INVALID_TRACEID}}),Object.defineProperty(s,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return y.INVALID_SPAN_CONTEXT}});let v=n(67);Object.defineProperty(s,"context",{enumerable:!0,get:function(){return v.context}});let b=n(506);Object.defineProperty(s,"diag",{enumerable:!0,get:function(){return b.diag}});let w=n(886);Object.defineProperty(s,"metrics",{enumerable:!0,get:function(){return w.metrics}});let _=n(939);Object.defineProperty(s,"propagation",{enumerable:!0,get:function(){return _.propagation}});let S=n(845);Object.defineProperty(s,"trace",{enumerable:!0,get:function(){return S.trace}}),s.default={context:v.context,diag:b.diag,metrics:w.metrics,propagation:_.propagation,trace:S.trace}})(),e.exports=s})()},1935:e=>{"use strict";(()=>{"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{/*! + * cookie + * Copyright(c) 2012-2014 Roman Shtylman + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */t.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var n={},s=t.split(i),a=(r||{}).decode||e,o=0;o{"use strict";(()=>{var t={806:(e,t,r)=>{let i=r(190),n=Symbol("max"),s=Symbol("length"),a=Symbol("lengthCalculator"),o=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),d=Symbol("lruList"),h=Symbol("cache"),p=Symbol("updateAgeOnGet"),f=()=>1;class m{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[a]="function"!=typeof t?f:t,this[o]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=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,v(this)}get max(){return this[n]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,v(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[a]&&(this[a]=e,this[s]=0,this[d].forEach(e=>{e.length=this[a](e.value,e.key),this[s]+=e.length})),v(this)}get lengthCalculator(){return this[a]}get length(){return this[s]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){let i=r.prev;_(this,e,r,t),r=i}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){let i=r.next;_(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[u]&&this[d]&&this[d].length&&this[d].forEach(e=>this[u](e.key,e.value)),this[h]=new Map,this[d]=new i,this[s]=0}dump(){return this[d].map(e=>!y(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,o=this[a](t,e);if(this[h].has(e)){if(o>this[n])return b(this,this[h].get(e)),!1;let a=this[h].get(e).value;return this[u]&&!this[c]&&this[u](e,a.value),a.now=i,a.maxAge=r,a.value=t,this[s]+=o-a.length,a.length=o,this.get(e),v(this),!0}let p=new w(e,t,o,i,r);return p.length>this[n]?(this[u]&&this[u](e,t),!1):(this[s]+=p.length,this[d].unshift(p),this[h].set(e,this[d].head),v(this),!0)}has(e){return!!this[h].has(e)&&!y(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?(b(this,e),e.value):null}del(e){b(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(y(e,t)){if(b(e,i),!e[o])return}else r&&(e[p]&&(i.value.now=Date.now()),e[d].unshiftNode(i));return t.value}},y=(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]},v=e=>{if(e[s]>e[n])for(let t=e[d].tail;e[s]>e[n]&&null!==t;){let r=t.prev;b(e,t),t=r}},b=(e,t)=>{if(t){let r=t.value;e[u]&&e[u](r.key,r.value),e[s]-=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 _=(e,t,r,i)=>{let n=r.value;y(e,n)&&(b(e,r),e[o]||(n=void 0)),n&&t.call(i,n.value,n.key,e)};e.exports=m},76:e=>{e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},190:(e,t,r)=>{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,s=this.head;null!==s&&nthis.length&&(t=this.length);for(var n=this.length,s=this.tail;null!==s&&n>t;n--)s=s.prev;for(;null!==s&&n>e;n--,s=s.prev)r.push(s.value);return r},i.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;null!==i&&r{"use strict";!function(){var t={452:function(e){e.exports=r(7808)}},i={};function n(e){var r=i[e];if(void 0!==r)return r.exports;var s=i[e]={exports:{}},a=!0;try{t[e](s,s.exports,n),a=!1}finally{a&&delete i[e]}return s.exports}n.ab="//";var s={};!function(){var e,t=(e=n(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function i(e){"string"==typeof e&&(e=y(e));var i,n,s,a,o,l,u,c,d,h=(n=(i=e).auth,s=i.hostname,a=i.protocol||"",o=i.pathname||"",l=i.hash||"",u=i.query||"",c=!1,n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",i.host?c=n+i.host:s&&(c=n+(~s.indexOf(":")?"["+s+"]":s),i.port&&(c+=":"+i.port)),u&&"object"==typeof u&&(u=t.encode(u)),d=i.search||u&&"?"+u||"",a&&":"!==a.substr(-1)&&(a+=":"),i.slashes||(!a||r.test(a))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),d&&"?"!==d[0]&&(d="?"+d),{protocol:a,host:c,pathname:o=o.replace(/[?#]/g,encodeURIComponent),search:d=d.replace("#","%23"),hash:l});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var a="http://",o=a+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function c(e,t){var r="string"==typeof e?y(e):e;e="object"==typeof e?i(e):e;var n=y(t),s="";r.protocol&&!r.slashes&&(s=r.protocol,e=e.replace(r.protocol,""),s+="/"===t[0]||"/"===e[0]?"/":""),s&&n.protocol&&(s="",n.slashes||(s=n.protocol,t=t.replace(n.protocol,"")));var c=e.match(l);c&&!n.protocol&&(e=e.substr((s=c[1]+(c[2]||"")).length),/^\/\/[^/]/.test(t)&&(s=s.slice(0,-1)));var d=new URL(e,o+"/"),h=new URL(t,d).toString().replace(o,""),p=n.protocol||r.protocol;return p+=r.slashes||n.slashes?"//":"",!s&&p?h=h.replace(a,p):s&&(h=h.replace(a,"")),u.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),s&&(h=s+("/"===h[0]?h.substr(1):h)),h}function d(){}d.prototype.parse=y,d.prototype.format=i,d.prototype.resolve=c,d.prototype.resolveObject=c;var h=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,f=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function y(e,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=!1),e&&"object"==typeof e&&e instanceof d)return e;var s=(e=e.trim()).match(p);e=s?s[1].replace(/\\/g,"/")+s[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(f),l=m.test(e),u="";a&&(h.test(a[1])||(u=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(l=!1,h.test(a[1])?(u=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(u=a[1],e="/"+a[3]));var c,y=(s?s[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=y&&y[1],b=new d,w="",_="";try{c=new URL(e)}catch(t){w=t,u||n||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(_="/",e=e.substr(1));try{c=new URL(e,o)}catch(e){return b.protocol=u,b.href=u,b}}b.slashes=l&&!_,b.host="w.w"===c.host?"":c.host,b.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),b.protocol=w?u||null:c.protocol,b.search=c.search.replace(/\\/g,"%5C"),b.hash=c.hash.replace(/\\/g,"%5C");var S=e.split("#");!b.search&&~S[0].indexOf("?")&&(b.search="?"),b.hash||""!==S[1]||(b.hash="#"),b.query=r?t.decode(c.search.substr(1)):b.search.substr(1),b.pathname=_+(a?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),w&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),u&&!h.test(u)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=c.port,v&&!b.host.endsWith(v)&&(b.host+=v,b.port=v.slice(1)),b.href=_?""+b.pathname+b.search+b.hash:i(b);var x=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~x.indexOf(e)||(b[e]=b[e]||null)}),b}s.parse=y,s.format=i,s.resolve=c,s.resolveObject=function(e,t){return y(c(e,t))},s.Url=d}(),e.exports=s}()},1193:e=>{"use strict";!function(){var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,i="",n=0,s=-1,a=0,o=0;o<=e.length;++o){if(o2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",n=0):n=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),s=o,a=0;continue}}else if(2===i.length||1===i.length){i="",n=0,s=o,a=0;continue}}t&&(i.length>0?i+="/..":i="..",n=2)}else i.length>0?i+="/"+e.slice(s+1,o):i=e.slice(s+1,o),n=o-s-1;s=o,a=0}else 46===r&&-1!==a?++a:a=-1}return i}var i={resolve:function(){for(var e,i,n="",s=!1,a=arguments.length-1;a>=-1&&!s;a--)a>=0?i=arguments[a]:(void 0===e&&(e=""),i=e),t(i),0!==i.length&&(n=i+"/"+n,s=47===i.charCodeAt(0));return(n=r(n,!s),s)?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!i)).length||i||(e="."),e.length>0&&n&&(e+="/"),i)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=i.resolve(e))===(r=i.resolve(r)))return"";for(var n=1;nu){if(47===r.charCodeAt(o+d))return r.slice(o+d+1);if(0===d)return r.slice(o+d)}else a>u&&(47===e.charCodeAt(n+d)?c=d:0===d&&(c=0));break}var h=e.charCodeAt(n+d);if(h!==r.charCodeAt(o+d))break;47===h&&(c=d)}var p="";for(d=n+c+1;d<=s;++d)(d===s||47===e.charCodeAt(d))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(o+c):(o+=c,47===r.charCodeAt(o)&&++o,r.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),i=47===r,n=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!s){n=a;break}}else s=!1;return -1===n?i?"/":".":i&&1===n?"//":e.slice(0,n)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var i,n=0,s=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var o=r.length-1,l=-1;for(i=e.length-1;i>=0;--i){var u=e.charCodeAt(i);if(47===u){if(!a){n=i+1;break}}else -1===l&&(a=!1,l=i+1),o>=0&&(u===r.charCodeAt(o)?-1==--o&&(s=i):(o=-1,s=l))}return n===s?s=l:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!a){n=i+1;break}}else -1===s&&(a=!1,s=i+1);return -1===s?"":e.slice(n,s)},extname:function(e){t(e);for(var r=-1,i=0,n=-1,s=!0,a=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47===l){if(!s){i=o+1;break}continue}-1===n&&(s=!1,n=o+1),46===l?-1===r?r=o:1!==a&&(a=1):-1!==r&&(a=-1)}return -1===r||-1===n||0===a||1===a&&r===n-1&&r===i+1?"":e.slice(r,n)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r,i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;var n=e.charCodeAt(0),s=47===n;s?(i.root="/",r=1):r=0;for(var a=-1,o=0,l=-1,u=!0,c=e.length-1,d=0;c>=r;--c){if(47===(n=e.charCodeAt(c))){if(!u){o=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===n?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===o+1?-1!==l&&(0===o&&s?i.base=i.name=e.slice(1,l):i.base=i.name=e.slice(o,l)):(0===o&&s?(i.name=e.slice(1,a),i.base=e.slice(1,l)):(i.name=e.slice(o,a),i.base=e.slice(o,l)),i.ext=e.slice(a,l)),o>0?i.dir=e.slice(0,o-1):s&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var s=r[e]={exports:{}},a=!0;try{t[e](s,s.exports,i),a=!1}finally{a&&delete r[e]}return s.exports}i.ab="//";var n=i(114);e.exports=n}()},7058:(e,t)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||95===a){n+=e[s++];continue}break}if(!n)throw TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:n}),r=s;continue}if("("===i){var o=1,l="",s=r+1;if("?"===e[s])throw TypeError('Pattern cannot start with "?" at '+s);for(;s-1:void 0===b;a||(p+="(?:"+h+"(?="+d+"))?"),w||(p+="(?="+h+"|"+d+")")}return new RegExp(p,n(r))}(r(t,a),s,a)}},7808:e=>{"use strict";!function(){var t={815:function(e){e.exports=function(e,r,i,n){r=r||"&",i=i||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(r);var o=1e3;n&&"number"==typeof n.maxKeys&&(o=n.maxKeys);var l=e.length;o>0&&l>o&&(l=o);for(var u=0;u=0?(c=f.substr(0,m),d=f.substr(m+1)):(c=f,d=""),h=decodeURIComponent(c),p=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(s,h))?t(s[h])?s[h].push(p):s[h]=[s[h],p]:s[h]=p}return s};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,s,a,o){return(s=s||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?i(n(e),function(n){var o=encodeURIComponent(t(n))+a;return r(e[n])?i(e[n],function(e){return o+encodeURIComponent(t(e))}).join(s):o+encodeURIComponent(t(e[n]))}).join(s):o?encodeURIComponent(t(o))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i{"use strict";var i=r(4413),n={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r{"use strict";e.exports=r(8933)},6230:(e,t,r)=>{"use strict";var i=r(9475),n=r(9986),s=null,a=0;function o(e,t){if(0!==t.byteLength){if(512=e.length?e:e.slice(0,10)+"...");case"object":if(X(e))return"[...]";return"Object"===(e=ee(e))?"{...}":e;case"function":return"function";default:return String(e)}}function er(e,t){var r=ee(e);if("Object"!==r&&"Array"!==r)return r;r=-1;var i=0;if(X(e)){for(var n="[",s=0;sa.length&&40>n.length+a.length?n+a:n+"..."}n+="]"}else if(e.$$typeof===E)n="<"+function e(t){if("string"==typeof t)return t;switch(t){case O:return"Suspense";case P:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case C:return e(t.render);case $:return e(t.type);case N:var r=t._payload;t=t._init;try{return e(t(r))}catch(e){}}return""}(e.type)+"/>";else{for(a=0,n="{",s=Object.keys(e);al.length&&40>n.length+l.length?n+l:n+"..."}n+="}"}return void 0===t?n:-1i.depth?function e(t,r){if(t.context._currentValue=t.parentValue,null===(t=t.parent))throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");t.depth===r.depth?L(t,r):e(t,r)}(r,i):function e(t,r){var i=r.parent;if(null===i)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");t.depth===i.depth?L(t,i):e(t,i),r.context._currentValue=r.value}(r,i),j=i);try{var n=t.model;if("object"==typeof n&&null!==n&&n.$$typeof===E){e.writtenObjects.set(n,t.id),r=n;var s=t.thenableState;for(t.model=n,n=em(e,r.type,r.key,r.ref,r.props,s),t.thenableState=null;"object"==typeof n&&null!==n&&n.$$typeof===E;)e.writtenObjects.set(n,t.id),s=n,t.model=n,n=em(e,s.type,s.key,s.ref,s.props,null)}"object"==typeof n&&null!==n&&e.writtenObjects.set(n,t.id);var a=t.id;eS=n;var o=ea(n,e.toJSON),u=a.toString(16)+":"+o+"\n",c=l.encode(u);e.completedRegularChunks.push(c),e.abortableTasks.delete(t),t.status=1}catch(r){"object"==typeof(a=r===D?q():r)&&null!==a&&"function"==typeof a.then?(e=t.ping,a.then(e,e),t.thenableState=K()):(e.abortableTasks.delete(t),t.status=4,a=ex(e,a),eE(e,t.id,a))}}}function eT(e){var t=el.current;el.current=V;var r=ed;Q=ed=e;try{var i=e.pingedTasks;e.pingedTasks=[];for(var n=0;n{"use strict";e.exports=r(6230)},685:(e,t)=>{"use strict";var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||f}function v(){}function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,m(w,y.prototype),w.isPureReactComponent=!0;var _=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,i){var n,s={},a=null,o=null;if(null!=t)for(n in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,n)&&!k.hasOwnProperty(n)&&(s[n]=t[n]);var l=arguments.length-2;if(1===l)s.children=i;else if(1{"use strict";var r=Object.assign,i={current:null};function n(){return new Map}if("function"==typeof fetch){var s=fetch,a=function(e,t){var r=i.current;if(!r||t&&t.signal&&t.signal!==r.getCacheSignal())return s(e,t);if("string"!=typeof e||t){var a="string"==typeof e||e instanceof URL?new Request(e,t):e;if("GET"!==a.method&&"HEAD"!==a.method||a.keepalive)return s(e,t);var o=JSON.stringify([a.method,Array.from(a.headers.entries()),a.mode,a.redirect,a.credentials,a.referrer,a.referrerPolicy,a.integrity]);a=a.url}else o='["GET",[],null,"follow",null,null,null,null]',a=e;var l=r.getCacheForType(n);if(void 0===(r=l.get(a)))e=s(e,t),l.set(a,[o,e]);else{for(a=0,l=r.length;a{"use strict";e.exports=r(685)},9475:(e,t,r)=>{"use strict";e.exports=r(2778)},4352:(e,t,r)=>{"use strict";r.d(t,{A:()=>i.headers,Qk:()=>i.cookies});var i=r(8397)},5685:(e,t,r)=>{"use strict";var i;r.d(t,{ZK:()=>y});let{env:n,stdout:s}=(null==(i=globalThis)?void 0:i.process)??{},a=n&&!n.NO_COLOR&&(n.FORCE_COLOR||(null==s?void 0:s.isTTY)&&!n.CI&&"dumb"!==n.TERM),o=(e,t,r,i)=>{let n=e.substring(0,i)+r,s=e.substring(i+t.length),a=s.indexOf(t);return~a?n+o(s,t,r,a):n+s},l=(e,t,r=e)=>a?i=>{let n=""+i,s=n.indexOf(t,e.length);return~s?e+o(n,t,r,s)+t:e+n+t}:String,u=l("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m");l("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),l("\x1b[3m","\x1b[23m"),l("\x1b[4m","\x1b[24m"),l("\x1b[7m","\x1b[27m"),l("\x1b[8m","\x1b[28m"),l("\x1b[9m","\x1b[29m"),l("\x1b[30m","\x1b[39m");let c=l("\x1b[31m","\x1b[39m"),d=l("\x1b[32m","\x1b[39m"),h=l("\x1b[33m","\x1b[39m");l("\x1b[34m","\x1b[39m");let p=l("\x1b[35m","\x1b[39m");l("\x1b[38;2;173;127;168m","\x1b[39m"),l("\x1b[36m","\x1b[39m");let f=l("\x1b[37m","\x1b[39m");l("\x1b[90m","\x1b[39m"),l("\x1b[40m","\x1b[49m"),l("\x1b[41m","\x1b[49m"),l("\x1b[42m","\x1b[49m"),l("\x1b[43m","\x1b[49m"),l("\x1b[44m","\x1b[49m"),l("\x1b[45m","\x1b[49m"),l("\x1b[46m","\x1b[49m"),l("\x1b[47m","\x1b[49m");let m={wait:f(u("○")),error:c(u("⨯")),warn:h(u("⚠")),ready:"▲",info:f(u(" ")),event:d(u("✓")),trace:p(u("\xbb"))},g={log:"log",warn:"warn",error:"error"};function y(...e){!function(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in g?g[e]:"log",i=m[e];0===t.length?console[r](""):console[r](" "+i,...t)}("warn",...e)}},4421:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});let i=r(6673).createClientModuleProxy},211:(e,t,r)=>{"use strict";r.d(t,{H4:()=>s,om:()=>i,vu:()=>n});let i="Next-Action",n=[["RSC"],["Next-Router-State-Tree"],["Next-Router-Prefetch"]],s="_rsc"},9183:(e,t,r)=>{"use strict";r.r(t),r.d(t,{bailoutToClientRendering:()=>s});class i extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest="BAILOUT_TO_CLIENT_SIDE_RENDERING"}}var n=r(5364);function s(e){let t=n.A.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new i(e)}},8397:(e,t,r)=>{"use strict";r.r(t),r.d(t,{cookies:()=>d,draftMode:()=>h,headers:()=>c});var i=r(8121),n=r(3323),s=r(4326),a=r(4359),o=r(7887),l=r(9486);class u{get isEnabled(){return this._provider.isEnabled}enable(){if(!(0,l.o)("draftMode().enable()"))return this._provider.enable()}disable(){if(!(0,l.o)("draftMode().disable()"))return this._provider.disable()}constructor(e){this._provider=e}}function c(){if((0,l.o)("headers",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return n.h.seal(new Headers({}));let e=a.F.getStore();if(!e)throw Error("Invariant: headers() expects to have requestAsyncStorage, none available.");return e.headers}function d(){if((0,l.o)("cookies",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return i.Qb.seal(new s.q(new Headers({})));let e=a.F.getStore();if(!e)throw Error("Invariant: cookies() expects to have requestAsyncStorage, none available.");let t=o.W.getStore();return t&&(t.isAction||t.isAppRoute)?e.mutableCookies:e.cookies}function h(){let e=a.F.getStore();if(!e)throw Error("Invariant: draftMode() expects to have requestAsyncStorage, none available.");return new u(e.draftMode)}},9653:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DynamicServerError:()=>n,isDynamicServerError:()=>s});let i="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=i}}function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===i}},6674:(e,t,r)=>{"use strict";r.d(t,{j2:()=>d,M6:()=>c,eo:()=>u,uX:()=>l});var i,n,s=r(4359),a=r(7887);!function(e){e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(i||(i={}));let o="NEXT_REDIRECT";function l(e,t){void 0===t&&(t="replace");let r=a.W.getStore();throw function(e,t,r){void 0===r&&(r=i.TemporaryRedirect);let n=Error(o);n.digest=o+";"+t+";"+e+";"+r+";";let a=s.F.getStore();return a&&(n.mutableCookies=a.mutableCookies),n}(e,t,(null==r?void 0:r.isAction)?i.SeeOther:i.TemporaryRedirect)}function u(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,s]=e.digest.split(";",4),a=Number(s);return t===o&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(a)&&a in i}function c(e){return u(e)?e.digest.split(";",3)[2]:null}function d(e){if(!u(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}!function(e){e.push="push",e.replace="replace"}(n||(n={}))},9486:(e,t,r)=>{"use strict";r.d(t,{o:()=>o});var i=r(9653),n=r(5364);class s extends Error{constructor(...e){super(...e),this.code="NEXT_STATIC_GEN_BAILOUT"}}function a(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 o=(e,t)=>{let{dynamic:r,link:o}=void 0===t?{}:t,l=n.A.getStore();if(!l)return!1;if(l.forceStatic)return!0;if(l.dynamicShouldError)throw new s(a(e,{link:o,dynamic:null!=r?r:"error"}));let u=a(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==l.postpone||l.postpone.call(l,e),l.revalidate=0,l.isStaticGeneration){let t=new i.DynamicServerError(u);throw l.dynamicUsageDescription=e,l.dynamicUsageStack=t.stack,t}return!1}},2608:(e,t,r)=>{"use strict";r.d(t,{Ar:()=>d,BR:()=>g,EX:()=>u,Et:()=>c,Ho:()=>f,JT:()=>l,Qq:()=>s,Sx:()=>a,X_:()=>p,dN:()=>i,hd:()=>o,of:()=>h,y3:()=>n,zt:()=>m});let i="nxtP",n="x-prerender-revalidate",s="x-prerender-revalidate-if-generated",a=".prefetch.rsc",o=".rsc",l=".json",u=".meta",c="x-next-cache-tags",d="x-next-cache-soft-tags",h="x-next-revalidated-tags",p="x-next-revalidate-tag-token",f=256,m="_N_T_",g=31536e3,y={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"};({...y,GROUP:{server:[y.reactServerComponents,y.actionBrowser,y.appMetadataRoute,y.appRouteHandler],nonClientServerTarget:[y.middleware,y.api],app:[y.reactServerComponents,y.actionBrowser,y.appMetadataRoute,y.appRouteHandler,y.serverSideRendering,y.appPagesBrowser,y.shared]}})},4568:(e,t,r)=>{"use strict";r.d(t,{B:()=>c});var i=r(211),n=r(3323),s=r(8121),a=r(4326),o=r(2608);let l="__prerender_bypass";Symbol("__next_preview_data"),Symbol(l);class u{constructor(e,t,r,i){var s;let a=e&&function(e,t){let r=n.h.from(e.headers);return{isOnDemandRevalidate:r.get(o.y3)===t.previewModeId,revalidateOnlyGenerated:r.has(o.Qq)}}(t,e).isOnDemandRevalidate,u=null==(s=r.get(l))?void 0:s.value;this.isEnabled=!!(!a&&u&&e&&u===e.previewModeId),this._previewModeId=null==e?void 0:e.previewModeId,this._mutableCookies=i}enable(){if(!this._previewModeId)throw Error("Invariant: previewProps missing previewModeId this should never happen");this._mutableCookies.set({name:l,value:this._previewModeId,httpOnly:!0,sameSite:"none",secure:!0,path:"/"})}disable(){this._mutableCookies.set({name:l,value:"",httpOnly:!0,sameSite:"none",secure:!0,path:"/",expires:new Date(0)})}}let c={wrap(e,{req:t,res:r,renderOpts:o},l){let c;function d(e){r&&r.setHeader("Set-Cookie",e)}o&&"previewProps"in o&&(c=o.previewProps);let h={},p={get headers(){return h.headers||(h.headers=function(e){let t=n.h.from(e);for(let e of i.vu)t.delete(e.toString().toLowerCase());return n.h.seal(t)}(t.headers)),h.headers},get cookies(){return h.cookies||(h.cookies=function(e){let t=new a.q(n.h.from(e));return s.Qb.seal(t)}(t.headers)),h.cookies},get mutableCookies(){return h.mutableCookies||(h.mutableCookies=function(e,t){let r=new a.q(n.h.from(e));return s.vr.wrap(r,t)}(t.headers,(null==o?void 0:o.onUpdateCookies)||(r?d:void 0))),h.mutableCookies},get draftMode(){return h.draftMode||(h.draftMode=new u(c,t,this.cookies,this.mutableCookies)),h.draftMode}};return e.run(p,l,p)}}},4399:(e,t,r)=>{"use strict";var i;r.d(t,{x:()=>i}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(i||(i={}))},4392:(e,t,r)=>{"use strict";e.exports=r(2714)},2714:(e,t,r)=>{"use strict";r.d(t,{AppRouteRouteModule:()=>C});var i={};r.r(i),r.d(i,{appRouterContext:()=>A});class n{constructor({userland:e,definition:t}){this.userland=e,this.definition=t}}var s=r(4568);let a={wrap(e,{urlPathname:t,renderOpts:r,postpone:i},n){let s=!r.supportsDynamicHTML&&!r.isDraftMode&&!r.isServerAction,a={isStaticGeneration:s,urlPathname:t,pagePath:r.originalPathname,incrementalCache:r.incrementalCache||globalThis.__incrementalCache,isRevalidate:r.isRevalidate,isPrerendering:r.nextExport,fetchCache:r.fetchCache,isOnDemandRevalidate:r.isOnDemandRevalidate,isDraftMode:r.isDraftMode,postpone:s&&r.experimental.ppr&&i?e=>(a.postponeWasTriggered=!0,i(`This page needs to bail out of prerendering at this point because it used ${e}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`)):void 0};return r.store=a,e.run(a,n,a)}};var o=r(8121);function l(){return new Response(null,{status:400})}function u(){return new Response(null,{status:405})}let c=["GET","HEAD","OPTIONS","POST","PUT","DELETE","PATCH"];var d=r(5373),h=r(1214),p=r(8848),f=r(65),m=r(6095);function g(e){let t=new URL(e);return t.host="localhost:3000",t.search="",t.protocol="http",t.toString()}var y=r(6674);r(5685);let v=["HEAD","OPTIONS"],b=["OPTIONS","POST","PUT","DELETE","PATCH"];var w=r(9653),_=r(8397),S=r(9486),x=r(4359),k=r(5364),E=r(7887),A=r(4532),T=r(211);class C extends n{static #e=this.sharedModules=i;constructor({userland:e,definition:t,resolvedPagePath:r,nextConfigOutput:i}){if(super({userland:e,definition:t}),this.requestAsyncStorage=x.F,this.staticGenerationAsyncStorage=k.A,this.serverHooks=w,this.headerHooks=_,this.staticGenerationBailout=S.o,this.actionAsyncStorage=E.W,this.resolvedPagePath=r,this.nextConfigOutput=i,this.methods=function(e){let t=c.reduce((t,r)=>({...t,[r]:e[r]??u}),{}),r=new Set(c.filter(t=>e[t]));for(let i of v.filter(e=>!r.has(e))){if("HEAD"===i){if(!e.GET)break;t.HEAD=e.GET,r.add("HEAD");continue}if("OPTIONS"===i){let e=["OPTIONS",...r];!r.has("HEAD")&&r.has("GET")&&e.push("HEAD");let i={Allow:e.sort().join(", ")};t.OPTIONS=()=>new Response(null,{status:204,headers:i}),r.add("OPTIONS");continue}throw Error(`Invariant: should handle all automatic implementable methods, got method: ${i}`)}return t}(e),this.nonStaticMethods=function(e){let t=b.filter(t=>e[t]);return 0!==t.length&&t}(e),this.dynamic=this.userland.dynamic,"export"===this.nextConfigOutput){if(this.dynamic&&"auto"!==this.dynamic){if("force-dynamic"===this.dynamic)throw Error(`export const dynamic = "force-dynamic" on page "${t.pathname}" cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export`)}else this.dynamic="error"}}resolve(e){return c.includes(e)?this.methods[e]:l}async execute(e,t){let r=this.resolve(e.method),i={req:e};i.renderOpts={previewProps:t.prerenderManifest.preview};let n={urlPathname:e.nextUrl.pathname,renderOpts:t.renderOpts};n.renderOpts.fetchCache=this.userland.fetchCache;let l=await this.actionAsyncStorage.run({isAppRoute:!0,isAction:function(e){let{isFetchAction:t,isURLEncodedAction:r,isMultipartAction:i}=function(e){let t,r;e.headers instanceof Headers?(t=e.headers.get(T.om.toLowerCase())??null,r=e.headers.get("content-type")):(t=e.headers[T.om.toLowerCase()]??null,r=e.headers["content-type"]??null);let i=!!("POST"===e.method&&"application/x-www-form-urlencoded"===r),n=!!("POST"===e.method&&(null==r?void 0:r.startsWith("multipart/form-data"))),s=!!(void 0!==t&&"string"==typeof t&&"POST"===e.method);return{actionId:t,isURLEncodedAction:i,isMultipartAction:n,isFetchAction:s}}(e);return!!(t||r||i)}(e)},()=>s.B.wrap(this.requestAsyncStorage,i,()=>a.wrap(this.staticGenerationAsyncStorage,n,i=>{var n;switch(this.nonStaticMethods&&this.staticGenerationBailout(`non-static methods used ${this.nonStaticMethods.join(", ")}`),this.dynamic){case"force-dynamic":i.forceDynamic=!0,this.staticGenerationBailout("force-dynamic",{dynamic:this.dynamic});break;case"force-static":i.forceStatic=!0;break;case"error":i.dynamicShouldError=!0}i.revalidate??=this.userland.revalidate??!1;let s=function(e,{dynamic:t},r){function i(e){switch(e){case"search":case"searchParams":case"toString":case"href":case"origin":r.staticGenerationBailout(`nextUrl.${e}`);return;default:return}}let n={},s=(e,t)=>{switch(t){case"search":return"";case"searchParams":return n.searchParams||(n.searchParams=new URLSearchParams),n.searchParams;case"url":case"href":return n.url||(n.url=g(e)),n.url;case"toJSON":case"toString":return n.url||(n.url=g(e)),n.toString||(n.toString=()=>n.url),n.toString;case"headers":return n.headers||(n.headers=new Headers),n.headers;case"cookies":return n.headers||(n.headers=new Headers),n.cookies||(n.cookies=new f.RequestCookies(n.headers)),n.cookies;case"clone":return n.url||(n.url=g(e)),()=>new m.c(n.url)}},a=new Proxy(e.nextUrl,{get(e,r){if(i(r),"force-static"===t&&"string"==typeof r){let t=s(e.href,r);if(void 0!==t)return t}let n=e[r];return"function"==typeof n?n.bind(e):n},set:(e,t,r)=>(i(t),e[t]=r,!0)}),o=e=>{switch(e){case"headers":r.headerHooks.headers();return;case"url":case"cookies":case"body":case"blob":case"json":case"text":case"arrayBuffer":case"formData":r.staticGenerationBailout(`request.${e}`);return;default:return}};return new Proxy(e,{get(e,r){if(o(r),"nextUrl"===r)return a;if("force-static"===t&&"string"==typeof r){let t=s(e.url,r);if(void 0!==t)return t}let i=e[r];return"function"==typeof i?i.bind(e):i},set:(e,t,r)=>(o(t),e[t]=r,!0)})}(e,{dynamic:this.dynamic},{headerHooks:this.headerHooks,serverHooks:this.serverHooks,staticGenerationBailout:this.staticGenerationBailout}),a=function(e){let t="/app/";e.includes(t)||(t="\\app\\");let[,...r]=e.split(t);return(t[0]+r.join(t)).split(".").slice(0,-1).join(".")}(this.resolvedPagePath);return null==(n=(0,h.Yz)().getRootSpanAttributes())||n.set("next.route",a),(0,h.Yz)().trace(p.PB.runHandler,{spanName:`executing api route (app) ${a}`,attributes:{"next.route":a}},async()=>{var e;(0,d.XH)({serverHooks:this.serverHooks,staticGenerationAsyncStorage:this.staticGenerationAsyncStorage});let n=await r(s,{params:t.params?function(e){let t={};for(let[r,i]of Object.entries(e))void 0!==i&&(t[r]=i);return t}(t.params):void 0});if(!(n instanceof Response))throw Error(`No response is returned from route handler '${this.resolvedPagePath}'. Ensure you return a \`Response\` or a \`NextResponse\` in all branches of your handler.`);t.renderOpts.fetchMetrics=i.fetchMetrics,t.renderOpts.waitUntil=Promise.all(Object.values(i.pendingRevalidates||[])),(0,d.RQ)(i),t.renderOpts.fetchTags=null==(e=i.tags)?void 0:e.join(",");let a=this.requestAsyncStorage.getStore();if(a&&a.mutableCookies){let e=new Headers(n.headers);if((0,o._5)(e,a.mutableCookies))return new Response(n.body,{status:n.status,statusText:n.statusText,headers:e})}return n})})));if(!(l instanceof Response))return new Response(null,{status:500});if(l.headers.has("x-middleware-rewrite"))throw Error("NextResponse.rewrite() was used in a app route handler, this is not currently supported. Please remove the invocation to continue.");if("1"===l.headers.get("x-middleware-next"))throw Error("NextResponse.next() was used in a app route handler, this is not supported. See here for more info: https://nextjs.org/docs/messages/next-response-next-in-app-route-handler");return l}async handle(e,t){try{return await this.execute(e,t)}catch(t){let e=function(e){if((0,y.eo)(e)){let t=(0,y.M6)(e);if(!t)throw Error("Invariant: Unexpected redirect url format");let r=(0,y.j2)(e);return function(e,t,r){let i=new Headers({location:e});return(0,o._5)(i,t),new Response(null,{status:r,headers:i})}(t,e.mutableCookies,r)}return"object"==typeof e&&null!==e&&"digest"in e&&"NEXT_NOT_FOUND"===e.digest&&new Response(null,{status:404})}(t);if(!e)throw t;return e}}}},5373:(e,t,r)=>{"use strict";r.d(t,{RQ:()=>u,XH:()=>d});var i=r(8848),n=r(1214),s=r(2608),a=r(5685),o=r(6195).Buffer;let l=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 d({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,d)=>{var h,p;let f;try{(f=new URL(e instanceof Request?e.url:e)).username="",f.password=""}catch{f=void 0}let m=(null==f?void 0:f.href)??"",g=Date.now(),y=(null==d?void 0:null==(h=d.method)?void 0:h.toUpperCase())||"GET",v=(null==(p=null==d?void 0:d.next)?void 0:p.internal)===!0,b="1"===process.env.NEXT_OTEL_FETCH_DISABLED;return await (0,n.Yz)().trace(v?i.Xy.internalFetch:i.k0.fetch,{hideSpan:b,kind:n.MU.CLIENT,spanName:["fetch",y,m].filter(Boolean).join(" "),attributes:{"http.url":m,"http.method":y,"net.peer.name":null==f?void 0:f.hostname,"net.peer.port":(null==f?void 0:f.port)||void 0}},async()=>{var i;let n,h,p;let f=t.getStore()||(null==fetch.__nextGetStaticStore?void 0:fetch.__nextGetStaticStore.call(fetch)),y=e&&"object"==typeof e&&"string"==typeof e.method,b=t=>(null==d?void 0:d[t])||(y?e[t]:null);if(!f||v||f.isDraftMode)return l(e,d);let w=t=>{var r,i,n;return void 0!==(null==d?void 0:null==(r=d.next)?void 0:r[t])?null==d?void 0:null==(i=d.next)?void 0:i[t]:y?null==(n=e.next)?void 0:n[t]:void 0},_=w("revalidate"),S=function(e,t){let r=[],i=[];for(let t of e)"string"!=typeof t?i.push({tag:t,reason:"invalid type, must be a string"}):t.length>s.Ho?i.push({tag:t,reason:`exceeded max length of ${s.Ho}`}):r.push(t);if(i.length>0)for(let{tag:e,reason:r}of(console.warn(`Warning: invalid tags passed to ${t}: `),i))console.log(`tag: "${e}" ${r}`);return r}(w("tags")||[],`fetch ${e.toString()}`);if(Array.isArray(S))for(let e of(f.tags||(f.tags=[]),S))f.tags.includes(e)||f.tags.push(e);let x=u(f),k="only-cache"===f.fetchCache,E="force-cache"===f.fetchCache,A="default-cache"===f.fetchCache,T="default-no-store"===f.fetchCache,C="only-no-store"===f.fetchCache,O="force-no-store"===f.fetchCache,P=!!f.isUnstableNoStore,$=b("cache"),N="";"string"==typeof $&&void 0!==_&&(y&&"default"===$||a.ZK(`fetch for ${m} on ${f.urlPathname} specified "cache: ${$}" and "revalidate: ${_}", only one should be specified.`),$=void 0),"force-cache"===$?_=!1:("no-cache"===$||"no-store"===$||O||C)&&(_=0),("no-cache"===$||"no-store"===$)&&(N=`cache: ${$}`),p=function(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}}(_,f.urlPathname);let R=b("headers"),I="function"==typeof(null==R?void 0:R.get)?R:new Headers(R||{}),j=I.get("authorization")||I.get("cookie"),L=!["get","head"].includes((null==(i=b("method"))?void 0:i.toLowerCase())||"get"),D=(j||L)&&0===f.revalidate;if(O&&(N="fetchCache = force-no-store"),C){if("force-cache"===$||void 0!==p&&(!1===p||p>0))throw Error(`cache: 'force-cache' used on fetch for ${m} with 'export const fetchCache = 'only-no-store'`);N="fetchCache = only-no-store"}if(k&&"no-store"===$)throw Error(`cache: 'no-store' used on fetch for ${m} with 'export const fetchCache = 'only-cache'`);E&&(void 0===_||0===_)&&(N="fetchCache = force-cache",p=!1),void 0===p?A?(p=!1,N="fetchCache = default-cache"):D?(p=0,N="auto no cache"):T?(p=0,N="fetchCache = default-no-store"):P?(p=0,N="noStore call"):(N="auto cache",p="boolean"!=typeof f.revalidate&&void 0!==f.revalidate&&f.revalidate):N||(N=`revalidate: ${p}`),f.forceStatic&&0===p||D||void 0!==f.revalidate&&("number"!=typeof p||!1!==f.revalidate&&("number"!=typeof f.revalidate||!(p0||!1===p;if(f.incrementalCache&&M)try{n=await f.incrementalCache.fetchCacheKey(m,y?e:d)}catch(t){console.error("Failed to generate cache key for",e)}let U=f.nextFetchId??1;f.nextFetchId=U+1;let q="number"!=typeof p?s.BR:p,Q=async(t,r)=>{let i=["cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","window","duplex",...t?[]:["signal"]];if(y){let t=e,r={body:t._ogBody||t.body};for(let e of i)r[e]=t[e];e=new Request(t.url,r)}else if(d){let e=d;for(let t of(d={body:d._ogBody||d.body},i))d[t]=e[t]}let s={...d,next:{...null==d?void 0:d.next,fetchType:"origin",fetchIdx:U}};return l(e,s).then(async i=>{if(t||c(f,{start:g,url:m,cacheReason:r||N,cacheStatus:0===p||r?"skip":"miss",status:i.status,method:s.method||"GET"}),200===i.status&&f.incrementalCache&&n&&M){let t=o.from(await i.arrayBuffer());try{await f.incrementalCache.set(n,{kind:"FETCH",data:{headers:Object.fromEntries(i.headers.entries()),body:t.toString("base64"),status:i.status,url:i.url},revalidate:q},{fetchCache:!0,revalidate:p,fetchUrl:m,fetchIdx:U,tags:S})}catch(t){console.warn("Failed to set fetch cache",e,t)}let r=new Response(t,{headers:new Headers(i.headers),status:i.status});return Object.defineProperty(r,"url",{value:i.url}),r}return i})},B=()=>Promise.resolve();if(n&&f.incrementalCache){B=await f.incrementalCache.lock(n);let e=f.isOnDemandRevalidate?null:await f.incrementalCache.get(n,{kindHint:"fetch",revalidate:p,fetchUrl:m,fetchIdx:U,tags:S,softTags:x});if(e?await B():h="cache-control: no-cache (hard refresh)",(null==e?void 0:e.value)&&"FETCH"===e.value.kind&&!(f.isRevalidate&&e.isStale)){e.isStale&&(f.pendingRevalidates??={},f.pendingRevalidates[n]||(f.pendingRevalidates[n]=Q(!0).catch(console.error)));let t=e.value.data;c(f,{start:g,url:m,cacheReason:N,cacheStatus:"hit",status:t.status||200,method:(null==d?void 0:d.method)||"GET"});let r=new Response(o.from(t.body,"base64"),{headers:t.headers,status:t.status});return Object.defineProperty(r,"url",{value:e.value.data.url}),r}}if(f.isStaticGeneration&&d&&"object"==typeof d){let{cache:t}=d;if(delete d.cache,!f.forceStatic&&"no-store"===t){let t=`no-store fetch ${e}${f.urlPathname?` ${f.urlPathname}`:""}`;null==f.postpone||f.postpone.call(f,t),f.revalidate=0;let i=new r(t);f.dynamicUsageErr=i,f.dynamicUsageDescription=t}let i="next"in d,{next:n={}}=d;if("number"==typeof n.revalidate&&(void 0===f.revalidate||"number"==typeof f.revalidate&&n.revalidatet,globalThis.fetch.__nextPatched=!0}},8848:(e,t,r)=>{"use strict";var i,n,s,a,o,l,u,c,d,h,p;r.d(t,{PB:()=>h,Xy:()=>a,k0:()=>u,lw:()=>f}),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"}(i||(i={})),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"}(s||(s={})),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"}(a||(a={})),(o||(o={})).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"}(u||(u={})),(c||(c={})).executeRoute="Router.executeRoute",(d||(d={})).runHandler="Node.runHandler",(h||(h={})).runHandler="AppRouteRouteHandlers.runHandler",function(e){e.generateMetadata="ResolveMetadata.generateMetadata",e.generateViewport="ResolveMetadata.generateViewport"}(p||(p={}));let f=["BaseServer.handleRequest","Render.getServerSideProps","Render.getStaticProps","AppRender.fetch","AppRender.getBodyResult","Render.renderDocument","Node.runHandler","AppRouteRouteHandlers.runHandler","ResolveMetadata.generateMetadata","ResolveMetadata.generateViewport","NextNodeServer.findPageComponents","NextNodeServer.getLayoutOrPageModule"]},1214:(e,t,r)=>{"use strict";let i;r.d(t,{MU:()=>u,Yz:()=>v});var n=r(8848);let{context:s,propagation:a,trace:o,SpanStatusCode:l,SpanKind:u,ROOT_CONTEXT:c}=i=r(4477),d=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then,h=(e,t)=>{(null==t?void 0:t.bubble)===!0?e.setAttribute("next.bubble",!0):(t&&e.recordException(t),e.setStatus({code:l.ERROR,message:null==t?void 0:t.message})),e.end()},p=new Map,f=i.createContextKey("next.rootSpanId"),m=0,g=()=>m++;class y{getTracerInstance(){return o.getTracer("next.js","0.0.1")}getContext(){return s}getActiveScopeSpan(){return o.getSpan(null==s?void 0:s.active())}withPropagatedContext(e,t,r){let i=s.active();if(o.getSpanContext(i))return t();let n=a.extract(i,e,r);return s.with(n,t)}trace(...e){var t;let[r,i,a]=e,{fn:l,options:u}="function"==typeof i?{fn:i,options:{}}:{fn:a,options:{...i}};if(!n.lw.includes(r)&&"1"!==process.env.NEXT_OTEL_VERBOSE||u.hideSpan)return l();let m=u.spanName??r,y=this.getSpanContext((null==u?void 0:u.parentSpan)??this.getActiveScopeSpan()),v=!1;y?(null==(t=o.getSpanContext(y))?void 0:t.isRemote)&&(v=!0):(y=c,v=!0);let b=g();return u.attributes={"next.span_name":m,"next.span_type":r,...u.attributes},s.with(y.setValue(f,b),()=>this.getTracerInstance().startActiveSpan(m,u,e=>{let t=()=>{p.delete(b)};v&&p.set(b,new Map(Object.entries(u.attributes??{})));try{if(l.length>1)return l(e,t=>h(e,t));let r=l(e);if(d(r))return r.then(t=>(e.end(),t)).catch(t=>{throw h(e,t),t}).finally(t);return e.end(),t(),r}catch(r){throw h(e,r),t(),r}}))}wrap(...e){let t=this,[r,i,a]=3===e.length?e:[e[0],{},e[1]];return n.lw.includes(r)||"1"===process.env.NEXT_OTEL_VERBOSE?function(){let e=i;"function"==typeof e&&"function"==typeof a&&(e=e.apply(this,arguments));let n=arguments.length-1,o=arguments[n];if("function"!=typeof o)return t.trace(r,e,()=>a.apply(this,arguments));{let i=t.getContext().bind(s.active(),o);return t.trace(r,e,(e,t)=>(arguments[n]=function(e){return null==t||t(e),i.apply(this,arguments)},a.apply(this,arguments)))}}:a}startSpan(...e){let[t,r]=e,i=this.getSpanContext((null==r?void 0:r.parentSpan)??this.getActiveScopeSpan());return this.getTracerInstance().startSpan(t,r,i)}getSpanContext(e){return e?o.setSpan(s.active(),e):void 0}getRootSpanAttributes(){let e=s.active().getValue(f);return p.get(e)}}let v=(()=>{let e=new y;return()=>e})()},4915:(e,t,r)=>{"use strict";let i,n,s;async function a(){if("_ENTRIES"in globalThis&&_ENTRIES.middleware_instrumentation&&_ENTRIES.middleware_instrumentation.register)try{await _ENTRIES.middleware_instrumentation.register()}catch(e){throw e.message=`An error occurred while loading instrumentation hook: ${e.message}`,e}}r.d(t,{a:()=>ev});let o=null;function l(){return o||(o=a()),o}function u(e){return`The edge runtime does not support Node.js '${e}' module. +Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`}process!==r.g.process&&(process.env=r.g.process.env,r.g.process=process),Object.defineProperty(globalThis,"__import_unsupported",{value:function(e){let t=new Proxy(function(){},{get(t,r){if("then"===r)return{};throw Error(u(e))},construct(){throw Error(u(e))},apply(r,i,n){if("function"==typeof n[0])return n[0](t);throw Error(u(e))}});return new Proxy({},{get:()=>t})},enumerable:!1,configurable:!1}),l();var c=r(6286),d=r(2073);let h=Symbol("response"),p=Symbol("passThrough"),f=Symbol("waitUntil");class m{constructor(e){this[f]=[],this[p]=!1}respondWith(e){this[h]||(this[h]=Promise.resolve(e))}passThroughOnException(){this[p]=!0}waitUntil(e){this[f].push(e)}}class g extends m{constructor(e){super(e.request),this.sourcePage=e.page}get request(){throw new c.qJ({page:this.sourcePage})}respondWith(){throw new c.qJ({page:this.sourcePage})}}var y=r(9858),v=r(9715);function b(e,t){let r="string"==typeof t?new URL(t):t,i=new URL(e,t),n=r.protocol+"//"+r.host;return i.protocol+"//"+i.host===n?i.toString().replace(n,""):i.toString()}var w=r(6095),_=r(211);r(5406);let S={client:"client",server:"server",edgeServer:"edge-server"};S.client,S.server,S.edgeServer,Symbol("polyfills");let x=["__nextFallback","__nextLocale","__nextInferredLocaleFromDefault","__nextDefaultLocale","__nextIsNotFound",_.H4],k=["__nextDataReq"];function E(e){return e.startsWith("/")?e:"/"+e}function A(e){return e.replace(/\.rsc($|\?)/,"$1")}var T=r(2608),C=r(4568),O=r(4359),P=r(1214);class $ extends y.I{constructor(e){super(e.input,e.init),this.sourcePage=e.page}get request(){throw new c.qJ({page:this.sourcePage})}respondWith(){throw new c.qJ({page:this.sourcePage})}waitUntil(){throw new c.qJ({page:this.sourcePage})}}let N={keys:e=>Array.from(e.keys()),get:(e,t)=>e.get(t)??void 0},R=(e,t)=>(0,P.Yz)().withPropagatedContext(e.headers,t,N),I=!1;async function j(e){let t,i;!function(){if(!I&&(I=!0,"true"===process.env.NEXT_PRIVATE_TEST_PROXY)){let{interceptTestApis:e,wrapRequestHandler:t}=r(4323);e(),R=t(R)}}(),await l();let n=void 0!==self.__BUILD_MANIFEST,s="string"==typeof self.__PRERENDER_MANIFEST?JSON.parse(self.__PRERENDER_MANIFEST):void 0;e.request.url=A(e.request.url);let a=new w.c(e.request.url,{headers:e.request.headers,nextConfig:e.request.nextConfig});for(let e of[...a.searchParams.keys()]){let t=a.searchParams.getAll(e);if(e!==T.dN&&e.startsWith(T.dN)){let r=e.substring(T.dN.length);for(let e of(a.searchParams.delete(r),t))a.searchParams.append(r,e);a.searchParams.delete(e)}}let o=a.buildId;a.buildId="";let u=e.request.headers["x-nextjs-data"];u&&"/index"===a.pathname&&(a.pathname="/");let c=(0,d.EK)(e.request.headers),h=new Map;if(!n)for(let e of _.vu){let t=e.toString().toLowerCase();c.get(t)&&(h.set(t,c.get(t)),c.delete(t))}let p=new $({page:e.page,input:(function(e,t){let r="string"==typeof e,i=r?new URL(e):e;for(let e of x)i.searchParams.delete(e);if(t)for(let e of k)i.searchParams.delete(e);return r?i.toString():i})(a,!0).toString(),init:{body:e.request.body,geo:e.request.geo,headers:c,ip:e.request.ip,method:e.request.method,nextConfig:e.request.nextConfig,signal:e.request.signal}});u&&Object.defineProperty(p,"__isData",{enumerable:!1,value:!0}),!globalThis.__incrementalCache&&e.IncrementalCache&&(globalThis.__incrementalCache=new e.IncrementalCache({appDir:!0,fetchCache:!0,minimalMode:!0,fetchCacheKeyPrefix:void 0,dev:!1,requestHeaders:e.request.headers,requestProtocol:"https",getPrerenderManifest:()=>({version:-1,routes:{},dynamicRoutes:{},notFoundRoutes:[],preview:{previewModeId:"development-id"}})}));let m=new g({request:p,page:e.page});if((t=await R(p,()=>"/middleware"===e.page||"/src/middleware"===e.page?C.B.wrap(O.F,{req:p,renderOpts:{onUpdateCookies:e=>{i=e},previewProps:(null==s?void 0:s.preview)||{previewModeId:"development-id",previewModeEncryptionKey:"",previewModeSigningKey:""}}},()=>e.handler(p,m)):e.handler(p,m)))&&!(t instanceof Response))throw TypeError("Expected an instance of Response to be returned");t&&i&&t.headers.set("set-cookie",i);let y=null==t?void 0:t.headers.get("x-middleware-rewrite");if(t&&y){let r=new w.c(y,{forceLocale:!0,headers:e.request.headers,nextConfig:e.request.nextConfig});r.host===p.nextUrl.host&&(r.buildId=o||r.buildId,t.headers.set("x-middleware-rewrite",String(r)));let i=b(String(r),String(a));u&&t.headers.set("x-nextjs-rewrite",i)}let S=null==t?void 0:t.headers.get("Location");if(t&&S&&!n){let r=new w.c(S,{forceLocale:!1,headers:e.request.headers,nextConfig:e.request.nextConfig});t=new Response(t.body,t),r.host===p.nextUrl.host&&(r.buildId=o||r.buildId,t.headers.set("Location",String(r))),u&&(t.headers.delete("Location"),t.headers.set("x-nextjs-redirect",b(String(r),String(a))))}let E=t||v.x.next(),P=E.headers.get("x-middleware-override-headers"),N=[];if(P){for(let[e,t]of h)E.headers.set(`x-middleware-request-${e}`,t),N.push(e);N.length>0&&E.headers.set("x-middleware-override-headers",P+","+N.join(","))}return{response:E,waitUntil:Promise.all(m[f]),fetchMetrics:p.fetchMetrics}}var L=r(1902),D=r.n(L);let M=0,U="x-vercel-cache-tags",q="x-vercel-sc-headers",Q="x-vercel-revalidate",B="x-vercel-cache-item-name";class H{static isAvailable(e){return!!(e._requestHeaders["x-vercel-sc-host"]||process.env.SUSPENSE_CACHE_URL)}constructor(e){if(this.debug=!!process.env.NEXT_PRIVATE_DEBUG_CACHE,this.headers={},this.headers["Content-Type"]="application/json",q in e._requestHeaders){let t=JSON.parse(e._requestHeaders[q]);for(let e in t)this.headers[e]=t[e];delete e._requestHeaders[q]}let t=e._requestHeaders["x-vercel-sc-host"]||process.env.SUSPENSE_CACHE_URL,r=e._requestHeaders["x-vercel-sc-basepath"]||process.env.SUSPENSE_CACHE_BASEPATH;process.env.SUSPENSE_CACHE_AUTH_TOKEN&&(this.headers.Authorization=`Bearer ${process.env.SUSPENSE_CACHE_AUTH_TOKEN}`),t?(this.cacheEndpoint=`https://${t}${r||""}`,this.debug&&console.log("using cache endpoint",this.cacheEndpoint)):this.debug&&console.log("no cache endpoint available"),e.maxMemoryCacheSize?i||(this.debug&&console.log("using memory store for fetch cache"),i=new(D())({max:e.maxMemoryCacheSize,length({value:e}){var t;if(!e)return 25;if("REDIRECT"===e.kind)return JSON.stringify(e.props).length;if("IMAGE"===e.kind)throw Error("invariant image should not be incremental-cache");return"FETCH"===e.kind?JSON.stringify(e.data||"").length:"ROUTE"===e.kind?e.body.length:e.html.length+((null==(t=JSON.stringify(e.pageData))?void 0:t.length)||0)}})):this.debug&&console.log("not using memory store for fetch cache")}resetRequestCache(){null==i||i.reset()}async revalidateTag(e){if(this.debug&&console.log("revalidateTag",e),Date.now(){var t;return(null==s?void 0:null==(t=s.items[e])?void 0:t.revalidatedAt)&&(null==s?void 0:s.items[e].revalidatedAt)>=((null==d?void 0:d.lastModified)||Date.now())})&&(d=void 0))}return d&&(null==d?void 0:null==(r=d.value)?void 0:r.kind)==="FETCH"&&(this.loadTagsManifest(),[...l||[],...u||[]].some(e=>{var t;return!!this.revalidatedTags.includes(e)||(null==s?void 0:null==(t=s.items[e])?void 0:t.revalidatedAt)&&(null==s?void 0:s.items[e].revalidatedAt)>=((null==d?void 0:d.lastModified)||Date.now())})&&(d=void 0)),d??null}async set(...e){let[t,r,i]=e;if(null==n||n.set(t,{value:r,lastModified:Date.now()}),this.debug&&console.log("set",t),this.flushToDisk){if((null==r?void 0:r.kind)==="ROUTE"){let e=this.getFilePath(`${t}.body`,"app");await this.fs.mkdir(F().dirname(e)),await this.fs.writeFile(e,r.body);let i={headers:r.headers,status:r.status,postponed:void 0};await this.fs.writeFile(e.replace(/\.body$/,T.EX),JSON.stringify(i,null,2));return}if((null==r?void 0:r.kind)==="PAGE"){let e="string"==typeof r.pageData,i=this.getFilePath(`${t}.html`,e?"app":"pages");if(await this.fs.mkdir(F().dirname(i)),await this.fs.writeFile(i,r.html),await this.fs.writeFile(this.getFilePath(`${t}${e?this.experimental.ppr?T.Sx:T.hd:T.JT}`,e?"app":"pages"),e?r.pageData:JSON.stringify(r.pageData)),r.headers||r.status){let e={headers:r.headers,status:r.status,postponed:r.postponed};await this.fs.writeFile(i.replace(/\.html$/,T.EX),JSON.stringify(e))}}else if((null==r?void 0:r.kind)==="FETCH"){let e=this.getFilePath(t,"fetch");await this.fs.mkdir(F().dirname(e)),await this.fs.writeFile(e,JSON.stringify({...r,tags:i.tags}))}}}detectFileKind(e){if(!this.appDir&&!this.pagesDir)throw Error("Invariant: Can't determine file path kind, no page directory enabled");if(!this.appDir&&this.pagesDir)return"pages";if(this.appDir&&!this.pagesDir)return"app";let t=this.getFilePath(e,"pages");if(this.fs.existsSync(t))return"pages";if(t=this.getFilePath(e,"app"),this.fs.existsSync(t))return"app";throw Error(`Invariant: Unable to determine file path kind for ${e}`)}getFilePath(e,t){switch(t){case"fetch":return F().join(this.serverDistDir,"..","cache","fetch-cache",e);case"pages":return F().join(this.serverDistDir,"pages",e);case"app":return F().join(this.serverDistDir,"app",e);default:throw Error("Invariant: Can't determine file path kind")}}}let W=["(..)(..)","(.)","(..)","(...)"];function z(e){return void 0!==e.split("/").find(e=>W.find(t=>e.startsWith(t)))}let J=/\/\[[^/]+?\](?=\/|$)/;function Z(e){return z(e)&&(e=function(e){let t,r,i;for(let n of e.split("/"))if(r=W.find(e=>n.startsWith(e))){[t,i]=e.split(r,2);break}if(!t||!r||!i)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=E(t.split("/").reduce((e,t,r,i)=>t?"("===t[0]&&t.endsWith(")")||"@"===t[0]||("page"===t||"route"===t)&&r===i.length-1?e:e+"/"+t:e,"")),r){case"(.)":i="/"===t?`/${i}`:t+"/"+i;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);i=t.split("/").slice(0,-1).concat(i).join("/");break;case"(...)":i="/"+i;break;case"(..)(..)":let n=t.split("/");if(n.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);i=n.slice(0,-2).concat(i).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:i}}(e).interceptedRoute),J.test(e)}"undefined"!=typeof performance&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class G extends Error{}function X(e){return/^\/index(\/|$)/.test(e)&&!Z(e)?"/index"+e:"/"===e?"/index":E(e)}function Y(e){return e.replace(/\/$/,"").replace(/\/index$/,"")||"/"}class ee{constructor({fs:e,dev:t,appDir:r,pagesDir:i,flushToDisk:n,fetchCache:s,minimalMode:a,serverDistDir:o,requestHeaders:l,requestProtocol:u,maxMemoryCacheSize:c,getPrerenderManifest:d,fetchCacheKeyPrefix:h,CurCacheHandler:p,allowedRevalidateHeaderKeys:f,experimental:m}){var g,y,v,b;this.locks=new Map,this.unlocks=new Map;let w=!!process.env.NEXT_PRIVATE_DEBUG_CACHE;this.hasCustomCacheHandler=!!p,p?w&&console.log("using custom cache handler",p.name):(e&&o&&(w&&console.log("using filesystem cache handler"),p=V),H.isAvailable({_requestHeaders:l})&&a&&s&&(w&&console.log("using fetch cache handler"),p=H)),process.env.__NEXT_TEST_MAX_ISR_CACHE&&(c=parseInt(process.env.__NEXT_TEST_MAX_ISR_CACHE,10)),this.dev=t,this.minimalMode=a,this.requestHeaders=l,this.requestProtocol=u,this.allowedRevalidateHeaderKeys=f,this.prerenderManifest=d(),this.fetchCacheKeyPrefix=h;let _=[];l[T.y3]===(null==(y=this.prerenderManifest)?void 0:null==(g=y.preview)?void 0:g.previewModeId)&&(this.isOnDemandRevalidate=!0),a&&"string"==typeof l[T.of]&&l[T.X_]===(null==(b=this.prerenderManifest)?void 0:null==(v=b.preview)?void 0:v.previewModeId)&&(_=l[T.of].split(",")),p&&(this.cacheHandler=new p({dev:t,fs:e,flushToDisk:n,serverDistDir:o,revalidatedTags:_,maxMemoryCacheSize:c,_pagesDir:!!i,_appDir:!!r,_requestHeaders:l,fetchCacheKeyPrefix:h,experimental:m}))}calculateRevalidate(e,t,r){if(r)return new Date().getTime()-1e3;let{initialRevalidateSeconds:i}=this.prerenderManifest.routes[Y(e)]||{initialRevalidateSeconds:1};return"number"==typeof i?1e3*i+t:i}_getPathname(e,t){return t?e:X(e)}resetRequestCache(){var e,t;null==(t=this.cacheHandler)||null==(e=t.resetRequestCache)||e.call(t)}async unlock(e){let t=this.unlocks.get(e);t&&(t(),this.locks.delete(e),this.unlocks.delete(e))}async lock(e){process.env.__NEXT_INCREMENTAL_CACHE_IPC_PORT&&process.env.__NEXT_INCREMENTAL_CACHE_IPC_KEY;let t=()=>Promise.resolve(),r=this.locks.get(e);if(r)await r;else{let r=new Promise(e=>{t=async()=>{e()}});this.locks.set(e,r),this.unlocks.set(e,t)}return t}async revalidateTag(e){var t,r;return process.env.__NEXT_INCREMENTAL_CACHE_IPC_PORT&&process.env.__NEXT_INCREMENTAL_CACHE_IPC_KEY,null==(r=this.cacheHandler)?void 0:null==(t=r.revalidateTag)?void 0:t.call(r,e)}async fetchCacheKey(e,t={}){let r=[],i=new TextEncoder,n=new TextDecoder;if(t.body){if("function"==typeof t.body.getReader){let e=t.body,s=[];try{await e.pipeTo(new WritableStream({write(e){"string"==typeof e?(s.push(i.encode(e)),r.push(e)):(s.push(e),r.push(n.decode(e,{stream:!0})))}})),r.push(n.decode());let a=s.reduce((e,t)=>e+t.length,0),o=new Uint8Array(a),l=0;for(let e of s)o.set(e,l),l+=e.length;t._ogBody=o}catch(e){console.error("Problem reading body",e)}}else if("function"==typeof t.body.keys){let e=t.body;for(let i of(t._ogBody=t.body,new Set([...e.keys()]))){let t=e.getAll(i);r.push(`${i}=${(await Promise.all(t.map(async e=>"string"==typeof e?e:await e.text()))).join(",")}`)}}else if("function"==typeof t.body.arrayBuffer){let e=t.body,i=await e.arrayBuffer();r.push(await e.text()),t._ogBody=new Blob([i],{type:e.type})}else"string"==typeof t.body&&(r.push(t.body),t._ogBody=t.body)}let s=JSON.stringify(["v3",this.fetchCacheKeyPrefix||"",e,t.method,"function"==typeof(t.headers||{}).keys?Object.fromEntries(t.headers):t.headers,t.mode,t.redirect,t.credentials,t.referrer,t.referrerPolicy,t.integrity,t.cache,r]);{var a;let e=i.encode(s);return a=await crypto.subtle.digest("SHA-256",e),Array.prototype.map.call(new Uint8Array(a),e=>e.toString(16).padStart(2,"0")).join("")}}async get(e,t={}){var r,i,n;let s,a;if(process.env.__NEXT_INCREMENTAL_CACHE_IPC_PORT&&process.env.__NEXT_INCREMENTAL_CACHE_IPC_KEY,this.dev&&("fetch"!==t.kindHint||"no-cache"===this.requestHeaders["cache-control"]))return null;e=this._getPathname(e,"fetch"===t.kindHint);let o=null,l=t.revalidate,u=await (null==(r=this.cacheHandler)?void 0:r.get(e,t));if((null==u?void 0:null==(i=u.value)?void 0:i.kind)==="FETCH")return[...t.tags||[],...t.softTags||[]].some(e=>{var t;return null==(t=this.revalidatedTags)?void 0:t.includes(e)})?null:(l=l||u.value.revalidate,{isStale:(Date.now()-(u.lastModified||0))/1e3>l,value:{kind:"FETCH",data:u.value.data,revalidate:l},revalidateAfter:Date.now()+1e3*l});let c=null==(n=this.prerenderManifest.routes[Y(e)])?void 0:n.initialRevalidateSeconds;return(null==u?void 0:u.lastModified)===-1?(s=-1,a=-1*T.BR):s=!!(!1!==(a=this.calculateRevalidate(e,(null==u?void 0:u.lastModified)||Date.now(),this.dev&&"fetch"!==t.kindHint))&&a2097152){if(this.dev)throw Error("fetch for over 2MB of data can not be cached");return}e=this._getPathname(e,r.fetchCache);try{var i;void 0===r.revalidate||r.fetchCache||(this.prerenderManifest.routes[e]={experimentalPPR:void 0,dataRoute:F().posix.join("/_next/data",`${X(e)}.json`),srcRoute:null,initialRevalidateSeconds:r.revalidate,prefetchDataRoute:void 0}),await (null==(i=this.cacheHandler)?void 0:i.set(e,t,r))}catch(t){console.warn("Failed to update prerender cache for",e,t)}}}}function et(e){let{re:t,groups:r}=e;return e=>{let i=t.exec(e);if(!i)return!1;let n=e=>{try{return decodeURIComponent(e)}catch(e){throw new G("failed to decode param")}},s={};return Object.keys(r).forEach(e=>{let t=r[e],a=i[t.pos];void 0!==a&&(s[e]=~a.indexOf("/")?a.split("/").map(e=>n(e)):t.repeat?[n(a)]:n(a))}),s}}let er=/[|\\{}()[\]^$+*?.-]/,ei=/[|\\{}()[\]^$+*?.-]/g;function en(e){return er.test(e)?e.replace(ei,"\\$&"):e}var es=r(9728);function ea(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function eo(e){let{parameterizedRoute:t,groups:r}=function(e){let t=(0,es.Q)(e).slice(1).split("/"),r={},i=1;return{parameterizedRoute:t.map(e=>{let t=W.find(t=>e.startsWith(t)),n=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&n){let{key:e,optional:s,repeat:a}=ea(n[1]);return r[e]={pos:i++,repeat:a,optional:s},"/"+en(t)+"([^/]+?)"}if(!n)return"/"+en(e);{let{key:e,repeat:t,optional:s}=ea(n[1]);return r[e]={pos:i++,repeat:t,optional:s},t?s?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function el(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:i,routeKeys:n,keyPrefix:s}=e,{key:a,optional:o,repeat:l}=ea(i),u=a.replace(/\W/g,"");s&&(u=""+s+u);let c=!1;(0===u.length||u.length>30)&&(c=!0),isNaN(parseInt(u.slice(0,1)))||(c=!0),c&&(u=r()),s?n[u]=""+s+a:n[u]=a;let d=t?en(t):"";return l?o?"(?:/"+d+"(?<"+u+">.+?))?":"/"+d+"(?<"+u+">.+?)":"/"+d+"(?<"+u+">[^/]+?)"}class eu{constructor(e){this.definition=e,Z(e.pathname)&&(this.dynamic=et(eo(e.pathname)))}get identity(){return this.definition.pathname}get isDynamic(){return void 0!==this.dynamic}match(e){let t=this.test(e);return t?{definition:this.definition,params:t.params}:null}test(e){if(this.dynamic){let t=this.dynamic(e);return t?{params:t}:null}return e===this.definition.pathname?{}:null}}let ec=Symbol.for("__next_internal_waitUntil__"),ed=globalThis[ec]||(globalThis[ec]={waitUntilCounter:0,waitUntilResolve:void 0,waitUntilPromise:null});var eh=r(4184),ep=r(5013),ef=r(7058);function em(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function eg(e){return e.replace(/__ESC_COLON_/gi,":")}function ey(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(":"+r)&&(e=e.replace(RegExp(":"+r+"\\*","g"),":"+r+"--ESCAPED_PARAM_ASTERISKS").replace(RegExp(":"+r+"\\?","g"),":"+r+"--ESCAPED_PARAM_QUESTION").replace(RegExp(":"+r+"\\+","g"),":"+r+"--ESCAPED_PARAM_PLUS").replace(RegExp(":"+r+"(?!\\w)","g"),"--ESCAPED_PARAM_COLON"+r));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,ef.MY)("/"+e,{validate:!1})(t).slice(1)}class ev{constructor(e){this.routeModule=e,this.matcher=new eu(e.definition)}static wrap(e,t={}){let r=new ev(e);return e=>j({...e,...t,IncrementalCache:ee,handler:r.handler.bind(r)})}async handler(e,t){let{params:i}=(function({page:e,i18n:t,basePath:i,rewrites:n,pageIsDynamic:s,trailingSlash:a,caseSensitive:o}){let l,u,c;return s&&(c=(u=et(l=function(e,t){let r=function(e,t){let r;let i=(0,es.Q)(e).slice(1).split("/"),n=(r=0,()=>{let e="",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),s={};return{namedParameterizedRoute:i.map(e=>{let r=W.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(r&&i){let[r]=e.split(i[0]);return el({getSafeRouteKey:n,interceptionMarker:r,segment:i[1],routeKeys:s,keyPrefix:t?"nxtI":void 0})}return i?el({getSafeRouteKey:n,segment:i[1],routeKeys:s,keyPrefix:t?"nxtP":void 0}):"/"+en(e)}).join(""),routeKeys:s}}(e,t);return{...eo(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}(e,!1)))(e)),{handleRewrites:function(l,c){let d={},h=c.pathname,p=n=>{let p=(function(e,t){let r=[],i=(0,ef.Bo)(e,r,{delimiter:"/",sensitive:"boolean"==typeof(null==t?void 0:t.sensitive)&&t.sensitive,strict:null==t?void 0:t.strict}),n=(0,ef.WS)((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(i.source),i.flags):i,r);return(e,i)=>{if("string"!=typeof e)return!1;let s=n(e);if(!s)return!1;if(null==t?void 0:t.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete s.params[e.name];return{...i,...s.params}}})(n.source+(a?"(/)?":""),{removeUnnamedParams:!0,strict:!0,sensitive:!!o})(c.pathname);if((n.has||n.missing)&&p){let e=function(e,t,i,n){void 0===i&&(i=[]),void 0===n&&(n=[]);let s={},a=i=>{let n;let a=i.key;switch(i.type){case"header":a=a.toLowerCase(),n=e.headers[a];break;case"cookie":if("cookies"in e)n=e.cookies[i.key];else{var o;n=(o=e.headers,function(){let{cookie:e}=o;if(!e)return{};let{parse:t}=r(1935);return t(Array.isArray(e)?e.join("; "):e)})()[i.key]}break;case"query":n=t[a];break;case"host":{let{host:t}=(null==e?void 0:e.headers)||{};n=null==t?void 0:t.split(":",1)[0].toLowerCase()}}if(!i.value&&n)return s[function(e){let t="";for(let r=0;r64&&i<91||i>96&&i<123)&&(t+=e[r])}return t}(a)]=n,!0;if(n){let e=RegExp("^"+i.value+"$"),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{s[e]=t.groups[e]}):"host"===i.type&&t[0]&&(s.host=t[0])),!0}return!1};return!!i.every(e=>a(e))&&!n.some(e=>a(e))&&s}(l,c.query,n.has,n.missing);e?Object.assign(p,e):p=!1}if(p){let{parsedDestination:r,destQuery:a}=function(e){let t;let r=Object.assign({},e.query);delete r.__nextLocale,delete r.__nextDefaultLocale,delete r.__nextDataReq,delete r.__nextInferredLocaleFromDefault,delete r[_.H4];let i=e.destination;for(let t of Object.keys({...e.params,...r}))i=i.replace(RegExp(":"+en(t),"g"),"__ESC_COLON_"+t);let n=function(e){if(e.startsWith("/"))return function(e,t){let r=new URL("http://n"),i=t?new URL(t,r):e.startsWith(".")?new URL("http://n"):r,{pathname:n,searchParams:s,search:a,hash:o,href:l,origin:u}=new URL(e,i);if(u!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:n,query:em(s),search:a,hash:o,href:l.slice(r.origin.length)}}(e);let t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:em(t.searchParams),search:t.search}}(i),s=n.query,a=eg(""+n.pathname+(n.hash||"")),o=eg(n.hostname||""),l=[],u=[];(0,ef.Bo)(a,l),(0,ef.Bo)(o,u);let c=[];l.forEach(e=>c.push(e.name)),u.forEach(e=>c.push(e.name));let d=(0,ef.MY)(a,{validate:!1}),h=(0,ef.MY)(o,{validate:!1});for(let[t,r]of Object.entries(s))Array.isArray(r)?s[t]=r.map(t=>ey(eg(t),e.params)):"string"==typeof r&&(s[t]=ey(eg(r),e.params));let p=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!p.some(e=>c.includes(e)))for(let t of p)t in s||(s[t]=e.params[t]);if(z(a))for(let t of a.split("/")){let r=W.find(e=>t.startsWith(e));if(r){e.params["0"]=r;break}}try{let[r,i]=(t=d(e.params)).split("#",2);n.hostname=h(e.params),n.pathname=r,n.hash=(i?"#":"")+(i||""),delete n.search}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match");throw e}return n.query={...r,...n.query},{newUrl:t,destQuery:s,parsedDestination:n}}({appendParamsToQuery:!0,destination:n.destination,params:p,query:c.query});if(r.protocol)return!0;if(Object.assign(d,a,p),Object.assign(c.query,r.query),delete r.query,Object.assign(c,r),h=c.pathname,i&&(h=h.replace(RegExp(`^${i}`),"")||"/"),t){let e=(0,ep.h)(h,t.locales);h=e.pathname,c.query.nextInternalLocale=e.detectedLocale||p.nextInternalLocale}if(h===e)return!0;if(s&&u){let e=u(h);if(e)return c.query={...c.query,...e},!0}}return!1};for(let e of n.beforeFiles||[])p(e);if(h!==e){let t=!1;for(let e of n.afterFiles||[])if(t=p(e))break;if(!t&&!(()=>{let t=(0,es.Q)(h||"");return t===(0,es.Q)(e)||(null==u?void 0:u(t))})()){for(let e of n.fallback||[])if(t=p(e))break}}return d},defaultRouteRegex:l,dynamicRouteMatcher:u,defaultRouteMatches:c,getParamsFromRouteMatches:function(e,r,i){return et(function(){let{groups:e,routeKeys:n}=l;return{re:{exec:s=>{let a=Object.fromEntries(new URLSearchParams(s)),o=t&&i&&a["1"]===i;for(let e of Object.keys(a)){let t=a[e];e!==T.dN&&e.startsWith(T.dN)&&(a[e.substring(T.dN.length)]=t,delete a[e])}let l=Object.keys(n||{}),u=e=>{if(t){let n=Array.isArray(e),s=n?e[0]:e;if("string"==typeof s&&t.locales.some(e=>e.toLowerCase()===s.toLowerCase()&&(i=e,r.locale=i,!0)))return n&&e.splice(0,1),!n||0===e.length}return!1};return l.every(e=>a[e])?l.reduce((t,r)=>{let i=null==n?void 0:n[r];return i&&!u(a[r])&&(t[e[i].pos]=a[r]),t},{}):Object.keys(a).reduce((e,t)=>{if(!u(a[t])){let r=t;return o&&(r=parseInt(t,10)-1+""),Object.assign(e,{[r]:a[t]})}return e},{})}},groups:e}}())(e.headers["x-now-route-matches"])},normalizeDynamicRouteParams:(e,t)=>{var r,i,n;let s;return r=e,i=l,n=c,s=!0,i?{params:r=Object.keys(i.groups).reduce((e,a)=>{let o=r[a];"string"==typeof o&&(o=A(o)),Array.isArray(o)&&(o=o.map(e=>("string"==typeof e&&(e=A(e)),e)));let l=n[a],u=i.groups[a].optional;return((Array.isArray(l)?l.some(e=>Array.isArray(o)?o.some(t=>t.includes(e)):null==o?void 0:o.includes(e)):null==o?void 0:o.includes(l))||void 0===o&&!(u&&t))&&(s=!1),u&&(!o||Array.isArray(o)&&1===o.length&&("index"===o[0]||o[0]===`[[...${a}]]`))&&(o=void 0,delete r[a]),o&&"string"==typeof o&&i.groups[a].repeat&&(o=o.split("/")),o&&(e[a]=o),e},{}),hasValidParams:s}:{params:r,hasValidParams:!1}},normalizeVercelUrl:(e,t,r)=>(function(e,t,r,i,n){if(i&&t&&n){let t=(0,eh.parse)(e.url,!0);for(let e of(delete t.search,Object.keys(t.query)))(e!==T.dN&&e.startsWith(T.dN)||(r||Object.keys(n.groups)).includes(e))&&delete t.query[e];e.url=(0,eh.format)(t)}})(e,t,r,s,l),interpolateDynamicPath:(e,t)=>(function(e,t,r){if(!r)return e;for(let i of Object.keys(r.groups)){let{optional:n,repeat:s}=r.groups[i],a=`[${s?"...":""}${i}]`;n&&(a=`[${a}]`);let o=e.indexOf(a);if(o>-1){let r;let n=t[i];r=Array.isArray(n)?n.map(e=>e&&encodeURIComponent(e)).join("/"):n?encodeURIComponent(n):"",e=e.slice(0,o)+r+e.slice(o+a.length)}}return e})(e,t,l)}})({pageIsDynamic:this.matcher.isDynamic,page:this.matcher.definition.pathname,basePath:e.nextUrl.basePath,rewrites:{},caseSensitive:!1}).normalizeDynamicRouteParams(em(e.nextUrl.searchParams)),n="string"==typeof self.__PRERENDER_MANIFEST?JSON.parse(self.__PRERENDER_MANIFEST):void 0,s={params:i,prerenderManifest:{version:4,routes:{},dynamicRoutes:{},preview:(null==n?void 0:n.preview)||{previewModeEncryptionKey:"",previewModeId:"development-id",previewModeSigningKey:""},notFoundRoutes:[]},renderOpts:{supportsDynamicHTML:!0,experimental:{ppr:!1}}},a=await this.routeModule.handle(e,s),o=[ed.waitUntilPromise];return s.renderOpts.waitUntil&&o.push(s.renderOpts.waitUntil),t.waitUntil(Promise.all(o)),a}}},6286:(e,t,r)=>{"use strict";r.d(t,{Y5:()=>s,cR:()=>n,qJ:()=>i});class i extends Error{constructor({page:e}){super(`The middleware "${e}" accepts an async API directly with the form: + + export function middleware(request, event) { + return NextResponse.redirect('/new-location') + } + + Read more: https://nextjs.org/docs/messages/middleware-new-signature + `)}}class n extends Error{constructor(){super(`The request.page has been deprecated in favour of \`URLPattern\`. + Read more: https://nextjs.org/docs/messages/middleware-request-page + `)}}class s extends Error{constructor(){super(`The request.ua has been removed in favour of \`userAgent\` function. + Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent + `)}}},5662:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i.x});var i=r(9715)},6095:(e,t,r)=>{"use strict";r.d(t,{c:()=>h});var i=r(9728);function n(e){let t=e.indexOf("#"),r=e.indexOf("?"),i=r>-1&&(t<0||r-1?{pathname:e.substring(0,i?r:t),query:i?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}function s(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:s}=n(e);return""+t+r+i+s}function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:s}=n(e);return""+r+t+i+s}function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=n(e);return r===t||r.startsWith(t+"/")}var l=r(5013);let u=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function c(e,t){return new URL(String(e).replace(u,"localhost"),t&&String(t).replace(u,"localhost"))}let d=Symbol("NextURLInternal");class h{constructor(e,t,r){let i,n;"object"==typeof t&&"pathname"in t||"string"==typeof t?(i=t,n=r||{}):n=r||t||{},this[d]={url:c(e,i??n.base),options:n,basePath:""},this.analyze()}analyze(){var e,t,r,i,n;let s=function(e,t){var r,i;let{basePath:n,i18n:s,trailingSlash:a}=null!=(r=t.nextConfig)?r:{},u={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):a};n&&o(u.pathname,n)&&(u.pathname=function(e,t){if(!o(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}(u.pathname,n),u.basePath=n);let c=u.pathname;if(u.pathname.startsWith("/_next/data/")&&u.pathname.endsWith(".json")){let e=u.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];u.buildId=r,c="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(u.pathname=c)}if(s){let e=t.i18nProvider?t.i18nProvider.analyze(u.pathname):(0,l.h)(u.pathname,s.locales);u.locale=e.detectedLocale,u.pathname=null!=(i=e.pathname)?i:u.pathname,!e.detectedLocale&&u.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(c):(0,l.h)(c,s.locales)).detectedLocale&&(u.locale=e.detectedLocale)}return u}(this[d].url.pathname,{nextConfig:this[d].options.nextConfig,parseData:!0,i18nProvider:this[d].options.i18nProvider}),a=function(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()}(this[d].url,this[d].options.headers);this[d].domainLocale=this[d].options.i18nProvider?this[d].options.i18nProvider.detectDomainLocale(a):function(e,t,r){if(e)for(let s of(r&&(r=r.toLowerCase()),e)){var i,n;if(t===(null==(i=s.domain)?void 0:i.split(":",1)[0].toLowerCase())||r===s.defaultLocale.toLowerCase()||(null==(n=s.locales)?void 0:n.some(e=>e.toLowerCase()===r)))return s}}(null==(t=this[d].options.nextConfig)?void 0:null==(e=t.i18n)?void 0:e.domains,a);let u=(null==(r=this[d].domainLocale)?void 0:r.defaultLocale)||(null==(n=this[d].options.nextConfig)?void 0:null==(i=n.i18n)?void 0:i.defaultLocale);this[d].url.pathname=s.pathname,this[d].defaultLocale=u,this[d].basePath=s.basePath??"",this[d].buildId=s.buildId,this[d].locale=s.locale??u,this[d].trailingSlash=s.trailingSlash}formatPathname(){var e;let t;return t=function(e,t,r,i){if(!t||t===r)return e;let n=e.toLowerCase();return!i&&(o(n,"/api")||o(n,"/"+t.toLowerCase()))?e:s(e,"/"+t)}((e={basePath:this[d].basePath,buildId:this[d].buildId,defaultLocale:this[d].options.forceLocale?void 0:this[d].defaultLocale,locale:this[d].locale,pathname:this[d].url.pathname,trailingSlash:this[d].trailingSlash}).pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix),(e.buildId||!e.trailingSlash)&&(t=(0,i.Q)(t)),e.buildId&&(t=a(s(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=s(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:a(t,"/"):(0,i.Q)(t)}formatSearch(){return this[d].url.search}get buildId(){return this[d].buildId}set buildId(e){this[d].buildId=e}get locale(){return this[d].locale??""}set locale(e){var t,r;if(!this[d].locale||!(null==(r=this[d].options.nextConfig)?void 0:null==(t=r.i18n)?void 0:t.locales.includes(e)))throw TypeError(`The NextURL configuration includes no locale "${e}"`);this[d].locale=e}get defaultLocale(){return this[d].defaultLocale}get domainLocale(){return this[d].domainLocale}get searchParams(){return this[d].url.searchParams}get host(){return this[d].url.host}set host(e){this[d].url.host=e}get hostname(){return this[d].url.hostname}set hostname(e){this[d].url.hostname=e}get port(){return this[d].url.port}set port(e){this[d].url.port=e}get protocol(){return this[d].url.protocol}set protocol(e){this[d].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[d].url=c(e),this.analyze()}get origin(){return this[d].url.origin}get pathname(){return this[d].url.pathname}set pathname(e){this[d].url.pathname=e}get hash(){return this[d].url.hash}set hash(e){this[d].url.hash=e}get search(){return this[d].url.search}set search(e){this[d].url.search=e}get password(){return this[d].url.password}set password(e){this[d].url.password=e}get username(){return this[d].url.username}set username(e){this[d].url.username=e}get basePath(){return this[d].basePath}set basePath(e){this[d].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 h(String(this),this[d].options)}}},3323:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var i=r(6160);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 s extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return i.g.get(t,r,n);let s=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===s);if(void 0!==a)return i.g.get(t,a,n)},set(t,r,n,s){if("symbol"==typeof r)return i.g.set(t,r,n,s);let a=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===a);return i.g.set(t,o??r,n,s)},has(t,r){if("symbol"==typeof r)return i.g.has(t,r);let n=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==s&&i.g.has(t,s)},deleteProperty(t,r){if("symbol"==typeof r)return i.g.deleteProperty(t,r);let n=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===s||i.g.deleteProperty(t,s)}})}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.g.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new s(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()}}},6160:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});class i{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)}}},8121:(e,t,r)=>{"use strict";r.d(t,{Qb:()=>a,_5:()=>l,vr:()=>u});var i=r(4326),n=r(6160);class s 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 s}}class a{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return s.callable;default:return n.g.get(e,t,r)}}})}}let o=Symbol.for("next.mutated.cookies");function l(e,t){let r=function(e){let t=e[o];return t&&Array.isArray(t)&&0!==t.length?t:[]}(t);if(0===r.length)return!1;let n=new i.n(e),s=n.getAll();for(let e of r)n.set(e);for(let e of s)n.set(e);return!0}class u{static wrap(e,t){let r=new i.n(new Headers);for(let t of e.getAll())r.set(t);let s=[],a=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),s=r.getAll().filter(e=>a.has(e.name)),t){let e=[];for(let t of s){let r=new i.n(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case o:return s;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 n.g.get(e,t,r)}}})}}},4326:(e,t,r)=>{"use strict";r.d(t,{n:()=>i.ResponseCookies,q:()=>i.RequestCookies});var i=r(65)},9858:(e,t,r)=>{"use strict";r.d(t,{I:()=>l});var i=r(6095),n=r(2073),s=r(6286),a=r(4326);let o=Symbol("internal request");class l extends Request{constructor(e,t={}){let r="string"!=typeof e&&"url"in e?e.url:String(e);(0,n.r4)(r),e instanceof Request?super(e,t):super(r,t);let s=new i.c(r,{headers:(0,n.lb)(this.headers),nextConfig:t.nextConfig});this[o]={cookies:new a.q(this.headers),geo:t.geo||{},ip:t.ip,nextUrl:s,url:s.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,geo:this.geo,ip:this.ip,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[o].cookies}get geo(){return this[o].geo}get ip(){return this[o].ip}get nextUrl(){return this[o].nextUrl}get page(){throw new s.cR}get ua(){throw new s.Y5}get url(){return this[o].url}}},9715:(e,t,r)=>{"use strict";r.d(t,{x:()=>u});var i=r(6095),n=r(2073),s=r(4326);let a=Symbol("internal response"),o=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[i,n]of e.request.headers)t.set("x-middleware-request-"+i,n),r.push(i);t.set("x-middleware-override-headers",r.join(","))}}class u extends Response{constructor(e,t={}){super(e,t),this[a]={cookies:new s.n(this.headers),url:t.url?new i.c(t.url,{headers:(0,n.lb)(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(!o.has(r))throw RangeError('Failed to execute "redirect" on "response": Invalid status code');let i="object"==typeof t?t:{},s=new Headers(null==i?void 0:i.headers);return s.set("Location",(0,n.r4)(e)),new u(null,{...i,headers:s,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,n.r4)(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})}}},2073:(e,t,r)=>{"use strict";function i(e){let t=new Headers;for(let[r,i]of Object.entries(e))for(let e of Array.isArray(i)?i:[i])void 0!==e&&("number"==typeof e&&(e=e.toString()),t.append(r,e));return t}function n(e){let t={},r=[];if(e)for(let[i,n]of e.entries())"set-cookie"===i.toLowerCase()?(r.push(...function(e){var t,r,i,n,s,a=[],o=0;function l(){for(;o=e.length)&&a.push(e.substring(t,e.length))}return a}(n)),t[i]=1===r.length?r[0]:r):t[i]=n;return t}function s(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})}}r.d(t,{EK:()=>i,lb:()=>n,r4:()=>s})},4532:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AppRouterContext:()=>o,GlobalLayoutRouterContext:()=>u,LayoutRouterContext:()=>l,MissingSlotContext:()=>d,TemplateContext:()=>c});var i=r(4421);let n=(0,i.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js`),{__esModule:s,$$typeof:a}=n;n.default;let o=(0,i.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js#AppRouterContext`),l=(0,i.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js#LayoutRouterContext`),u=(0,i.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js#GlobalLayoutRouterContext`),c=(0,i.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js#TemplateContext`),d=(0,i.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js#MissingSlotContext`)},5013:(e,t,r)=>{"use strict";function i(e,t){let r;let i=e.split("/");return(t||[]).some(t=>!!i[1]&&i[1].toLowerCase()===t.toLowerCase()&&(r=t,i.splice(1,1),e=i.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}r.d(t,{h:()=>i})},9624:(e,t,r)=>{"use strict";let i;i=r(1193),e.exports=i},5406:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},9728:(e,t,r)=>{"use strict";function i(e){return e.replace(/\/$/,"")||"/"}r.d(t,{Q:()=>i})},5501:(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,{withRequest:function(){return s},getTestReqInfo:function(){return a}});let i=new(r(2067)).AsyncLocalStorage;function n(e,t){let r=t.header(e,"next-test-proxy-port");if(r)return{url:t.url(e),proxyPort:Number(r),testData:t.header(e,"next-test-data")||""}}function s(e,t,r){let s=n(e,t);return s?i.run(s,r):r()}function a(e,t){return i.getStore()||(e&&t?n(e,t):void 0)}},3007:(e,t,r)=>{"use strict";var i=r(6195).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{reader:function(){return s},handleFetch:function(){return o},interceptFetch:function(){return l}});let n=r(5501),s={url:e=>e.url,header:(e,t)=>e.headers.get(t)};async function a(e,t){let{url:r,method:n,headers:s,body:a,cache:o,credentials:l,integrity:u,mode:c,redirect:d,referrer:h,referrerPolicy:p}=t;return{testData:e,api:"fetch",request:{url:r,method:n,headers:[...Array.from(s),["next-test-stack",function(){let e=(Error().stack??"").split("\n");for(let t=1;t0){e=e.slice(t);break}return(e=(e=(e=e.filter(e=>!e.includes("/next/dist/"))).slice(0,5)).map(e=>e.replace("webpack-internal:///(rsc)/","").trim())).join(" ")}()]],body:a?i.from(await t.arrayBuffer()).toString("base64"):null,cache:o,credentials:l,integrity:u,mode:c,redirect:d,referrer:h,referrerPolicy:p}}}async function o(e,t){let r=(0,n.getTestReqInfo)(t,s);if(!r)throw Error(`No test info for ${t.method} ${t.url}`);let{testData:o,proxyPort:l}=r,u=await a(o,t),c=await e(`http://localhost:${l}`,{method:"POST",body:JSON.stringify(u),next:{internal:!0}});if(!c.ok)throw Error(`Proxy request failed: ${c.status}`);let d=await c.json(),{api:h}=d;switch(h){case"continue":return e(t);case"abort":case"unhandled":throw Error(`Proxy request aborted [${t.method} ${t.url}]`)}return function(e){let{status:t,headers:r,body:n}=e.response;return new Response(n?i.from(n,"base64"):null,{status:t,headers:new Headers(r)})}(d)}function l(e){return r.g.fetch=function(t,r){var i;return(null==r?void 0:null==(i=r.next)?void 0:i.internal)?e(t,r):o(e,new Request(t,r))},()=>{r.g.fetch=e}}},4323:(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,{interceptTestApis:function(){return s},wrapRequestHandler:function(){return a}});let i=r(5501),n=r(3007);function s(){return(0,n.interceptFetch)(r.g.fetch)}function a(e){return(t,r)=>(0,i.withRequest)(t,n.reader,()=>e(t,r))}},7887:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});let i=(0,r(4744).P)()},4744:(e,t,r)=>{"use strict";r.d(t,{P:()=>a});let i=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}}let s=globalThis.AsyncLocalStorage;function a(){return s?new s:new n}},4359:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});let i=(0,r(4744).P)()},5364:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4744).P)()},7921:(e,t,r)=>{"use strict";r.d(t,{RQ:()=>d,UI:()=>f,dZ:()=>l,lw:()=>h,qD:()=>p,wH:()=>u});var i=r(2396),n=r(2209),s=r(5469),a=r(1677),o=r(1404);class l{constructor(e){this.table=e}static{this[n.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[n.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===o.d)return{...e[o.d],name:this.alias,isAlias:!0};if(t===a.iA.Symbol.Columns){let t=e[a.iA.Symbol.Columns];if(!t)return t;let r={};return Object.keys(t).map(i=>{r[i]=new Proxy(t[i],new l(new Proxy(e,this)))}),r}let r=e[t];return(0,n.is)(r,i.s)?new Proxy(r,new l(new Proxy(e,this))):r}}class c{constructor(e){this.alias=e}static{this[n.Q]="RelationTableAliasProxyHandler"}get(e,t){return"sourceTable"===t?d(e.sourceTable,this.alias):e[t]}}function d(e,t){return new Proxy(e,new u(t,!1))}function h(e,t){return new Proxy(e,new l(new Proxy(e.table,new u(t,!1))))}function p(e,t){return new s.$s.Aliased(f(e.sql,t),e.fieldAlias)}function f(e,t){return s.i6.join(e.queryChunks.map(e=>(0,n.is)(e,i.s)?h(e,t):(0,n.is)(e,s.$s)?f(e,t):(0,n.is)(e,s.$s.Aliased)?p(e,t):e))}},2878:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});var i=r(2209);class n{static{this[i.Q]="ColumnBuilder"}constructor(e,t,r){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:r}}$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}}},2396:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});var i=r(2209);class n{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[i.Q]="Column"}mapFromDriverValue(e){return e}mapToDriverValue(e){return e}}},2209:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i,is:()=>n});let i=Symbol.for("drizzle:entityKind");function n(e,t){if(!e||"object"!=typeof e)return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,i))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 r=e.constructor;if(r)for(;r;){if(i in r&&r[i]===t[i])return!0;r=Object.getPrototypeOf(r)}return!1}Symbol.for("drizzle:hasOwnEntityKind")},2688:(e,t,r)=>{"use strict";r.d(t,{F:()=>s,k:()=>n});var i=r(2209);class n extends Error{static{this[i.Q]="DrizzleError"}constructor({message:e,cause:t}){super(e),this.name="DrizzleError",this.cause=t}}class s extends n{static{this[i.Q]="TransactionRollbackError"}constructor(){super({message:"Rollback"})}}},8018:(e,t,r)=>{"use strict";r.d(t,{CK:()=>s,ut:()=>a});var i=r(2209),n=r(4131);function s(...e){return e[0].columns?new a(e[0].columns,e[0].name):new a(e)}class a{static{this[i.Q]="PgPrimaryKeyBuilder"}constructor(e,t){this.columns=e,this.name=t}build(e){return new o(e,this.columns,this.name)}}class o{constructor(e,t,r){this.table=e,this.columns=t,this.name=r}static{this[i.Q]="PgPrimaryKey"}getName(){return this.name??`${this.table[n.YA.Symbol.Name]}_${this.columns.map(e=>e.name).join("_")}_pk`}}},4131:(e,t,r)=>{"use strict";let i;r.d(t,{YA:()=>o,af:()=>l});var n=r(2209),s=r(1677);let a=Symbol.for("drizzle:PgInlineForeignKeys");class o extends s.iA{static{i=s.iA.Symbol.ExtraConfigBuilder}static{this[n.Q]="PgTable"}static{this.Symbol=Object.assign({},s.iA.Symbol,{InlineForeignKeys:a})}constructor(...e){super(...e),this[a]=[],this[i]=void 0}}let l=(e,t,r)=>(function(e,t,r,i,n=e){let l=new o(e,i,n),u=Object.fromEntries(Object.entries(t).map(([e,t])=>{let r=t.build(l);return l[a].push(...t.buildForeignKeys(r,l)),[e,r]})),c=Object.assign(l,u);return c[s.iA.Symbol.Columns]=u,r&&(c[o.Symbol.ExtraConfigBuilder]=r),c})(e,t,r,void 0)},678:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});var i=r(2209);class n{static{this[i.Q]="TypedQueryBuilder"}getSelectedFields(){return this._.selectedFields}}},130:(e,t,r)=>{"use strict";let i;r.d(t,{N:()=>s});var n=r(2209);class s{static{i=Symbol.toStringTag}static{this[n.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[i]="QueryPromise"}}},2801:(e,t,r)=>{"use strict";r.d(t,{sj:()=>f,fh:()=>p,_J:()=>w,pb:()=>y,vU:()=>m,pl:()=>g,WX:()=>function e(t,r,i,a,o=e=>e){let u={};for(let[c,d]of a.entries())if(d.isJson){let n=r.relations[d.tsKey],a=i[c],l="string"==typeof a?JSON.parse(a):a;u[d.tsKey]=(0,s.is)(n,p)?l&&e(t,t[d.relationTableTsKey],l,d.selection,o):l.map(r=>e(t,t[d.relationTableTsKey],r,d.selection,o))}else{let e;let t=o(i[c]),r=d.field;e=(0,s.is)(r,n.s)?r:(0,s.is)(r,l.$s)?r.decoder:r.sql.decoder,u[d.tsKey]=null===t?null:e.mapFromDriverValue(t)}return u},wG:()=>b,lE:()=>v});var i=r(1677),n=r(2396),s=r(2209),a=r(8018),o=r(9355),l=r(5469);function u(e){return l.i6`${e} asc`}function c(e){return l.i6`${e} desc`}class d{constructor(e,t,r){this.sourceTable=e,this.referencedTable=t,this.relationName=r,this.referencedTableName=t[i.iA.Symbol.Name]}static{this[s.Q]="Relation"}}class h{constructor(e,t){this.table=e,this.config=t}static{this[s.Q]="Relations"}}class p extends d{constructor(e,t,r,i){super(e,t,r?.relationName),this.config=r,this.isNullable=i}static{this[s.Q]="One"}withFieldName(e){let t=new p(this.sourceTable,this.referencedTable,this.config,this.isNullable);return t.fieldName=e,t}}class f extends d{constructor(e,t,r){super(e,t,r?.relationName),this.config=r}static{this[s.Q]="Many"}withFieldName(e){let t=new f(this.sourceTable,this.referencedTable,this.config);return t.fieldName=e,t}}function m(){return{and:o.xD,between:o.vX,eq:o.eq,exists:o.Gg,gt:o.gt,gte:o.eg,ilike:o.o$,inArray:o.d3,isNull:o.Ft,isNotNull:o.K0,like:o.vL,lt:o.lt,lte:o.G,ne:o.ne,not:o.ff,notBetween:o.OL,notExists:o.UN,notLike:o.Qg,notIlike:o.mM,notInArray:o.Nl,or:o.or,sql:l.i6}}function g(){return{sql:l.i6,asc:u,desc:c}}function y(e,t){1===Object.keys(e).length&&"default"in e&&!(0,s.is)(e.default,i.iA)&&(e=e.default);let r={},n={},o={};for(let[l,u]of Object.entries(e))if((0,i.wb)(u)){let e=u[i.iA.Symbol.Name],t=n[e];for(let n of(r[e]=l,o[l]={tsName:l,dbName:u[i.iA.Symbol.Name],schema:u[i.iA.Symbol.Schema],columns:u[i.iA.Symbol.Columns],relations:t?.relations??{},primaryKey:t?.primaryKey??[]},Object.values(u[i.iA.Symbol.Columns])))n.primary&&o[l].primaryKey.push(n);let c=u[i.iA.Symbol.ExtraConfigBuilder]?.(u);if(c)for(let e of Object.values(c))(0,s.is)(e,a.ut)&&o[l].primaryKey.push(...e.columns)}else if((0,s.is)(u,h)){let e;let s=u.table[i.iA.Symbol.Name],a=r[s];for(let[r,i]of Object.entries(u.config(t(u.table))))if(a){let t=o[a];t.relations[r]=i,e&&t.primaryKey.push(...e)}else s in n||(n[s]={relations:{},primaryKey:e}),n[s].relations[r]=i}return{tables:o,tableNamesMap:r}}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,r){if((0,s.is)(r,p)&&r.config)return{fields:r.config.fields,references:r.config.references};let n=t[r.referencedTable[i.iA.Symbol.Name]];if(!n)throw Error(`Table "${r.referencedTable[i.iA.Symbol.Name]}" not found in schema`);let a=e[n];if(!a)throw Error(`Table "${n}" not found in schema`);let o=r.sourceTable,l=t[o[i.iA.Symbol.Name]];if(!l)throw Error(`Table "${o[i.iA.Symbol.Name]}" not found in schema`);let u=[];for(let e of Object.values(a.relations))(r.relationName&&r!==e&&e.relationName===r.relationName||!r.relationName&&e.referencedTable===r.sourceTable)&&u.push(e);if(u.length>1)throw r.relationName?Error(`There are multiple relations with name "${r.relationName}" in table "${n}"`):Error(`There are multiple relations between "${n}" and "${r.sourceTable[i.iA.Symbol.Name]}". Please specify relation name`);if(u[0]&&(0,s.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 "${l}.${r.fieldName}"`)}function w(e){return{one:function(t,r){return new p(e,t,r,r?.fields.reduce((e,t)=>e&&t.notNull,!0)??!1)},many:function(t,r){return new f(e,t,r)}}}},4711:(e,t,r)=>{"use strict";r.d(t,{e:()=>u});var i=r(7921),n=r(2396),s=r(2209),a=r(5469),o=r(4135),l=r(1404);class u{static{this[s.Q]="SelectionProxyHandler"}constructor(e){this.config={...e}}get(e,t){if(t===o.g1)return{...e[o.g1],selection:new Proxy(e[o.g1].selection,this)};if(t===l.d)return{...e[l.d],selectedFields:new Proxy(e[l.d].selectedFields,this)};if("symbol"==typeof t)return e[t];let r=((0,s.is)(e,o.k)?e[o.g1].selection:(0,s.is)(e,a.G7)?e[l.d].selectedFields:e)[t];if((0,s.is)(r,a.$s.Aliased)){if("sql"===this.config.sqlAliasedBehavior&&!r.isSelectionField)return r.sql;let e=r.clone();return e.isSelectionField=!0,e}if((0,s.is)(r,a.$s)){if("sql"===this.config.sqlBehavior)return r;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,s.is)(r,n.s)?this.config.alias?new Proxy(r,new i.dZ(new Proxy(r.table,new i.wH(this.config.alias,this.config.replaceOriginalName??!1)))):r:"object"!=typeof r||null===r?r:new Proxy(r,new u(this.config))}}},9355:(e,t,r)=>{"use strict";r.d(t,{Ft:()=>b,G:()=>g,Gg:()=>_,K0:()=>w,Nl:()=>v,OL:()=>k,Qg:()=>A,UN:()=>S,d3:()=>y,eg:()=>f,eq:()=>l,ff:()=>h,gt:()=>p,lt:()=>m,mM:()=>C,ne:()=>u,o$:()=>T,or:()=>d,vL:()=>E,vX:()=>x,xD:()=>c});var i=r(2396),n=r(2209),s=r(1677),a=r(5469);function o(e,t){return!(0,a._B)(t)||(0,a.zl)(e)||(0,n.is)(e,a.dO)||(0,n.is)(e,a.Vm)||(0,n.is)(e,i.s)||(0,n.is)(e,s.iA)||(0,n.is)(e,a.G7)?e:new a.dO(e,t)}let l=(e,t)=>a.i6`${e} = ${o(t,e)}`,u=(e,t)=>a.i6`${e} <> ${o(t,e)}`;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(" and ")),new a.Zm(")")])}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(" or ")),new a.Zm(")")])}function h(e){return a.i6`not ${e}`}let p=(e,t)=>a.i6`${e} > ${o(t,e)}`,f=(e,t)=>a.i6`${e} >= ${o(t,e)}`,m=(e,t)=>a.i6`${e} < ${o(t,e)}`,g=(e,t)=>a.i6`${e} <= ${o(t,e)}`;function y(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=>o(t,e))}`}return a.i6`${e} in ${o(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=>o(t,e))}`}return a.i6`${e} not in ${o(t,e)}`}function b(e){return a.i6`${e} is null`}function w(e){return a.i6`${e} is not null`}function _(e){return a.i6`exists ${e}`}function S(e){return a.i6`not exists ${e}`}function x(e,t,r){return a.i6`${e} between ${o(t,e)} and ${o(r,e)}`}function k(e,t,r){return a.i6`${e} not between ${o(t,e)} and ${o(r,e)}`}function E(e,t){return a.i6`${e} like ${t}`}function A(e,t){return a.i6`${e} not like ${t}`}function T(e,t){return a.i6`${e} ilike ${t}`}function C(e,t){return a.i6`${e} not ilike ${t}`}},5469:(e,t,r)=>{"use strict";r.d(t,{$s:()=>h,G7:()=>_,Pr:()=>w,Vm:()=>b,Zm:()=>d,_B:()=>f,dO:()=>y,i6:()=>v,zl:()=>c});var i=r(2209),n=r(4135),s=r(8772),a=r(1404),o=r(2396),l=r(1677);class u{static{this[i.Q]="FakePrimitiveParam"}}function c(e){return"object"==typeof e&&null!==e&&"getSQL"in e&&"function"==typeof e.getSQL}class d{static{this[i.Q]="StringChunk"}constructor(e){this.value=Array.isArray(e)?e:[e]}getSQL(){return new h([this])}}class h{constructor(e){this.decoder=m,this.shouldInlineParams=!1,this.queryChunks=e}static{this[i.Q]="SQL"}append(e){return this.queryChunks.push(...e.queryChunks),this}toQuery(e){return s.Z.startActiveSpan("drizzle.buildSQL",t=>{let r=this.buildQueryFromSourceParams(this.queryChunks,e);return t?.setAttributes({"drizzle.query.text":r.sql,"drizzle.query.params":JSON.stringify(r.params)}),r})}buildQueryFromSourceParams(e,t){let r=Object.assign({},t,{inlineParams:t.inlineParams||this.shouldInlineParams,paramStartIndex:t.paramStartIndex||{value:0}}),{escapeName:s,escapeParam:u,prepareTyping:f,inlineParams:m,paramStartIndex:g}=r;return function(e){let t={sql:"",params:[]};for(let r of e)t.sql+=r.sql,t.params.push(...r.params),r.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...r.typings));return t}(e.map(e=>{if((0,i.is)(e,d))return{sql:e.value.join(""),params:[]};if((0,i.is)(e,p))return{sql:s(e.value),params:[]};if(void 0===e)return{sql:"",params:[]};if(Array.isArray(e)){let t=[new d("(")];for(let[r,i]of e.entries())t.push(i),re},g={mapToDriverValue:e=>e};({...m,...g});class y{constructor(e,t=g){this.value=e,this.encoder=t}static{this[i.Q]="Param"}getSQL(){return new h([this])}}function v(e,...t){let r=[];for(let[i,n]of((t.length>0||e.length>0&&""!==e[0])&&r.push(new d(e[0])),t.entries()))r.push(n,new d(e[i+1]));return new h(r)}(e=>{e.empty=function(){return new h([])},e.fromList=function(e){return new h(e)},e.raw=function(e){return new h([new d(e)])},e.join=function(e,t){let r=[];for(let[i,n]of e.entries())i>0&&void 0!==t&&r.push(t),r.push(n);return new h(r)},e.identifier=function(e){return new p(e)},e.placeholder=function(e){return new b(e)},e.param=function(e,t){return new y(e,t)}})(v||(v={})),(e=>{class t{constructor(e,t){this.isSelectionField=!1,this.sql=e,this.fieldAlias=t}static{this[i.Q]="SQL.Aliased"}getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(h||(h={}));class b{constructor(e){this.name=e}static{this[i.Q]="Placeholder"}getSQL(){return new h([this])}}function w(e,t){return e.map(e=>{if((0,i.is)(e,b)){if(!(e.name in t))throw Error(`No value for placeholder "${e.name}" was provided`);return t[e.name]}return e})}class _{static{this[i.Q]="View"}constructor({name:e,schema:t,selectedFields:r,query:i}){this[a.d]={name:e,originalName:e,schema:t,selectedFields:r,query:i,isExisting:!i,isAlias:!1}}getSQL(){return new h([this])}}o.s.prototype.getSQL=function(){return new h([this])},l.iA.prototype.getSQL=function(){return new h([this])},n.k.prototype.getSQL=function(){return new h([this])}},7488:(e,t,r)=>{"use strict";r.d(t,{l:()=>f,d:()=>p});var i=r(2878),n=r(2396),s=r(2209),a=r(5315);class o{static{this[s.Q]="SQLiteForeignKeyBuilder"}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 l(e,this)}}class l{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static{this[s.Q]="SQLiteForeignKey"}getName(){let{name:e,columns:t,foreignColumns:r}=this.reference(),i=t.map(e=>e.name),n=r.map(e=>e.name),s=[this.table[a.xA.Symbol.Name],...i,r[0].table[a.xA.Symbol.Name],...n];return e??`${s.join("_")}_fk`}}function u(e,t){return`${e[a.xA.Symbol.Name]}_${t.join("_")}_unique`}class c{constructor(e,t){this.name=t,this.columns=e}static{this[s.Q]="SQLiteUniqueConstraintBuilder"}build(e){return new h(e,this.columns,this.name)}}class d{static{this[s.Q]="SQLiteUniqueOnConstraintBuilder"}constructor(e){this.name=e}on(...e){return new c(e,this.name)}}class h{constructor(e,t,r){this.table=e,this.columns=t,this.name=r??u(this.table,this.columns.map(e=>e.name))}static{this[s.Q]="SQLiteUniqueConstraint"}getName(){return this.name}}class p extends i.L{static{this[s.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:r,actions:i})=>((r,i)=>{let n=new o(()=>({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 f extends n.s{constructor(e,t){t.uniqueName||(t.uniqueName=u(e,[t.name])),super(e,t),this.table=e}static{this[s.Q]="SQLiteColumn"}}},2404:(e,t,r)=>{"use strict";r.d(t,{_L:()=>f,e$:()=>m});var i=r(2209),n=r(5469),s=r(7488);class a extends s.d{static{this[i.Q]="SQLiteBaseIntegerBuilder"}constructor(e,t,r){super(e,t,r),this.config.autoIncrement=!1}primaryKey(e){return e?.autoIncrement&&(this.config.autoIncrement=!0),this.config.hasDefault=!0,super.primaryKey()}}class o extends s.l{static{this[i.Q]="SQLiteBaseInteger"}getSQLType(){return"integer"}constructor(...e){super(...e),this.autoIncrement=this.config.autoIncrement}}class l extends a{static{this[i.Q]="SQLiteIntegerBuilder"}constructor(e){super(e,"number","SQLiteInteger")}build(e){return new u(e,this.config)}}class u extends o{static{this[i.Q]="SQLiteInteger"}}class c extends a{static{this[i.Q]="SQLiteTimestampBuilder"}constructor(e,t){super(e,"date","SQLiteTimestamp"),this.config.mode=t}defaultNow(){return this.default(n.i6`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build(e){return new d(e,this.config)}}class d extends o{static{this[i.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[i.Q]="SQLiteBooleanBuilder"}constructor(e,t){super(e,"boolean","SQLiteBoolean"),this.config.mode=t}build(e){return new p(e,this.config)}}class p extends o{static{this[i.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 c(e,t.mode):t?.mode==="boolean"?new h(e,t.mode):new l(e)}let m=f},1701:(e,t,r)=>{"use strict";r.d(t,{fL:()=>u});var i=r(2209),n=r(7488);class s extends n.d{static{this[i.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 n.l{static{this[i.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 o extends n.d{static{this[i.Q]="SQLiteTextJsonBuilder"}constructor(e){super(e,"json","SQLiteTextJson")}build(e){return new l(e,this.config)}}class l extends n.l{static{this[i.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 o(e):new s(e,t)}},4078:(e,t,r)=>{"use strict";r.d(t,{z:()=>j});var i=r(2209),n=r(4711),s=r(2350),a=r(678),o=r(130),l=r(5469),u=r(4135),c=r(1677),d=r(753),h=r(1404),p=r(260);class f{static{this[i.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 r=!!this.fields;return t=this.fields?this.fields:(0,i.is)(e,u.k)?Object.fromEntries(Object.keys(e[u.g1].selection).map(t=>[t,e[t]])):(0,i.is)(e,p.B)?e[h.d].selectedFields:(0,i.is)(e,l.$s)?{}:(0,d.SS)(e),new g({table:e,fields:t,isPartialSelect:r,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct})}}class m extends a.b{static{this[i.Q]="SQLiteSelectQueryBuilder"}constructor({table:e,fields:t,isPartialSelect:r,session:i,dialect:n,withList:s,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:s,table:e,fields:{...t},distinct:a,setOperators:[]},this.isPartialSelect=r,this.session=i,this.dialect=n,this._={selectedFields:t},this.tableName=(0,d.dP)(e),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}createJoin(e){return(t,r)=>{let s=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 s&&(this.config.fields={[s]:this.config.fields}),"string"==typeof a&&!(0,i.is)(t,l.$s))){let e=(0,i.is)(t,u.k)?t[u.g1].selection:(0,i.is)(t,l.G7)?t[h.d].selectedFields:t[c.iA.Symbol.Columns];this.config.fields[a]=e}if("function"==typeof r&&(r=r(new Proxy(this.config.fields,new n.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:r,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 r=>{let i="function"==typeof r?r(v()):r;if(!(0,d.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 n.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=e,this}having(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new n.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 n.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 n.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}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 u.k(this.getSQL(),this.config.fields,e),new n.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new n.e({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}}class g extends m{static{this[i.Q]="SQLiteSelect"}_prepare(e=!0){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),r=this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),t,"all");return r.joinsNotNullableMap=this.joinsNotNullableMap,r}prepare(){return this._prepare(!1)}async execute(){return this.all()}constructor(...e){super(...e),this.run=e=>this._prepare().run(e),this.all=e=>this._prepare().all(e),this.get=e=>this._prepare().get(e),this.values=e=>this._prepare().values(e)}}function y(e,t){return(r,i,...n)=>{let s=[i,...n].map(r=>({type:e,isAll:t,rightSelect:r}));for(let e of s)if(!(0,d.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(s)}}(0,d.ef)(g,[o.N]);let v=()=>({union:b,unionAll:w,intersect:_,except:S}),b=y("union",!1),w=y("union",!0),_=y("intersect",!1),S=y("except",!1);class x{static{this[i.Q]="SQLiteQueryBuilder"}$with(e){let t=this;return{as:r=>("function"==typeof r&&(r=r(t)),new Proxy(new u.SC(r.getSQL(),r.getSelectedFields(),e,!0),new n.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new f({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e})},selectDistinct:function(r){return new f({fields:r??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 s.Ac),this.dialect}}var k=r(5315);class E{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[i.Q]="SQLiteUpdateBuilder"}set(e){return new A(this.table,(0,d.M6)(this.table,e),this.session,this.dialect)}}class A extends o.N{constructor(e,t,r,i){super(),this.run=e=>this._prepare().run(e),this.all=e=>this._prepare().all(e),this.get=e=>this._prepare().get(e),this.values=e=>this._prepare().values(e),this.session=r,this.dialect=i,this.config={set:t,table:e}}static{this[i.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=!0){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}prepare(){return this._prepare(!1)}async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}class T{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[i.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={},r=this.table[c.iA.Symbol.Columns];for(let n of Object.keys(e)){let s=e[n];t[n]=(0,i.is)(s,l.$s)?s:new l.dO(s,r[n])}return t});return new C(this.table,t,this.session,this.dialect)}}class C extends o.N{constructor(e,t,r,i){super(),this.run=e=>this._prepare().run(e),this.all=e=>this._prepare().all(e),this.get=e=>this._prepare().get(e),this.values=e=>this._prepare().values(e),this.session=r,this.dialect=i,this.config={table:e,values:t}}static{this[i.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=l.i6`do nothing`;else{let t=Array.isArray(e.target)?l.i6`${e.target}`:l.i6`${[e.target]}`,r=e.where?l.i6` where ${e.where}`:l.i6``;this.config.onConflict=l.i6`${t} do nothing${r}`}return this}onConflictDoUpdate(e){let t=Array.isArray(e.target)?l.i6`${e.target}`:l.i6`${[e.target]}`,r=e.where?l.i6` where ${e.where}`:l.i6``,i=this.dialect.buildUpdateSet(this.config.table,(0,d.M6)(this.config.table,e.set));return this.config.onConflict=l.i6`${t} do update set ${i}${r}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e=!0){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}prepare(){return this._prepare(!1)}async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}class O extends o.N{constructor(e,t,r){super(),this.run=e=>this._prepare().run(e),this.all=e=>this._prepare().all(e),this.get=e=>this._prepare().get(e),this.values=e=>this._prepare().values(e),this.table=e,this.session=t,this.dialect=r,this.config={table:e}}static{this[i.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=!0){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}prepare(){return this._prepare(!1)}async execute(e){return this._prepare().execute(e)}$dynamic(){return this}}var P=r(2801);class ${constructor(e,t,r,i,n,s,a,o){this.mode=e,this.fullSchema=t,this.schema=r,this.tableNamesMap=i,this.table=n,this.tableConfig=s,this.dialect=a,this.session=o}static{this[i.Q]="SQLiteAsyncRelationalQueryBuilder"}findMany(e){return"sync"===this.mode?new R(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many"):new N(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many")}findFirst(e){return"sync"===this.mode?new R(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first"):new N(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first")}}class N extends o.N{constructor(e,t,r,i,n,s,a,o,l){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=i,this.tableConfig=n,this.dialect=s,this.session=a,this.config=o,this.mode=l}static{this[i.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(e=!1){let{query:t,builtQuery:r}=this._toSQL();return this.session[e?"prepareOneTimeQuery":"prepareQuery"](r,void 0,"first"===this.mode?"get":"all",(e,r)=>{let i=e.map(e=>(0,P.WX)(this.schema,this.tableConfig,e,t.selection,r));return"first"===this.mode?i[0]:i})}prepare(){return this._prepare(!1)}_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(!1).get():this._prepare(!1).all()}async execute(){return this.executeRaw()}}class R extends N{static{this[i.Q]="SQLiteSyncRelationalQuery"}sync(){return this.executeRaw()}}class I extends o.N{constructor(e,t,r,i,n){super(),this.execute=e,this.getSQL=t,this.dialect=i,this.mapBatchResult=n,this.config={action:r}}static{this[i.Q]="SQLiteRaw"}getQuery(){return this.dialect.sqlToQuery(this.getSQL())}mapResult(e,t){return t?this.mapBatchResult(e):e}_prepare(){return this}}class j{constructor(e,t,r,i){this.resultKind=e,this.dialect=t,this.session=r,this._=i?{schema:i.schema,tableNamesMap:i.tableNamesMap}:{schema:void 0,tableNamesMap:{}},this.query={};let n=this.query;if(this._.schema)for(let[s,a]of Object.entries(this._.schema))n[s]=new $(e,i.fullSchema,this._.schema,this._.tableNamesMap,i.fullSchema[s],a,t,r)}static{this[i.Q]="BaseSQLiteDatabase"}$with(e){return{as:t=>("function"==typeof t&&(t=t(new x)),new Proxy(new u.SC(t.getSQL(),t.getSelectedFields(),e,!0),new n.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new f({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e})},selectDistinct:function(r){return new f({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})},update:function(e){return new E(e,t.session,t.dialect)},insert:function(e){return new T(e,t.session,t.dialect)},delete:function(e){return new O(e,t.session,t.dialect)}}}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 E(e,this.session,this.dialect)}insert(e){return new T(e,this.session,this.dialect)}delete(e){return new O(e,this.session,this.dialect)}run(e){let t=e.getSQL();return"async"===this.resultKind?new I(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 I(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 I(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 I(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)}}},2350:(e,t,r)=>{"use strict";r.d(t,{Ac:()=>v,Oz:()=>b});var i=r(7921),n=r(2396),s=r(2209),a=r(2688),o=r(2801),l=r(5469),u=r(9355),c=r(7488),d=r(5315),h=r(4135),p=r(1677),f=r(753),m=r(1404),g=r(260);class y{static{this[s.Q]="SQLiteDialect"}escapeName(e){return`"${e}"`}escapeParam(e){return"?"}escapeString(e){return`'${e.replace(/'/g,"''")}'`}buildDeleteQuery({table:e,where:t,returning:r}){let i=r?l.i6` returning ${this.buildSelection(r,{isSingleTable:!0})}`:void 0,n=t?l.i6` where ${t}`:void 0;return l.i6`delete from ${e}${n}${i}`}buildUpdateSet(e,t){let r=Object.entries(t),i=r.length;return l.i6.join(r.flatMap(([t,r],n)=>{let s=e[p.iA.Symbol.Columns][t],a=l.i6`${l.i6.identifier(s.name)} = ${r}`;return n{let a=[];if((0,s.is)(e,l.$s.Aliased)&&e.isSelectionField)a.push(l.i6.identifier(e.fieldAlias));else if((0,s.is)(e,l.$s.Aliased)||(0,s.is)(e,l.$s)){let r=(0,s.is)(e,l.$s.Aliased)?e.sql:e;t?a.push(new l.$s(r.queryChunks.map(e=>(0,s.is)(e,n.s)?l.i6.identifier(e.name):e))):a.push(r),(0,s.is)(e,l.$s.Aliased)&&a.push(l.i6` as ${l.i6.identifier(e.fieldAlias)}`)}else if((0,s.is)(e,n.s)){let r=e.table[p.iA.Symbol.Name],i=e.name;t?a.push(l.i6.identifier(i)):a.push(l.i6`${l.i6.identifier(r)}.${l.i6.identifier(i)}`)}return ie===(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 E=!u||0===u.length;if(e?.length){let t=[l.i6`with `];for(let[r,i]of e.entries())t.push(l.i6`${l.i6.identifier(i[h.g1].alias)} as (${i[h.g1].sql})`),r0?l.i6` group by ${l.i6.join(I)}`:void 0,L=R.length>0?l.i6` order by ${l.i6.join(R)}`:void 0,D=v?l.i6` limit ${v}`:void 0,M=b?l.i6` offset ${b}`:void 0,U=l.i6`${S}select${A} ${T} from ${C}${P}${$}${j}${N}${L}${D}${M}`;return _.length>0?this.buildSetOperations(U,_):U}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:a,offset:o}}){let u;let d=l.i6`${e.getSQL()} `,h=l.i6`${i.getSQL()}`;if(a&&a.length>0){let e=[];for(let t of a)if((0,s.is)(t,c.l))e.push(l.i6.identifier(t.name));else if((0,s.is)(t,l.$s)){for(let e=0;el.i6.identifier(e.name));for(let[e,r]of t.entries()){let i=[];for(let[e,t]of a){let n=r[e];if(void 0===n||(0,s.is)(n,l.dO)&&void 0===n.value){let e;if(null!==t.default&&void 0!==t.default)e=(0,s.is)(t.default,l.$s)?t.default:l.i6.param(t.default,t);else if(void 0!==t.defaultFn){let r=t.defaultFn();e=(0,s.is)(r,l.$s)?r:l.i6.param(r,t)}else e=l.i6`null`;i.push(e)}else i.push(n)}n.push(i),e({dbKey:t.name,tsKey:e,field:(0,i.lw)(t,y),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let a=Object.fromEntries(Object.entries(m.columns).map(([e,t])=>[e,(0,i.lw)(t,y)]));if(g.where){let e="function"==typeof g.where?g.where(a,(0,o.vU)()):g.where;E=e&&(0,i.UI)(e,y)}let c=[],d=[];if(g.columns){let e=!1;for(let[t,r]of Object.entries(g.columns))void 0!==r&&t in m.columns&&(e||!0!==r||(e=!0),d.push(t));d.length>0&&(d=e?d.filter(e=>g.columns?.[e]===!0):Object.keys(m.columns).filter(e=>!d.includes(e)))}else d=Object.keys(m.columns);for(let e of d){let t=m.columns[e];c.push({tsKey:e,value:t})}let h=[];if(g.with&&(h=Object.entries(g.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:m.relations[e]}))),g.extras)for(let[e,t]of Object.entries("function"==typeof g.extras?g.extras(a,{sql:l.i6}):g.extras))c.push({tsKey:e,value:(0,i.qD)(t,y)});for(let{tsKey:e,value:t}of c)_.push({dbKey:(0,s.is)(t,l.$s.Aliased)?t.fieldAlias:m.columns[e].name,tsKey:e,field:(0,s.is)(t,n.s)?(0,i.lw)(t,y):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let f="function"==typeof g.orderBy?g.orderBy(a,(0,o.pl)()):g.orderBy??[];for(let{tsKey:a,queryConfig:c,relation:d}of(Array.isArray(f)||(f=[f]),k=f.map(e=>(0,s.is)(e,n.s)?(0,i.lw)(e,y):(0,i.UI)(e,y)),S=g.limit,x=g.offset,h)){let n=(0,o.wG)(t,r,d),h=r[d.referencedTable[p.iA.Symbol.Name]],f=`${y}_${a}`,m=(0,u.xD)(...n.fields.map((e,t)=>(0,u.eq)((0,i.lw)(n.references[t],f),(0,i.lw)(e,y)))),g=this.buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:r,table:e[h],tableConfig:t[h],queryConfig:(0,s.is)(d,o.fh)?!0===c?{limit:1}:{...c,limit:1}:c,tableAlias:f,joinOn:m,nestedQueryRelation:d}),v=l.i6`(${g.sql})`.as(a);_.push({dbKey:a,tsKey:a,field:v,relationTableTsKey:h,isJson:!0,selection:g.selection})}}if(0===_.length)throw new a.k({message:`No fields selected for table "${m.tsName}" ("${y}"). 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(E=(0,u.xD)(b,E),v){let e=l.i6`json_array(${l.i6.join(_.map(({field:e})=>(0,s.is)(e,c.l)?l.i6.identifier(e.name):(0,s.is)(e,l.$s.Aliased)?e.sql:e),l.i6`, `)})`;(0,s.is)(v,o.sj)&&(e=l.i6`coalesce(json_group_array(${e}), json_array())`);let t=[{dbKey:"data",tsKey:"data",field:e.as("data"),isJson:!0,relationTableTsKey:m.tsName,selection:_}];void 0!==S||void 0!==x||k.length>0?(w=this.buildSelectQuery({table:(0,i.RQ)(f,y),fields:{},fieldsFlat:[{path:[],field:l.i6.raw("*")}],where:E,limit:S,offset:x,orderBy:k,setOperators:[]}),E=void 0,S=void 0,x=void 0,k=void 0):w=(0,i.RQ)(f,y),w=this.buildSelectQuery({table:(0,s.is)(w,d.xA)?w:new h.k(w,{},y),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,s.is)(e,n.s)?(0,i.lw)(e,y):e})),joins:A,where:E,limit:S,offset:x,orderBy:k,setOperators:[]})}else w=this.buildSelectQuery({table:(0,i.RQ)(f,y),fields:{},fieldsFlat:_.map(({field:e})=>({path:[],field:(0,s.is)(e,n.s)?(0,i.lw)(e,y):e})),joins:A,where:E,limit:S,offset:x,orderBy:k,setOperators:[]});return{tableTsKey:m.tsName,sql:w,selection:_}}}class v extends y{static{this[s.Q]="SQLiteSyncDialect"}migrate(e,t){let r=l.i6` + CREATE TABLE IF NOT EXISTS "__drizzle_migrations" ( + id SERIAL PRIMARY KEY, + hash text NOT NULL, + created_at numeric + ) + `;t.run(r);let i=t.values(l.i6`SELECT id, hash, created_at FROM "__drizzle_migrations" ORDER BY created_at DESC LIMIT 1`)[0]??void 0;t.run(l.i6`BEGIN`);try{for(let r of e)if(!i||Number(i[2]){for(let r of e)if(!i||Number(i[2]){"use strict";r.d(t,{CK:()=>s});var i=r(2209),n=r(5315);function s(...e){return e[0].columns?new a(e[0].columns,e[0].name):new a(e)}class a{static{this[i.Q]="SQLitePrimaryKeyBuilder"}constructor(e,t){this.columns=e,this.name=t}build(e){return new o(e,this.columns,this.name)}}class o{constructor(e,t,r){this.table=e,this.columns=t,this.name=r}static{this[i.Q]="SQLitePrimaryKey"}getName(){return this.name??`${this.table[n.xA.Symbol.Name]}_${this.columns.map(e=>e.name).join("_")}_pk`}}},5315:(e,t,r)=>{"use strict";let i;r.d(t,{Px:()=>u,_9:()=>c,xA:()=>o});var n=r(2209),s=r(1677);let a=Symbol.for("drizzle:SQLiteInlineForeignKeys");class o extends s.iA{static{s.iA.Symbol.Columns,i=s.iA.Symbol.ExtraConfigBuilder}static{this[n.Q]="SQLiteTable"}static{this.Symbol=Object.assign({},s.iA.Symbol,{InlineForeignKeys:a})}constructor(...e){super(...e),this[a]=[],this[i]=void 0}}function l(e,t,r,i,n=e){let l=new o(e,i,n),u=Object.fromEntries(Object.entries(t).map(([e,t])=>{let r=t.build(l);return l[a].push(...t.buildForeignKeys(r,l)),[e,r]})),c=Object.assign(l,u);return c[s.iA.Symbol.Columns]=u,r&&(c[o.Symbol.ExtraConfigBuilder]=r),c}let u=(e,t,r)=>l(e,t,r);function c(e){return(t,r,i)=>l(e(t),r,i,void 0,t)}},260:(e,t,r)=>{"use strict";r.d(t,{B:()=>s});var i=r(2209),n=r(5469);class s extends n.G7{static{this[i.Q]="SQLiteViewBase"}}},4135:(e,t,r)=>{"use strict";r.d(t,{SC:()=>a,g1:()=>n,k:()=>s});var i=r(2209);let n=Symbol.for("drizzle:SubqueryConfig");class s{static{this[i.Q]="Subquery"}constructor(e,t,r,i=!1){this[n]={sql:e,selection:t,alias:r,isWith:i}}}class a extends s{static{this[i.Q]="WithSubquery"}}},1677:(e,t,r)=>{"use strict";r.d(t,{SP:()=>f,iA:()=>h,wb:()=>p});var i=r(2209);let n=Symbol.for("drizzle:Name"),s=Symbol.for("drizzle:Schema"),a=Symbol.for("drizzle:Columns"),o=Symbol.for("drizzle:OriginalName"),l=Symbol.for("drizzle:BaseName"),u=Symbol.for("drizzle:IsAlias"),c=Symbol.for("drizzle:ExtraConfigBuilder"),d=Symbol.for("drizzle:IsDrizzleTable");class h{static{this[i.Q]="Table"}static{this.Symbol={Name:n,Schema:s,OriginalName:o,Columns:a,BaseName:l,IsAlias:u,ExtraConfigBuilder:c}}constructor(e,t,r){this[u]=!1,this[c]=void 0,this[d]=!0,this[n]=this[o]=e,this[s]=t,this[l]=r}}function p(e){return"object"==typeof e&&null!==e&&d in e}function f(e){return e[n]}},1921:(e,t,r)=>{"use strict";function i(e,...t){return e(...t)}r.d(t,{t:()=>i})},8772:(e,t,r)=>{"use strict";let i,n;r.d(t,{Z:()=>a});var s=r(1921);let a={startActiveSpan:(e,t)=>i?(n||(n=i.trace.getTracer("drizzle-orm","0.29.4")),(0,s.t)((r,i)=>i.startActiveSpan(e,e=>{try{return t(e)}catch(t){throw e.setStatus({code:r.SpanStatusCode.ERROR,message:t instanceof Error?t.message:"Unknown error"}),t}finally{e.end()}}),i,n)):t()}},753:(e,t,r)=>{"use strict";r.d(t,{M4:()=>u,M6:()=>d,SS:()=>p,ZS:()=>function e(t,r){return Object.entries(t).reduce((t,[a,l])=>{if("string"!=typeof a)return t;let u=r?[...r,a]:[a];return(0,n.is)(l,i.s)||(0,n.is)(l,s.$s)||(0,n.is)(l,s.$s.Aliased)?t.push({path:u,field:l}):(0,n.is)(l,o.iA)?t.push(...e(l[o.iA.Symbol.Columns],u)):t.push(...e(l,u)),t},[])},dP:()=>f,ef:()=>h,ux:()=>c});var i=r(2396),n=r(2209),s=r(5469),a=r(4135),o=r(1677),l=r(1404);function u(e,t,r){let a={},l=e.reduce((e,{path:l,field:u},c)=>{let d;d=(0,n.is)(u,i.s)?u:(0,n.is)(u,s.$s)?u.decoder:u.sql.decoder;let h=e;for(let[e,s]of l.entries())if(e0)for(let[e,t]of Object.entries(a))"string"!=typeof t||r[t]||(l[e]=null);return l}function c(e,t){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let[e,t]of r.entries())if(t!==i[e])return!1;return!0}function d(e,t){let r=Object.entries(t).filter(([,e])=>void 0!==e).map(([t,r])=>(0,n.is)(r,s.$s)?[t,r]:[t,new s.dO(r,e[o.iA.Symbol.Columns][t])]);if(0===r.length)throw Error("No values to set");return Object.fromEntries(r)}function h(e,t){for(let r of t)for(let t of Object.getOwnPropertyNames(r.prototype))"constructor"!==t&&Object.defineProperty(e.prototype,t,Object.getOwnPropertyDescriptor(r.prototype,t)||Object.create(null))}function p(e){return e[o.iA.Symbol.Columns]}function f(e){return(0,n.is)(e,a.k)?e[a.g1].alias:(0,n.is)(e,s.G7)?e[l.d].name:(0,n.is)(e,s.$s)?void 0:e[o.iA.Symbol.IsAlias]?e[o.iA.Symbol.Name]:e[o.iA.Symbol.BaseName]}},1404:(e,t,r)=>{"use strict";r.d(t,{d:()=>i});let i=Symbol.for("drizzle:ViewBaseConfig")}},e=>{var t=e(e.s=6817);(_ENTRIES="undefined"==typeof _ENTRIES?{}:_ENTRIES)["middleware_app/api/auth/[...nextauth]/route"]=t}]); +//# sourceMappingURL=route.js.map \ 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 deleted file mode 100644 index c8e17b9b..00000000 --- a/apps/web/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"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 index 975b3dad..efdc3663 100644 --- a/apps/web/.next/server/app/api/store/route.js +++ b/apps/web/.next/server/app/api/store/route.js @@ -1 +1,31 @@ -"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 +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[745],{2067:e=>{"use strict";e.exports=require("node:async_hooks")},6195:e=>{"use strict";e.exports=require("node:buffer")},7657:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ComponentMod:()=>x,default:()=>E});var n={};r.r(n),r.d(n,{GET:()=>p,runtime:()=>f});var i={};r.r(i),r.d(i,{headerHooks:()=>b,originalPathname:()=>w,patchFetch:()=>_,requestAsyncStorage:()=>m,routeModule:()=>g,serverHooks:()=>v,staticGenerationAsyncStorage:()=>y,staticGenerationBailout:()=>S});var s=r(4915),a=r(4392),o=r(4399),l=r(5373),u=r(8594),c=r(9355),h=r(4680),d=r(5662);let f="edge";async function p(e){try{let t=e.cookies.get("next-auth.session-token")?.value??e.headers.get("Authorization")?.replace("Bearer ",""),r=await u.db.select().from(h.sessions).where((0,c.eq)(h.sessions.sessionToken,t)).leftJoin(h.users,(0,c.eq)(h.sessions.userId,h.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 g=new a.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:m,staticGenerationAsyncStorage:y,serverHooks:v,headerHooks:b,staticGenerationBailout:S}=g,w="/api/store/route";function _(){return(0,l.XH)({serverHooks:v,staticGenerationAsyncStorage:y})}let x=i,E=s.a.wrap(g)},8594:(e,t,r)=>{"use strict";r.d(t,{db:()=>E});var n=r(2209);class i{static{this[n.Q]="ConsoleLogWriter"}write(e){console.log(e)}}class s{static{this[n.Q]="DefaultLogger"}constructor(e){this.writer=e?.writer??new i}logQuery(e,t){let r=t.map(e=>{try{return JSON.stringify(e)}catch{return String(e)}}),n=r.length?` -- params: [${r.join(", ")}]`:"";this.writer.write(`Query: ${e}${n}`)}}class a{static{this[n.Q]="NoopLogger"}logQuery(){}}var o=r(2801),l=r(4078),u=r(2350),c=r(5469),h=r(2688),d=r(130);class f extends d.N{constructor(e){super(),this.resultCb=e}static{this[n.Q]="ExecuteResultSync"}async execute(){return this.resultCb()}sync(){return this.resultCb()}}class p{constructor(e,t,r){this.mode=e,this.executeMethod=t,this.query=r}static{this[n.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 f(()=>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 g{constructor(e){this.dialect=e}static{this[n.Q]="SQLiteSession"}prepareOneTimeQuery(e,t,r){return this.prepareQuery(e,t,r)}run(e){let t=this.dialect.sqlToQuery(e);try{return this.prepareOneTimeQuery(t,void 0,"run").run()}catch(e){throw new h.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 m extends l.z{constructor(e,t,r,n,i=0){super(e,t,r,n),this.schema=n,this.nestedIndex=i}static{this[n.Q]="SQLiteTransaction"}rollback(){throw new h.F}}var y=r(753);class v extends g{constructor(e,t,r,n={}){super(t),this.client=e,this.schema=r,this.options=n,this.logger=n.logger??new a}static{this[n.Q]="SQLiteD1Session"}prepareQuery(e,t,r,n){return new w(this.client.prepare(e.sql),e,this.logger,t,r,n)}async batch(e){let t=[],r=[];for(let n of e){let e=n._prepare(),i=e.getQuery();if(t.push(e),i.params.length>0)r.push(e.stmt.bind(...i.params));else{let t=e.getQuery();r.push(this.client.prepare(t.sql).bind(...t.params))}}return(await this.client.batch(r)).map((e,r)=>t[r].mapResult(e,!0))}extractRawAllValueFromBatchResult(e){return e.results}extractRawGetValueFromBatchResult(e){return e.results[0]}extractRawValuesValueFromBatchResult(e){return S(e.results)}async transaction(e,t){let r=new b("async",this.dialect,this,this.schema);await this.run(c.i6.raw(`begin${t?.behavior?" "+t.behavior:""}`));try{let t=await e(r);return await this.run(c.i6`commit`),t}catch(e){throw await this.run(c.i6`rollback`),e}}}class b extends m{static{this[n.Q]="D1Transaction"}async transaction(e){let t=`sp${this.nestedIndex}`,r=new b("async",this.dialect,this.session,this.schema,this.nestedIndex+1);await this.session.run(c.i6.raw(`savepoint ${t}`));try{let n=await e(r);return await this.session.run(c.i6.raw(`release savepoint ${t}`)),n}catch(e){throw await this.session.run(c.i6.raw(`rollback to savepoint ${t}`)),e}}}function S(e){let t=[];for(let r of e){let e=Object.keys(r).map(e=>r[e]);t.push(e)}return t}class w extends p{constructor(e,t,r,n,i,s){super("async",i,t),this.logger=r,this.customResultMapper=s,this.fields=n,this.stmt=e}static{this[n.Q]="D1PreparedQuery"}run(e){let t=(0,c.Pr)(this.query.params,e??{});return this.logger.logQuery(this.query.sql,t),this.stmt.bind(...t).run()}async all(e){let{fields:t,query:r,logger:n,stmt:i,customResultMapper:s}=this;if(!t&&!s){let t=(0,c.Pr)(r.params,e??{});return n.logQuery(r.sql,t),i.bind(...t).all().then(({results:e})=>this.mapAllResult(e))}let a=await this.values(e);return this.mapAllResult(a)}mapAllResult(e,t){return(t&&(e=S(e.results)),this.fields||this.customResultMapper)?this.customResultMapper?this.customResultMapper(e):e.map(e=>(0,y.M4)(this.fields,e,this.joinsNotNullableMap)):e}async get(e){let{fields:t,joinsNotNullableMap:r,query:n,logger:i,stmt:s,customResultMapper:a}=this;if(!t&&!a){let t=(0,c.Pr)(n.params,e??{});return i.logQuery(n.sql,t),s.bind(...t).all().then(({results:e})=>e[0])}let o=await this.values(e);return o[0]?a?a(o):(0,y.M4)(t,o[0],r):void 0}mapGetResult(e,t){return(t&&(e=S(e.results)[0]),this.fields||this.customResultMapper)?this.customResultMapper?this.customResultMapper([e]):(0,y.M4)(this.fields,e,this.joinsNotNullableMap):e}values(e){let t=(0,c.Pr)(this.query.params,e??{});return this.logger.logQuery(this.query.sql,t),this.stmt.bind(...t).raw()}}class _ extends l.z{static{this[n.Q]="LibSQLDatabase"}async batch(e){return this.session.batch(e)}}var x=r(4680);let E=function(e,t={}){let r,n;let i=new u.Oz;if(!0===t.logger?r=new s:!1!==t.logger&&(r=t.logger),t.schema){let e=(0,o.pb)(t.schema,o._J);n={fullSchema:t.schema,schema:e.tables,tableNamesMap:e.tableNamesMap}}let a=new v(e,i,n,{logger:r});return new _("async",i,a,n)}(process.env.D1Database,{schema:x})},4680:(e,t,r)=>{"use strict";r.r(t),r.d(t,{accounts:()=>v,accountsRelations:()=>b,createTable:()=>p,posts:()=>g,sessions:()=>S,sessionsRelations:()=>w,users:()=>m,usersRelations:()=>y,verificationTokens:()=>_});var n=r(5469),i=r(2801),s=r(5315),a=r(2404),o=r(1701),l=r(2209);class u{constructor(e,t){this.name=e,this.unique=t}static{this[l.Q]="SQLiteIndexBuilderOn"}on(...e){return new c(this.name,e,this.unique)}}class c{static{this[l.Q]="SQLiteIndexBuilder"}constructor(e,t,r){this.config={name:e,columns:t,unique:r,where:void 0}}where(e){return this.config.where=e,this}build(e){return new h(this.config,e)}}class h{static{this[l.Q]="SQLiteIndex"}constructor(e,t){this.config={...e,table:t}}}function d(e){return new u(e,!1)}var f=r(9352);let p=(0,s._9)(e=>`anycontext_${e}`),g=p("post",{id:(0,a.e$)("id",{mode:"number"}).primaryKey({autoIncrement:!0}),name:(0,o.fL)("name",{length:256}),createdById:(0,o.fL)("createdById",{length:255}).notNull().references(()=>m.id),createdAt:(0,a.e$)("created_at",{mode:"timestamp"}).default(n.i6`CURRENT_TIMESTAMP`).notNull(),updatedAt:(0,a.e$)("updatedAt",{mode:"timestamp"})},e=>({createdByIdIdx:d("createdById_idx").on(e.createdById),nameIndex:d("name_idx").on(e.name)})),m=p("user",{id:(0,o.fL)("id",{length:255}).notNull().primaryKey(),name:(0,o.fL)("name",{length:255}),email:(0,o.fL)("email",{length:255}).notNull(),emailVerified:(0,a.e$)("emailVerified",{mode:"timestamp"}).default(n.i6`CURRENT_TIMESTAMP`),image:(0,o.fL)("image",{length:255})}),y=(0,i.lE)(m,({many:e})=>({accounts:e(v)})),v=p("account",{userId:(0,o.fL)("userId",{length:255}).notNull().references(()=>m.id),type:(0,o.fL)("type",{length:255}).$type().notNull(),provider:(0,o.fL)("provider",{length:255}).notNull(),providerAccountId:(0,o.fL)("providerAccountId",{length:255}).notNull(),refresh_token:(0,o.fL)("refresh_token"),access_token:(0,o.fL)("access_token"),expires_at:(0,a.e$)("expires_at"),token_type:(0,o.fL)("token_type",{length:255}),scope:(0,o.fL)("scope",{length:255}),id_token:(0,o.fL)("id_token"),session_state:(0,o.fL)("session_state",{length:255})},e=>({compoundKey:(0,f.CK)({columns:[e.provider,e.providerAccountId]}),userIdIdx:d("account_userId_idx").on(e.userId)})),b=(0,i.lE)(v,({one:e})=>({user:e(m,{fields:[v.userId],references:[m.id]})})),S=p("session",{sessionToken:(0,o.fL)("sessionToken",{length:255}).notNull().primaryKey(),userId:(0,o.fL)("userId",{length:255}).notNull().references(()=>m.id),expires:(0,a.e$)("expires",{mode:"timestamp"}).notNull()},e=>({userIdIdx:d("session_userId_idx").on(e.userId)})),w=(0,i.lE)(S,({one:e})=>({user:e(m,{fields:[S.userId],references:[m.id]})})),_=p("verificationToken",{identifier:(0,o.fL)("identifier",{length:255}).notNull(),token:(0,o.fL)("token",{length:255}).notNull(),expires:(0,a.e$)("expires",{mode:"timestamp"}).notNull()},e=>({compoundKey:(0,f.CK)({columns:[e.identifier,e.token]})}))},65:e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s={};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 o(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,i]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=i?i:"true"))}catch{}}return t}function l(e){var t,r;if(!e)return;let[[n,i],...s]=o(e),{domain:a,expires:l,httponly:h,maxage:d,path:f,samesite:p,secure:g,priority:m}=Object.fromEntries(s.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(i),domain:a,...l&&{expires:new Date(l)},...h&&{httpOnly:!0},..."string"==typeof d&&{maxAge:Number(d)},path:f,...p&&{sameSite:u.includes(t=(t=p).toLowerCase())?t:void 0},...g&&{secure:!0},...m&&{priority:c.includes(r=(r=m).toLowerCase())?r:void 0}})}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(s,{RequestCookies:()=>h,ResponseCookies:()=>d,parseCookie:()=>o,parseSetCookie:()=>l,stringifyCookie:()=>a}),e.exports=((e,s,a,o)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let a of n(s))i.call(e,a)||void 0===a||t(e,a,{get:()=>s[a],enumerable:!(o=r(s,a))||o.enumerable});return e})(t({},"__esModule",{value:!0}),s);var u=["strict","lax","none"],c=["low","medium","high"],h=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,r]of o(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("; ")}},d=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let i=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(i)?i:function(e){if(!e)return[];var t,r,n,i,s,a=[],o=0;function l(){for(;o=e.length)&&a.push(e.substring(t,e.length))}return a}(i)){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,i=this._parsed;return i.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)}}(i,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("; ")}}},4477:(e,t,r)=>{"use strict";(()=>{var t={491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextAPI=void 0;let n=r(223),i=r(172),s=r(930),a="context",o=new n.NoopContextManager;class l{constructor(){}static getInstance(){return this._instance||(this._instance=new l),this._instance}setGlobalContextManager(e){return(0,i.registerGlobal)(a,e,s.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,i.getGlobal)(a)||o}disable(){this._getContextManager().disable(),(0,i.unregisterGlobal)(a,s.DiagAPI.instance())}}t.ContextAPI=l},930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagAPI=void 0;let n=r(56),i=r(912),s=r(957),a=r(172);class o{constructor(){function e(e){return function(...t){let r=(0,a.getGlobal)("diag");if(r)return r[e](...t)}}let t=this;t.setLogger=(e,r={logLevel:s.DiagLogLevel.INFO})=>{var n,o,l;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,a.getGlobal)("diag"),c=(0,i.createLogLevelDiagLogger)(null!==(o=r.logLevel)&&void 0!==o?o:s.DiagLogLevel.INFO,e);if(u&&!r.suppressOverrideMessage){let e=null!==(l=Error().stack)&&void 0!==l?l:"";u.warn(`Current logger will be overwritten from ${e}`),c.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,a.registerGlobal)("diag",c,t,!0)},t.disable=()=>{(0,a.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 o),this._instance}}t.DiagAPI=o},653:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsAPI=void 0;let n=r(660),i=r(172),s=r(930),a="metrics";class o{constructor(){}static getInstance(){return this._instance||(this._instance=new o),this._instance}setGlobalMeterProvider(e){return(0,i.registerGlobal)(a,e,s.DiagAPI.instance())}getMeterProvider(){return(0,i.getGlobal)(a)||n.NOOP_METER_PROVIDER}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,i.unregisterGlobal)(a,s.DiagAPI.instance())}}t.MetricsAPI=o},181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropagationAPI=void 0;let n=r(172),i=r(874),s=r(194),a=r(277),o=r(369),l=r(930),u="propagation",c=new i.NoopTextMapPropagator;class h{constructor(){this.createBaggage=o.createBaggage,this.getBaggage=a.getBaggage,this.getActiveBaggage=a.getActiveBaggage,this.setBaggage=a.setBaggage,this.deleteBaggage=a.deleteBaggage}static getInstance(){return this._instance||(this._instance=new h),this._instance}setGlobalPropagator(e){return(0,n.registerGlobal)(u,e,l.DiagAPI.instance())}inject(e,t,r=s.defaultTextMapSetter){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=s.defaultTextMapGetter){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,n.unregisterGlobal)(u,l.DiagAPI.instance())}_getGlobalPropagator(){return(0,n.getGlobal)(u)||c}}t.PropagationAPI=h},997:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceAPI=void 0;let n=r(172),i=r(846),s=r(139),a=r(607),o=r(930),l="trace";class u{constructor(){this._proxyTracerProvider=new i.ProxyTracerProvider,this.wrapSpanContext=s.wrapSpanContext,this.isSpanContextValid=s.isSpanContextValid,this.deleteSpan=a.deleteSpan,this.getSpan=a.getSpan,this.getActiveSpan=a.getActiveSpan,this.getSpanContext=a.getSpanContext,this.setSpan=a.setSpan,this.setSpanContext=a.setSpanContext}static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalTracerProvider(e){let t=(0,n.registerGlobal)(l,this._proxyTracerProvider,o.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,n.getGlobal)(l)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,n.unregisterGlobal)(l,o.DiagAPI.instance()),this._proxyTracerProvider=new i.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),i=(0,r(780).createContextKey)("OpenTelemetry Baggage Key");function s(e){return e.getValue(i)||void 0}t.getBaggage=s,t.getActiveBaggage=function(){return s(n.ContextAPI.getInstance().active())},t.setBaggage=function(e,t){return e.setValue(i,t)},t.deleteBaggage=function(e){return e.deleteValue(i)}},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),i=r(993),s=r(830),a=n.DiagAPI.instance();t.createBaggage=function(e={}){return new i.BaggageImpl(new Map(Object.entries(e)))},t.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(a.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:s.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 i{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=i},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 i=new r(t._currentContext);return i._currentContext.set(e,n),i},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 i{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return s("debug",this._namespace,e)}error(...e){return s("error",this._namespace,e)}info(...e){return s("info",this._namespace,e)}warn(...e){return s("warn",this._namespace,e)}verbose(...e){return s("verbose",this._namespace,e)}}function s(e,t,r){let i=(0,n.getGlobal)("diag");if(i)return r.unshift(t),i[e](...r)}t.DiagComponentLogger=i},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 i=t[r];return"function"==typeof i&&e>=n?i.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),i=r(521),s=r(130),a=i.VERSION.split(".")[0],o=Symbol.for(`opentelemetry.js.api.${a}`),l=n._globalThis;t.registerGlobal=function(e,t,r,n=!1){var s;let a=l[o]=null!==(s=l[o])&&void 0!==s?s:{version:i.VERSION};if(!n&&a[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(a.version!==i.VERSION){let t=Error(`@opentelemetry/api: Registration of version v${a.version} for ${e} does not match previously registered API v${i.VERSION}`);return r.error(t.stack||t.message),!1}return a[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${i.VERSION}.`),!0},t.getGlobal=function(e){var t,r;let n=null===(t=l[o])||void 0===t?void 0:t.version;if(n&&(0,s.isCompatible)(n))return null===(r=l[o])||void 0===r?void 0:r[e]},t.unregisterGlobal=function(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${i.VERSION}.`);let r=l[o];r&&delete r[e]}},130:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isCompatible=t._makeCompatibilityCheck=void 0;let n=r(521),i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function s(e){let t=new Set([e]),r=new Set,n=e.match(i);if(!n)return()=>!1;let s={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=s.prerelease)return function(t){return t===e};function a(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(i);if(!n)return a(e);let o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};return null!=o.prerelease||s.major!==o.major?a(e):0===s.major?s.minor===o.minor&&s.patch<=o.patch?(t.add(e),!0):a(e):s.minor<=o.minor?(t.add(e),!0):a(e)}}t._makeCompatibilityCheck=s,t.isCompatible=s(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 i extends n{add(e,t){}}t.NoopCounterMetric=i;class s extends n{add(e,t){}}t.NoopUpDownCounterMetric=s;class a extends n{record(e,t){}}t.NoopHistogramMetric=a;class o{addCallback(e){}removeCallback(e){}}t.NoopObservableMetric=o;class l extends o{}t.NoopObservableCounterMetric=l;class u extends o{}t.NoopObservableGaugeMetric=u;class c extends o{}t.NoopObservableUpDownCounterMetric=c,t.NOOP_METER=new r,t.NOOP_COUNTER_METRIC=new i,t.NOOP_HISTOGRAM_METRIC=new a,t.NOOP_UP_DOWN_COUNTER_METRIC=new s,t.NOOP_OBSERVABLE_COUNTER_METRIC=new l,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 i{getMeter(e,t,r){return n.NOOP_METER}}t.NoopMeterProvider=i,t.NOOP_METER_PROVIDER=new i},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]}),i=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}),i(r(46),t)},651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t._globalThis=void 0,t._globalThis="object"==typeof globalThis?globalThis:r.g},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]}),i=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}),i(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 i{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=i},614:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracer=void 0;let n=r(491),i=r(607),s=r(403),a=r(139),o=n.ContextAPI.getInstance();class l{startSpan(e,t,r=o.active()){if(null==t?void 0:t.root)return new s.NonRecordingSpan;let n=r&&(0,i.getSpanContext)(r);return"object"==typeof n&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,a.isSpanContextValid)(n)?new s.NonRecordingSpan(n):new s.NonRecordingSpan}startActiveSpan(e,t,r,n){let s,a,l;if(arguments.length<2)return;2==arguments.length?l=t:3==arguments.length?(s=t,l=r):(s=t,a=r,l=n);let u=null!=a?a:o.active(),c=this.startSpan(e,s,u),h=(0,i.setSpan)(u,c);return o.with(h,l,void 0,c)}}t.NoopTracer=l},124:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracerProvider=void 0;let n=r(614);class i{getTracer(e,t,r){return new n.NoopTracer}}t.NoopTracerProvider=i},125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracer=void 0;let n=new(r(614)).NoopTracer;class i{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 i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,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=i},846:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracerProvider=void 0;let n=r(125),i=new(r(124)).NoopTracerProvider;class s{getTracer(e,t,r){var i;return null!==(i=this.getDelegateTracer(e,t,r))&&void 0!==i?i:new n.ProxyTracer(this,e,t,r)}getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:i}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=s},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),i=r(403),s=r(491),a=(0,n.createContextKey)("OpenTelemetry Context Key SPAN");function o(e){return e.getValue(a)||void 0}function l(e,t){return e.setValue(a,t)}t.getSpan=o,t.getActiveSpan=function(){return o(s.ContextAPI.getInstance().active())},t.setSpan=l,t.deleteSpan=function(e){return e.deleteValue(a)},t.setSpanContext=function(e,t){return l(e,new i.NonRecordingSpan(t))},t.getSpanContext=function(e){var t;return null===(t=o(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 i{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(),i=r.indexOf("=");if(-1!==i){let s=r.slice(0,i),a=r.slice(i+1,t.length);(0,n.validateKey)(s)&&(0,n.validateValue)(a)&&e.set(s,a)}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 i;return e._internalState=new Map(this._internalState),e}}t.TraceStateImpl=i},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}`,i=`[a-z0-9]${r}{0,240}@[a-z]${r}{0,13}`,s=RegExp(`^(?:${n}|${i})$`),a=/^[ -~]{0,255}[!-~]$/,o=/,|=/;t.validateKey=function(e){return s.test(e)},t.validateValue=function(e){return a.test(e)&&!o.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),i=r(403),s=/^([0-9a-f]{32})$/i,a=/^[0-9a-f]{16}$/i;function o(e){return s.test(e)&&e!==n.INVALID_TRACEID}function l(e){return a.test(e)&&e!==n.INVALID_SPANID}t.isValidTraceId=o,t.isValidSpanId=l,t.isSpanContextValid=function(e){return o(e.traceId)&&l(e.spanId)},t.wrapSpanContext=function(e){return new i.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"}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var s=n[e]={exports:{}},a=!0;try{t[e].call(s.exports,s,s.exports,i),a=!1}finally{a&&delete n[e]}return s.exports}i.ab="//";var s={};(()=>{Object.defineProperty(s,"__esModule",{value:!0}),s.trace=s.propagation=s.metrics=s.diag=s.context=s.INVALID_SPAN_CONTEXT=s.INVALID_TRACEID=s.INVALID_SPANID=s.isValidSpanId=s.isValidTraceId=s.isSpanContextValid=s.createTraceState=s.TraceFlags=s.SpanStatusCode=s.SpanKind=s.SamplingDecision=s.ProxyTracerProvider=s.ProxyTracer=s.defaultTextMapSetter=s.defaultTextMapGetter=s.ValueType=s.createNoopMeter=s.DiagLogLevel=s.DiagConsoleLogger=s.ROOT_CONTEXT=s.createContextKey=s.baggageEntryMetadataFromString=void 0;var e=i(369);Object.defineProperty(s,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return e.baggageEntryMetadataFromString}});var t=i(780);Object.defineProperty(s,"createContextKey",{enumerable:!0,get:function(){return t.createContextKey}}),Object.defineProperty(s,"ROOT_CONTEXT",{enumerable:!0,get:function(){return t.ROOT_CONTEXT}});var r=i(972);Object.defineProperty(s,"DiagConsoleLogger",{enumerable:!0,get:function(){return r.DiagConsoleLogger}});var n=i(957);Object.defineProperty(s,"DiagLogLevel",{enumerable:!0,get:function(){return n.DiagLogLevel}});var a=i(102);Object.defineProperty(s,"createNoopMeter",{enumerable:!0,get:function(){return a.createNoopMeter}});var o=i(901);Object.defineProperty(s,"ValueType",{enumerable:!0,get:function(){return o.ValueType}});var l=i(194);Object.defineProperty(s,"defaultTextMapGetter",{enumerable:!0,get:function(){return l.defaultTextMapGetter}}),Object.defineProperty(s,"defaultTextMapSetter",{enumerable:!0,get:function(){return l.defaultTextMapSetter}});var u=i(125);Object.defineProperty(s,"ProxyTracer",{enumerable:!0,get:function(){return u.ProxyTracer}});var c=i(846);Object.defineProperty(s,"ProxyTracerProvider",{enumerable:!0,get:function(){return c.ProxyTracerProvider}});var h=i(996);Object.defineProperty(s,"SamplingDecision",{enumerable:!0,get:function(){return h.SamplingDecision}});var d=i(357);Object.defineProperty(s,"SpanKind",{enumerable:!0,get:function(){return d.SpanKind}});var f=i(847);Object.defineProperty(s,"SpanStatusCode",{enumerable:!0,get:function(){return f.SpanStatusCode}});var p=i(475);Object.defineProperty(s,"TraceFlags",{enumerable:!0,get:function(){return p.TraceFlags}});var g=i(98);Object.defineProperty(s,"createTraceState",{enumerable:!0,get:function(){return g.createTraceState}});var m=i(139);Object.defineProperty(s,"isSpanContextValid",{enumerable:!0,get:function(){return m.isSpanContextValid}}),Object.defineProperty(s,"isValidTraceId",{enumerable:!0,get:function(){return m.isValidTraceId}}),Object.defineProperty(s,"isValidSpanId",{enumerable:!0,get:function(){return m.isValidSpanId}});var y=i(476);Object.defineProperty(s,"INVALID_SPANID",{enumerable:!0,get:function(){return y.INVALID_SPANID}}),Object.defineProperty(s,"INVALID_TRACEID",{enumerable:!0,get:function(){return y.INVALID_TRACEID}}),Object.defineProperty(s,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return y.INVALID_SPAN_CONTEXT}});let v=i(67);Object.defineProperty(s,"context",{enumerable:!0,get:function(){return v.context}});let b=i(506);Object.defineProperty(s,"diag",{enumerable:!0,get:function(){return b.diag}});let S=i(886);Object.defineProperty(s,"metrics",{enumerable:!0,get:function(){return S.metrics}});let w=i(939);Object.defineProperty(s,"propagation",{enumerable:!0,get:function(){return w.propagation}});let _=i(845);Object.defineProperty(s,"trace",{enumerable:!0,get:function(){return _.trace}}),s.default={context:v.context,diag:b.diag,metrics:S.metrics,propagation:w.propagation,trace:_.trace}})(),e.exports=s})()},1935:e=>{"use strict";(()=>{"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{/*! + * cookie + * Copyright(c) 2012-2014 Roman Shtylman + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */t.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var i={},s=t.split(n),a=(r||{}).decode||e,o=0;o{"use strict";(()=>{var t={806:(e,t,r)=>{let n=r(190),i=Symbol("max"),s=Symbol("length"),a=Symbol("lengthCalculator"),o=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;class g{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[i]=e.max||1/0;let t=e.length||p;if(this[a]="function"!=typeof t?p:t,this[o]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[i]=e||1/0,v(this)}get max(){return this[i]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,v(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[a]&&(this[a]=e,this[s]=0,this[h].forEach(e=>{e.length=this[a](e.value,e.key),this[s]+=e.length})),v(this)}get lengthCalculator(){return this[a]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let r=this[h].tail;null!==r;){let n=r.prev;w(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[h].head;null!==r;){let n=r.next;w(this,e,r,t),r=n}}keys(){return this[h].toArray().map(e=>e.key)}values(){return this[h].toArray().map(e=>e.value)}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach(e=>this[u](e.key,e.value)),this[d]=new Map,this[h]=new n,this[s]=0}dump(){return this[h].map(e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[h]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let n=r?Date.now():0,o=this[a](t,e);if(this[d].has(e)){if(o>this[i])return b(this,this[d].get(e)),!1;let a=this[d].get(e).value;return this[u]&&!this[c]&&this[u](e,a.value),a.now=n,a.maxAge=r,a.value=t,this[s]+=o-a.length,a.length=o,this.get(e),v(this),!0}let f=new S(e,t,o,n,r);return f.length>this[i]?(this[u]&&this[u](e,t),!1):(this[s]+=f.length,this[h].unshift(f),this[d].set(e,this[h].head),v(this),!0)}has(e){return!!this[d].has(e)&&!y(this,this[d].get(e).value)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){let e=this[h].tail;return e?(b(this,e),e.value):null}del(e){b(this,this[d].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[d].forEach((e,t)=>m(this,t,!1))}}let m=(e,t,r)=>{let n=e[d].get(t);if(n){let t=n.value;if(y(e,t)){if(b(e,n),!e[o])return}else r&&(e[f]&&(n.value.now=Date.now()),e[h].unshiftNode(n));return t.value}},y=(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]},v=e=>{if(e[s]>e[i])for(let t=e[h].tail;e[s]>e[i]&&null!==t;){let r=t.prev;b(e,t),t=r}},b=(e,t)=>{if(t){let r=t.value;e[u]&&e[u](r.key,r.value),e[s]-=r.length,e[d].delete(r.key),e[h].removeNode(t)}};class S{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}let w=(e,t,r,n)=>{let i=r.value;y(e,i)&&(b(e,r),e[o]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=g},76:e=>{e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},190:(e,t,r)=>{function n(e){var t=this;if(t instanceof n||(t=new n),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,i=arguments.length;r1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.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},n.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},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var i=0,s=this.head;null!==s&&ithis.length&&(t=this.length);for(var i=this.length,s=this.tail;null!==s&&i>t;i--)s=s.prev;for(;null!==s&&i>e;i--,s=s.prev)r.push(s.value);return r},n.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;null!==n&&r{"use strict";!function(){var t={452:function(e){e.exports=r(7808)}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var s=n[e]={exports:{}},a=!0;try{t[e](s,s.exports,i),a=!1}finally{a&&delete n[e]}return s.exports}i.ab="//";var s={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=y(e));var n,i,s,a,o,l,u,c,h,d=(i=(n=e).auth,s=n.hostname,a=n.protocol||"",o=n.pathname||"",l=n.hash||"",u=n.query||"",c=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",n.host?c=i+n.host:s&&(c=i+(~s.indexOf(":")?"["+s+"]":s),n.port&&(c+=":"+n.port)),u&&"object"==typeof u&&(u=t.encode(u)),h=n.search||u&&"?"+u||"",a&&":"!==a.substr(-1)&&(a+=":"),n.slashes||(!a||r.test(a))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),h&&"?"!==h[0]&&(h="?"+h),{protocol:a,host:c,pathname:o=o.replace(/[?#]/g,encodeURIComponent),search:h=h.replace("#","%23"),hash:l});return""+d.protocol+d.host+d.pathname+d.search+d.hash}var a="http://",o=a+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function c(e,t){var r="string"==typeof e?y(e):e;e="object"==typeof e?n(e):e;var i=y(t),s="";r.protocol&&!r.slashes&&(s=r.protocol,e=e.replace(r.protocol,""),s+="/"===t[0]||"/"===e[0]?"/":""),s&&i.protocol&&(s="",i.slashes||(s=i.protocol,t=t.replace(i.protocol,"")));var c=e.match(l);c&&!i.protocol&&(e=e.substr((s=c[1]+(c[2]||"")).length),/^\/\/[^/]/.test(t)&&(s=s.slice(0,-1)));var h=new URL(e,o+"/"),d=new URL(t,h).toString().replace(o,""),f=i.protocol||r.protocol;return f+=r.slashes||i.slashes?"//":"",!s&&f?d=d.replace(a,f):s&&(d=d.replace(a,"")),u.test(d)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==d.slice(-1)||(d=d.slice(0,-1)),s&&(d=s+("/"===d[0]?d.substr(1):d)),d}function h(){}h.prototype.parse=y,h.prototype.format=n,h.prototype.resolve=c,h.prototype.resolveObject=c;var d=/^https?|ftp|gopher|file/,f=/^(.*?)([#?].*)/,p=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,m=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function y(e,r,i){if(void 0===r&&(r=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof h)return e;var s=(e=e.trim()).match(f);e=s?s[1].replace(/\\/g,"/")+s[2]:e.replace(/\\/g,"/"),m.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(p),l=g.test(e),u="";a&&(d.test(a[1])||(u=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(l=!1,d.test(a[1])?(u=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(u=a[1],e="/"+a[3]));var c,y=(s?s[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=y&&y[1],b=new h,S="",w="";try{c=new URL(e)}catch(t){S=t,u||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{c=new URL(e,o)}catch(e){return b.protocol=u,b.href=u,b}}b.slashes=l&&!w,b.host="w.w"===c.host?"":c.host,b.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),b.protocol=S?u||null:c.protocol,b.search=c.search.replace(/\\/g,"%5C"),b.hash=c.hash.replace(/\\/g,"%5C");var _=e.split("#");!b.search&&~_[0].indexOf("?")&&(b.search="?"),b.hash||""!==_[1]||(b.hash="#"),b.query=r?t.decode(c.search.substr(1)):b.search.substr(1),b.pathname=w+(a?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),S&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),u&&!d.test(u)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=c.port,v&&!b.host.endsWith(v)&&(b.host+=v,b.port=v.slice(1)),b.href=w?""+b.pathname+b.search+b.hash:n(b);var x=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~x.indexOf(e)||(b[e]=b[e]||null)}),b}s.parse=y,s.format=n,s.resolve=c,s.resolveObject=function(e,t){return y(c(e,t))},s.Url=h}(),e.exports=s}()},1193:e=>{"use strict";!function(){var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,s=-1,a=0,o=0;o<=e.length;++o){if(o2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),s=o,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,s=o,a=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(s+1,o):n=e.slice(s+1,o),i=o-s-1;s=o,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var e,n,i="",s=!1,a=arguments.length-1;a>=-1&&!s;a--)a>=0?n=arguments[a]:(void 0===e&&(e=""),n=e),t(n),0!==n.length&&(i=n+"/"+i,s=47===n.charCodeAt(0));return(i=r(i,!s),s)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;iu){if(47===r.charCodeAt(o+h))return r.slice(o+h+1);if(0===h)return r.slice(o+h)}else a>u&&(47===e.charCodeAt(i+h)?c=h:0===h&&(c=0));break}var d=e.charCodeAt(i+h);if(d!==r.charCodeAt(o+h))break;47===d&&(c=h)}var f="";for(h=i+c+1;h<=s;++h)(h===s||47===e.charCodeAt(h))&&(0===f.length?f+="..":f+="/..");return f.length>0?f+r.slice(o+c):(o+=c,47===r.charCodeAt(o)&&++o,r.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!s){i=a;break}}else s=!1;return -1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,i=0,s=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var o=r.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!a){i=n+1;break}}else -1===l&&(a=!1,l=n+1),o>=0&&(u===r.charCodeAt(o)?-1==--o&&(s=n):(o=-1,s=l))}return i===s?s=l:-1===s&&(s=e.length),e.slice(i,s)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else -1===s&&(a=!1,s=n+1);return -1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,s=!0,a=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47===l){if(!s){n=o+1;break}continue}-1===i&&(s=!1,i=o+1),46===l?-1===r?r=o:1!==a&&(a=1):-1!==r&&(a=-1)}return -1===r||-1===i||0===a||1===a&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r,n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var a=-1,o=0,l=-1,u=!0,c=e.length-1,h=0;c>=r;--c){if(47===(i=e.charCodeAt(c))){if(!u){o=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==h&&(h=1):-1!==a&&(h=-1)}return -1===a||-1===l||0===h||1===h&&a===l-1&&a===o+1?-1!==l&&(0===o&&s?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(o,l)):(0===o&&s?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(o,a),n.base=e.slice(o,l)),n.ext=e.slice(a,l)),o>0?n.dir=e.slice(0,o-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var s=r[e]={exports:{}},a=!0;try{t[e](s,s.exports,n),a=!1}finally{a&&delete r[e]}return s.exports}n.ab="//";var i=n(114);e.exports=i}()},7058:(e,t)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||95===a){i+=e[s++];continue}break}if(!i)throw TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:i}),r=s;continue}if("("===n){var o=1,l="",s=r+1;if("?"===e[s])throw TypeError('Pattern cannot start with "?" at '+s);for(;s-1:void 0===b;a||(f+="(?:"+d+"(?="+h+"))?"),S||(f+="(?="+d+"|"+h+")")}return new RegExp(f,i(r))}(r(t,a),s,a)}},7808:e=>{"use strict";!function(){var t={815:function(e){e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(r);var o=1e3;i&&"number"==typeof i.maxKeys&&(o=i.maxKeys);var l=e.length;o>0&&l>o&&(l=o);for(var u=0;u=0?(c=p.substr(0,g),h=p.substr(g+1)):(c=p,h=""),d=decodeURIComponent(c),f=decodeURIComponent(h),Object.prototype.hasOwnProperty.call(s,d))?t(s[d])?s[d].push(f):s[d]=[s[d],f]:s[d]=f}return s};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,s,a,o){return(s=s||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var o=encodeURIComponent(t(i))+a;return r(e[i])?n(e[i],function(e){return o+encodeURIComponent(t(e))}).join(s):o+encodeURIComponent(t(e[i]))}).join(s):o?encodeURIComponent(t(o))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n{"use strict";var n=r(4413),i={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r{"use strict";e.exports=r(8933)},6230:(e,t,r)=>{"use strict";var n=r(9475),i=r(9986),s=null,a=0;function o(e,t){if(0!==t.byteLength){if(512=e.length?e:e.slice(0,10)+"...");case"object":if(Y(e))return"[...]";return"Object"===(e=ee(e))?"{...}":e;case"function":return"function";default:return String(e)}}function er(e,t){var r=ee(e);if("Object"!==r&&"Array"!==r)return r;r=-1;var n=0;if(Y(e)){for(var i="[",s=0;sa.length&&40>i.length+a.length?i+a:i+"..."}i+="]"}else if(e.$$typeof===C)i="<"+function e(t){if("string"==typeof t)return t;switch(t){case P:return"Suspense";case A:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case T:return e(t.render);case N:return e(t.type);case $:var r=t._payload;t=t._init;try{return e(t(r))}catch(e){}}return""}(e.type)+"/>";else{for(a=0,i="{",s=Object.keys(e);al.length&&40>i.length+l.length?i+l:i+"..."}i+="}"}return void 0===t?i:-1n.depth?function e(t,r){if(t.context._currentValue=t.parentValue,null===(t=t.parent))throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");t.depth===r.depth?j(t,r):e(t,r)}(r,n):function e(t,r){var n=r.parent;if(null===n)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");t.depth===n.depth?j(t,n):e(t,n),r.context._currentValue=r.value}(r,n),L=n);try{var i=t.model;if("object"==typeof i&&null!==i&&i.$$typeof===C){e.writtenObjects.set(i,t.id),r=i;var s=t.thenableState;for(t.model=i,i=eg(e,r.type,r.key,r.ref,r.props,s),t.thenableState=null;"object"==typeof i&&null!==i&&i.$$typeof===C;)e.writtenObjects.set(i,t.id),s=i,t.model=i,i=eg(e,s.type,s.key,s.ref,s.props,null)}"object"==typeof i&&null!==i&&e.writtenObjects.set(i,t.id);var a=t.id;e_=i;var o=ea(i,e.toJSON),u=a.toString(16)+":"+o+"\n",c=l.encode(u);e.completedRegularChunks.push(c),e.abortableTasks.delete(t),t.status=1}catch(r){"object"==typeof(a=r===M?Q():r)&&null!==a&&"function"==typeof a.then?(e=t.ping,a.then(e,e),t.thenableState=H()):(e.abortableTasks.delete(t),t.status=4,a=ex(e,a),eC(e,t.id,a))}}}function eR(e){var t=el.current;el.current=z;var r=eh;U=eh=e;try{var n=e.pingedTasks;e.pingedTasks=[];for(var i=0;i{"use strict";e.exports=r(6230)},685:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||p}function v(){}function b(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var S=b.prototype=new v;S.constructor=b,g(S,y.prototype),S.isPureReactComponent=!0;var w=Array.isArray,_=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var i,s={},a=null,o=null;if(null!=t)for(i in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,i)&&!E.hasOwnProperty(i)&&(s[i]=t[i]);var l=arguments.length-2;if(1===l)s.children=n;else if(1{"use strict";var r=Object.assign,n={current:null};function i(){return new Map}if("function"==typeof fetch){var s=fetch,a=function(e,t){var r=n.current;if(!r||t&&t.signal&&t.signal!==r.getCacheSignal())return s(e,t);if("string"!=typeof e||t){var a="string"==typeof e||e instanceof URL?new Request(e,t):e;if("GET"!==a.method&&"HEAD"!==a.method||a.keepalive)return s(e,t);var o=JSON.stringify([a.method,Array.from(a.headers.entries()),a.mode,a.redirect,a.credentials,a.referrer,a.referrerPolicy,a.integrity]);a=a.url}else o='["GET",[],null,"follow",null,null,null,null]',a=e;var l=r.getCacheForType(i);if(void 0===(r=l.get(a)))e=s(e,t),l.set(a,[o,e]);else{for(a=0,l=r.length;a{"use strict";e.exports=r(685)},9475:(e,t,r)=>{"use strict";e.exports=r(2778)},5685:(e,t,r)=>{"use strict";var n;r.d(t,{ZK:()=>y});let{env:i,stdout:s}=(null==(n=globalThis)?void 0:n.process)??{},a=i&&!i.NO_COLOR&&(i.FORCE_COLOR||(null==s?void 0:s.isTTY)&&!i.CI&&"dumb"!==i.TERM),o=(e,t,r,n)=>{let i=e.substring(0,n)+r,s=e.substring(n+t.length),a=s.indexOf(t);return~a?i+o(s,t,r,a):i+s},l=(e,t,r=e)=>a?n=>{let i=""+n,s=i.indexOf(t,e.length);return~s?e+o(i,t,r,s)+t:e+i+t}:String,u=l("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m");l("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),l("\x1b[3m","\x1b[23m"),l("\x1b[4m","\x1b[24m"),l("\x1b[7m","\x1b[27m"),l("\x1b[8m","\x1b[28m"),l("\x1b[9m","\x1b[29m"),l("\x1b[30m","\x1b[39m");let c=l("\x1b[31m","\x1b[39m"),h=l("\x1b[32m","\x1b[39m"),d=l("\x1b[33m","\x1b[39m");l("\x1b[34m","\x1b[39m");let f=l("\x1b[35m","\x1b[39m");l("\x1b[38;2;173;127;168m","\x1b[39m"),l("\x1b[36m","\x1b[39m");let p=l("\x1b[37m","\x1b[39m");l("\x1b[90m","\x1b[39m"),l("\x1b[40m","\x1b[49m"),l("\x1b[41m","\x1b[49m"),l("\x1b[42m","\x1b[49m"),l("\x1b[43m","\x1b[49m"),l("\x1b[44m","\x1b[49m"),l("\x1b[45m","\x1b[49m"),l("\x1b[46m","\x1b[49m"),l("\x1b[47m","\x1b[49m");let g={wait:p(u("○")),error:c(u("⨯")),warn:d(u("⚠")),ready:"▲",info:p(u(" ")),event:h(u("✓")),trace:f(u("\xbb"))},m={log:"log",warn:"warn",error:"error"};function y(...e){!function(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in m?m[e]:"log",n=g[e];0===t.length?console[r](""):console[r](" "+n,...t)}("warn",...e)}},4421:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});let n=r(6673).createClientModuleProxy},211:(e,t,r)=>{"use strict";r.d(t,{H4:()=>s,om:()=>n,vu:()=>i});let n="Next-Action",i=[["RSC"],["Next-Router-State-Tree"],["Next-Router-Prefetch"]],s="_rsc"},8397:(e,t,r)=>{"use strict";r.r(t),r.d(t,{cookies:()=>h,draftMode:()=>d,headers:()=>c});var n=r(8121),i=r(3323),s=r(4326),a=r(4359),o=r(7887),l=r(9486);class u{get isEnabled(){return this._provider.isEnabled}enable(){if(!(0,l.o)("draftMode().enable()"))return this._provider.enable()}disable(){if(!(0,l.o)("draftMode().disable()"))return this._provider.disable()}constructor(e){this._provider=e}}function c(){if((0,l.o)("headers",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return i.h.seal(new Headers({}));let e=a.F.getStore();if(!e)throw Error("Invariant: headers() expects to have requestAsyncStorage, none available.");return e.headers}function h(){if((0,l.o)("cookies",{link:"https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"}))return n.Qb.seal(new s.q(new Headers({})));let e=a.F.getStore();if(!e)throw Error("Invariant: cookies() expects to have requestAsyncStorage, none available.");let t=o.W.getStore();return t&&(t.isAction||t.isAppRoute)?e.mutableCookies:e.cookies}function d(){let e=a.F.getStore();if(!e)throw Error("Invariant: draftMode() expects to have requestAsyncStorage, none available.");return new u(e.draftMode)}},9653:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DynamicServerError:()=>i,isDynamicServerError:()=>s});let n="DYNAMIC_SERVER_USAGE";class i extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=n}}function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===n}},6674:(e,t,r)=>{"use strict";r.d(t,{j2:()=>h,M6:()=>c,eo:()=>u,uX:()=>l});var n,i,s=r(4359),a=r(7887);!function(e){e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(n||(n={}));let o="NEXT_REDIRECT";function l(e,t){void 0===t&&(t="replace");let r=a.W.getStore();throw function(e,t,r){void 0===r&&(r=n.TemporaryRedirect);let i=Error(o);i.digest=o+";"+t+";"+e+";"+r+";";let a=s.F.getStore();return a&&(i.mutableCookies=a.mutableCookies),i}(e,t,(null==r?void 0:r.isAction)?n.SeeOther:n.TemporaryRedirect)}function u(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,i,s]=e.digest.split(";",4),a=Number(s);return t===o&&("replace"===r||"push"===r)&&"string"==typeof i&&!isNaN(a)&&a in n}function c(e){return u(e)?e.digest.split(";",3)[2]:null}function h(e){if(!u(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}!function(e){e.push="push",e.replace="replace"}(i||(i={}))},9486:(e,t,r)=>{"use strict";r.d(t,{o:()=>o});var n=r(9653),i=r(5364);class s extends Error{constructor(...e){super(...e),this.code="NEXT_STATIC_GEN_BAILOUT"}}function a(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 o=(e,t)=>{let{dynamic:r,link:o}=void 0===t?{}:t,l=i.A.getStore();if(!l)return!1;if(l.forceStatic)return!0;if(l.dynamicShouldError)throw new s(a(e,{link:o,dynamic:null!=r?r:"error"}));let u=a(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==l.postpone||l.postpone.call(l,e),l.revalidate=0,l.isStaticGeneration){let t=new n.DynamicServerError(u);throw l.dynamicUsageDescription=e,l.dynamicUsageStack=t.stack,t}return!1}},2608:(e,t,r)=>{"use strict";r.d(t,{Ar:()=>h,BR:()=>m,EX:()=>u,Et:()=>c,Ho:()=>p,JT:()=>l,Qq:()=>s,Sx:()=>a,X_:()=>f,dN:()=>n,hd:()=>o,of:()=>d,y3:()=>i,zt:()=>g});let n="nxtP",i="x-prerender-revalidate",s="x-prerender-revalidate-if-generated",a=".prefetch.rsc",o=".rsc",l=".json",u=".meta",c="x-next-cache-tags",h="x-next-cache-soft-tags",d="x-next-revalidated-tags",f="x-next-revalidate-tag-token",p=256,g="_N_T_",m=31536e3,y={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"};({...y,GROUP:{server:[y.reactServerComponents,y.actionBrowser,y.appMetadataRoute,y.appRouteHandler],nonClientServerTarget:[y.middleware,y.api],app:[y.reactServerComponents,y.actionBrowser,y.appMetadataRoute,y.appRouteHandler,y.serverSideRendering,y.appPagesBrowser,y.shared]}})},4568:(e,t,r)=>{"use strict";r.d(t,{B:()=>c});var n=r(211),i=r(3323),s=r(8121),a=r(4326),o=r(2608);let l="__prerender_bypass";Symbol("__next_preview_data"),Symbol(l);class u{constructor(e,t,r,n){var s;let a=e&&function(e,t){let r=i.h.from(e.headers);return{isOnDemandRevalidate:r.get(o.y3)===t.previewModeId,revalidateOnlyGenerated:r.has(o.Qq)}}(t,e).isOnDemandRevalidate,u=null==(s=r.get(l))?void 0:s.value;this.isEnabled=!!(!a&&u&&e&&u===e.previewModeId),this._previewModeId=null==e?void 0:e.previewModeId,this._mutableCookies=n}enable(){if(!this._previewModeId)throw Error("Invariant: previewProps missing previewModeId this should never happen");this._mutableCookies.set({name:l,value:this._previewModeId,httpOnly:!0,sameSite:"none",secure:!0,path:"/"})}disable(){this._mutableCookies.set({name:l,value:"",httpOnly:!0,sameSite:"none",secure:!0,path:"/",expires:new Date(0)})}}let c={wrap(e,{req:t,res:r,renderOpts:o},l){let c;function h(e){r&&r.setHeader("Set-Cookie",e)}o&&"previewProps"in o&&(c=o.previewProps);let d={},f={get headers(){return d.headers||(d.headers=function(e){let t=i.h.from(e);for(let e of n.vu)t.delete(e.toString().toLowerCase());return i.h.seal(t)}(t.headers)),d.headers},get cookies(){return d.cookies||(d.cookies=function(e){let t=new a.q(i.h.from(e));return s.Qb.seal(t)}(t.headers)),d.cookies},get mutableCookies(){return d.mutableCookies||(d.mutableCookies=function(e,t){let r=new a.q(i.h.from(e));return s.vr.wrap(r,t)}(t.headers,(null==o?void 0:o.onUpdateCookies)||(r?h:void 0))),d.mutableCookies},get draftMode(){return d.draftMode||(d.draftMode=new u(c,t,this.cookies,this.mutableCookies)),d.draftMode}};return e.run(f,l,f)}}},4399:(e,t,r)=>{"use strict";var n;r.d(t,{x:()=>n}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(n||(n={}))},4392:(e,t,r)=>{"use strict";e.exports=r(2714)},2714:(e,t,r)=>{"use strict";r.d(t,{AppRouteRouteModule:()=>T});var n={};r.r(n),r.d(n,{appRouterContext:()=>O});class i{constructor({userland:e,definition:t}){this.userland=e,this.definition=t}}var s=r(4568);let a={wrap(e,{urlPathname:t,renderOpts:r,postpone:n},i){let s=!r.supportsDynamicHTML&&!r.isDraftMode&&!r.isServerAction,a={isStaticGeneration:s,urlPathname:t,pagePath:r.originalPathname,incrementalCache:r.incrementalCache||globalThis.__incrementalCache,isRevalidate:r.isRevalidate,isPrerendering:r.nextExport,fetchCache:r.fetchCache,isOnDemandRevalidate:r.isOnDemandRevalidate,isDraftMode:r.isDraftMode,postpone:s&&r.experimental.ppr&&n?e=>(a.postponeWasTriggered=!0,n(`This page needs to bail out of prerendering at this point because it used ${e}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`)):void 0};return r.store=a,e.run(a,i,a)}};var o=r(8121);function l(){return new Response(null,{status:400})}function u(){return new Response(null,{status:405})}let c=["GET","HEAD","OPTIONS","POST","PUT","DELETE","PATCH"];var h=r(5373),d=r(1214),f=r(8848),p=r(65),g=r(6095);function m(e){let t=new URL(e);return t.host="localhost:3000",t.search="",t.protocol="http",t.toString()}var y=r(6674);r(5685);let v=["HEAD","OPTIONS"],b=["OPTIONS","POST","PUT","DELETE","PATCH"];var S=r(9653),w=r(8397),_=r(9486),x=r(4359),E=r(5364),C=r(7887),O=r(4532),R=r(211);class T extends i{static #e=this.sharedModules=n;constructor({userland:e,definition:t,resolvedPagePath:r,nextConfigOutput:n}){if(super({userland:e,definition:t}),this.requestAsyncStorage=x.F,this.staticGenerationAsyncStorage=E.A,this.serverHooks=S,this.headerHooks=w,this.staticGenerationBailout=_.o,this.actionAsyncStorage=C.W,this.resolvedPagePath=r,this.nextConfigOutput=n,this.methods=function(e){let t=c.reduce((t,r)=>({...t,[r]:e[r]??u}),{}),r=new Set(c.filter(t=>e[t]));for(let n of v.filter(e=>!r.has(e))){if("HEAD"===n){if(!e.GET)break;t.HEAD=e.GET,r.add("HEAD");continue}if("OPTIONS"===n){let e=["OPTIONS",...r];!r.has("HEAD")&&r.has("GET")&&e.push("HEAD");let n={Allow:e.sort().join(", ")};t.OPTIONS=()=>new Response(null,{status:204,headers:n}),r.add("OPTIONS");continue}throw Error(`Invariant: should handle all automatic implementable methods, got method: ${n}`)}return t}(e),this.nonStaticMethods=function(e){let t=b.filter(t=>e[t]);return 0!==t.length&&t}(e),this.dynamic=this.userland.dynamic,"export"===this.nextConfigOutput){if(this.dynamic&&"auto"!==this.dynamic){if("force-dynamic"===this.dynamic)throw Error(`export const dynamic = "force-dynamic" on page "${t.pathname}" cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export`)}else this.dynamic="error"}}resolve(e){return c.includes(e)?this.methods[e]:l}async execute(e,t){let r=this.resolve(e.method),n={req:e};n.renderOpts={previewProps:t.prerenderManifest.preview};let i={urlPathname:e.nextUrl.pathname,renderOpts:t.renderOpts};i.renderOpts.fetchCache=this.userland.fetchCache;let l=await this.actionAsyncStorage.run({isAppRoute:!0,isAction:function(e){let{isFetchAction:t,isURLEncodedAction:r,isMultipartAction:n}=function(e){let t,r;e.headers instanceof Headers?(t=e.headers.get(R.om.toLowerCase())??null,r=e.headers.get("content-type")):(t=e.headers[R.om.toLowerCase()]??null,r=e.headers["content-type"]??null);let n=!!("POST"===e.method&&"application/x-www-form-urlencoded"===r),i=!!("POST"===e.method&&(null==r?void 0:r.startsWith("multipart/form-data"))),s=!!(void 0!==t&&"string"==typeof t&&"POST"===e.method);return{actionId:t,isURLEncodedAction:n,isMultipartAction:i,isFetchAction:s}}(e);return!!(t||r||n)}(e)},()=>s.B.wrap(this.requestAsyncStorage,n,()=>a.wrap(this.staticGenerationAsyncStorage,i,n=>{var i;switch(this.nonStaticMethods&&this.staticGenerationBailout(`non-static methods used ${this.nonStaticMethods.join(", ")}`),this.dynamic){case"force-dynamic":n.forceDynamic=!0,this.staticGenerationBailout("force-dynamic",{dynamic:this.dynamic});break;case"force-static":n.forceStatic=!0;break;case"error":n.dynamicShouldError=!0}n.revalidate??=this.userland.revalidate??!1;let s=function(e,{dynamic:t},r){function n(e){switch(e){case"search":case"searchParams":case"toString":case"href":case"origin":r.staticGenerationBailout(`nextUrl.${e}`);return;default:return}}let i={},s=(e,t)=>{switch(t){case"search":return"";case"searchParams":return i.searchParams||(i.searchParams=new URLSearchParams),i.searchParams;case"url":case"href":return i.url||(i.url=m(e)),i.url;case"toJSON":case"toString":return i.url||(i.url=m(e)),i.toString||(i.toString=()=>i.url),i.toString;case"headers":return i.headers||(i.headers=new Headers),i.headers;case"cookies":return i.headers||(i.headers=new Headers),i.cookies||(i.cookies=new p.RequestCookies(i.headers)),i.cookies;case"clone":return i.url||(i.url=m(e)),()=>new g.c(i.url)}},a=new Proxy(e.nextUrl,{get(e,r){if(n(r),"force-static"===t&&"string"==typeof r){let t=s(e.href,r);if(void 0!==t)return t}let i=e[r];return"function"==typeof i?i.bind(e):i},set:(e,t,r)=>(n(t),e[t]=r,!0)}),o=e=>{switch(e){case"headers":r.headerHooks.headers();return;case"url":case"cookies":case"body":case"blob":case"json":case"text":case"arrayBuffer":case"formData":r.staticGenerationBailout(`request.${e}`);return;default:return}};return new Proxy(e,{get(e,r){if(o(r),"nextUrl"===r)return a;if("force-static"===t&&"string"==typeof r){let t=s(e.url,r);if(void 0!==t)return t}let n=e[r];return"function"==typeof n?n.bind(e):n},set:(e,t,r)=>(o(t),e[t]=r,!0)})}(e,{dynamic:this.dynamic},{headerHooks:this.headerHooks,serverHooks:this.serverHooks,staticGenerationBailout:this.staticGenerationBailout}),a=function(e){let t="/app/";e.includes(t)||(t="\\app\\");let[,...r]=e.split(t);return(t[0]+r.join(t)).split(".").slice(0,-1).join(".")}(this.resolvedPagePath);return null==(i=(0,d.Yz)().getRootSpanAttributes())||i.set("next.route",a),(0,d.Yz)().trace(f.PB.runHandler,{spanName:`executing api route (app) ${a}`,attributes:{"next.route":a}},async()=>{var e;(0,h.XH)({serverHooks:this.serverHooks,staticGenerationAsyncStorage:this.staticGenerationAsyncStorage});let i=await r(s,{params:t.params?function(e){let t={};for(let[r,n]of Object.entries(e))void 0!==n&&(t[r]=n);return t}(t.params):void 0});if(!(i instanceof Response))throw Error(`No response is returned from route handler '${this.resolvedPagePath}'. Ensure you return a \`Response\` or a \`NextResponse\` in all branches of your handler.`);t.renderOpts.fetchMetrics=n.fetchMetrics,t.renderOpts.waitUntil=Promise.all(Object.values(n.pendingRevalidates||[])),(0,h.RQ)(n),t.renderOpts.fetchTags=null==(e=n.tags)?void 0:e.join(",");let a=this.requestAsyncStorage.getStore();if(a&&a.mutableCookies){let e=new Headers(i.headers);if((0,o._5)(e,a.mutableCookies))return new Response(i.body,{status:i.status,statusText:i.statusText,headers:e})}return i})})));if(!(l instanceof Response))return new Response(null,{status:500});if(l.headers.has("x-middleware-rewrite"))throw Error("NextResponse.rewrite() was used in a app route handler, this is not currently supported. Please remove the invocation to continue.");if("1"===l.headers.get("x-middleware-next"))throw Error("NextResponse.next() was used in a app route handler, this is not supported. See here for more info: https://nextjs.org/docs/messages/next-response-next-in-app-route-handler");return l}async handle(e,t){try{return await this.execute(e,t)}catch(t){let e=function(e){if((0,y.eo)(e)){let t=(0,y.M6)(e);if(!t)throw Error("Invariant: Unexpected redirect url format");let r=(0,y.j2)(e);return function(e,t,r){let n=new Headers({location:e});return(0,o._5)(n,t),new Response(null,{status:r,headers:n})}(t,e.mutableCookies,r)}return"object"==typeof e&&null!==e&&"digest"in e&&"NEXT_NOT_FOUND"===e.digest&&new Response(null,{status:404})}(t);if(!e)throw t;return e}}}},5373:(e,t,r)=>{"use strict";r.d(t,{RQ:()=>u,XH:()=>h});var n=r(8848),i=r(1214),s=r(2608),a=r(5685),o=r(6195).Buffer;let l=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 h({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,h)=>{var d,f;let p;try{(p=new URL(e instanceof Request?e.url:e)).username="",p.password=""}catch{p=void 0}let g=(null==p?void 0:p.href)??"",m=Date.now(),y=(null==h?void 0:null==(d=h.method)?void 0:d.toUpperCase())||"GET",v=(null==(f=null==h?void 0:h.next)?void 0:f.internal)===!0,b="1"===process.env.NEXT_OTEL_FETCH_DISABLED;return await (0,i.Yz)().trace(v?n.Xy.internalFetch:n.k0.fetch,{hideSpan:b,kind:i.MU.CLIENT,spanName:["fetch",y,g].filter(Boolean).join(" "),attributes:{"http.url":g,"http.method":y,"net.peer.name":null==p?void 0:p.hostname,"net.peer.port":(null==p?void 0:p.port)||void 0}},async()=>{var n;let i,d,f;let p=t.getStore()||(null==fetch.__nextGetStaticStore?void 0:fetch.__nextGetStaticStore.call(fetch)),y=e&&"object"==typeof e&&"string"==typeof e.method,b=t=>(null==h?void 0:h[t])||(y?e[t]:null);if(!p||v||p.isDraftMode)return l(e,h);let S=t=>{var r,n,i;return void 0!==(null==h?void 0:null==(r=h.next)?void 0:r[t])?null==h?void 0:null==(n=h.next)?void 0:n[t]:y?null==(i=e.next)?void 0:i[t]:void 0},w=S("revalidate"),_=function(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>s.Ho?n.push({tag:t,reason:`exceeded max length of ${s.Ho}`}):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}(S("tags")||[],`fetch ${e.toString()}`);if(Array.isArray(_))for(let e of(p.tags||(p.tags=[]),_))p.tags.includes(e)||p.tags.push(e);let x=u(p),E="only-cache"===p.fetchCache,C="force-cache"===p.fetchCache,O="default-cache"===p.fetchCache,R="default-no-store"===p.fetchCache,T="only-no-store"===p.fetchCache,P="force-no-store"===p.fetchCache,A=!!p.isUnstableNoStore,N=b("cache"),$="";"string"==typeof N&&void 0!==w&&(y&&"default"===N||a.ZK(`fetch for ${g} on ${p.urlPathname} specified "cache: ${N}" and "revalidate: ${w}", only one should be specified.`),N=void 0),"force-cache"===N?w=!1:("no-cache"===N||"no-store"===N||P||T)&&(w=0),("no-cache"===N||"no-store"===N)&&($=`cache: ${N}`),f=function(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}}(w,p.urlPathname);let I=b("headers"),k="function"==typeof(null==I?void 0:I.get)?I:new Headers(I||{}),L=k.get("authorization")||k.get("cookie"),j=!["get","head"].includes((null==(n=b("method"))?void 0:n.toLowerCase())||"get"),M=(L||j)&&0===p.revalidate;if(P&&($="fetchCache = force-no-store"),T){if("force-cache"===N||void 0!==f&&(!1===f||f>0))throw Error(`cache: 'force-cache' used on fetch for ${g} with 'export const fetchCache = 'only-no-store'`);$="fetchCache = only-no-store"}if(E&&"no-store"===N)throw Error(`cache: 'no-store' used on fetch for ${g} with 'export const fetchCache = 'only-cache'`);C&&(void 0===w||0===w)&&($="fetchCache = force-cache",f=!1),void 0===f?O?(f=!1,$="fetchCache = default-cache"):M?(f=0,$="auto no cache"):R?(f=0,$="fetchCache = default-no-store"):A?(f=0,$="noStore call"):($="auto cache",f="boolean"!=typeof p.revalidate&&void 0!==p.revalidate&&p.revalidate):$||($=`revalidate: ${f}`),p.forceStatic&&0===f||M||void 0!==p.revalidate&&("number"!=typeof f||!1!==p.revalidate&&("number"!=typeof p.revalidate||!(f0||!1===f;if(p.incrementalCache&&D)try{i=await p.incrementalCache.fetchCacheKey(g,y?e:h)}catch(t){console.error("Failed to generate cache key for",e)}let q=p.nextFetchId??1;p.nextFetchId=q+1;let Q="number"!=typeof f?s.BR:f,U=async(t,r)=>{let n=["cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","window","duplex",...t?[]:["signal"]];if(y){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(h){let e=h;for(let t of(h={body:h._ogBody||h.body},n))h[t]=e[t]}let s={...h,next:{...null==h?void 0:h.next,fetchType:"origin",fetchIdx:q}};return l(e,s).then(async n=>{if(t||c(p,{start:m,url:g,cacheReason:r||$,cacheStatus:0===f||r?"skip":"miss",status:n.status,method:s.method||"GET"}),200===n.status&&p.incrementalCache&&i&&D){let t=o.from(await n.arrayBuffer());try{await p.incrementalCache.set(i,{kind:"FETCH",data:{headers:Object.fromEntries(n.headers.entries()),body:t.toString("base64"),status:n.status,url:n.url},revalidate:Q},{fetchCache:!0,revalidate:f,fetchUrl:g,fetchIdx:q,tags:_})}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})},B=()=>Promise.resolve();if(i&&p.incrementalCache){B=await p.incrementalCache.lock(i);let e=p.isOnDemandRevalidate?null:await p.incrementalCache.get(i,{kindHint:"fetch",revalidate:f,fetchUrl:g,fetchIdx:q,tags:_,softTags:x});if(e?await B():d="cache-control: no-cache (hard refresh)",(null==e?void 0:e.value)&&"FETCH"===e.value.kind&&!(p.isRevalidate&&e.isStale)){e.isStale&&(p.pendingRevalidates??={},p.pendingRevalidates[i]||(p.pendingRevalidates[i]=U(!0).catch(console.error)));let t=e.value.data;c(p,{start:m,url:g,cacheReason:$,cacheStatus:"hit",status:t.status||200,method:(null==h?void 0:h.method)||"GET"});let r=new Response(o.from(t.body,"base64"),{headers:t.headers,status:t.status});return Object.defineProperty(r,"url",{value:e.value.data.url}),r}}if(p.isStaticGeneration&&h&&"object"==typeof h){let{cache:t}=h;if(delete h.cache,!p.forceStatic&&"no-store"===t){let t=`no-store fetch ${e}${p.urlPathname?` ${p.urlPathname}`:""}`;null==p.postpone||p.postpone.call(p,t),p.revalidate=0;let n=new r(t);p.dynamicUsageErr=n,p.dynamicUsageDescription=t}let n="next"in h,{next:i={}}=h;if("number"==typeof i.revalidate&&(void 0===p.revalidate||"number"==typeof p.revalidate&&i.revalidatet,globalThis.fetch.__nextPatched=!0}},8848:(e,t,r)=>{"use strict";var n,i,s,a,o,l,u,c,h,d,f;r.d(t,{PB:()=>d,Xy:()=>a,k0:()=>u,lw:()=>p}),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"}(n||(n={})),function(e){e.loadDefaultErrorComponents="LoadComponents.loadDefaultErrorComponents",e.loadComponents="LoadComponents.loadComponents"}(i||(i={})),function(e){e.getRequestHandler="NextServer.getRequestHandler",e.getServer="NextServer.getServer",e.getServerRequestHandler="NextServer.getServerRequestHandler",e.createServer="createServer.createServer"}(s||(s={})),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"}(a||(a={})),(o||(o={})).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"}(u||(u={})),(c||(c={})).executeRoute="Router.executeRoute",(h||(h={})).runHandler="Node.runHandler",(d||(d={})).runHandler="AppRouteRouteHandlers.runHandler",function(e){e.generateMetadata="ResolveMetadata.generateMetadata",e.generateViewport="ResolveMetadata.generateViewport"}(f||(f={}));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"]},1214:(e,t,r)=>{"use strict";let n;r.d(t,{MU:()=>u,Yz:()=>v});var i=r(8848);let{context:s,propagation:a,trace:o,SpanStatusCode:l,SpanKind:u,ROOT_CONTEXT:c}=n=r(4477),h=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then,d=(e,t)=>{(null==t?void 0:t.bubble)===!0?e.setAttribute("next.bubble",!0):(t&&e.recordException(t),e.setStatus({code:l.ERROR,message:null==t?void 0:t.message})),e.end()},f=new Map,p=n.createContextKey("next.rootSpanId"),g=0,m=()=>g++;class y{getTracerInstance(){return o.getTracer("next.js","0.0.1")}getContext(){return s}getActiveScopeSpan(){return o.getSpan(null==s?void 0:s.active())}withPropagatedContext(e,t,r){let n=s.active();if(o.getSpanContext(n))return t();let i=a.extract(n,e,r);return s.with(i,t)}trace(...e){var t;let[r,n,a]=e,{fn:l,options:u}="function"==typeof n?{fn:n,options:{}}:{fn:a,options:{...n}};if(!i.lw.includes(r)&&"1"!==process.env.NEXT_OTEL_VERBOSE||u.hideSpan)return l();let g=u.spanName??r,y=this.getSpanContext((null==u?void 0:u.parentSpan)??this.getActiveScopeSpan()),v=!1;y?(null==(t=o.getSpanContext(y))?void 0:t.isRemote)&&(v=!0):(y=c,v=!0);let b=m();return u.attributes={"next.span_name":g,"next.span_type":r,...u.attributes},s.with(y.setValue(p,b),()=>this.getTracerInstance().startActiveSpan(g,u,e=>{let t=()=>{f.delete(b)};v&&f.set(b,new Map(Object.entries(u.attributes??{})));try{if(l.length>1)return l(e,t=>d(e,t));let r=l(e);if(h(r))return r.then(t=>(e.end(),t)).catch(t=>{throw d(e,t),t}).finally(t);return e.end(),t(),r}catch(r){throw d(e,r),t(),r}}))}wrap(...e){let t=this,[r,n,a]=3===e.length?e:[e[0],{},e[1]];return i.lw.includes(r)||"1"===process.env.NEXT_OTEL_VERBOSE?function(){let e=n;"function"==typeof e&&"function"==typeof a&&(e=e.apply(this,arguments));let i=arguments.length-1,o=arguments[i];if("function"!=typeof o)return t.trace(r,e,()=>a.apply(this,arguments));{let n=t.getContext().bind(s.active(),o);return t.trace(r,e,(e,t)=>(arguments[i]=function(e){return null==t||t(e),n.apply(this,arguments)},a.apply(this,arguments)))}}:a}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?o.setSpan(s.active(),e):void 0}getRootSpanAttributes(){let e=s.active().getValue(p);return f.get(e)}}let v=(()=>{let e=new y;return()=>e})()},4915:(e,t,r)=>{"use strict";let n,i,s;async function a(){if("_ENTRIES"in globalThis&&_ENTRIES.middleware_instrumentation&&_ENTRIES.middleware_instrumentation.register)try{await _ENTRIES.middleware_instrumentation.register()}catch(e){throw e.message=`An error occurred while loading instrumentation hook: ${e.message}`,e}}r.d(t,{a:()=>ev});let o=null;function l(){return o||(o=a()),o}function u(e){return`The edge runtime does not support Node.js '${e}' module. +Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`}process!==r.g.process&&(process.env=r.g.process.env,r.g.process=process),Object.defineProperty(globalThis,"__import_unsupported",{value:function(e){let t=new Proxy(function(){},{get(t,r){if("then"===r)return{};throw Error(u(e))},construct(){throw Error(u(e))},apply(r,n,i){if("function"==typeof i[0])return i[0](t);throw Error(u(e))}});return new Proxy({},{get:()=>t})},enumerable:!1,configurable:!1}),l();var c=r(6286),h=r(2073);let d=Symbol("response"),f=Symbol("passThrough"),p=Symbol("waitUntil");class g{constructor(e){this[p]=[],this[f]=!1}respondWith(e){this[d]||(this[d]=Promise.resolve(e))}passThroughOnException(){this[f]=!0}waitUntil(e){this[p].push(e)}}class m extends g{constructor(e){super(e.request),this.sourcePage=e.page}get request(){throw new c.qJ({page:this.sourcePage})}respondWith(){throw new c.qJ({page:this.sourcePage})}}var y=r(9858),v=r(9715);function b(e,t){let r="string"==typeof t?new URL(t):t,n=new URL(e,t),i=r.protocol+"//"+r.host;return n.protocol+"//"+n.host===i?n.toString().replace(i,""):n.toString()}var S=r(6095),w=r(211);r(5406);let _={client:"client",server:"server",edgeServer:"edge-server"};_.client,_.server,_.edgeServer,Symbol("polyfills");let x=["__nextFallback","__nextLocale","__nextInferredLocaleFromDefault","__nextDefaultLocale","__nextIsNotFound",w.H4],E=["__nextDataReq"];function C(e){return e.startsWith("/")?e:"/"+e}function O(e){return e.replace(/\.rsc($|\?)/,"$1")}var R=r(2608),T=r(4568),P=r(4359),A=r(1214);class N extends y.I{constructor(e){super(e.input,e.init),this.sourcePage=e.page}get request(){throw new c.qJ({page:this.sourcePage})}respondWith(){throw new c.qJ({page:this.sourcePage})}waitUntil(){throw new c.qJ({page:this.sourcePage})}}let $={keys:e=>Array.from(e.keys()),get:(e,t)=>e.get(t)??void 0},I=(e,t)=>(0,A.Yz)().withPropagatedContext(e.headers,t,$),k=!1;async function L(e){let t,n;!function(){if(!k&&(k=!0,"true"===process.env.NEXT_PRIVATE_TEST_PROXY)){let{interceptTestApis:e,wrapRequestHandler:t}=r(4323);e(),I=t(I)}}(),await l();let i=void 0!==self.__BUILD_MANIFEST,s="string"==typeof self.__PRERENDER_MANIFEST?JSON.parse(self.__PRERENDER_MANIFEST):void 0;e.request.url=O(e.request.url);let a=new S.c(e.request.url,{headers:e.request.headers,nextConfig:e.request.nextConfig});for(let e of[...a.searchParams.keys()]){let t=a.searchParams.getAll(e);if(e!==R.dN&&e.startsWith(R.dN)){let r=e.substring(R.dN.length);for(let e of(a.searchParams.delete(r),t))a.searchParams.append(r,e);a.searchParams.delete(e)}}let o=a.buildId;a.buildId="";let u=e.request.headers["x-nextjs-data"];u&&"/index"===a.pathname&&(a.pathname="/");let c=(0,h.EK)(e.request.headers),d=new Map;if(!i)for(let e of w.vu){let t=e.toString().toLowerCase();c.get(t)&&(d.set(t,c.get(t)),c.delete(t))}let f=new N({page:e.page,input:(function(e,t){let r="string"==typeof e,n=r?new URL(e):e;for(let e of x)n.searchParams.delete(e);if(t)for(let e of E)n.searchParams.delete(e);return r?n.toString():n})(a,!0).toString(),init:{body:e.request.body,geo:e.request.geo,headers:c,ip:e.request.ip,method:e.request.method,nextConfig:e.request.nextConfig,signal:e.request.signal}});u&&Object.defineProperty(f,"__isData",{enumerable:!1,value:!0}),!globalThis.__incrementalCache&&e.IncrementalCache&&(globalThis.__incrementalCache=new e.IncrementalCache({appDir:!0,fetchCache:!0,minimalMode:!0,fetchCacheKeyPrefix:void 0,dev:!1,requestHeaders:e.request.headers,requestProtocol:"https",getPrerenderManifest:()=>({version:-1,routes:{},dynamicRoutes:{},notFoundRoutes:[],preview:{previewModeId:"development-id"}})}));let g=new m({request:f,page:e.page});if((t=await I(f,()=>"/middleware"===e.page||"/src/middleware"===e.page?T.B.wrap(P.F,{req:f,renderOpts:{onUpdateCookies:e=>{n=e},previewProps:(null==s?void 0:s.preview)||{previewModeId:"development-id",previewModeEncryptionKey:"",previewModeSigningKey:""}}},()=>e.handler(f,g)):e.handler(f,g)))&&!(t instanceof Response))throw TypeError("Expected an instance of Response to be returned");t&&n&&t.headers.set("set-cookie",n);let y=null==t?void 0:t.headers.get("x-middleware-rewrite");if(t&&y){let r=new S.c(y,{forceLocale:!0,headers:e.request.headers,nextConfig:e.request.nextConfig});r.host===f.nextUrl.host&&(r.buildId=o||r.buildId,t.headers.set("x-middleware-rewrite",String(r)));let n=b(String(r),String(a));u&&t.headers.set("x-nextjs-rewrite",n)}let _=null==t?void 0:t.headers.get("Location");if(t&&_&&!i){let r=new S.c(_,{forceLocale:!1,headers:e.request.headers,nextConfig:e.request.nextConfig});t=new Response(t.body,t),r.host===f.nextUrl.host&&(r.buildId=o||r.buildId,t.headers.set("Location",String(r))),u&&(t.headers.delete("Location"),t.headers.set("x-nextjs-redirect",b(String(r),String(a))))}let C=t||v.x.next(),A=C.headers.get("x-middleware-override-headers"),$=[];if(A){for(let[e,t]of d)C.headers.set(`x-middleware-request-${e}`,t),$.push(e);$.length>0&&C.headers.set("x-middleware-override-headers",A+","+$.join(","))}return{response:C,waitUntil:Promise.all(g[p]),fetchMetrics:f.fetchMetrics}}var j=r(1902),M=r.n(j);let D=0,q="x-vercel-cache-tags",Q="x-vercel-sc-headers",U="x-vercel-revalidate",B="x-vercel-cache-item-name";class F{static isAvailable(e){return!!(e._requestHeaders["x-vercel-sc-host"]||process.env.SUSPENSE_CACHE_URL)}constructor(e){if(this.debug=!!process.env.NEXT_PRIVATE_DEBUG_CACHE,this.headers={},this.headers["Content-Type"]="application/json",Q in e._requestHeaders){let t=JSON.parse(e._requestHeaders[Q]);for(let e in t)this.headers[e]=t[e];delete e._requestHeaders[Q]}let t=e._requestHeaders["x-vercel-sc-host"]||process.env.SUSPENSE_CACHE_URL,r=e._requestHeaders["x-vercel-sc-basepath"]||process.env.SUSPENSE_CACHE_BASEPATH;process.env.SUSPENSE_CACHE_AUTH_TOKEN&&(this.headers.Authorization=`Bearer ${process.env.SUSPENSE_CACHE_AUTH_TOKEN}`),t?(this.cacheEndpoint=`https://${t}${r||""}`,this.debug&&console.log("using cache endpoint",this.cacheEndpoint)):this.debug&&console.log("no cache endpoint available"),e.maxMemoryCacheSize?n||(this.debug&&console.log("using memory store for fetch cache"),n=new(M())({max:e.maxMemoryCacheSize,length({value:e}){var t;if(!e)return 25;if("REDIRECT"===e.kind)return JSON.stringify(e.props).length;if("IMAGE"===e.kind)throw Error("invariant image should not be incremental-cache");return"FETCH"===e.kind?JSON.stringify(e.data||"").length:"ROUTE"===e.kind?e.body.length:e.html.length+((null==(t=JSON.stringify(e.pageData))?void 0:t.length)||0)}})):this.debug&&console.log("not using memory store for fetch cache")}resetRequestCache(){null==n||n.reset()}async revalidateTag(e){if(this.debug&&console.log("revalidateTag",e),Date.now(){var t;return(null==s?void 0:null==(t=s.items[e])?void 0:t.revalidatedAt)&&(null==s?void 0:s.items[e].revalidatedAt)>=((null==h?void 0:h.lastModified)||Date.now())})&&(h=void 0))}return h&&(null==h?void 0:null==(r=h.value)?void 0:r.kind)==="FETCH"&&(this.loadTagsManifest(),[...l||[],...u||[]].some(e=>{var t;return!!this.revalidatedTags.includes(e)||(null==s?void 0:null==(t=s.items[e])?void 0:t.revalidatedAt)&&(null==s?void 0:s.items[e].revalidatedAt)>=((null==h?void 0:h.lastModified)||Date.now())})&&(h=void 0)),h??null}async set(...e){let[t,r,n]=e;if(null==i||i.set(t,{value:r,lastModified:Date.now()}),this.debug&&console.log("set",t),this.flushToDisk){if((null==r?void 0:r.kind)==="ROUTE"){let e=this.getFilePath(`${t}.body`,"app");await this.fs.mkdir(V().dirname(e)),await this.fs.writeFile(e,r.body);let n={headers:r.headers,status:r.status,postponed:void 0};await this.fs.writeFile(e.replace(/\.body$/,R.EX),JSON.stringify(n,null,2));return}if((null==r?void 0:r.kind)==="PAGE"){let e="string"==typeof r.pageData,n=this.getFilePath(`${t}.html`,e?"app":"pages");if(await this.fs.mkdir(V().dirname(n)),await this.fs.writeFile(n,r.html),await this.fs.writeFile(this.getFilePath(`${t}${e?this.experimental.ppr?R.Sx:R.hd:R.JT}`,e?"app":"pages"),e?r.pageData:JSON.stringify(r.pageData)),r.headers||r.status){let e={headers:r.headers,status:r.status,postponed:r.postponed};await this.fs.writeFile(n.replace(/\.html$/,R.EX),JSON.stringify(e))}}else if((null==r?void 0:r.kind)==="FETCH"){let e=this.getFilePath(t,"fetch");await this.fs.mkdir(V().dirname(e)),await this.fs.writeFile(e,JSON.stringify({...r,tags:n.tags}))}}}detectFileKind(e){if(!this.appDir&&!this.pagesDir)throw Error("Invariant: Can't determine file path kind, no page directory enabled");if(!this.appDir&&this.pagesDir)return"pages";if(this.appDir&&!this.pagesDir)return"app";let t=this.getFilePath(e,"pages");if(this.fs.existsSync(t))return"pages";if(t=this.getFilePath(e,"app"),this.fs.existsSync(t))return"app";throw Error(`Invariant: Unable to determine file path kind for ${e}`)}getFilePath(e,t){switch(t){case"fetch":return V().join(this.serverDistDir,"..","cache","fetch-cache",e);case"pages":return V().join(this.serverDistDir,"pages",e);case"app":return V().join(this.serverDistDir,"app",e);default:throw Error("Invariant: Can't determine file path kind")}}}let G=["(..)(..)","(.)","(..)","(...)"];function K(e){return void 0!==e.split("/").find(e=>G.find(t=>e.startsWith(t)))}let W=/\/\[[^/]+?\](?=\/|$)/;function J(e){return K(e)&&(e=function(e){let t,r,n;for(let i of e.split("/"))if(r=G.find(e=>i.startsWith(e))){[t,n]=e.split(r,2);break}if(!t||!r||!n)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=C(t.split("/").reduce((e,t,r,n)=>t?"("===t[0]&&t.endsWith(")")||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t:e,"")),r){case"(.)":n="/"===t?`/${n}`:t+"/"+n;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);n=t.split("/").slice(0,-1).concat(n).join("/");break;case"(...)":n="/"+n;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);n=i.slice(0,-2).concat(n).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:n}}(e).interceptedRoute),W.test(e)}"undefined"!=typeof performance&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class X extends Error{}function Y(e){return/^\/index(\/|$)/.test(e)&&!J(e)?"/index"+e:"/"===e?"/index":C(e)}function Z(e){return e.replace(/\/$/,"").replace(/\/index$/,"")||"/"}class ee{constructor({fs:e,dev:t,appDir:r,pagesDir:n,flushToDisk:i,fetchCache:s,minimalMode:a,serverDistDir:o,requestHeaders:l,requestProtocol:u,maxMemoryCacheSize:c,getPrerenderManifest:h,fetchCacheKeyPrefix:d,CurCacheHandler:f,allowedRevalidateHeaderKeys:p,experimental:g}){var m,y,v,b;this.locks=new Map,this.unlocks=new Map;let S=!!process.env.NEXT_PRIVATE_DEBUG_CACHE;this.hasCustomCacheHandler=!!f,f?S&&console.log("using custom cache handler",f.name):(e&&o&&(S&&console.log("using filesystem cache handler"),f=z),F.isAvailable({_requestHeaders:l})&&a&&s&&(S&&console.log("using fetch cache handler"),f=F)),process.env.__NEXT_TEST_MAX_ISR_CACHE&&(c=parseInt(process.env.__NEXT_TEST_MAX_ISR_CACHE,10)),this.dev=t,this.minimalMode=a,this.requestHeaders=l,this.requestProtocol=u,this.allowedRevalidateHeaderKeys=p,this.prerenderManifest=h(),this.fetchCacheKeyPrefix=d;let w=[];l[R.y3]===(null==(y=this.prerenderManifest)?void 0:null==(m=y.preview)?void 0:m.previewModeId)&&(this.isOnDemandRevalidate=!0),a&&"string"==typeof l[R.of]&&l[R.X_]===(null==(b=this.prerenderManifest)?void 0:null==(v=b.preview)?void 0:v.previewModeId)&&(w=l[R.of].split(",")),f&&(this.cacheHandler=new f({dev:t,fs:e,flushToDisk:i,serverDistDir:o,revalidatedTags:w,maxMemoryCacheSize:c,_pagesDir:!!n,_appDir:!!r,_requestHeaders:l,fetchCacheKeyPrefix:d,experimental:g}))}calculateRevalidate(e,t,r){if(r)return new Date().getTime()-1e3;let{initialRevalidateSeconds:n}=this.prerenderManifest.routes[Z(e)]||{initialRevalidateSeconds:1};return"number"==typeof n?1e3*n+t:n}_getPathname(e,t){return t?e:Y(e)}resetRequestCache(){var e,t;null==(t=this.cacheHandler)||null==(e=t.resetRequestCache)||e.call(t)}async unlock(e){let t=this.unlocks.get(e);t&&(t(),this.locks.delete(e),this.unlocks.delete(e))}async lock(e){process.env.__NEXT_INCREMENTAL_CACHE_IPC_PORT&&process.env.__NEXT_INCREMENTAL_CACHE_IPC_KEY;let t=()=>Promise.resolve(),r=this.locks.get(e);if(r)await r;else{let r=new Promise(e=>{t=async()=>{e()}});this.locks.set(e,r),this.unlocks.set(e,t)}return t}async revalidateTag(e){var t,r;return process.env.__NEXT_INCREMENTAL_CACHE_IPC_PORT&&process.env.__NEXT_INCREMENTAL_CACHE_IPC_KEY,null==(r=this.cacheHandler)?void 0:null==(t=r.revalidateTag)?void 0:t.call(r,e)}async fetchCacheKey(e,t={}){let r=[],n=new TextEncoder,i=new TextDecoder;if(t.body){if("function"==typeof t.body.getReader){let e=t.body,s=[];try{await e.pipeTo(new WritableStream({write(e){"string"==typeof e?(s.push(n.encode(e)),r.push(e)):(s.push(e),r.push(i.decode(e,{stream:!0})))}})),r.push(i.decode());let a=s.reduce((e,t)=>e+t.length,0),o=new Uint8Array(a),l=0;for(let e of s)o.set(e,l),l+=e.length;t._ogBody=o}catch(e){console.error("Problem reading body",e)}}else if("function"==typeof t.body.keys){let e=t.body;for(let n of(t._ogBody=t.body,new Set([...e.keys()]))){let t=e.getAll(n);r.push(`${n}=${(await Promise.all(t.map(async e=>"string"==typeof e?e:await e.text()))).join(",")}`)}}else if("function"==typeof t.body.arrayBuffer){let e=t.body,n=await e.arrayBuffer();r.push(await e.text()),t._ogBody=new Blob([n],{type:e.type})}else"string"==typeof t.body&&(r.push(t.body),t._ogBody=t.body)}let s=JSON.stringify(["v3",this.fetchCacheKeyPrefix||"",e,t.method,"function"==typeof(t.headers||{}).keys?Object.fromEntries(t.headers):t.headers,t.mode,t.redirect,t.credentials,t.referrer,t.referrerPolicy,t.integrity,t.cache,r]);{var a;let e=n.encode(s);return a=await crypto.subtle.digest("SHA-256",e),Array.prototype.map.call(new Uint8Array(a),e=>e.toString(16).padStart(2,"0")).join("")}}async get(e,t={}){var r,n,i;let s,a;if(process.env.__NEXT_INCREMENTAL_CACHE_IPC_PORT&&process.env.__NEXT_INCREMENTAL_CACHE_IPC_KEY,this.dev&&("fetch"!==t.kindHint||"no-cache"===this.requestHeaders["cache-control"]))return null;e=this._getPathname(e,"fetch"===t.kindHint);let o=null,l=t.revalidate,u=await (null==(r=this.cacheHandler)?void 0:r.get(e,t));if((null==u?void 0:null==(n=u.value)?void 0:n.kind)==="FETCH")return[...t.tags||[],...t.softTags||[]].some(e=>{var t;return null==(t=this.revalidatedTags)?void 0:t.includes(e)})?null:(l=l||u.value.revalidate,{isStale:(Date.now()-(u.lastModified||0))/1e3>l,value:{kind:"FETCH",data:u.value.data,revalidate:l},revalidateAfter:Date.now()+1e3*l});let c=null==(i=this.prerenderManifest.routes[Z(e)])?void 0:i.initialRevalidateSeconds;return(null==u?void 0:u.lastModified)===-1?(s=-1,a=-1*R.BR):s=!!(!1!==(a=this.calculateRevalidate(e,(null==u?void 0:u.lastModified)||Date.now(),this.dev&&"fetch"!==t.kindHint))&&a2097152){if(this.dev)throw Error("fetch for over 2MB of data can not be cached");return}e=this._getPathname(e,r.fetchCache);try{var n;void 0===r.revalidate||r.fetchCache||(this.prerenderManifest.routes[e]={experimentalPPR:void 0,dataRoute:V().posix.join("/_next/data",`${Y(e)}.json`),srcRoute:null,initialRevalidateSeconds:r.revalidate,prefetchDataRoute:void 0}),await (null==(n=this.cacheHandler)?void 0:n.set(e,t,r))}catch(t){console.warn("Failed to update prerender cache for",e,t)}}}}function et(e){let{re:t,groups:r}=e;return e=>{let n=t.exec(e);if(!n)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new X("failed to decode param")}},s={};return Object.keys(r).forEach(e=>{let t=r[e],a=n[t.pos];void 0!==a&&(s[e]=~a.indexOf("/")?a.split("/").map(e=>i(e)):t.repeat?[i(a)]:i(a))}),s}}let er=/[|\\{}()[\]^$+*?.-]/,en=/[|\\{}()[\]^$+*?.-]/g;function ei(e){return er.test(e)?e.replace(en,"\\$&"):e}var es=r(9728);function ea(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function eo(e){let{parameterizedRoute:t,groups:r}=function(e){let t=(0,es.Q)(e).slice(1).split("/"),r={},n=1;return{parameterizedRoute:t.map(e=>{let t=G.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:s,repeat:a}=ea(i[1]);return r[e]={pos:n++,repeat:a,optional:s},"/"+ei(t)+"([^/]+?)"}if(!i)return"/"+ei(e);{let{key:e,repeat:t,optional:s}=ea(i[1]);return r[e]={pos:n++,repeat:t,optional:s},t?s?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function el(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:i,keyPrefix:s}=e,{key:a,optional:o,repeat:l}=ea(n),u=a.replace(/\W/g,"");s&&(u=""+s+u);let c=!1;(0===u.length||u.length>30)&&(c=!0),isNaN(parseInt(u.slice(0,1)))||(c=!0),c&&(u=r()),s?i[u]=""+s+a:i[u]=a;let h=t?ei(t):"";return l?o?"(?:/"+h+"(?<"+u+">.+?))?":"/"+h+"(?<"+u+">.+?)":"/"+h+"(?<"+u+">[^/]+?)"}class eu{constructor(e){this.definition=e,J(e.pathname)&&(this.dynamic=et(eo(e.pathname)))}get identity(){return this.definition.pathname}get isDynamic(){return void 0!==this.dynamic}match(e){let t=this.test(e);return t?{definition:this.definition,params:t.params}:null}test(e){if(this.dynamic){let t=this.dynamic(e);return t?{params:t}:null}return e===this.definition.pathname?{}:null}}let ec=Symbol.for("__next_internal_waitUntil__"),eh=globalThis[ec]||(globalThis[ec]={waitUntilCounter:0,waitUntilResolve:void 0,waitUntilPromise:null});var ed=r(4184),ef=r(5013),ep=r(7058);function eg(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function em(e){return e.replace(/__ESC_COLON_/gi,":")}function ey(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(":"+r)&&(e=e.replace(RegExp(":"+r+"\\*","g"),":"+r+"--ESCAPED_PARAM_ASTERISKS").replace(RegExp(":"+r+"\\?","g"),":"+r+"--ESCAPED_PARAM_QUESTION").replace(RegExp(":"+r+"\\+","g"),":"+r+"--ESCAPED_PARAM_PLUS").replace(RegExp(":"+r+"(?!\\w)","g"),"--ESCAPED_PARAM_COLON"+r));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,ep.MY)("/"+e,{validate:!1})(t).slice(1)}class ev{constructor(e){this.routeModule=e,this.matcher=new eu(e.definition)}static wrap(e,t={}){let r=new ev(e);return e=>L({...e,...t,IncrementalCache:ee,handler:r.handler.bind(r)})}async handler(e,t){let{params:n}=(function({page:e,i18n:t,basePath:n,rewrites:i,pageIsDynamic:s,trailingSlash:a,caseSensitive:o}){let l,u,c;return s&&(c=(u=et(l=function(e,t){let r=function(e,t){let r;let n=(0,es.Q)(e).slice(1).split("/"),i=(r=0,()=>{let e="",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),s={};return{namedParameterizedRoute:n.map(e=>{let r=G.some(t=>e.startsWith(t)),n=e.match(/\[((?:\[.*\])|.+)\]/);if(r&&n){let[r]=e.split(n[0]);return el({getSafeRouteKey:i,interceptionMarker:r,segment:n[1],routeKeys:s,keyPrefix:t?"nxtI":void 0})}return n?el({getSafeRouteKey:i,segment:n[1],routeKeys:s,keyPrefix:t?"nxtP":void 0}):"/"+ei(e)}).join(""),routeKeys:s}}(e,t);return{...eo(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}(e,!1)))(e)),{handleRewrites:function(l,c){let h={},d=c.pathname,f=i=>{let f=(function(e,t){let r=[],n=(0,ep.Bo)(e,r,{delimiter:"/",sensitive:"boolean"==typeof(null==t?void 0:t.sensitive)&&t.sensitive,strict:null==t?void 0:t.strict}),i=(0,ep.WS)((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(n.source),n.flags):n,r);return(e,n)=>{if("string"!=typeof e)return!1;let s=i(e);if(!s)return!1;if(null==t?void 0:t.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete s.params[e.name];return{...n,...s.params}}})(i.source+(a?"(/)?":""),{removeUnnamedParams:!0,strict:!0,sensitive:!!o})(c.pathname);if((i.has||i.missing)&&f){let e=function(e,t,n,i){void 0===n&&(n=[]),void 0===i&&(i=[]);let s={},a=n=>{let i;let a=n.key;switch(n.type){case"header":a=a.toLowerCase(),i=e.headers[a];break;case"cookie":if("cookies"in e)i=e.cookies[n.key];else{var o;i=(o=e.headers,function(){let{cookie:e}=o;if(!e)return{};let{parse:t}=r(1935);return t(Array.isArray(e)?e.join("; "):e)})()[n.key]}break;case"query":i=t[a];break;case"host":{let{host:t}=(null==e?void 0:e.headers)||{};i=null==t?void 0:t.split(":",1)[0].toLowerCase()}}if(!n.value&&i)return s[function(e){let t="";for(let r=0;r64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(a)]=i,!0;if(i){let e=RegExp("^"+n.value+"$"),t=Array.isArray(i)?i.slice(-1)[0].match(e):i.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{s[e]=t.groups[e]}):"host"===n.type&&t[0]&&(s.host=t[0])),!0}return!1};return!!n.every(e=>a(e))&&!i.some(e=>a(e))&&s}(l,c.query,i.has,i.missing);e?Object.assign(f,e):f=!1}if(f){let{parsedDestination:r,destQuery:a}=function(e){let t;let r=Object.assign({},e.query);delete r.__nextLocale,delete r.__nextDefaultLocale,delete r.__nextDataReq,delete r.__nextInferredLocaleFromDefault,delete r[w.H4];let n=e.destination;for(let t of Object.keys({...e.params,...r}))n=n.replace(RegExp(":"+ei(t),"g"),"__ESC_COLON_"+t);let i=function(e){if(e.startsWith("/"))return function(e,t){let r=new URL("http://n"),n=t?new URL(t,r):e.startsWith(".")?new URL("http://n"):r,{pathname:i,searchParams:s,search:a,hash:o,href:l,origin:u}=new URL(e,n);if(u!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:eg(s),search:a,hash:o,href:l.slice(r.origin.length)}}(e);let t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:eg(t.searchParams),search:t.search}}(n),s=i.query,a=em(""+i.pathname+(i.hash||"")),o=em(i.hostname||""),l=[],u=[];(0,ep.Bo)(a,l),(0,ep.Bo)(o,u);let c=[];l.forEach(e=>c.push(e.name)),u.forEach(e=>c.push(e.name));let h=(0,ep.MY)(a,{validate:!1}),d=(0,ep.MY)(o,{validate:!1});for(let[t,r]of Object.entries(s))Array.isArray(r)?s[t]=r.map(t=>ey(em(t),e.params)):"string"==typeof r&&(s[t]=ey(em(r),e.params));let f=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!f.some(e=>c.includes(e)))for(let t of f)t in s||(s[t]=e.params[t]);if(K(a))for(let t of a.split("/")){let r=G.find(e=>t.startsWith(e));if(r){e.params["0"]=r;break}}try{let[r,n]=(t=h(e.params)).split("#",2);i.hostname=d(e.params),i.pathname=r,i.hash=(n?"#":"")+(n||""),delete i.search}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match");throw e}return i.query={...r,...i.query},{newUrl:t,destQuery:s,parsedDestination:i}}({appendParamsToQuery:!0,destination:i.destination,params:f,query:c.query});if(r.protocol)return!0;if(Object.assign(h,a,f),Object.assign(c.query,r.query),delete r.query,Object.assign(c,r),d=c.pathname,n&&(d=d.replace(RegExp(`^${n}`),"")||"/"),t){let e=(0,ef.h)(d,t.locales);d=e.pathname,c.query.nextInternalLocale=e.detectedLocale||f.nextInternalLocale}if(d===e)return!0;if(s&&u){let e=u(d);if(e)return c.query={...c.query,...e},!0}}return!1};for(let e of i.beforeFiles||[])f(e);if(d!==e){let t=!1;for(let e of i.afterFiles||[])if(t=f(e))break;if(!t&&!(()=>{let t=(0,es.Q)(d||"");return t===(0,es.Q)(e)||(null==u?void 0:u(t))})()){for(let e of i.fallback||[])if(t=f(e))break}}return h},defaultRouteRegex:l,dynamicRouteMatcher:u,defaultRouteMatches:c,getParamsFromRouteMatches:function(e,r,n){return et(function(){let{groups:e,routeKeys:i}=l;return{re:{exec:s=>{let a=Object.fromEntries(new URLSearchParams(s)),o=t&&n&&a["1"]===n;for(let e of Object.keys(a)){let t=a[e];e!==R.dN&&e.startsWith(R.dN)&&(a[e.substring(R.dN.length)]=t,delete a[e])}let l=Object.keys(i||{}),u=e=>{if(t){let i=Array.isArray(e),s=i?e[0]:e;if("string"==typeof s&&t.locales.some(e=>e.toLowerCase()===s.toLowerCase()&&(n=e,r.locale=n,!0)))return i&&e.splice(0,1),!i||0===e.length}return!1};return l.every(e=>a[e])?l.reduce((t,r)=>{let n=null==i?void 0:i[r];return n&&!u(a[r])&&(t[e[n].pos]=a[r]),t},{}):Object.keys(a).reduce((e,t)=>{if(!u(a[t])){let r=t;return o&&(r=parseInt(t,10)-1+""),Object.assign(e,{[r]:a[t]})}return e},{})}},groups:e}}())(e.headers["x-now-route-matches"])},normalizeDynamicRouteParams:(e,t)=>{var r,n,i;let s;return r=e,n=l,i=c,s=!0,n?{params:r=Object.keys(n.groups).reduce((e,a)=>{let o=r[a];"string"==typeof o&&(o=O(o)),Array.isArray(o)&&(o=o.map(e=>("string"==typeof e&&(e=O(e)),e)));let l=i[a],u=n.groups[a].optional;return((Array.isArray(l)?l.some(e=>Array.isArray(o)?o.some(t=>t.includes(e)):null==o?void 0:o.includes(e)):null==o?void 0:o.includes(l))||void 0===o&&!(u&&t))&&(s=!1),u&&(!o||Array.isArray(o)&&1===o.length&&("index"===o[0]||o[0]===`[[...${a}]]`))&&(o=void 0,delete r[a]),o&&"string"==typeof o&&n.groups[a].repeat&&(o=o.split("/")),o&&(e[a]=o),e},{}),hasValidParams:s}:{params:r,hasValidParams:!1}},normalizeVercelUrl:(e,t,r)=>(function(e,t,r,n,i){if(n&&t&&i){let t=(0,ed.parse)(e.url,!0);for(let e of(delete t.search,Object.keys(t.query)))(e!==R.dN&&e.startsWith(R.dN)||(r||Object.keys(i.groups)).includes(e))&&delete t.query[e];e.url=(0,ed.format)(t)}})(e,t,r,s,l),interpolateDynamicPath:(e,t)=>(function(e,t,r){if(!r)return e;for(let n of Object.keys(r.groups)){let{optional:i,repeat:s}=r.groups[n],a=`[${s?"...":""}${n}]`;i&&(a=`[${a}]`);let o=e.indexOf(a);if(o>-1){let r;let i=t[n];r=Array.isArray(i)?i.map(e=>e&&encodeURIComponent(e)).join("/"):i?encodeURIComponent(i):"",e=e.slice(0,o)+r+e.slice(o+a.length)}}return e})(e,t,l)}})({pageIsDynamic:this.matcher.isDynamic,page:this.matcher.definition.pathname,basePath:e.nextUrl.basePath,rewrites:{},caseSensitive:!1}).normalizeDynamicRouteParams(eg(e.nextUrl.searchParams)),i="string"==typeof self.__PRERENDER_MANIFEST?JSON.parse(self.__PRERENDER_MANIFEST):void 0,s={params:n,prerenderManifest:{version:4,routes:{},dynamicRoutes:{},preview:(null==i?void 0:i.preview)||{previewModeEncryptionKey:"",previewModeId:"development-id",previewModeSigningKey:""},notFoundRoutes:[]},renderOpts:{supportsDynamicHTML:!0,experimental:{ppr:!1}}},a=await this.routeModule.handle(e,s),o=[eh.waitUntilPromise];return s.renderOpts.waitUntil&&o.push(s.renderOpts.waitUntil),t.waitUntil(Promise.all(o)),a}}},6286:(e,t,r)=>{"use strict";r.d(t,{Y5:()=>s,cR:()=>i,qJ:()=>n});class n extends Error{constructor({page:e}){super(`The middleware "${e}" accepts an async API directly with the form: + + export function middleware(request, event) { + return NextResponse.redirect('/new-location') + } + + Read more: https://nextjs.org/docs/messages/middleware-new-signature + `)}}class i extends Error{constructor(){super(`The request.page has been deprecated in favour of \`URLPattern\`. + Read more: https://nextjs.org/docs/messages/middleware-request-page + `)}}class s extends Error{constructor(){super(`The request.ua has been removed in favour of \`userAgent\` function. + Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent + `)}}},5662:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n.x});var n=r(9715)},6095:(e,t,r)=>{"use strict";r.d(t,{c:()=>d});var n=r(9728);function i(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:""}}function s(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:s}=i(e);return""+t+r+n+s}function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:s}=i(e);return""+r+t+n+s}function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=i(e);return r===t||r.startsWith(t+"/")}var l=r(5013);let u=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function c(e,t){return new URL(String(e).replace(u,"localhost"),t&&String(t).replace(u,"localhost"))}let h=Symbol("NextURLInternal");class d{constructor(e,t,r){let n,i;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,i=r||{}):i=r||t||{},this[h]={url:c(e,n??i.base),options:i,basePath:""},this.analyze()}analyze(){var e,t,r,n,i;let s=function(e,t){var r,n;let{basePath:i,i18n:s,trailingSlash:a}=null!=(r=t.nextConfig)?r:{},u={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):a};i&&o(u.pathname,i)&&(u.pathname=function(e,t){if(!o(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}(u.pathname,i),u.basePath=i);let c=u.pathname;if(u.pathname.startsWith("/_next/data/")&&u.pathname.endsWith(".json")){let e=u.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];u.buildId=r,c="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(u.pathname=c)}if(s){let e=t.i18nProvider?t.i18nProvider.analyze(u.pathname):(0,l.h)(u.pathname,s.locales);u.locale=e.detectedLocale,u.pathname=null!=(n=e.pathname)?n:u.pathname,!e.detectedLocale&&u.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(c):(0,l.h)(c,s.locales)).detectedLocale&&(u.locale=e.detectedLocale)}return u}(this[h].url.pathname,{nextConfig:this[h].options.nextConfig,parseData:!0,i18nProvider:this[h].options.i18nProvider}),a=function(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()}(this[h].url,this[h].options.headers);this[h].domainLocale=this[h].options.i18nProvider?this[h].options.i18nProvider.detectDomainLocale(a):function(e,t,r){if(e)for(let s of(r&&(r=r.toLowerCase()),e)){var n,i;if(t===(null==(n=s.domain)?void 0:n.split(":",1)[0].toLowerCase())||r===s.defaultLocale.toLowerCase()||(null==(i=s.locales)?void 0:i.some(e=>e.toLowerCase()===r)))return s}}(null==(t=this[h].options.nextConfig)?void 0:null==(e=t.i18n)?void 0:e.domains,a);let u=(null==(r=this[h].domainLocale)?void 0:r.defaultLocale)||(null==(i=this[h].options.nextConfig)?void 0:null==(n=i.i18n)?void 0:n.defaultLocale);this[h].url.pathname=s.pathname,this[h].defaultLocale=u,this[h].basePath=s.basePath??"",this[h].buildId=s.buildId,this[h].locale=s.locale??u,this[h].trailingSlash=s.trailingSlash}formatPathname(){var e;let t;return t=function(e,t,r,n){if(!t||t===r)return e;let i=e.toLowerCase();return!n&&(o(i,"/api")||o(i,"/"+t.toLowerCase()))?e:s(e,"/"+t)}((e={basePath:this[h].basePath,buildId:this[h].buildId,defaultLocale:this[h].options.forceLocale?void 0:this[h].defaultLocale,locale:this[h].locale,pathname:this[h].url.pathname,trailingSlash:this[h].trailingSlash}).pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix),(e.buildId||!e.trailingSlash)&&(t=(0,n.Q)(t)),e.buildId&&(t=a(s(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=s(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:a(t,"/"):(0,n.Q)(t)}formatSearch(){return this[h].url.search}get buildId(){return this[h].buildId}set buildId(e){this[h].buildId=e}get locale(){return this[h].locale??""}set locale(e){var t,r;if(!this[h].locale||!(null==(r=this[h].options.nextConfig)?void 0:null==(t=r.i18n)?void 0:t.locales.includes(e)))throw TypeError(`The NextURL configuration includes no locale "${e}"`);this[h].locale=e}get defaultLocale(){return this[h].defaultLocale}get domainLocale(){return this[h].domainLocale}get searchParams(){return this[h].url.searchParams}get host(){return this[h].url.host}set host(e){this[h].url.host=e}get hostname(){return this[h].url.hostname}set hostname(e){this[h].url.hostname=e}get port(){return this[h].url.port}set port(e){this[h].url.port=e}get protocol(){return this[h].url.protocol}set protocol(e){this[h].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[h].url=c(e),this.analyze()}get origin(){return this[h].url.origin}get pathname(){return this[h].url.pathname}set pathname(e){this[h].url.pathname=e}get hash(){return this[h].url.hash}set hash(e){this[h].url.hash=e}get search(){return this[h].url.search}set search(e){this[h].url.search=e}get password(){return this[h].url.password}set password(e){this[h].url.password=e}get username(){return this[h].url.username}set username(e){this[h].url.username=e}get basePath(){return this[h].basePath}set basePath(e){this[h].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[h].options)}}},3323:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var n=r(6160);class i extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new i}}class s extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,i){if("symbol"==typeof r)return n.g.get(t,r,i);let s=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===s);if(void 0!==a)return n.g.get(t,a,i)},set(t,r,i,s){if("symbol"==typeof r)return n.g.set(t,r,i,s);let a=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===a);return n.g.set(t,o??r,i,s)},has(t,r){if("symbol"==typeof r)return n.g.has(t,r);let i=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0!==s&&n.g.has(t,s)},deleteProperty(t,r){if("symbol"==typeof r)return n.g.deleteProperty(t,r);let i=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0===s||n.g.deleteProperty(t,s)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return i.callable;default:return n.g.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new s(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()}}},6160:(e,t,r)=>{"use strict";r.d(t,{g:()=>n});class n{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)}}},8121:(e,t,r)=>{"use strict";r.d(t,{Qb:()=>a,_5:()=>l,vr:()=>u});var n=r(4326),i=r(6160);class s 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 s}}class a{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return s.callable;default:return i.g.get(e,t,r)}}})}}let o=Symbol.for("next.mutated.cookies");function l(e,t){let r=function(e){let t=e[o];return t&&Array.isArray(t)&&0!==t.length?t:[]}(t);if(0===r.length)return!1;let i=new n.n(e),s=i.getAll();for(let e of r)i.set(e);for(let e of s)i.set(e);return!0}class u{static wrap(e,t){let r=new n.n(new Headers);for(let t of e.getAll())r.set(t);let s=[],a=new Set,l=()=>{var e;let i=null==fetch.__nextGetStaticStore?void 0:null==(e=fetch.__nextGetStaticStore.call(fetch))?void 0:e.getStore();if(i&&(i.pathWasRevalidated=!0),s=r.getAll().filter(e=>a.has(e.name)),t){let e=[];for(let t of s){let r=new n.n(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case o:return s;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 i.g.get(e,t,r)}}})}}},4326:(e,t,r)=>{"use strict";r.d(t,{n:()=>n.ResponseCookies,q:()=>n.RequestCookies});var n=r(65)},9858:(e,t,r)=>{"use strict";r.d(t,{I:()=>l});var n=r(6095),i=r(2073),s=r(6286),a=r(4326);let o=Symbol("internal request");class l extends Request{constructor(e,t={}){let r="string"!=typeof e&&"url"in e?e.url:String(e);(0,i.r4)(r),e instanceof Request?super(e,t):super(r,t);let s=new n.c(r,{headers:(0,i.lb)(this.headers),nextConfig:t.nextConfig});this[o]={cookies:new a.q(this.headers),geo:t.geo||{},ip:t.ip,nextUrl:s,url:s.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,geo:this.geo,ip:this.ip,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[o].cookies}get geo(){return this[o].geo}get ip(){return this[o].ip}get nextUrl(){return this[o].nextUrl}get page(){throw new s.cR}get ua(){throw new s.Y5}get url(){return this[o].url}}},9715:(e,t,r)=>{"use strict";r.d(t,{x:()=>u});var n=r(6095),i=r(2073),s=r(4326);let a=Symbol("internal response"),o=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,i]of e.request.headers)t.set("x-middleware-request-"+n,i),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 s.n(this.headers),url:t.url?new n.c(t.url,{headers:(0,i.lb)(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(!o.has(r))throw RangeError('Failed to execute "redirect" on "response": Invalid status code');let n="object"==typeof t?t:{},s=new Headers(null==n?void 0:n.headers);return s.set("Location",(0,i.r4)(e)),new u(null,{...n,headers:s,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,i.r4)(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})}}},2073:(e,t,r)=>{"use strict";function n(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 i(e){let t={},r=[];if(e)for(let[n,i]of e.entries())"set-cookie"===n.toLowerCase()?(r.push(...function(e){var t,r,n,i,s,a=[],o=0;function l(){for(;o=e.length)&&a.push(e.substring(t,e.length))}return a}(i)),t[n]=1===r.length?r[0]:r):t[n]=i;return t}function s(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})}}r.d(t,{EK:()=>n,lb:()=>i,r4:()=>s})},4532:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AppRouterContext:()=>o,GlobalLayoutRouterContext:()=>u,LayoutRouterContext:()=>l,MissingSlotContext:()=>h,TemplateContext:()=>c});var n=r(4421);let i=(0,n.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js`),{__esModule:s,$$typeof:a}=i;i.default;let o=(0,n.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js#AppRouterContext`),l=(0,n.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js#LayoutRouterContext`),u=(0,n.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js#GlobalLayoutRouterContext`),c=(0,n.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js#TemplateContext`),h=(0,n.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/shared/lib/app-router-context.shared-runtime.js#MissingSlotContext`)},5013:(e,t,r)=>{"use strict";function n(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}}r.d(t,{h:()=>n})},9624:(e,t,r)=>{"use strict";let n;n=r(1193),e.exports=n},5406:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},9728:(e,t,r)=>{"use strict";function n(e){return e.replace(/\/$/,"")||"/"}r.d(t,{Q:()=>n})},5501:(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,{withRequest:function(){return s},getTestReqInfo:function(){return a}});let n=new(r(2067)).AsyncLocalStorage;function i(e,t){let r=t.header(e,"next-test-proxy-port");if(r)return{url:t.url(e),proxyPort:Number(r),testData:t.header(e,"next-test-data")||""}}function s(e,t,r){let s=i(e,t);return s?n.run(s,r):r()}function a(e,t){return n.getStore()||(e&&t?i(e,t):void 0)}},3007:(e,t,r)=>{"use strict";var n=r(6195).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{reader:function(){return s},handleFetch:function(){return o},interceptFetch:function(){return l}});let i=r(5501),s={url:e=>e.url,header:(e,t)=>e.headers.get(t)};async function a(e,t){let{url:r,method:i,headers:s,body:a,cache:o,credentials:l,integrity:u,mode:c,redirect:h,referrer:d,referrerPolicy:f}=t;return{testData:e,api:"fetch",request:{url:r,method:i,headers:[...Array.from(s),["next-test-stack",function(){let e=(Error().stack??"").split("\n");for(let t=1;t0){e=e.slice(t);break}return(e=(e=(e=e.filter(e=>!e.includes("/next/dist/"))).slice(0,5)).map(e=>e.replace("webpack-internal:///(rsc)/","").trim())).join(" ")}()]],body:a?n.from(await t.arrayBuffer()).toString("base64"):null,cache:o,credentials:l,integrity:u,mode:c,redirect:h,referrer:d,referrerPolicy:f}}}async function o(e,t){let r=(0,i.getTestReqInfo)(t,s);if(!r)throw Error(`No test info for ${t.method} ${t.url}`);let{testData:o,proxyPort:l}=r,u=await a(o,t),c=await e(`http://localhost:${l}`,{method:"POST",body:JSON.stringify(u),next:{internal:!0}});if(!c.ok)throw Error(`Proxy request failed: ${c.status}`);let h=await c.json(),{api:d}=h;switch(d){case"continue":return e(t);case"abort":case"unhandled":throw Error(`Proxy request aborted [${t.method} ${t.url}]`)}return function(e){let{status:t,headers:r,body:i}=e.response;return new Response(i?n.from(i,"base64"):null,{status:t,headers:new Headers(r)})}(h)}function l(e){return r.g.fetch=function(t,r){var n;return(null==r?void 0:null==(n=r.next)?void 0:n.internal)?e(t,r):o(e,new Request(t,r))},()=>{r.g.fetch=e}}},4323:(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,{interceptTestApis:function(){return s},wrapRequestHandler:function(){return a}});let n=r(5501),i=r(3007);function s(){return(0,i.interceptFetch)(r.g.fetch)}function a(e){return(t,r)=>(0,n.withRequest)(t,i.reader,()=>e(t,r))}},7887:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});let n=(0,r(4744).P)()},4744:(e,t,r)=>{"use strict";r.d(t,{P:()=>a});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class i{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let s=globalThis.AsyncLocalStorage;function a(){return s?new s:new i}},4359:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});let n=(0,r(4744).P)()},5364:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(4744).P)()},7921:(e,t,r)=>{"use strict";r.d(t,{RQ:()=>h,UI:()=>p,dZ:()=>l,lw:()=>d,qD:()=>f,wH:()=>u});var n=r(2396),i=r(2209),s=r(5469),a=r(1677),o=r(1404);class l{constructor(e){this.table=e}static{this[i.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[i.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===o.d)return{...e[o.d],name:this.alias,isAlias:!0};if(t===a.iA.Symbol.Columns){let t=e[a.iA.Symbol.Columns];if(!t)return t;let r={};return Object.keys(t).map(n=>{r[n]=new Proxy(t[n],new l(new Proxy(e,this)))}),r}let r=e[t];return(0,i.is)(r,n.s)?new Proxy(r,new l(new Proxy(e,this))):r}}class c{constructor(e){this.alias=e}static{this[i.Q]="RelationTableAliasProxyHandler"}get(e,t){return"sourceTable"===t?h(e.sourceTable,this.alias):e[t]}}function h(e,t){return new Proxy(e,new u(t,!1))}function d(e,t){return new Proxy(e,new l(new Proxy(e.table,new u(t,!1))))}function f(e,t){return new s.$s.Aliased(p(e.sql,t),e.fieldAlias)}function p(e,t){return s.i6.join(e.queryChunks.map(e=>(0,i.is)(e,n.s)?d(e,t):(0,i.is)(e,s.$s)?p(e,t):(0,i.is)(e,s.$s.Aliased)?f(e,t):e))}},2878:(e,t,r)=>{"use strict";r.d(t,{L:()=>i});var n=r(2209);class i{static{this[n.Q]="ColumnBuilder"}constructor(e,t,r){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:r}}$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}}},2396:(e,t,r)=>{"use strict";r.d(t,{s:()=>i});var n=r(2209);class i{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[n.Q]="Column"}mapFromDriverValue(e){return e}mapToDriverValue(e){return e}}},2209:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n,is:()=>i});let n=Symbol.for("drizzle:entityKind");function i(e,t){if(!e||"object"!=typeof e)return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,n))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 r=e.constructor;if(r)for(;r;){if(n in r&&r[n]===t[n])return!0;r=Object.getPrototypeOf(r)}return!1}Symbol.for("drizzle:hasOwnEntityKind")},2688:(e,t,r)=>{"use strict";r.d(t,{F:()=>s,k:()=>i});var n=r(2209);class i extends Error{static{this[n.Q]="DrizzleError"}constructor({message:e,cause:t}){super(e),this.name="DrizzleError",this.cause=t}}class s extends i{static{this[n.Q]="TransactionRollbackError"}constructor(){super({message:"Rollback"})}}},8018:(e,t,r)=>{"use strict";r.d(t,{CK:()=>s,ut:()=>a});var n=r(2209),i=r(4131);function s(...e){return e[0].columns?new a(e[0].columns,e[0].name):new a(e)}class a{static{this[n.Q]="PgPrimaryKeyBuilder"}constructor(e,t){this.columns=e,this.name=t}build(e){return new o(e,this.columns,this.name)}}class o{constructor(e,t,r){this.table=e,this.columns=t,this.name=r}static{this[n.Q]="PgPrimaryKey"}getName(){return this.name??`${this.table[i.YA.Symbol.Name]}_${this.columns.map(e=>e.name).join("_")}_pk`}}},4131:(e,t,r)=>{"use strict";let n;r.d(t,{YA:()=>o,af:()=>l});var i=r(2209),s=r(1677);let a=Symbol.for("drizzle:PgInlineForeignKeys");class o extends s.iA{static{n=s.iA.Symbol.ExtraConfigBuilder}static{this[i.Q]="PgTable"}static{this.Symbol=Object.assign({},s.iA.Symbol,{InlineForeignKeys:a})}constructor(...e){super(...e),this[a]=[],this[n]=void 0}}let l=(e,t,r)=>(function(e,t,r,n,i=e){let l=new o(e,n,i),u=Object.fromEntries(Object.entries(t).map(([e,t])=>{let r=t.build(l);return l[a].push(...t.buildForeignKeys(r,l)),[e,r]})),c=Object.assign(l,u);return c[s.iA.Symbol.Columns]=u,r&&(c[o.Symbol.ExtraConfigBuilder]=r),c})(e,t,r,void 0)},678:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(2209);class i{static{this[n.Q]="TypedQueryBuilder"}getSelectedFields(){return this._.selectedFields}}},130:(e,t,r)=>{"use strict";let n;r.d(t,{N:()=>s});var i=r(2209);class s{static{n=Symbol.toStringTag}static{this[i.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[n]="QueryPromise"}}},2801:(e,t,r)=>{"use strict";r.d(t,{sj:()=>p,fh:()=>f,_J:()=>S,pb:()=>y,vU:()=>g,pl:()=>m,WX:()=>function e(t,r,n,a,o=e=>e){let u={};for(let[c,h]of a.entries())if(h.isJson){let i=r.relations[h.tsKey],a=n[c],l="string"==typeof a?JSON.parse(a):a;u[h.tsKey]=(0,s.is)(i,f)?l&&e(t,t[h.relationTableTsKey],l,h.selection,o):l.map(r=>e(t,t[h.relationTableTsKey],r,h.selection,o))}else{let e;let t=o(n[c]),r=h.field;e=(0,s.is)(r,i.s)?r:(0,s.is)(r,l.$s)?r.decoder:r.sql.decoder,u[h.tsKey]=null===t?null:e.mapFromDriverValue(t)}return u},wG:()=>b,lE:()=>v});var n=r(1677),i=r(2396),s=r(2209),a=r(8018),o=r(9355),l=r(5469);function u(e){return l.i6`${e} asc`}function c(e){return l.i6`${e} desc`}class h{constructor(e,t,r){this.sourceTable=e,this.referencedTable=t,this.relationName=r,this.referencedTableName=t[n.iA.Symbol.Name]}static{this[s.Q]="Relation"}}class d{constructor(e,t){this.table=e,this.config=t}static{this[s.Q]="Relations"}}class f extends h{constructor(e,t,r,n){super(e,t,r?.relationName),this.config=r,this.isNullable=n}static{this[s.Q]="One"}withFieldName(e){let t=new f(this.sourceTable,this.referencedTable,this.config,this.isNullable);return t.fieldName=e,t}}class p extends h{constructor(e,t,r){super(e,t,r?.relationName),this.config=r}static{this[s.Q]="Many"}withFieldName(e){let t=new p(this.sourceTable,this.referencedTable,this.config);return t.fieldName=e,t}}function g(){return{and:o.xD,between:o.vX,eq:o.eq,exists:o.Gg,gt:o.gt,gte:o.eg,ilike:o.o$,inArray:o.d3,isNull:o.Ft,isNotNull:o.K0,like:o.vL,lt:o.lt,lte:o.G,ne:o.ne,not:o.ff,notBetween:o.OL,notExists:o.UN,notLike:o.Qg,notIlike:o.mM,notInArray:o.Nl,or:o.or,sql:l.i6}}function m(){return{sql:l.i6,asc:u,desc:c}}function y(e,t){1===Object.keys(e).length&&"default"in e&&!(0,s.is)(e.default,n.iA)&&(e=e.default);let r={},i={},o={};for(let[l,u]of Object.entries(e))if((0,n.wb)(u)){let e=u[n.iA.Symbol.Name],t=i[e];for(let i of(r[e]=l,o[l]={tsName:l,dbName:u[n.iA.Symbol.Name],schema:u[n.iA.Symbol.Schema],columns:u[n.iA.Symbol.Columns],relations:t?.relations??{},primaryKey:t?.primaryKey??[]},Object.values(u[n.iA.Symbol.Columns])))i.primary&&o[l].primaryKey.push(i);let c=u[n.iA.Symbol.ExtraConfigBuilder]?.(u);if(c)for(let e of Object.values(c))(0,s.is)(e,a.ut)&&o[l].primaryKey.push(...e.columns)}else if((0,s.is)(u,d)){let e;let s=u.table[n.iA.Symbol.Name],a=r[s];for(let[r,n]of Object.entries(u.config(t(u.table))))if(a){let t=o[a];t.relations[r]=n,e&&t.primaryKey.push(...e)}else s in i||(i[s]={relations:{},primaryKey:e}),i[s].relations[r]=n}return{tables:o,tableNamesMap:r}}function v(e,t){return new d(e,e=>Object.fromEntries(Object.entries(t(e)).map(([e,t])=>[e,t.withFieldName(e)])))}function b(e,t,r){if((0,s.is)(r,f)&&r.config)return{fields:r.config.fields,references:r.config.references};let i=t[r.referencedTable[n.iA.Symbol.Name]];if(!i)throw Error(`Table "${r.referencedTable[n.iA.Symbol.Name]}" not found in schema`);let a=e[i];if(!a)throw Error(`Table "${i}" not found in schema`);let o=r.sourceTable,l=t[o[n.iA.Symbol.Name]];if(!l)throw Error(`Table "${o[n.iA.Symbol.Name]}" not found in schema`);let u=[];for(let e of Object.values(a.relations))(r.relationName&&r!==e&&e.relationName===r.relationName||!r.relationName&&e.referencedTable===r.sourceTable)&&u.push(e);if(u.length>1)throw r.relationName?Error(`There are multiple relations with name "${r.relationName}" in table "${i}"`):Error(`There are multiple relations between "${i}" and "${r.sourceTable[n.iA.Symbol.Name]}". Please specify relation name`);if(u[0]&&(0,s.is)(u[0],f)&&u[0].config)return{fields:u[0].config.references,references:u[0].config.fields};throw Error(`There is not enough information to infer relation "${l}.${r.fieldName}"`)}function S(e){return{one:function(t,r){return new f(e,t,r,r?.fields.reduce((e,t)=>e&&t.notNull,!0)??!1)},many:function(t,r){return new p(e,t,r)}}}},4711:(e,t,r)=>{"use strict";r.d(t,{e:()=>u});var n=r(7921),i=r(2396),s=r(2209),a=r(5469),o=r(4135),l=r(1404);class u{static{this[s.Q]="SelectionProxyHandler"}constructor(e){this.config={...e}}get(e,t){if(t===o.g1)return{...e[o.g1],selection:new Proxy(e[o.g1].selection,this)};if(t===l.d)return{...e[l.d],selectedFields:new Proxy(e[l.d].selectedFields,this)};if("symbol"==typeof t)return e[t];let r=((0,s.is)(e,o.k)?e[o.g1].selection:(0,s.is)(e,a.G7)?e[l.d].selectedFields:e)[t];if((0,s.is)(r,a.$s.Aliased)){if("sql"===this.config.sqlAliasedBehavior&&!r.isSelectionField)return r.sql;let e=r.clone();return e.isSelectionField=!0,e}if((0,s.is)(r,a.$s)){if("sql"===this.config.sqlBehavior)return r;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,s.is)(r,i.s)?this.config.alias?new Proxy(r,new n.dZ(new Proxy(r.table,new n.wH(this.config.alias,this.config.replaceOriginalName??!1)))):r:"object"!=typeof r||null===r?r:new Proxy(r,new u(this.config))}}},9355:(e,t,r)=>{"use strict";r.d(t,{Ft:()=>b,G:()=>m,Gg:()=>w,K0:()=>S,Nl:()=>v,OL:()=>E,Qg:()=>O,UN:()=>_,d3:()=>y,eg:()=>p,eq:()=>l,ff:()=>d,gt:()=>f,lt:()=>g,mM:()=>T,ne:()=>u,o$:()=>R,or:()=>h,vL:()=>C,vX:()=>x,xD:()=>c});var n=r(2396),i=r(2209),s=r(1677),a=r(5469);function o(e,t){return!(0,a._B)(t)||(0,a.zl)(e)||(0,i.is)(e,a.dO)||(0,i.is)(e,a.Vm)||(0,i.is)(e,n.s)||(0,i.is)(e,s.iA)||(0,i.is)(e,a.G7)?e:new a.dO(e,t)}let l=(e,t)=>a.i6`${e} = ${o(t,e)}`,u=(e,t)=>a.i6`${e} <> ${o(t,e)}`;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(" and ")),new a.Zm(")")])}function h(...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 d(e){return a.i6`not ${e}`}let f=(e,t)=>a.i6`${e} > ${o(t,e)}`,p=(e,t)=>a.i6`${e} >= ${o(t,e)}`,g=(e,t)=>a.i6`${e} < ${o(t,e)}`,m=(e,t)=>a.i6`${e} <= ${o(t,e)}`;function y(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=>o(t,e))}`}return a.i6`${e} in ${o(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=>o(t,e))}`}return a.i6`${e} not in ${o(t,e)}`}function b(e){return a.i6`${e} is null`}function S(e){return a.i6`${e} is not null`}function w(e){return a.i6`exists ${e}`}function _(e){return a.i6`not exists ${e}`}function x(e,t,r){return a.i6`${e} between ${o(t,e)} and ${o(r,e)}`}function E(e,t,r){return a.i6`${e} not between ${o(t,e)} and ${o(r,e)}`}function C(e,t){return a.i6`${e} like ${t}`}function O(e,t){return a.i6`${e} not like ${t}`}function R(e,t){return a.i6`${e} ilike ${t}`}function T(e,t){return a.i6`${e} not ilike ${t}`}},5469:(e,t,r)=>{"use strict";r.d(t,{$s:()=>d,G7:()=>w,Pr:()=>S,Vm:()=>b,Zm:()=>h,_B:()=>p,dO:()=>y,i6:()=>v,zl:()=>c});var n=r(2209),i=r(4135),s=r(8772),a=r(1404),o=r(2396),l=r(1677);class u{static{this[n.Q]="FakePrimitiveParam"}}function c(e){return"object"==typeof e&&null!==e&&"getSQL"in e&&"function"==typeof e.getSQL}class h{static{this[n.Q]="StringChunk"}constructor(e){this.value=Array.isArray(e)?e:[e]}getSQL(){return new d([this])}}class d{constructor(e){this.decoder=g,this.shouldInlineParams=!1,this.queryChunks=e}static{this[n.Q]="SQL"}append(e){return this.queryChunks.push(...e.queryChunks),this}toQuery(e){return s.Z.startActiveSpan("drizzle.buildSQL",t=>{let r=this.buildQueryFromSourceParams(this.queryChunks,e);return t?.setAttributes({"drizzle.query.text":r.sql,"drizzle.query.params":JSON.stringify(r.params)}),r})}buildQueryFromSourceParams(e,t){let r=Object.assign({},t,{inlineParams:t.inlineParams||this.shouldInlineParams,paramStartIndex:t.paramStartIndex||{value:0}}),{escapeName:s,escapeParam:u,prepareTyping:p,inlineParams:g,paramStartIndex:m}=r;return function(e){let t={sql:"",params:[]};for(let r of e)t.sql+=r.sql,t.params.push(...r.params),r.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...r.typings));return t}(e.map(e=>{if((0,n.is)(e,h))return{sql:e.value.join(""),params:[]};if((0,n.is)(e,f))return{sql:s(e.value),params:[]};if(void 0===e)return{sql:"",params:[]};if(Array.isArray(e)){let t=[new h("(")];for(let[r,n]of e.entries())t.push(n),re},m={mapToDriverValue:e=>e};({...g,...m});class y{constructor(e,t=m){this.value=e,this.encoder=t}static{this[n.Q]="Param"}getSQL(){return new d([this])}}function v(e,...t){let r=[];for(let[n,i]of((t.length>0||e.length>0&&""!==e[0])&&r.push(new h(e[0])),t.entries()))r.push(i,new h(e[n+1]));return new d(r)}(e=>{e.empty=function(){return new d([])},e.fromList=function(e){return new d(e)},e.raw=function(e){return new d([new h(e)])},e.join=function(e,t){let r=[];for(let[n,i]of e.entries())n>0&&void 0!==t&&r.push(t),r.push(i);return new d(r)},e.identifier=function(e){return new f(e)},e.placeholder=function(e){return new b(e)},e.param=function(e,t){return new y(e,t)}})(v||(v={})),(e=>{class t{constructor(e,t){this.isSelectionField=!1,this.sql=e,this.fieldAlias=t}static{this[n.Q]="SQL.Aliased"}getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(d||(d={}));class b{constructor(e){this.name=e}static{this[n.Q]="Placeholder"}getSQL(){return new d([this])}}function S(e,t){return e.map(e=>{if((0,n.is)(e,b)){if(!(e.name in t))throw Error(`No value for placeholder "${e.name}" was provided`);return t[e.name]}return e})}class w{static{this[n.Q]="View"}constructor({name:e,schema:t,selectedFields:r,query:n}){this[a.d]={name:e,originalName:e,schema:t,selectedFields:r,query:n,isExisting:!n,isAlias:!1}}getSQL(){return new d([this])}}o.s.prototype.getSQL=function(){return new d([this])},l.iA.prototype.getSQL=function(){return new d([this])},i.k.prototype.getSQL=function(){return new d([this])}},7488:(e,t,r)=>{"use strict";r.d(t,{l:()=>p,d:()=>f});var n=r(2878),i=r(2396),s=r(2209),a=r(5315);class o{static{this[s.Q]="SQLiteForeignKeyBuilder"}constructor(e,t){this.reference=()=>{let{name:t,columns:r,foreignColumns:n}=e();return{name:t,columns:r,foreignTable:n[0].table,foreignColumns:n}},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 l(e,this)}}class l{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static{this[s.Q]="SQLiteForeignKey"}getName(){let{name:e,columns:t,foreignColumns:r}=this.reference(),n=t.map(e=>e.name),i=r.map(e=>e.name),s=[this.table[a.xA.Symbol.Name],...n,r[0].table[a.xA.Symbol.Name],...i];return e??`${s.join("_")}_fk`}}function u(e,t){return`${e[a.xA.Symbol.Name]}_${t.join("_")}_unique`}class c{constructor(e,t){this.name=t,this.columns=e}static{this[s.Q]="SQLiteUniqueConstraintBuilder"}build(e){return new d(e,this.columns,this.name)}}class h{static{this[s.Q]="SQLiteUniqueOnConstraintBuilder"}constructor(e){this.name=e}on(...e){return new c(e,this.name)}}class d{constructor(e,t,r){this.table=e,this.columns=t,this.name=r??u(this.table,this.columns.map(e=>e.name))}static{this[s.Q]="SQLiteUniqueConstraint"}getName(){return this.name}}class f extends n.L{static{this[s.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:r,actions:n})=>((r,n)=>{let i=new o(()=>({columns:[e],foreignColumns:[r()]}));return n.onUpdate&&i.onUpdate(n.onUpdate),n.onDelete&&i.onDelete(n.onDelete),i.build(t)})(r,n))}constructor(...e){super(...e),this.foreignKeyConfigs=[]}}class p extends i.s{constructor(e,t){t.uniqueName||(t.uniqueName=u(e,[t.name])),super(e,t),this.table=e}static{this[s.Q]="SQLiteColumn"}}},2404:(e,t,r)=>{"use strict";r.d(t,{_L:()=>p,e$:()=>g});var n=r(2209),i=r(5469),s=r(7488);class a extends s.d{static{this[n.Q]="SQLiteBaseIntegerBuilder"}constructor(e,t,r){super(e,t,r),this.config.autoIncrement=!1}primaryKey(e){return e?.autoIncrement&&(this.config.autoIncrement=!0),this.config.hasDefault=!0,super.primaryKey()}}class o extends s.l{static{this[n.Q]="SQLiteBaseInteger"}getSQLType(){return"integer"}constructor(...e){super(...e),this.autoIncrement=this.config.autoIncrement}}class l extends a{static{this[n.Q]="SQLiteIntegerBuilder"}constructor(e){super(e,"number","SQLiteInteger")}build(e){return new u(e,this.config)}}class u extends o{static{this[n.Q]="SQLiteInteger"}}class c extends a{static{this[n.Q]="SQLiteTimestampBuilder"}constructor(e,t){super(e,"date","SQLiteTimestamp"),this.config.mode=t}defaultNow(){return this.default(i.i6`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build(e){return new h(e,this.config)}}class h extends o{static{this[n.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 d extends a{static{this[n.Q]="SQLiteBooleanBuilder"}constructor(e,t){super(e,"boolean","SQLiteBoolean"),this.config.mode=t}build(e){return new f(e,this.config)}}class f extends o{static{this[n.Q]="SQLiteBoolean"}mapFromDriverValue(e){return 1===Number(e)}mapToDriverValue(e){return e?1:0}constructor(...e){super(...e),this.mode=this.config.mode}}function p(e,t){return t?.mode==="timestamp"||t?.mode==="timestamp_ms"?new c(e,t.mode):t?.mode==="boolean"?new d(e,t.mode):new l(e)}let g=p},1701:(e,t,r)=>{"use strict";r.d(t,{fL:()=>u});var n=r(2209),i=r(7488);class s extends i.d{static{this[n.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 i.l{static{this[n.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 o extends i.d{static{this[n.Q]="SQLiteTextJsonBuilder"}constructor(e){super(e,"json","SQLiteTextJson")}build(e){return new l(e,this.config)}}class l extends i.l{static{this[n.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 o(e):new s(e,t)}},4078:(e,t,r)=>{"use strict";r.d(t,{z:()=>L});var n=r(2209),i=r(4711),s=r(2350),a=r(678),o=r(130),l=r(5469),u=r(4135),c=r(1677),h=r(753),d=r(1404),f=r(260);class p{static{this[n.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 r=!!this.fields;return t=this.fields?this.fields:(0,n.is)(e,u.k)?Object.fromEntries(Object.keys(e[u.g1].selection).map(t=>[t,e[t]])):(0,n.is)(e,f.B)?e[d.d].selectedFields:(0,n.is)(e,l.$s)?{}:(0,h.SS)(e),new m({table:e,fields:t,isPartialSelect:r,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct})}}class g extends a.b{static{this[n.Q]="SQLiteSelectQueryBuilder"}constructor({table:e,fields:t,isPartialSelect:r,session:n,dialect:i,withList:s,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:s,table:e,fields:{...t},distinct:a,setOperators:[]},this.isPartialSelect=r,this.session=n,this.dialect=i,this._={selectedFields:t},this.tableName=(0,h.dP)(e),this.joinsNotNullableMap="string"==typeof this.tableName?{[this.tableName]:!0}:{}}createJoin(e){return(t,r)=>{let s=this.tableName,a=(0,h.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 s&&(this.config.fields={[s]:this.config.fields}),"string"==typeof a&&!(0,n.is)(t,l.$s))){let e=(0,n.is)(t,u.k)?t[u.g1].selection:(0,n.is)(t,l.G7)?t[d.d].selectedFields:t[c.iA.Symbol.Columns];this.config.fields[a]=e}if("function"==typeof r&&(r=r(new Proxy(this.config.fields,new i.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:r,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 r=>{let n="function"==typeof r?r(v()):r;if(!(0,h.ux)(this.getSelectedFields(),n.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:n}),this}}addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new i.e({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))),this.config.where=e,this}having(e){return"function"==typeof e&&(e=e(new Proxy(this.config.fields,new i.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 i.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 i.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}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 u.k(this.getSQL(),this.config.fields,e),new i.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}getSelectedFields(){return new Proxy(this.config.fields,new i.e({alias:this.tableName,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}$dynamic(){return this}}class m extends g{static{this[n.Q]="SQLiteSelect"}_prepare(e=!0){if(!this.session)throw Error("Cannot execute a query on a query builder. Please use a database instance instead.");let t=(0,h.ZS)(this.config.fields),r=this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),t,"all");return r.joinsNotNullableMap=this.joinsNotNullableMap,r}prepare(){return this._prepare(!1)}async execute(){return this.all()}constructor(...e){super(...e),this.run=e=>this._prepare().run(e),this.all=e=>this._prepare().all(e),this.get=e=>this._prepare().get(e),this.values=e=>this._prepare().values(e)}}function y(e,t){return(r,n,...i)=>{let s=[n,...i].map(r=>({type:e,isAll:t,rightSelect:r}));for(let e of s)if(!(0,h.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(s)}}(0,h.ef)(m,[o.N]);let v=()=>({union:b,unionAll:S,intersect:w,except:_}),b=y("union",!1),S=y("union",!0),w=y("intersect",!1),_=y("except",!1);class x{static{this[n.Q]="SQLiteQueryBuilder"}$with(e){let t=this;return{as:r=>("function"==typeof r&&(r=r(t)),new Proxy(new u.SC(r.getSQL(),r.getSelectedFields(),e,!0),new i.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new p({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e})},selectDistinct:function(r){return new p({fields:r??void 0,session:void 0,dialect:t.getDialect(),withList:e,distinct:!0})}}}select(e){return new p({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new p({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}getDialect(){return this.dialect||(this.dialect=new s.Ac),this.dialect}}var E=r(5315);class C{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[n.Q]="SQLiteUpdateBuilder"}set(e){return new O(this.table,(0,h.M6)(this.table,e),this.session,this.dialect)}}class O extends o.N{constructor(e,t,r,n){super(),this.run=e=>this._prepare().run(e),this.all=e=>this._prepare().all(e),this.get=e=>this._prepare().get(e),this.values=e=>this._prepare().values(e),this.session=r,this.dialect=n,this.config={set:t,table:e}}static{this[n.Q]="SQLiteUpdate"}where(e){return this.config.where=e,this}returning(e=this.config.table[E.xA.Symbol.Columns]){return this.config.returning=(0,h.ZS)(e),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e=!0){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}prepare(){return this._prepare(!1)}async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}class R{constructor(e,t,r){this.table=e,this.session=t,this.dialect=r}static{this[n.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={},r=this.table[c.iA.Symbol.Columns];for(let i of Object.keys(e)){let s=e[i];t[i]=(0,n.is)(s,l.$s)?s:new l.dO(s,r[i])}return t});return new T(this.table,t,this.session,this.dialect)}}class T extends o.N{constructor(e,t,r,n){super(),this.run=e=>this._prepare().run(e),this.all=e=>this._prepare().all(e),this.get=e=>this._prepare().get(e),this.values=e=>this._prepare().values(e),this.session=r,this.dialect=n,this.config={table:e,values:t}}static{this[n.Q]="SQLiteInsert"}returning(e=this.config.table[E.xA.Symbol.Columns]){return this.config.returning=(0,h.ZS)(e),this}onConflictDoNothing(e={}){if(void 0===e.target)this.config.onConflict=l.i6`do nothing`;else{let t=Array.isArray(e.target)?l.i6`${e.target}`:l.i6`${[e.target]}`,r=e.where?l.i6` where ${e.where}`:l.i6``;this.config.onConflict=l.i6`${t} do nothing${r}`}return this}onConflictDoUpdate(e){let t=Array.isArray(e.target)?l.i6`${e.target}`:l.i6`${[e.target]}`,r=e.where?l.i6` where ${e.where}`:l.i6``,n=this.dialect.buildUpdateSet(this.config.table,(0,h.M6)(this.config.table,e.set));return this.config.onConflict=l.i6`${t} do update set ${n}${r}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e=!0){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}prepare(){return this._prepare(!1)}async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}}class P extends o.N{constructor(e,t,r){super(),this.run=e=>this._prepare().run(e),this.all=e=>this._prepare().all(e),this.get=e=>this._prepare().get(e),this.values=e=>this._prepare().values(e),this.table=e,this.session=t,this.dialect=r,this.config={table:e}}static{this[n.Q]="SQLiteDelete"}where(e){return this.config.where=e,this}returning(e=this.table[E.xA.Symbol.Columns]){return this.config.returning=(0,h.ZS)(e),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e=!0){return this.session[e?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run")}prepare(){return this._prepare(!1)}async execute(e){return this._prepare().execute(e)}$dynamic(){return this}}var A=r(2801);class N{constructor(e,t,r,n,i,s,a,o){this.mode=e,this.fullSchema=t,this.schema=r,this.tableNamesMap=n,this.table=i,this.tableConfig=s,this.dialect=a,this.session=o}static{this[n.Q]="SQLiteAsyncRelationalQueryBuilder"}findMany(e){return"sync"===this.mode?new I(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many"):new $(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},"many")}findFirst(e){return"sync"===this.mode?new I(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first"):new $(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},"first")}}class $ extends o.N{constructor(e,t,r,n,i,s,a,o,l){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=r,this.table=n,this.tableConfig=i,this.dialect=s,this.session=a,this.config=o,this.mode=l}static{this[n.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(e=!1){let{query:t,builtQuery:r}=this._toSQL();return this.session[e?"prepareOneTimeQuery":"prepareQuery"](r,void 0,"first"===this.mode?"get":"all",(e,r)=>{let n=e.map(e=>(0,A.WX)(this.schema,this.tableConfig,e,t.selection,r));return"first"===this.mode?n[0]:n})}prepare(){return this._prepare(!1)}_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(!1).get():this._prepare(!1).all()}async execute(){return this.executeRaw()}}class I extends ${static{this[n.Q]="SQLiteSyncRelationalQuery"}sync(){return this.executeRaw()}}class k extends o.N{constructor(e,t,r,n,i){super(),this.execute=e,this.getSQL=t,this.dialect=n,this.mapBatchResult=i,this.config={action:r}}static{this[n.Q]="SQLiteRaw"}getQuery(){return this.dialect.sqlToQuery(this.getSQL())}mapResult(e,t){return t?this.mapBatchResult(e):e}_prepare(){return this}}class L{constructor(e,t,r,n){this.resultKind=e,this.dialect=t,this.session=r,this._=n?{schema:n.schema,tableNamesMap:n.tableNamesMap}:{schema:void 0,tableNamesMap:{}},this.query={};let i=this.query;if(this._.schema)for(let[s,a]of Object.entries(this._.schema))i[s]=new N(e,n.fullSchema,this._.schema,this._.tableNamesMap,n.fullSchema[s],a,t,r)}static{this[n.Q]="BaseSQLiteDatabase"}$with(e){return{as:t=>("function"==typeof t&&(t=t(new x)),new Proxy(new u.SC(t.getSQL(),t.getSelectedFields(),e,!0),new i.e({alias:e,sqlAliasedBehavior:"alias",sqlBehavior:"error"})))}}with(...e){let t=this;return{select:function(r){return new p({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e})},selectDistinct:function(r){return new p({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})},update:function(e){return new C(e,t.session,t.dialect)},insert:function(e){return new R(e,t.session,t.dialect)},delete:function(e){return new P(e,t.session,t.dialect)}}}select(e){return new p({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new p({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}update(e){return new C(e,this.session,this.dialect)}insert(e){return new R(e,this.session,this.dialect)}delete(e){return new P(e,this.session,this.dialect)}run(e){let t=e.getSQL();return"async"===this.resultKind?new k(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 k(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 k(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 k(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)}}},2350:(e,t,r)=>{"use strict";r.d(t,{Ac:()=>v,Oz:()=>b});var n=r(7921),i=r(2396),s=r(2209),a=r(2688),o=r(2801),l=r(5469),u=r(9355),c=r(7488),h=r(5315),d=r(4135),f=r(1677),p=r(753),g=r(1404),m=r(260);class y{static{this[s.Q]="SQLiteDialect"}escapeName(e){return`"${e}"`}escapeParam(e){return"?"}escapeString(e){return`'${e.replace(/'/g,"''")}'`}buildDeleteQuery({table:e,where:t,returning:r}){let n=r?l.i6` returning ${this.buildSelection(r,{isSingleTable:!0})}`:void 0,i=t?l.i6` where ${t}`:void 0;return l.i6`delete from ${e}${i}${n}`}buildUpdateSet(e,t){let r=Object.entries(t),n=r.length;return l.i6.join(r.flatMap(([t,r],i)=>{let s=e[f.iA.Symbol.Columns][t],a=l.i6`${l.i6.identifier(s.name)} = ${r}`;return i{let a=[];if((0,s.is)(e,l.$s.Aliased)&&e.isSelectionField)a.push(l.i6.identifier(e.fieldAlias));else if((0,s.is)(e,l.$s.Aliased)||(0,s.is)(e,l.$s)){let r=(0,s.is)(e,l.$s.Aliased)?e.sql:e;t?a.push(new l.$s(r.queryChunks.map(e=>(0,s.is)(e,i.s)?l.i6.identifier(e.name):e))):a.push(r),(0,s.is)(e,l.$s.Aliased)&&a.push(l.i6` as ${l.i6.identifier(e.fieldAlias)}`)}else if((0,s.is)(e,i.s)){let r=e.table[f.iA.Symbol.Name],n=e.name;t?a.push(l.i6.identifier(n)):a.push(l.i6`${l.i6.identifier(r)}.${l.i6.identifier(n)}`)}return ne===(E[f.iA.Symbol.IsAlias]?f.SP(E):E[f.iA.Symbol.BaseName])))){let t=(0,f.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 C=!u||0===u.length;if(e?.length){let t=[l.i6`with `];for(let[r,n]of e.entries())t.push(l.i6`${l.i6.identifier(n[d.g1].alias)} as (${n[d.g1].sql})`),r0?l.i6` group by ${l.i6.join(k)}`:void 0,j=I.length>0?l.i6` order by ${l.i6.join(I)}`:void 0,M=v?l.i6` limit ${v}`:void 0,D=b?l.i6` offset ${b}`:void 0,q=l.i6`${_}select${O} ${R} from ${T}${A}${N}${L}${$}${j}${M}${D}`;return w.length>0?this.buildSetOperations(q,w):q}buildSetOperations(e,t){let[r,...n]=t;if(!r)throw Error("Cannot pass undefined values to any set operator");return 0===n.length?this.buildSetOperationQuery({leftSelect:e,setOperator:r}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:e,setOperator:r}),n)}buildSetOperationQuery({leftSelect:e,setOperator:{type:t,isAll:r,rightSelect:n,limit:i,orderBy:a,offset:o}}){let u;let h=l.i6`${e.getSQL()} `,d=l.i6`${n.getSQL()}`;if(a&&a.length>0){let e=[];for(let t of a)if((0,s.is)(t,c.l))e.push(l.i6.identifier(t.name));else if((0,s.is)(t,l.$s)){for(let e=0;el.i6.identifier(e.name));for(let[e,r]of t.entries()){let n=[];for(let[e,t]of a){let i=r[e];if(void 0===i||(0,s.is)(i,l.dO)&&void 0===i.value){let e;if(null!==t.default&&void 0!==t.default)e=(0,s.is)(t.default,l.$s)?t.default:l.i6.param(t.default,t);else if(void 0!==t.defaultFn){let r=t.defaultFn();e=(0,s.is)(r,l.$s)?r:l.i6.param(r,t)}else e=l.i6`null`;n.push(e)}else n.push(i)}i.push(n),e({dbKey:t.name,tsKey:e,field:(0,n.lw)(t,y),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let a=Object.fromEntries(Object.entries(g.columns).map(([e,t])=>[e,(0,n.lw)(t,y)]));if(m.where){let e="function"==typeof m.where?m.where(a,(0,o.vU)()):m.where;C=e&&(0,n.UI)(e,y)}let c=[],h=[];if(m.columns){let e=!1;for(let[t,r]of Object.entries(m.columns))void 0!==r&&t in g.columns&&(e||!0!==r||(e=!0),h.push(t));h.length>0&&(h=e?h.filter(e=>m.columns?.[e]===!0):Object.keys(g.columns).filter(e=>!h.includes(e)))}else h=Object.keys(g.columns);for(let e of h){let t=g.columns[e];c.push({tsKey:e,value:t})}let d=[];if(m.with&&(d=Object.entries(m.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:g.relations[e]}))),m.extras)for(let[e,t]of Object.entries("function"==typeof m.extras?m.extras(a,{sql:l.i6}):m.extras))c.push({tsKey:e,value:(0,n.qD)(t,y)});for(let{tsKey:e,value:t}of c)w.push({dbKey:(0,s.is)(t,l.$s.Aliased)?t.fieldAlias:g.columns[e].name,tsKey:e,field:(0,s.is)(t,i.s)?(0,n.lw)(t,y):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let p="function"==typeof m.orderBy?m.orderBy(a,(0,o.pl)()):m.orderBy??[];for(let{tsKey:a,queryConfig:c,relation:h}of(Array.isArray(p)||(p=[p]),E=p.map(e=>(0,s.is)(e,i.s)?(0,n.lw)(e,y):(0,n.UI)(e,y)),_=m.limit,x=m.offset,d)){let i=(0,o.wG)(t,r,h),d=r[h.referencedTable[f.iA.Symbol.Name]],p=`${y}_${a}`,g=(0,u.xD)(...i.fields.map((e,t)=>(0,u.eq)((0,n.lw)(i.references[t],p),(0,n.lw)(e,y)))),m=this.buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:r,table:e[d],tableConfig:t[d],queryConfig:(0,s.is)(h,o.fh)?!0===c?{limit:1}:{...c,limit:1}:c,tableAlias:p,joinOn:g,nestedQueryRelation:h}),v=l.i6`(${m.sql})`.as(a);w.push({dbKey:a,tsKey:a,field:v,relationTableTsKey:d,isJson:!0,selection:m.selection})}}if(0===w.length)throw new a.k({message:`No fields selected for table "${g.tsName}" ("${y}"). 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(C=(0,u.xD)(b,C),v){let e=l.i6`json_array(${l.i6.join(w.map(({field:e})=>(0,s.is)(e,c.l)?l.i6.identifier(e.name):(0,s.is)(e,l.$s.Aliased)?e.sql:e),l.i6`, `)})`;(0,s.is)(v,o.sj)&&(e=l.i6`coalesce(json_group_array(${e}), json_array())`);let t=[{dbKey:"data",tsKey:"data",field:e.as("data"),isJson:!0,relationTableTsKey:g.tsName,selection:w}];void 0!==_||void 0!==x||E.length>0?(S=this.buildSelectQuery({table:(0,n.RQ)(p,y),fields:{},fieldsFlat:[{path:[],field:l.i6.raw("*")}],where:C,limit:_,offset:x,orderBy:E,setOperators:[]}),C=void 0,_=void 0,x=void 0,E=void 0):S=(0,n.RQ)(p,y),S=this.buildSelectQuery({table:(0,s.is)(S,h.xA)?S:new d.k(S,{},y),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:(0,s.is)(e,i.s)?(0,n.lw)(e,y):e})),joins:O,where:C,limit:_,offset:x,orderBy:E,setOperators:[]})}else S=this.buildSelectQuery({table:(0,n.RQ)(p,y),fields:{},fieldsFlat:w.map(({field:e})=>({path:[],field:(0,s.is)(e,i.s)?(0,n.lw)(e,y):e})),joins:O,where:C,limit:_,offset:x,orderBy:E,setOperators:[]});return{tableTsKey:g.tsName,sql:S,selection:w}}}class v extends y{static{this[s.Q]="SQLiteSyncDialect"}migrate(e,t){let r=l.i6` + CREATE TABLE IF NOT EXISTS "__drizzle_migrations" ( + id SERIAL PRIMARY KEY, + hash text NOT NULL, + created_at numeric + ) + `;t.run(r);let n=t.values(l.i6`SELECT id, hash, created_at FROM "__drizzle_migrations" ORDER BY created_at DESC LIMIT 1`)[0]??void 0;t.run(l.i6`BEGIN`);try{for(let r of e)if(!n||Number(n[2]){for(let r of e)if(!n||Number(n[2]){"use strict";r.d(t,{CK:()=>s});var n=r(2209),i=r(5315);function s(...e){return e[0].columns?new a(e[0].columns,e[0].name):new a(e)}class a{static{this[n.Q]="SQLitePrimaryKeyBuilder"}constructor(e,t){this.columns=e,this.name=t}build(e){return new o(e,this.columns,this.name)}}class o{constructor(e,t,r){this.table=e,this.columns=t,this.name=r}static{this[n.Q]="SQLitePrimaryKey"}getName(){return this.name??`${this.table[i.xA.Symbol.Name]}_${this.columns.map(e=>e.name).join("_")}_pk`}}},5315:(e,t,r)=>{"use strict";let n;r.d(t,{Px:()=>u,_9:()=>c,xA:()=>o});var i=r(2209),s=r(1677);let a=Symbol.for("drizzle:SQLiteInlineForeignKeys");class o extends s.iA{static{s.iA.Symbol.Columns,n=s.iA.Symbol.ExtraConfigBuilder}static{this[i.Q]="SQLiteTable"}static{this.Symbol=Object.assign({},s.iA.Symbol,{InlineForeignKeys:a})}constructor(...e){super(...e),this[a]=[],this[n]=void 0}}function l(e,t,r,n,i=e){let l=new o(e,n,i),u=Object.fromEntries(Object.entries(t).map(([e,t])=>{let r=t.build(l);return l[a].push(...t.buildForeignKeys(r,l)),[e,r]})),c=Object.assign(l,u);return c[s.iA.Symbol.Columns]=u,r&&(c[o.Symbol.ExtraConfigBuilder]=r),c}let u=(e,t,r)=>l(e,t,r);function c(e){return(t,r,n)=>l(e(t),r,n,void 0,t)}},260:(e,t,r)=>{"use strict";r.d(t,{B:()=>s});var n=r(2209),i=r(5469);class s extends i.G7{static{this[n.Q]="SQLiteViewBase"}}},4135:(e,t,r)=>{"use strict";r.d(t,{SC:()=>a,g1:()=>i,k:()=>s});var n=r(2209);let i=Symbol.for("drizzle:SubqueryConfig");class s{static{this[n.Q]="Subquery"}constructor(e,t,r,n=!1){this[i]={sql:e,selection:t,alias:r,isWith:n}}}class a extends s{static{this[n.Q]="WithSubquery"}}},1677:(e,t,r)=>{"use strict";r.d(t,{SP:()=>p,iA:()=>d,wb:()=>f});var n=r(2209);let i=Symbol.for("drizzle:Name"),s=Symbol.for("drizzle:Schema"),a=Symbol.for("drizzle:Columns"),o=Symbol.for("drizzle:OriginalName"),l=Symbol.for("drizzle:BaseName"),u=Symbol.for("drizzle:IsAlias"),c=Symbol.for("drizzle:ExtraConfigBuilder"),h=Symbol.for("drizzle:IsDrizzleTable");class d{static{this[n.Q]="Table"}static{this.Symbol={Name:i,Schema:s,OriginalName:o,Columns:a,BaseName:l,IsAlias:u,ExtraConfigBuilder:c}}constructor(e,t,r){this[u]=!1,this[c]=void 0,this[h]=!0,this[i]=this[o]=e,this[s]=t,this[l]=r}}function f(e){return"object"==typeof e&&null!==e&&h in e}function p(e){return e[i]}},1921:(e,t,r)=>{"use strict";function n(e,...t){return e(...t)}r.d(t,{t:()=>n})},8772:(e,t,r)=>{"use strict";let n,i;r.d(t,{Z:()=>a});var s=r(1921);let a={startActiveSpan:(e,t)=>n?(i||(i=n.trace.getTracer("drizzle-orm","0.29.4")),(0,s.t)((r,n)=>n.startActiveSpan(e,e=>{try{return t(e)}catch(t){throw e.setStatus({code:r.SpanStatusCode.ERROR,message:t instanceof Error?t.message:"Unknown error"}),t}finally{e.end()}}),n,i)):t()}},753:(e,t,r)=>{"use strict";r.d(t,{M4:()=>u,M6:()=>h,SS:()=>f,ZS:()=>function e(t,r){return Object.entries(t).reduce((t,[a,l])=>{if("string"!=typeof a)return t;let u=r?[...r,a]:[a];return(0,i.is)(l,n.s)||(0,i.is)(l,s.$s)||(0,i.is)(l,s.$s.Aliased)?t.push({path:u,field:l}):(0,i.is)(l,o.iA)?t.push(...e(l[o.iA.Symbol.Columns],u)):t.push(...e(l,u)),t},[])},dP:()=>p,ef:()=>d,ux:()=>c});var n=r(2396),i=r(2209),s=r(5469),a=r(4135),o=r(1677),l=r(1404);function u(e,t,r){let a={},l=e.reduce((e,{path:l,field:u},c)=>{let h;h=(0,i.is)(u,n.s)?u:(0,i.is)(u,s.$s)?u.decoder:u.sql.decoder;let d=e;for(let[e,s]of l.entries())if(e0)for(let[e,t]of Object.entries(a))"string"!=typeof t||r[t]||(l[e]=null);return l}function c(e,t){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let[e,t]of r.entries())if(t!==n[e])return!1;return!0}function h(e,t){let r=Object.entries(t).filter(([,e])=>void 0!==e).map(([t,r])=>(0,i.is)(r,s.$s)?[t,r]:[t,new s.dO(r,e[o.iA.Symbol.Columns][t])]);if(0===r.length)throw Error("No values to set");return Object.fromEntries(r)}function d(e,t){for(let r of t)for(let t of Object.getOwnPropertyNames(r.prototype))"constructor"!==t&&Object.defineProperty(e.prototype,t,Object.getOwnPropertyDescriptor(r.prototype,t)||Object.create(null))}function f(e){return e[o.iA.Symbol.Columns]}function p(e){return(0,i.is)(e,a.k)?e[a.g1].alias:(0,i.is)(e,s.G7)?e[l.d].name:(0,i.is)(e,s.$s)?void 0:e[o.iA.Symbol.IsAlias]?e[o.iA.Symbol.Name]:e[o.iA.Symbol.BaseName]}},1404:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});let n=Symbol.for("drizzle:ViewBaseConfig")}},e=>{var t=e(e.s=7657);(_ENTRIES="undefined"==typeof _ENTRIES?{}:_ENTRIES)["middleware_app/api/store/route"]=t}]); +//# sourceMappingURL=route.js.map \ 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 deleted file mode 100644 index 242e1670..00000000 --- a/apps/web/.next/server/app/api/store/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"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 deleted file mode 100644 index b1c4e90d..00000000 --- a/apps/web/.next/server/app/index.html +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 4bb66762..00000000 --- a/apps/web/.next/server/app/index.meta +++ /dev/null @@ -1,5 +0,0 @@ -{ - "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 deleted file mode 100644 index 0c3c9b35..00000000 --- a/apps/web/.next/server/app/index.rsc +++ /dev/null @@ -1,5 +0,0 @@ -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 index 7cfd2492..87d6fbb1 100644 --- a/apps/web/.next/server/app/page.js +++ b/apps/web/.next/server/app/page.js @@ -1 +1,37 @@ -(()=>{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 +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{2067:e=>{"use strict";e.exports=require("node:async_hooks")},6195:e=>{"use strict";e.exports=require("node:buffer")},5032:e=>{e.exports={style:{fontFamily:"'__Inter_aaf875', '__Inter_Fallback_aaf875'",fontStyle:"normal"},className:"__className_aaf875",variable:"__variable_aaf875"}},3613:(e,t,r)=>{"use strict";let n,a,o;r.r(t),r.d(t,{ComponentMod:()=>rj,default:()=>rD});var i,s,l,u={};async function c(){if("_ENTRIES"in globalThis&&_ENTRIES.middleware_instrumentation&&_ENTRIES.middleware_instrumentation.register)try{await _ENTRIES.middleware_instrumentation.register()}catch(e){throw e.message=`An error occurred while loading instrumentation hook: ${e.message}`,e}}r.r(u),r.d(u,{AppRouter:()=>t2,GlobalError:()=>tK,LayoutRouter:()=>t6,NotFoundBoundary:()=>rh,RenderFromTemplateContext:()=>re,StaticGenerationSearchParamsBailoutProvider:()=>rl,__next_app__:()=>rP,actionAsyncStorage:()=>rn.W,createSearchParamsBailoutProxy:()=>ru,decodeAction:()=>tY.decodeAction,decodeFormState:()=>tY.decodeFormState,decodeReply:()=>tY.decodeReply,originalPathname:()=>rC,pages:()=>r_,patchFetch:()=>rw,preconnect:()=>rb,preloadFont:()=>rv,preloadStyle:()=>ry,renderToReadableStream:()=>tY.renderToReadableStream,requestAsyncStorage:()=>rr.F,routeModule:()=>rR,serverHooks:()=>rc,staticGenerationAsyncStorage:()=>rt.A,staticGenerationBailout:()=>ra.o,taintObjectReference:()=>rS,tree:()=>rx});let d=null;function p(){return d||(d=c()),d}function f(e){return`The edge runtime does not support Node.js '${e}' module. +Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`}process!==r.g.process&&(process.env=r.g.process.env,r.g.process=process),Object.defineProperty(globalThis,"__import_unsupported",{value:function(e){let t=new Proxy(function(){},{get(t,r){if("then"===r)return{};throw Error(f(e))},construct(){throw Error(f(e))},apply(r,n,a){if("function"==typeof a[0])return a[0](t);throw Error(f(e))}});return new Proxy({},{get:()=>t})},enumerable:!1,configurable:!1}),p();var h=r(7480),g=r(6398);let m=Symbol("response"),y=Symbol("passThrough"),v=Symbol("waitUntil");class b{constructor(e){this[v]=[],this[y]=!1}respondWith(e){this[m]||(this[m]=Promise.resolve(e))}passThroughOnException(){this[y]=!0}waitUntil(e){this[v].push(e)}}class S extends b{constructor(e){super(e.request),this.sourcePage=e.page}get request(){throw new h.qJ({page:this.sourcePage})}respondWith(){throw new h.qJ({page:this.sourcePage})}}var w=r(628),x=r(6590),_=r(5465);let C=Symbol("internal response"),P=new Set([301,302,303,307,308]);function R(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,a]of e.request.headers)t.set("x-middleware-request-"+n,a),r.push(n);t.set("x-middleware-override-headers",r.join(","))}}class E extends Response{constructor(e,t={}){super(e,t),this[C]={cookies:new _.n(this.headers),url:t.url?new x.c(t.url,{headers:(0,g.lb)(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[C].cookies}static json(e,t){let r=Response.json(e,t);return new E(r.body,r)}static redirect(e,t){let r="number"==typeof t?t:(null==t?void 0:t.status)??307;if(!P.has(r))throw RangeError('Failed to execute "redirect" on "response": Invalid status code');let n="object"==typeof t?t:{},a=new Headers(null==n?void 0:n.headers);return a.set("Location",(0,g.r4)(e)),new E(null,{...n,headers:a,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,g.r4)(e)),R(t,r),new E(null,{...t,headers:r})}static next(e){let t=new Headers(null==e?void 0:e.headers);return t.set("x-middleware-next","1"),R(e,t),new E(null,{...e,headers:t})}}function k(e,t){let r="string"==typeof t?new URL(t):t,n=new URL(e,t),a=r.protocol+"//"+r.host;return n.protocol+"//"+n.host===a?n.toString().replace(a,""):n.toString()}var T=r(6318),O=r(4313),A=r(7661),N=r(6830),M=r(5830),I=r(1579),j=r(1556);class D extends w.I{constructor(e){super(e.input,e.init),this.sourcePage=e.page}get request(){throw new h.qJ({page:this.sourcePage})}respondWith(){throw new h.qJ({page:this.sourcePage})}waitUntil(){throw new h.qJ({page:this.sourcePage})}}let L={keys:e=>Array.from(e.keys()),get:(e,t)=>e.get(t)??void 0},$=(e,t)=>(0,j.Yz)().withPropagatedContext(e.headers,t,L),F=!1;async function U(e){let t,n;!function(){if(!F&&(F=!0,"true"===process.env.NEXT_PRIVATE_TEST_PROXY)){let{interceptTestApis:e,wrapRequestHandler:t}=r(239);e(),$=t($)}}(),await p();let a=void 0!==self.__BUILD_MANIFEST,o="string"==typeof self.__PRERENDER_MANIFEST?JSON.parse(self.__PRERENDER_MANIFEST):void 0;e.request.url=(0,O.b)(e.request.url);let i=new x.c(e.request.url,{headers:e.request.headers,nextConfig:e.request.nextConfig});for(let e of[...i.searchParams.keys()]){let t=i.searchParams.getAll(e);if(e!==N.dN&&e.startsWith(N.dN)){let r=e.substring(N.dN.length);for(let e of(i.searchParams.delete(r),t))i.searchParams.append(r,e);i.searchParams.delete(e)}}let s=i.buildId;i.buildId="";let l=e.request.headers["x-nextjs-data"];l&&"/index"===i.pathname&&(i.pathname="/");let u=(0,g.EK)(e.request.headers),c=new Map;if(!a)for(let e of A.vu){let t=e.toString().toLowerCase();u.get(t)&&(c.set(t,u.get(t)),u.delete(t))}let d=new D({page:e.page,input:(0,T.Tw)(i,!0).toString(),init:{body:e.request.body,geo:e.request.geo,headers:u,ip:e.request.ip,method:e.request.method,nextConfig:e.request.nextConfig,signal:e.request.signal}});l&&Object.defineProperty(d,"__isData",{enumerable:!1,value:!0}),!globalThis.__incrementalCache&&e.IncrementalCache&&(globalThis.__incrementalCache=new e.IncrementalCache({appDir:!0,fetchCache:!0,minimalMode:!0,fetchCacheKeyPrefix:void 0,dev:!1,requestHeaders:e.request.headers,requestProtocol:"https",getPrerenderManifest:()=>({version:-1,routes:{},dynamicRoutes:{},notFoundRoutes:[],preview:{previewModeId:"development-id"}})}));let f=new S({request:d,page:e.page});if((t=await $(d,()=>"/middleware"===e.page||"/src/middleware"===e.page?M.B.wrap(I.F,{req:d,renderOpts:{onUpdateCookies:e=>{n=e},previewProps:(null==o?void 0:o.preview)||{previewModeId:"development-id",previewModeEncryptionKey:"",previewModeSigningKey:""}}},()=>e.handler(d,f)):e.handler(d,f)))&&!(t instanceof Response))throw TypeError("Expected an instance of Response to be returned");t&&n&&t.headers.set("set-cookie",n);let h=null==t?void 0:t.headers.get("x-middleware-rewrite");if(t&&h){let r=new x.c(h,{forceLocale:!0,headers:e.request.headers,nextConfig:e.request.nextConfig});r.host===d.nextUrl.host&&(r.buildId=s||r.buildId,t.headers.set("x-middleware-rewrite",String(r)));let n=k(String(r),String(i));l&&t.headers.set("x-nextjs-rewrite",n)}let m=null==t?void 0:t.headers.get("Location");if(t&&m&&!a){let r=new x.c(m,{forceLocale:!1,headers:e.request.headers,nextConfig:e.request.nextConfig});t=new Response(t.body,t),r.host===d.nextUrl.host&&(r.buildId=s||r.buildId,t.headers.set("Location",String(r))),l&&(t.headers.delete("Location"),t.headers.set("x-nextjs-redirect",k(String(r),String(i))))}let y=t||E.next(),b=y.headers.get("x-middleware-override-headers"),w=[];if(b){for(let[e,t]of c)y.headers.set(`x-middleware-request-${e}`,t),w.push(e);w.length>0&&y.headers.set("x-middleware-override-headers",b+","+w.join(","))}return{response:y,waitUntil:Promise.all(f[v]),fetchMetrics:d.fetchMetrics}}function H(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}"undefined"!=typeof performance&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class q extends Error{}class B extends Error{}class z extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}var V=r(4145);let W="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",G=`(${W}[.]){3}${W}`,J="(?:[0-9a-fA-F]{1,4})",X=RegExp(`^((?:${J}:){7}(?:${J}|:)|(?:${J}:){6}(?:${G}|:${J}|:)|(?:${J}:){5}(?::${G}|(:${J}){1,2}|:)|(?:${J}:){4}(?:(:${J}){0,1}:${G}|(:${J}){1,3}|:)|(?:${J}:){3}(?:(:${J}){0,2}:${G}|(:${J}){1,4}|:)|(?:${J}:){2}(?:(:${J}){0,3}:${G}|(:${J}){1,5}|:)|(?:${J}:){1}(?:(:${J}){0,4}:${G}|(:${J}){1,6}|:)|(?::((?::${J}){0,5}:${G}|(?::${J}){1,7}|:)))(%[0-9a-zA-Z-.:]{1,})?$`);var K=r(4515),Y=r(4168),Q=r(724);let Z=/\/\[[^/]+?\](?=\/|$)/;function ee(e){return(0,Q.Ag)(e)&&(e=(0,Q.CK)(e).interceptedRoute),Z.test(e)}var et=r(4629);function er(e){return 0===e?"private, no-cache, no-store, max-age=0, must-revalidate":"number"==typeof e?`s-maxage=${e}, stale-while-revalidate`:`s-maxage=${N.BR}, stale-while-revalidate`}var en=r(6811),ea=r(7829),eo=r(5574);function ei(e){let t=e.replace(/\\/g,"/");return t.startsWith("/index/")&&!ee(t)?t.slice(6):"/index"!==t?t:"/"}var es=r(5112),el=r(3567),eu=r(6067);function ec(e,t){let r=[],n=(0,eu.Bo)(e,r,{delimiter:"/",sensitive:"boolean"==typeof(null==t?void 0:t.sensitive)&&t.sensitive,strict:null==t?void 0:t.strict}),a=(0,eu.WS)((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(n.source),n.flags):n,r);return(e,n)=>{if("string"!=typeof e)return!1;let o=a(e);if(!o)return!1;if(null==t?void 0:t.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete o.params[e.name];return{...n,...o.params}}}let ed=/[|\\{}()[\]^$+*?.-]/,ep=/[|\\{}()[\]^$+*?.-]/g;function ef(e){return ed.test(e)?e.replace(ep,"\\$&"):e}function eh(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function eg(e){let{parameterizedRoute:t,groups:r}=function(e){let t=(0,eo.Q)(e).slice(1).split("/"),r={},n=1;return{parameterizedRoute:t.map(e=>{let t=Q.Wz.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:o,repeat:i}=eh(a[1]);return r[e]={pos:n++,repeat:i,optional:o},"/"+ef(t)+"([^/]+?)"}if(!a)return"/"+ef(e);{let{key:e,repeat:t,optional:o}=eh(a[1]);return r[e]={pos:n++,repeat:t,optional:o},t?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function em(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:a,keyPrefix:o}=e,{key:i,optional:s,repeat:l}=eh(n),u=i.replace(/\W/g,"");o&&(u=""+o+u);let c=!1;(0===u.length||u.length>30)&&(c=!0),isNaN(parseInt(u.slice(0,1)))||(c=!0),c&&(u=r()),o?a[u]=""+o+i:a[u]=i;let d=t?ef(t):"";return l?s?"(?:/"+d+"(?<"+u+">.+?))?":"/"+d+"(?<"+u+">.+?)":"/"+d+"(?<"+u+">[^/]+?)"}function ey(e,t){let r=function(e,t){let r;let n=(0,eo.Q)(e).slice(1).split("/"),a=(r=0,()=>{let e="",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),o={};return{namedParameterizedRoute:n.map(e=>{let r=Q.Wz.some(t=>e.startsWith(t)),n=e.match(/\[((?:\[.*\])|.+)\]/);if(r&&n){let[r]=e.split(n[0]);return em({getSafeRouteKey:a,interceptionMarker:r,segment:n[1],routeKeys:o,keyPrefix:t?"nxtI":void 0})}return n?em({getSafeRouteKey:a,segment:n[1],routeKeys:o,keyPrefix:t?"nxtP":void 0}):"/"+ef(e)}).join(""),routeKeys:o}}(e,t);return{...eg(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function ev(e){let{re:t,groups:r}=e;return e=>{let n=t.exec(e);if(!n)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new q("failed to decode param")}},o={};return Object.keys(r).forEach(e=>{let t=r[e],i=n[t.pos];void 0!==i&&(o[e]=~i.indexOf("/")?i.split("/").map(e=>a(e)):t.repeat?[a(i)]:a(i))}),o}}function eb(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function eS(e){if(e.startsWith("/"))return function(e,t){let r=new URL("http://n"),n=t?new URL(t,r):e.startsWith(".")?new URL("http://n"):r,{pathname:a,searchParams:o,search:i,hash:s,href:l,origin:u}=new URL(e,n);if(u!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:a,query:eb(o),search:i,hash:s,href:l.slice(r.origin.length)}}(e);let t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:eb(t.searchParams),search:t.search}}function ew(e){return function(){let{cookie:t}=e;if(!t)return{};let{parse:n}=r(7903);return n(Array.isArray(t)?t.join("; "):t)}}function ex(e){return e.replace(/__ESC_COLON_/gi,":")}function e_(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(":"+r)&&(e=e.replace(RegExp(":"+r+"\\*","g"),":"+r+"--ESCAPED_PARAM_ASTERISKS").replace(RegExp(":"+r+"\\?","g"),":"+r+"--ESCAPED_PARAM_QUESTION").replace(RegExp(":"+r+"\\+","g"),":"+r+"--ESCAPED_PARAM_PLUS").replace(RegExp(":"+r+"(?!\\w)","g"),"--ESCAPED_PARAM_COLON"+r));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,eu.MY)("/"+e,{validate:!1})(t).slice(1)}function eC(e,t,r,n,a){if(n&&t&&a){let t=(0,V.parse)(e.url,!0);for(let e of(delete t.search,Object.keys(t.query)))(e!==N.dN&&e.startsWith(N.dN)||(r||Object.keys(a.groups)).includes(e))&&delete t.query[e];e.url=(0,V.format)(t)}}function eP(e,t,r){if(!r)return e;for(let n of Object.keys(r.groups)){let{optional:a,repeat:o}=r.groups[n],i=`[${o?"...":""}${n}]`;a&&(i=`[${i}]`);let s=e.indexOf(i);if(s>-1){let r;let a=t[n];r=Array.isArray(a)?a.map(e=>e&&encodeURIComponent(e)).join("/"):a?encodeURIComponent(a):"",e=e.slice(0,s)+r+e.slice(s+i.length)}}return e}function eR(e,t,r,n){let a=!0;return r?{params:e=Object.keys(r.groups).reduce((o,i)=>{let s=e[i];"string"==typeof s&&(s=(0,O.b)(s)),Array.isArray(s)&&(s=s.map(e=>("string"==typeof e&&(e=(0,O.b)(e)),e)));let l=n[i],u=r.groups[i].optional;return((Array.isArray(l)?l.some(e=>Array.isArray(s)?s.some(t=>t.includes(e)):null==s?void 0:s.includes(e)):null==s?void 0:s.includes(l))||void 0===s&&!(u&&t))&&(a=!1),u&&(!s||Array.isArray(s)&&1===s.length&&("index"===s[0]||s[0]===`[[...${i}]]`))&&(s=void 0,delete e[i]),s&&"string"==typeof s&&r.groups[i].repeat&&(s=s.split("/")),s&&(o[i]=s),o},{}),hasValidParams:a}:{params:e,hasValidParams:!1}}function eE(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function ek(e){return eE(e)?e:Error(!function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}(e)?e+"":JSON.stringify(e))}var eT=r(2351),eO=r(8077),eA=r(1249),eN=r(9271);class eM{constructor(e){this.provider=e}normalize(e){return this.provider.analyze(e).pathname}}class eI{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 r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.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+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_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 n=e[0];if(n.startsWith("[")&&n.endsWith("]")){let o=n.slice(1,-1),i=!1;if(o.startsWith("[")&&o.endsWith("]")&&(o=o.slice(1,-1),i=!0),o.startsWith("...")&&(o=o.substring(3),r=!0),o.startsWith("[")||o.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+o+"').");if(o.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+o+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===n.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(r){if(i){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]+'" ).');a(this.optionalRestSlugName,o),this.optionalRestSlugName=o,n="[[...]]"}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]+'").');a(this.restSlugName,o),this.restSlugName=o,n="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,o),this.slugName=o,n="[]"}}this.children.has(n)||this.children.set(n,new eI),this.children.get(n)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}class ej{constructor(e){this.definition=e,ee(e.pathname)&&(this.dynamic=ev(eg(e.pathname)))}get identity(){return this.definition.pathname}get isDynamic(){return void 0!==this.dynamic}match(e){let t=this.test(e);return t?{definition:this.definition,params:t.params}:null}test(e){if(this.dynamic){let t=this.dynamic(e);return t?{params:t}:null}return e===this.definition.pathname?{}:null}}class eD extends ej{get identity(){var e;return`${this.definition.pathname}?__nextLocale=${null==(e=this.definition.i18n)?void 0:e.locale}`}match(e,t){var r,n;let a=this.test(e,t);return a?{definition:this.definition,params:a.params,detectedLocale:(null==t?void 0:null==(r=t.i18n)?void 0:r.detectedLocale)??(null==(n=this.definition.i18n)?void 0:n.locale)}:null}test(e,t){return this.definition.i18n&&(null==t?void 0:t.i18n)?this.definition.i18n.locale&&t.i18n.detectedLocale&&this.definition.i18n.locale!==t.i18n.detectedLocale?null:super.test(t.i18n.pathname):super.test(e)}}var eL=r(6101),e$=r(5200);class eF{get compilationID(){return this.providers.length}async waitTillReady(){this.waitTillReadyPromise&&(await this.waitTillReadyPromise,delete this.waitTillReadyPromise)}async reload(){let{promise:e,resolve:t,reject:r}=new e$.Y;this.waitTillReadyPromise=e;let n=this.compilationID;try{let e=[],t=await Promise.all(this.providers.map(e=>e.matchers())),r=new Map,a={};for(let n of t)for(let t of n){t.duplicated&&delete t.duplicated;let n=r.get(t.definition.pathname);if(n){let e=a[t.definition.pathname]??[n];e.push(t),a[t.definition.pathname]=e,n.duplicated=e,t.duplicated=e}e.push(t),r.set(t.definition.pathname,t)}if(this.matchers.duplicates=a,this.previousMatchers.length===e.length&&this.previousMatchers.every((t,r)=>t===e[r]))return;this.previousMatchers=e,this.matchers.static=e.filter(e=>!e.isDynamic);let o=e.filter(e=>e.isDynamic),i=new Map,s=[];for(let e=0;et.insert(e)),t.smoosh()}(s),u=[];for(let e of l){let t=i.get(e);if(!Array.isArray(t))throw Error("Invariant: expected to find identity in indexes map");let r=t.map(e=>o[e]);u.push(...r)}if(this.matchers.dynamic=u,this.compilationID!==n)throw Error("Invariant: expected compilation to finish before new matchers were added, possible missing await")}catch(e){r(e)}finally{this.lastCompilationID=n,t()}}push(e){this.providers.push(e)}async test(e,t){return null!==await this.match(e,t)}async match(e,t){for await(let r of this.matchAll(e,t))return r;return null}validate(e,t,r){var n;return t instanceof eD?t.match(e,r):(null==(n=r.i18n)?void 0:n.inferredFromDefault)?t.match(r.i18n.pathname):t.match(e)}async *matchAll(e,t){if(this.lastCompilationID!==this.compilationID)throw Error("Invariant: expected routes to have been loaded before match");if(!ee(e=(0,eL.e)(e)))for(let r of this.matchers.static){let n=this.validate(e,r,t);n&&(yield n)}if(null==t?void 0:t.skipDynamic)return null;for(let r of this.matchers.dynamic){let n=this.validate(e,r,t);n&&(yield n)}return null}constructor(){this.providers=[],this.matchers={static:[],dynamic:[],duplicates:{}},this.lastCompilationID=this.compilationID,this.previousMatchers=[]}}var eU=r(246),eH=r.n(eU);class eq{constructor(...e){this.prefix=eH().posix.join(...e)}normalize(e){return eH().posix.join(this.prefix,e)}}function eB(e){return/^\/index(\/|$)/.test(e)&&!ee(e)?"/index"+e:"/"===e?"/index":(0,eL.e)(e)}class ez extends eq{constructor(){super("app")}normalize(e){return super.normalize(eB(e))}}class eV extends eq{constructor(e){super(e,Y.cV)}normalize(e){return super.normalize(e)}}!function(e){e.PAGES="pages",e.ROOT="root",e.APP="app"}(i||(i={}));class eW{constructor(e=[]){this.normalizers=e}push(e){this.normalizers.push(e)}normalize(e){return this.normalizers.reduce((e,t)=>t.normalize(e),e)}}function eG(e){return{normalize:e}}class eJ{normalize(e){return e.replace(/%5F/g,"_")}}class eX extends eW{constructor(){super([eG(O.w),new eJ])}normalize(e){return super.normalize(e)}}class eK{constructor(e){this.filename=new eV(e),this.pathname=new eX,this.bundlePath=new ez}}!function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(s||(s={}));class eY extends ej{get identity(){return`${this.definition.pathname}?__nextPage=${this.definition.page}`}}class eQ{constructor(e){this.loader=e,this.cached=[]}async matchers(){let e=await this.loader.load();if(!e)return[];if(this.data&&this.loader.compare(this.data,e))return this.cached;this.data=e;let t=await this.transform(e);return this.cached=t,t}}class eZ extends eQ{constructor(e,t){super({load:async()=>t.load(e),compare:(e,t)=>e===t})}}class e0 extends eZ{constructor(e,t){super(Y.M,t),this.normalizers=new eK(e)}async transform(e){let t=Object.keys(e).filter(e=>e.endsWith("/page")),r={};for(let e of t){let t=this.normalizers.pathname.normalize(e);t in r?r[t].push(e):r[t]=[e]}let n=[];for(let[t,a]of Object.entries(r)){let r=a[0],o=this.normalizers.filename.normalize(e[r]),i=this.normalizers.bundlePath.normalize(r);n.push(new eY({kind:s.APP_PAGE,pathname:t,page:r,bundlePath:i,filename:o,appPaths:a}))}return n}}class e1 extends ej{}class e2 extends eZ{constructor(e,t){super(Y.M,t),this.normalizers=new eK(e)}async transform(e){let t=Object.keys(e).filter(e=>e.endsWith("/route")),r=[];for(let n of t){let t=this.normalizers.filename.normalize(e[n]),a=this.normalizers.pathname.normalize(n),o=this.normalizers.bundlePath.normalize(n);r.push(new e1({kind:s.APP_ROUTE,pathname:a,page:n,bundlePath:o,filename:t}))}return r}}function e4(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}class e3 extends ej{}class e9 extends eD{}class e6 extends eW{constructor(){super([eG(eB),new eq("pages")])}normalize(e){return super.normalize(e)}}class e5 extends eq{constructor(e){super(e,Y.cV)}normalize(e){return super.normalize(e)}}class e8{constructor(e){this.filename=new e5(e),this.bundlePath=new e6}}class e7 extends eZ{constructor(e,t,r){super(Y.Ek,t),this.i18nProvider=r,this.normalizers=new e8(e)}async transform(e){let t=Object.keys(e).filter(e=>e4(e)),r=[];for(let n of t)if(this.i18nProvider){let{detectedLocale:t,pathname:a}=this.i18nProvider.analyze(n);r.push(new e9({kind:s.PAGES_API,pathname:a,page:n,bundlePath:this.normalizers.bundlePath.normalize(n),filename:this.normalizers.filename.normalize(e[n]),i18n:{locale:t}}))}else r.push(new e3({kind:s.PAGES_API,pathname:n,page:n,bundlePath:this.normalizers.bundlePath.normalize(n),filename:this.normalizers.filename.normalize(e[n])}));return r}}class te extends ej{}class tt extends eD{}class tr extends eZ{constructor(e,t,r){super(Y.Ek,t),this.i18nProvider=r,this.normalizers=new e8(e)}async transform(e){let t=Object.keys(e).filter(e=>!e4(e)).filter(e=>{var t;let r=(null==(t=this.i18nProvider)?void 0:t.analyze(e).pathname)??e;return!Y.Xn.includes(r)}),r=[];for(let n of t)if(this.i18nProvider){let{detectedLocale:t,pathname:a}=this.i18nProvider.analyze(n);r.push(new tt({kind:s.PAGES,pathname:a,page:n,bundlePath:this.normalizers.bundlePath.normalize(n),filename:this.normalizers.filename.normalize(e[n]),i18n:{locale:t}}))}else r.push(new te({kind:s.PAGES,pathname:n,page:n,bundlePath:this.normalizers.bundlePath.normalize(n),filename:this.normalizers.filename.normalize(e[n])}));return r}}class tn{constructor(e){this.getter=e}load(e){return this.getter(e)}}var ta=r(779);class to{constructor(e){var t;if(this.config=e,!e.locales.length)throw Error("Invariant: No locales provided");this.lowerCaseLocales=e.locales.map(e=>e.toLowerCase()),this.lowerCaseDomains=null==(t=e.domains)?void 0:t.map(e=>{var t;let r=e.domain.toLowerCase();return{defaultLocale:e.defaultLocale.toLowerCase(),hostname:r.split(":",1)[0],domain:r,locales:null==(t=e.locales)?void 0:t.map(e=>e.toLowerCase()),http:e.http}})}detectDomainLocale(e,t){if(e&&this.lowerCaseDomains&&this.config.domains){t&&(t=t.toLowerCase());for(let n=0;ne===t)))return this.config.domains[n]}}}fromQuery(e,t){let r=t.__nextLocale;if(r){let t=this.analyze(e);if(t.detectedLocale){if(t.detectedLocale!==r)throw Error(`Invariant: The detected locale does not match the locale in the query. Expected to find '${r}' in '${e}' but found '${t.detectedLocale}'}`);e=t.pathname}}return{pathname:e,detectedLocale:r,inferredFromDefault:"1"===t.__nextInferredLocaleFromDefault}}analyze(e,t={}){let r=t.defaultLocale,n="string"==typeof r,a=e.split("/",2);if(!a[1])return{detectedLocale:r,pathname:e,inferredFromDefault:n};let o=a[1].toLowerCase(),i=this.lowerCaseLocales.indexOf(o);return i<0||(r=this.config.locales[i],n=!1,e=e.slice(r.length+1)||"/"),{detectedLocale:r,pathname:e,inferredFromDefault:n}}}async function ti(e,t,r,n){}r(5431),r(1408);var ts=r(3307);let tl=ec("/_next/data/:path*");class tu{constructor(e){this.suffix=e}match(e){return!!e.endsWith(this.suffix)}normalize(e,t){return t||this.match(e)?e.substring(0,e.length-this.suffix.length):e}}class tc extends tu{constructor(){super(N.hd)}}class td{constructor(e){if(this.prefix=e,e.endsWith("/"))throw Error(`PrefixPathnameNormalizer: prefix "${e}" should not end with a slash`)}match(e){return!!(e===this.prefix||e.startsWith(this.prefix+"/"))}normalize(e,t){return t||this.match(e)?e.length===this.prefix.length?"/":e.substring(this.prefix.length):e}}class tp extends td{constructor(){super("/_next/postponed/resume")}normalize(e,t){return t||this.match(e)?ei(e=super.normalize(e,!0)):e}}function tf(e){for(let[t]of A.vu)delete e[t.toLowerCase()]}class th extends tu{constructor(){super(N.Sx)}}class tg{constructor(e){if(this.suffix=new tu(".json"),!e)throw Error("Invariant: buildID is required");this.prefix=new td(`/_next/data/${e}`)}match(e){return this.prefix.match(e)&&this.suffix.match(e)}normalize(e,t){return t||this.match(e)?(e=this.prefix.normalize(e,!0),ei(e=this.suffix.normalize(e,!0))):e}}var tm=r(7760),ty=r(6195).Buffer;class tv extends Error{}class tb extends Error{constructor(e){super(),this.innerError=e}}class tS{constructor(e){var t,r,n;this.handleRSCRequest=(e,t,r)=>{var n,a;if(!r.pathname)return!1;if(null==(n=this.normalizers.prefetchRSC)?void 0:n.match(r.pathname))r.pathname=this.normalizers.prefetchRSC.normalize(r.pathname,!0),e.headers[A.A.toLowerCase()]="1",e.headers[A.qw.toLowerCase()]="1",(0,eT.kL)(e,"isRSCRequest",!0),(0,eT.kL)(e,"isPrefetchRSCRequest",!0);else if(null==(a=this.normalizers.rsc)?void 0:a.match(r.pathname))r.pathname=this.normalizers.rsc.normalize(r.pathname,!0),e.headers[A.A.toLowerCase()]="1",(0,eT.kL)(e,"isRSCRequest",!0);else if(e.headers["x-now-route-matches"])return tf(e.headers),!1;else return!1;if(r.query.__nextDataReq="1",e.url){let t=(0,V.parse)(e.url);t.pathname=r.pathname,e.url=(0,V.format)(t)}return!1},this.handleNextDataRequest=async(e,t,r)=>{let n=this.getMiddleware(),a=function(e){return"string"==typeof e&&tl(e)}(r.pathname);if(!a||!a.path)return!1;if(a.path[0]!==this.buildId)return await this.render404(e,t,r),!0;a.path.shift();let o=a.path[a.path.length-1];if("string"!=typeof o||!o.endsWith(".json"))return await this.render404(e,t,r),!0;let i=`/${a.path.join("/")}`;if(i=function(e,t){return void 0===t&&(t=""),e=e.replace(/\\/g,"/"),(e=t&&e.endsWith(t)?e.slice(0,-t.length):e).startsWith("/index/")&&!ee(e)?e=e.slice(6):"/index"===e&&(e="/"),e}(i,".json"),n&&(this.nextConfig.trailingSlash&&!i.endsWith("/")&&(i+="/"),!this.nextConfig.trailingSlash&&i.length>1&&i.endsWith("/")&&(i=i.substring(0,i.length-1))),this.i18nProvider){var s;let a=null==e?void 0:null==(s=e.headers.host)?void 0:s.split(":",1)[0].toLowerCase(),o=this.i18nProvider.detectDomainLocale(a),l=(null==o?void 0:o.defaultLocale)??this.i18nProvider.config.defaultLocale,u=this.i18nProvider.analyze(i);if(u.detectedLocale&&(i=u.pathname),r.query.__nextLocale=u.detectedLocale,r.query.__nextDefaultLocale=l,u.detectedLocale||delete r.query.__nextInferredLocaleFromDefault,!u.detectedLocale&&!n)return r.query.__nextLocale=l,await this.render404(e,t,r),!0}return r.pathname=i,r.query.__nextDataReq="1",!1},this.handleNextImageRequest=()=>!1,this.handleCatchallRenderRequest=()=>!1,this.handleCatchallMiddlewareRequest=()=>!1,this.normalize=e=>{let t=[];for(let r of(this.normalizers.data&&t.push(this.normalizers.data),this.normalizers.postponed&&t.push(this.normalizers.postponed),this.normalizers.prefetchRSC&&t.push(this.normalizers.prefetchRSC),this.normalizers.rsc&&t.push(this.normalizers.rsc),t))if(r.match(e))return r.normalize(e,!0);return e},this.normalizeAndAttachMetadata=async(e,t,r)=>{let n=await this.handleNextImageRequest(e,t,r);return!!(n||this.enabledDirectories.pages&&(n=await this.handleNextDataRequest(e,t,r)))},this.prepared=!1,this.preparedPromise=null,this.customErrorNo404Warn=function(e){let t,r=!1;return function(){for(var n=arguments.length,a=Array(n),o=0;o{es.ZK(`You have added a custom /_error page without a custom /404 page. This prevents the 404 page from being auto statically optimized. +See here for info: https://nextjs.org/docs/messages/custom-error-no-custom-404`)});let{dir:a=".",quiet:o=!1,conf:i,dev:s=!1,minimalMode:l=!1,customServer:u=!0,hostname:c,port:d}=e;this.serverOptions=e,this.dir=a,this.quiet=o,this.loadEnvConfig({dev:s}),this.nextConfig=i,this.hostname=c,this.hostname&&(this.fetchHostname=function(e){return X.test(e)?`[${e}]`:e}(this.hostname)),this.port=d,this.distDir=this.nextConfig.distDir,this.publicDir=this.getPublicDir(),this.hasStaticDir=!l&&this.getHasStaticDir(),this.i18nProvider=(null==(t=this.nextConfig.i18n)?void 0:t.locales)?new to(this.nextConfig.i18n):void 0,this.localeNormalizer=this.i18nProvider?new eM(this.i18nProvider):void 0;let{serverRuntimeConfig:p={},publicRuntimeConfig:f,assetPrefix:h,generateEtags:g}=this.nextConfig;this.buildId=this.getBuildId(),this.minimalMode=l||!!process.env.NEXT_PRIVATE_MINIMAL_MODE,this.enabledDirectories=this.getEnabledDirectories(s),this.normalizers={postponed:this.enabledDirectories.app&&this.nextConfig.experimental.ppr&&this.minimalMode?new tp:void 0,rsc:this.enabledDirectories.app&&this.minimalMode?new tc:void 0,prefetchRSC:this.enabledDirectories.app&&this.nextConfig.experimental.ppr&&this.minimalMode?new th:void 0,data:this.enabledDirectories.pages?new tg(this.buildId):void 0},this.nextFontManifest=this.getNextFontManifest(),this.renderOpts={deploymentId:this.nextConfig.experimental.deploymentId,strictNextHead:!!this.nextConfig.experimental.strictNextHead,poweredByHeader:this.nextConfig.poweredByHeader,canonicalBase:this.nextConfig.amp.canonicalBase||"",buildId:this.buildId,generateEtags:g,previewProps:this.getPrerenderManifest().preview,customServer:!0===u||void 0,ampOptimizerConfig:null==(r=this.nextConfig.experimental.amp)?void 0:r.optimizer,basePath:this.nextConfig.basePath,images:this.nextConfig.images,optimizeFonts:this.nextConfig.optimizeFonts,fontManifest:this.nextConfig.optimizeFonts&&!s?this.getFontManifest():void 0,optimizeCss:this.nextConfig.experimental.optimizeCss,nextConfigOutput:this.nextConfig.output,nextScriptWorkers:this.nextConfig.experimental.nextScriptWorkers,disableOptimizedLoading:this.nextConfig.experimental.disableOptimizedLoading,domainLocales:null==(n=this.nextConfig.i18n)?void 0:n.domains,distDir:this.distDir,serverComponents:this.enabledDirectories.app,enableTainting:this.nextConfig.experimental.taint,crossOrigin:this.nextConfig.crossOrigin?this.nextConfig.crossOrigin:void 0,largePageDataBytes:this.nextConfig.experimental.largePageDataBytes,runtimeConfig:Object.keys(f).length>0?f:void 0,isExperimentalCompile:this.nextConfig.experimental.isExperimentalCompile,experimental:{ppr:this.enabledDirectories.app&&!0===this.nextConfig.experimental.ppr,missingSuspenseWithCSRBailout:!0===this.nextConfig.experimental.missingSuspenseWithCSRBailout}},this.pagesManifest=this.getPagesManifest(),this.appPathsManifest=this.getAppPathsManifest(),this.appPathRoutes=this.getAppPathRoutes(),this.matchers=this.getRouteMatchers(),this.matchers.reload(),this.setAssetPrefix(h),this.responseCache=this.getResponseCache({dev:s})}reloadMatchers(){return this.matchers.reload()}getRouteMatchers(){let e=new tn(e=>{switch(e){case Y.Ek:return this.getPagesManifest()??null;case Y.M:return this.getAppPathsManifest()??null;default:return null}}),t=new eF;return t.push(new tr(this.distDir,e,this.i18nProvider)),t.push(new e7(this.distDir,e,this.i18nProvider)),this.enabledDirectories.app&&(t.push(new e0(this.distDir,e)),t.push(new e2(this.distDir,e))),t}logError(e){this.quiet||es.vU(e)}async handleRequest(e,t,r){await this.prepare();let n=e.method.toUpperCase(),a=(0,j.Yz)();return a.withPropagatedContext(e.headers,()=>a.trace(ta._J.handleRequest,{spanName:`${n} ${e.url}`,kind:j.MU.SERVER,attributes:{"http.method":n,"http.target":e.url}},async o=>this.handleRequestImpl(e,t,r).finally(()=>{if(!o)return;o.setAttributes({"http.status_code":t.statusCode});let e=a.getRootSpanAttributes();if(!e)return;if(e.get("next.span_type")!==ta._J.handleRequest){console.warn(`Unexpected root span type '${e.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);return}let r=e.get("next.route");if(r){let e=`${n} ${r}`;o.setAttributes({"next.route":r,"http.route":r,"next.span_name":e}),o.updateName(e)}})))}async handleRequestImpl(e,t,r){try{var n,a,o,i,s,l,u,c,d,p;await this.matchers.waitTillReady();let f=t.originalResponse||t,h=f.setHeader.bind(f);f.setHeader=(t,r)=>{if(!f.headersSent){if("set-cookie"===t.toLowerCase()){let t=(0,eT.OX)(e,"middlewareCookie");t&&Array.isArray(r)&&r.every((e,r)=>e===t[r])||(r=[...new Set([...t||[],..."string"==typeof r?[r]:Array.isArray(r)?r:[]])])}return h(t,r)}};let g=(e.url||"").split("?",1)[0];if(null==g?void 0:g.match(/(\\|\/\/)/)){let r=H(e.url);t.redirect(r,308).body(r).send();return}if(!r||"object"!=typeof r){if(!e.url)throw Error("Invariant: url can not be undefined");r=(0,V.parse)(e.url,!0)}if(!r.pathname)throw Error("Invariant: pathname can't be empty");"string"==typeof r.query&&(r.query=Object.fromEntries(new URLSearchParams(r.query))),e.headers["x-forwarded-host"]??=e.headers.host??this.hostname,e.headers["x-forwarded-port"]??=null==(n=this.port)?void 0:n.toString();let{originalRequest:m}=e;e.headers["x-forwarded-proto"]??=(null==(a=m.socket)?void 0:a.encrypted)?"https":"http",e.headers["x-forwarded-for"]??=null==(o=m.socket)?void 0:o.remoteAddress,this.attachRequestMeta(e,r);if(this.minimalMode&&this.enabledDirectories.app&&await this.handleRSCRequest(e,t,r))return;let y=null==(i=this.i18nProvider)?void 0:i.detectDomainLocale((0,eA.F)(r,e.headers)),v=(null==y?void 0:y.defaultLocale)||(null==(s=this.nextConfig.i18n)?void 0:s.defaultLocale);r.query.__nextDefaultLocale=v;let b=eS(e.url.replace(/^\/+/,"/")),S=(0,eN.a)(b.pathname,{nextConfig:this.nextConfig,i18nProvider:this.i18nProvider});b.pathname=S.pathname,S.basePath&&(e.url=(0,eO.n)(e.url,this.nextConfig.basePath));let w=this.minimalMode&&"string"==typeof e.headers["x-matched-path"];if(w)try{this.enabledDirectories.app&&(e.url.match(/^\/index($|\?)/)&&(e.url=e.url.replace(/^\/index/,"/")),r.pathname="/index"===r.pathname?"/":r.pathname);let{pathname:n}=new URL(e.headers["x-matched-path"],"http://localhost"),{pathname:a}=new URL(e.url,"http://localhost");if(null==(l=this.normalizers.data)?void 0:l.match(a))r.query.__nextDataReq="1";else if((null==(u=this.normalizers.postponed)?void 0:u.match(n))&&"POST"===e.method){let t=[];for await(let r of e.body)t.push(r);let r=ty.concat(t).toString("utf8");(0,eT.kL)(e,"postponed",r)}n=this.normalize(n);let o=this.stripNextDataPath(a),i=null==(c=this.i18nProvider)?void 0:c.analyze(n,{defaultLocale:v});i&&(r.query.__nextLocale=i.detectedLocale,i.inferredFromDefault?r.query.__nextInferredLocaleFromDefault="1":delete r.query.__nextInferredLocaleFromDefault);let s=n=ei(n),f=ee(s);if(!f){let e=await this.matchers.match(s,{i18n:i});e&&(s=e.definition.pathname,f=void 0!==e.params)}i&&(n=i.pathname);let h=function({page:e,i18n:t,basePath:r,rewrites:n,pageIsDynamic:a,trailingSlash:o,caseSensitive:i}){let s,l,u;return a&&(u=(l=ev(s=ey(e,!1)))(e)),{handleRewrites:function(s,u){let c={},d=u.pathname,p=n=>{let p=ec(n.source+(o?"(/)?":""),{removeUnnamedParams:!0,strict:!0,sensitive:!!i})(u.pathname);if((n.has||n.missing)&&p){let e=function(e,t,r,n){void 0===r&&(r=[]),void 0===n&&(n=[]);let a={},o=r=>{let n;let o=r.key;switch(r.type){case"header":o=o.toLowerCase(),n=e.headers[o];break;case"cookie":n="cookies"in e?e.cookies[r.key]:ew(e.headers)()[r.key];break;case"query":n=t[o];break;case"host":{let{host:t}=(null==e?void 0:e.headers)||{};n=null==t?void 0:t.split(":",1)[0].toLowerCase()}}if(!r.value&&n)return a[function(e){let t="";for(let r=0;r64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(o)]=n,!0;if(n){let e=RegExp("^"+r.value+"$"),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{a[e]=t.groups[e]}):"host"===r.type&&t[0]&&(a.host=t[0])),!0}return!1};return!!r.every(e=>o(e))&&!n.some(e=>o(e))&&a}(s,u.query,n.has,n.missing);e?Object.assign(p,e):p=!1}if(p){let{parsedDestination:o,destQuery:i}=function(e){let t;let r=Object.assign({},e.query);delete r.__nextLocale,delete r.__nextDefaultLocale,delete r.__nextDataReq,delete r.__nextInferredLocaleFromDefault,delete r[A.H4];let n=e.destination;for(let t of Object.keys({...e.params,...r}))n=n.replace(RegExp(":"+ef(t),"g"),"__ESC_COLON_"+t);let a=eS(n),o=a.query,i=ex(""+a.pathname+(a.hash||"")),s=ex(a.hostname||""),l=[],u=[];(0,eu.Bo)(i,l),(0,eu.Bo)(s,u);let c=[];l.forEach(e=>c.push(e.name)),u.forEach(e=>c.push(e.name));let d=(0,eu.MY)(i,{validate:!1}),p=(0,eu.MY)(s,{validate:!1});for(let[t,r]of Object.entries(o))Array.isArray(r)?o[t]=r.map(t=>e_(ex(t),e.params)):"string"==typeof r&&(o[t]=e_(ex(r),e.params));let f=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!f.some(e=>c.includes(e)))for(let t of f)t in o||(o[t]=e.params[t]);if((0,Q.Ag)(i))for(let t of i.split("/")){let r=Q.Wz.find(e=>t.startsWith(e));if(r){e.params["0"]=r;break}}try{let[r,n]=(t=d(e.params)).split("#",2);a.hostname=p(e.params),a.pathname=r,a.hash=(n?"#":"")+(n||""),delete a.search}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match");throw e}return a.query={...r,...a.query},{newUrl:t,destQuery:o,parsedDestination:a}}({appendParamsToQuery:!0,destination:n.destination,params:p,query:u.query});if(o.protocol)return!0;if(Object.assign(c,i,p),Object.assign(u.query,o.query),delete o.query,Object.assign(u,o),d=u.pathname,r&&(d=d.replace(RegExp(`^${r}`),"")||"/"),t){let e=(0,el.h)(d,t.locales);d=e.pathname,u.query.nextInternalLocale=e.detectedLocale||p.nextInternalLocale}if(d===e)return!0;if(a&&l){let e=l(d);if(e)return u.query={...u.query,...e},!0}}return!1};for(let e of n.beforeFiles||[])p(e);if(d!==e){let t=!1;for(let e of n.afterFiles||[])if(t=p(e))break;if(!t&&!(()=>{let t=(0,eo.Q)(d||"");return t===(0,eo.Q)(e)||(null==l?void 0:l(t))})()){for(let e of n.fallback||[])if(t=p(e))break}}return c},defaultRouteRegex:s,dynamicRouteMatcher:l,defaultRouteMatches:u,getParamsFromRouteMatches:function(e,r,n){return ev(function(){let{groups:e,routeKeys:a}=s;return{re:{exec:o=>{let i=Object.fromEntries(new URLSearchParams(o)),s=t&&n&&i["1"]===n;for(let e of Object.keys(i)){let t=i[e];e!==N.dN&&e.startsWith(N.dN)&&(i[e.substring(N.dN.length)]=t,delete i[e])}let l=Object.keys(a||{}),u=e=>{if(t){let a=Array.isArray(e),o=a?e[0]:e;if("string"==typeof o&&t.locales.some(e=>e.toLowerCase()===o.toLowerCase()&&(n=e,r.locale=n,!0)))return a&&e.splice(0,1),!a||0===e.length}return!1};return l.every(e=>i[e])?l.reduce((t,r)=>{let n=null==a?void 0:a[r];return n&&!u(i[r])&&(t[e[n].pos]=i[r]),t},{}):Object.keys(i).reduce((e,t)=>{if(!u(i[t])){let r=t;return s&&(r=parseInt(t,10)-1+""),Object.assign(e,{[r]:i[t]})}return e},{})}},groups:e}}())(e.headers["x-now-route-matches"])},normalizeDynamicRouteParams:(e,t)=>eR(e,t,s,u),normalizeVercelUrl:(e,t,r)=>eC(e,t,r,a,s),interpolateDynamicPath:(e,t)=>eP(e,t,s)}}({pageIsDynamic:f,page:s,i18n:this.nextConfig.i18n,basePath:this.nextConfig.basePath,rewrites:(null==(d=this.getRoutesManifest())?void 0:d.rewrites)||{beforeFiles:[],afterFiles:[],fallback:[]},caseSensitive:!!this.nextConfig.experimental.caseSensitiveRoutes});v&&!S.locale&&(r.pathname=`/${v}${r.pathname}`);let g=r.pathname,m=h.handleRewrites(e,r),y=Object.keys(m),w=g!==r.pathname;w&&r.pathname&&(0,eT.kL)(e,"rewroteURL",r.pathname);let x=new Set;for(let e of Object.keys(r.query)){let t=r.query[e];if(e!==N.dN&&e.startsWith(N.dN)){let n=e.substring(N.dN.length);r.query[n]=t,x.add(n),delete r.query[e]}}if(f){let t={},a=h.normalizeDynamicRouteParams(r.query);if(!a.hasValidParams&&f&&!ee(o)){let e=null==h.dynamicRouteMatcher?void 0:h.dynamicRouteMatcher.call(h,o);e&&(h.normalizeDynamicRouteParams(e),Object.assign(a.params,e),a.hasValidParams=!0)}if(a.hasValidParams&&(t=a.params),e.headers["x-now-route-matches"]&&ee(n)&&!a.hasValidParams){let n={},o=h.getParamsFromRouteMatches(e,n,r.query.__nextLocale||"");n.locale&&(r.query.__nextLocale=n.locale,delete r.query.__nextInferredLocaleFromDefault),(a=h.normalizeDynamicRouteParams(o,!0)).hasValidParams&&(t=a.params)}f&&h.defaultRouteMatches&&o===s&&!a.hasValidParams&&!h.normalizeDynamicRouteParams({...t},!0).hasValidParams&&(t=h.defaultRouteMatches),t&&(n=h.interpolateDynamicPath(s,t),e.url=h.interpolateDynamicPath(e.url,t))}for(let t of((f||w)&&h.normalizeVercelUrl(e,!0,[...y,...Object.keys((null==(p=h.defaultRouteRegex)?void 0:p.groups)||{})]),x))delete r.query[t];if(r.pathname=n,b.pathname=r.pathname,await this.normalizeAndAttachMetadata(e,t,r))return}catch(r){if(r instanceof q||r instanceof B)return t.statusCode=400,this.renderError(null,e,t,"/_error",{});throw r}if((0,eT.kL)(e,"isLocaleDomain",!!y),S.locale&&(e.url=(0,V.format)(b),(0,eT.kL)(e,"didStripLocale",!0)),this.minimalMode&&r.query.__nextLocale||(S.locale?r.query.__nextLocale=S.locale:v&&(r.query.__nextLocale=v,r.query.__nextInferredLocaleFromDefault="1")),!this.serverOptions.webServerConfig&&!(0,eT.OX)(e,"incrementalCache")){let t="https:";try{t=new URL((0,eT.OX)(e,"initURL")||"/","http://n").protocol}catch{}let r=await this.getIncrementalCache({requestHeaders:Object.assign({},e.headers),requestProtocol:t.substring(0,t.length-1)});r.resetRequestCache(),(0,eT.kL)(e,"incrementalCache",r),globalThis.__incrementalCache=r}return e.headers["x-invoke-path"],!w&&S.basePath&&(r.pathname=(0,eO.n)(r.pathname,S.basePath)),t.statusCode=200,await this.run(e,t,r)}catch(r){if(r instanceof tv)throw r;if(r&&"object"==typeof r&&"ERR_INVALID_URL"===r.code||r instanceof q||r instanceof B)return t.statusCode=400,this.renderError(null,e,t,"/_error",{});if(this.minimalMode||this.renderOpts.dev||r.bubble)throw r;this.logError(ek(r)),t.statusCode=500,t.body("Internal Server Error").send()}}getRequestHandlerWithMetadata(e){let t=this.getRequestHandler();return(r,n,a)=>((0,eT.lx)(r,e),t(r,n,a))}getRequestHandler(){return this.handleRequest.bind(this)}setAssetPrefix(e){this.renderOpts.assetPrefix=e?e.replace(/\/$/,""):""}async prepare(){if(!this.prepared)return null===this.preparedPromise&&(this.preparedPromise=this.prepareImpl().then(()=>{this.prepared=!0,this.preparedPromise=null})),this.preparedPromise}async prepareImpl(){}async close(){}getAppPathRoutes(){let e={};return Object.keys(this.appPathsManifest||{}).forEach(t=>{let r=(0,O.w)(t);e[r]||(e[r]=[]),e[r].push(t)}),e}async run(e,t,r){return(0,j.Yz)().trace(ta._J.run,async()=>this.runImpl(e,t,r))}async runImpl(e,t,r){await this.handleCatchallRenderRequest(e,t,r)}async pipe(e,t){return(0,j.Yz)().trace(ta._J.pipe,async()=>this.pipeImpl(e,t))}async pipeImpl(e,t){let r=(0,en.Q)(t.req.headers["user-agent"]||""),n={...t,renderOpts:{...this.renderOpts,supportsDynamicHTML:!r,isBot:!!r}},a=await e(n);if(null===a)return;let{req:o,res:i}=n,s=i.statusCode,{body:l,type:u}=a,{revalidate:c}=a;if(!i.sent){let{generateEtags:e,poweredByHeader:t,dev:r}=this.renderOpts;r&&(i.setHeader("Cache-Control","no-store, must-revalidate"),c=void 0),await this.sendRenderResult(o,i,{result:l,type:u,generateEtags:e,poweredByHeader:t,revalidate:c}),i.statusCode=s}}async getStaticHTML(e,t){let r={...t,renderOpts:{...this.renderOpts,supportsDynamicHTML:!1}},n=await e(r);return null===n?null:n.body.toUnchunkedString()}async render(e,t,r,n={},a,o=!1){return(0,j.Yz)().trace(ta._J.render,async()=>this.renderImpl(e,t,r,n,a,o))}async renderImpl(e,t,r,n={},a,o=!1){var i,s;return(r.startsWith("/")||console.warn(`Cannot render page with path "${r}", did you mean "/${r}"?. See more info here: https://nextjs.org/docs/messages/render-no-starting-slash`),this.renderOpts.customServer&&"/index"===r&&!await this.hasPage("/index")&&(r="/"),!o&&!this.minimalMode&&!n.__nextDataReq&&((null==(i=e.url)?void 0:i.match(/^\/_next\//))||this.hasStaticDir&&e.url.match(/^\/static\//)))?this.handleRequest(e,t,a):(s=r,Y.Xn.includes(s))?this.render404(e,t,a):this.pipe(e=>this.renderToResponse(e),{req:e,res:t,pathname:r,query:n})}async getStaticPaths({pathname:e}){var t;let r=null==(t=this.getPrerenderManifest().dynamicRoutes[e])?void 0:t.fallback;return{staticPaths:void 0,fallbackMode:"string"==typeof r?"static":null===r?"blocking":r}}async renderToResponseWithComponents(e,t){return(0,j.Yz)().trace(ta._J.renderToResponseWithComponents,async()=>this.renderToResponseWithComponentsImpl(e,t))}stripInternalHeaders(e){(0,T.Mt)(e.headers),"originalRequest"in e&&"headers"in e.originalRequest&&(0,T.Mt)(e.originalRequest.headers)}async renderToResponseWithComponentsImpl({req:e,res:t,pathname:r,renderOpts:n},{components:a,query:o}){var i,l,u,c,d,p,f;let h,m,y;let v="/_not-found"===r||"/404"===r;this.stripInternalHeaders(e);let b="/500"===r,S=!0===a.isAppPath,w=!!a.getServerSideProps,x=!!a.getStaticPaths,_=(0,tm.x)(e),C=!!(null==(i=a.Component)?void 0:i.getInitialProps),P=!!a.getStaticProps,R=(0,V.parse)(e.url||"").pathname||"/",E=(0,eT.OX)(e,"rewroteURL")||R,k=!1,T=ee(a.page),O=this.getPrerenderManifest();if(S&&T){let t=await this.getStaticPaths({pathname:r,page:a.page,isAppPath:S,requestHeaders:e.headers});if(h=t.staticPaths,k=void 0!==(m=t.fallbackMode),"export"===this.nextConfig.output){let e=a.page;if("static"!==m)throw Error(`Page "${e}" is missing exported function "generateStaticParams()", which is required with "output: export" config.`);let t=(0,eo.Q)(E);if(!(null==h?void 0:h.includes(t)))throw Error(`Page "${e}" is missing param "${t}" in "generateStaticParams()", which is required with "output: export" config.`)}k&&(x=!0)}k||(null==h?void 0:h.includes(E))||e.headers["x-now-route-matches"]?P=!0:this.renderOpts.dev||(P||=!!O.routes["/index"===r?"/":r]);let M=!!(o.__nextDataReq||e.headers["x-nextjs-data"]&&this.serverOptions.webServerConfig)&&(P||w),I=("1"===e.headers[A.qw.toLowerCase()]||(0,eT.OX)(e,"isPrefetchRSCRequest"))??!1;if(!P&&e.headers["x-middleware-prefetch"]&&!(v||"/_error"===r))return t.setHeader("x-middleware-skip","1"),t.setHeader("cache-control","private, no-cache, no-store, max-age=0, must-revalidate"),t.body("{}").send(),null;delete o.__nextDataReq,P&&this.minimalMode&&e.headers["x-matched-path"]&&e.url.startsWith("/_next/data")&&(e.url=this.stripNextDataPath(e.url)),e.headers["x-nextjs-data"]&&(!t.statusCode||200===t.statusCode)&&t.setHeader("x-nextjs-matched-path",`${o.__nextLocale?`/${o.__nextLocale}`:""}${r}`);let j=(!!e.headers[A.A.toLowerCase()]||(0,eT.OX)(e,"isRSCRequest"))??!1,D=(0,eT.OX)(e,"postponed"),L=n.experimental.ppr&&j&&!I;if(!S&&j&&t.setHeader("vary",A.Am),!v||M||j||(t.statusCode=404),Y.Er.includes(r)&&(t.statusCode=parseInt(r.slice(1),10)),!_&&!D&&!v&&!b&&"/_error"!==r&&"HEAD"!==e.method&&"GET"!==e.method&&("string"==typeof a.Component||P))return t.statusCode=405,t.setHeader("Allow",["GET","HEAD"]),await this.renderError(null,e,t,r),null;if("string"==typeof a.Component)return{type:"html",body:ea.Z.fromStatic(a.Component)};if(o.amp||delete o.amp,!0===n.supportsDynamicHTML){let t=(0,en.Q)(e.headers["user-agent"]||""),r="function"!=typeof(null==(d=a.Document)?void 0:d.getInitialProps)||Y.wU in a.Document;n.supportsDynamicHTML=!P&&!t&&!o.amp&&r,n.isBot=t}!M&&S&&n.dev&&!1===n.supportsDynamicHTML&&(n.supportsDynamicHTML=!0);let $=P?null==(l=this.nextConfig.i18n)?void 0:l.defaultLocale:o.__nextDefaultLocale,F=o.__nextLocale,U=null==(u=this.nextConfig.i18n)?void 0:u.locales;S&&(t.setHeader("vary",A.Am),!this.renderOpts.dev&&P&&j)&&(this.minimalMode||(M=!0),L||((f=n.runtime)===N.Jp.experimentalEdge||f===N.Jp.edge)&&!this.serverOptions.webServerConfig||tf(e.headers));let B=!1,z=!1;P&&({isOnDemandRevalidate:B,revalidateOnlyGenerated:z}=(0,et.Iq)(e,this.renderOpts.previewProps)),P&&this.minimalMode&&e.headers["x-matched-path"]&&(E=R),R=(0,eo.Q)(R),E=(0,eo.Q)(E),this.localeNormalizer&&(E=this.localeNormalizer.normalize(E)),M&&(E=this.stripNextDataPath(E),R=this.stripNextDataPath(R));let W=null;!P||n.supportsDynamicHTML||_||D||L||(W=`${F?`/${F}`:""}${("/"===r||"/"===E)&&F?"":E}${o.amp?".amp":""}`),(v||b)&&P&&(W=`${F?`/${F}`:""}${r}${o.amp?".amp":""}`),W&&(W="/index"===(W=W.split("/").map(e=>{try{e=decodeURIComponent(e).replace(RegExp("([/#?]|%(2f|23|3f))","gi"),e=>encodeURIComponent(e))}catch(e){throw new q("failed to decode param")}return e}).join("/"))&&"/"===r?"/":W);let G="https:";try{G=new URL((0,eT.OX)(e,"initURL")||"/","http://n").protocol}catch{}let J=globalThis.__incrementalCache||await this.getIncrementalCache({requestHeaders:Object.assign({},e.headers),requestProtocol:G.substring(0,G.length-1)});null==J||J.resetRequestCache();let{routeModule:X}=a,Q=async({postponed:i})=>{let l;let u=!M&&!0===n.dev||!P&&!x||"string"==typeof i||L,c=(0,V.parse)(e.url||"",!0).query;n.params&&Object.keys(n.params).forEach(e=>{delete c[e]});let d="/"!==R&&this.nextConfig.trailingSlash,p=(0,V.format)({pathname:`${E}${d?"/":""}`,query:c}),f={...a,...n,...S?{incrementalCache:J,isRevalidate:P&&!i&&!L,originalPathname:a.ComponentMod.originalPathname,serverActions:this.nextConfig.experimental.serverActions}:{},isDataReq:M,resolvedUrl:p,locale:F,locales:U,defaultLocale:$,resolvedAsPath:w||C?(0,V.format)({pathname:`${R}${d?"/":""}`,query:c}):p,supportsDynamicHTML:u,isOnDemandRevalidate:B,isDraftMode:!1,isServerAction:_,postponed:i};if(X){if(X.definition.kind===s.APP_ROUTE){let r={params:n.params,prerenderManifest:O,renderOpts:{experimental:{ppr:!1},originalPathname:a.ComponentMod.originalPathname,supportsDynamicHTML:u,incrementalCache:J,isRevalidate:P}};try{let n=ts.Og.fromBaseNextRequest(e,(0,ts.Ub)(t.originalResponse)),a=await X.handle(n,r);return e.fetchMetrics=r.renderOpts.fetchMetrics,r.renderOpts.fetchTags,await ti(e,t,a,r.renderOpts.waitUntil),null}catch(r){if(P)throw r;return es.vU(r),await ti(e,t,new Response(null,{status:500})),null}}else if(X.definition.kind===s.PAGES)f.nextFontManifest=this.nextFontManifest,f.clientReferenceManifest=a.clientReferenceManifest,l=await X.render(e.originalRequest??e,t.originalResponse??t,{page:r,params:n.params,query:o,renderOpts:f});else if(X.definition.kind===s.APP_PAGE){let i=a.routeModule;f.nextFontManifest=this.nextFontManifest,l=await i.render(e.originalRequest??e,t.originalResponse??t,{page:v?"/404":r,params:n.params,query:o,renderOpts:f})}else throw Error("Invariant: Unknown route module type")}else l=await this.renderHTML(e,t,r,o,f);let{metadata:h}=l,{headers:g={},fetchTags:m}=h;if(m&&(g[N.Et]=m),e.fetchMetrics=h.fetchMetrics,S&&P&&0===h.revalidate&&!this.renderOpts.dev&&!f.experimental.ppr){let e=h.staticBailoutInfo,t=Error(`Page changed from static to dynamic at runtime ${R}${(null==e?void 0:e.description)?`, reason: ${e.description}`:""} +see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`);if(null==e?void 0:e.stack){let r=e.stack;t.stack=t.message+r.substring(r.indexOf("\n"))}throw t}return"isNotFound"in h&&h.isNotFound?{value:null,revalidate:h.revalidate}:h.isRedirect?{value:{kind:"REDIRECT",props:h.pageData??h.flightData},revalidate:h.revalidate}:l.isNull?null:{value:{kind:"PAGE",html:l,pageData:h.pageData??h.flightData,postponed:h.postponed,headers:g,status:S?t.statusCode:void 0},revalidate:h.revalidate}},Z=await this.responseCache.get(W,async(i,s,l)=>{if(this.renderOpts.dev,i||t.sent,h||({staticPaths:h,fallbackMode:m}=x?await this.getStaticPaths({pathname:r,requestHeaders:e.headers,isAppPath:S,page:a.page}):{staticPaths:void 0,fallbackMode:!1}),"static"===m&&(0,en.Q)(e.headers["user-agent"]||"")&&(m="blocking"),B&&z&&!s&&!this.minimalMode)return await this.render404(e,t),null;(null==s?void 0:s.isStale)===-1&&(B=!0),B&&(!1!==m||s)&&(m="blocking");let u=W??(n.dev&&S?E:null);u&&o.amp&&(u=u.replace(/\.amp$/,"")),u&&(null==h||h.includes(u)),this.nextConfig.experimental.isExperimentalCompile&&(m="blocking");let c=await Q({postponed:B||l||!D?void 0:D});return c?{...c,revalidate:void 0!==c.revalidate?c.revalidate:1}:null},{routeKind:null==X?void 0:X.definition.kind,incrementalCache:J,isOnDemandRevalidate:B,isPrefetch:"prefetch"===e.headers.purpose});if(!Z){if(W&&!(B&&z))throw Error("invariant: cache entry required but not generated");return null}let ei=(null==(c=Z.value)?void 0:c.kind)==="PAGE"&&!!Z.value.postponed;!P||this.minimalMode||L||ei&&!I||t.setHeader("x-nextjs-cache",B?"REVALIDATED":Z.isMiss?"MISS":Z.isStale?"STALE":"HIT");let{value:el}=Z;if((null==el?void 0:el.kind)==="IMAGE")throw Error("invariant SSG should not return an image cache value");if(D)y=0;else if(this.minimalMode&&j&&!I&&n.experimental.ppr)y=0;else if(void 0!==Z.revalidate&&(!this.renderOpts.dev||w&&!M)){if(!v||M){if(P){if("number"==typeof Z.revalidate){if(Z.revalidate<1)throw Error(`Invariant: invalid Cache-Control duration provided: ${Z.revalidate} < 1`);y=Z.revalidate}else!1===Z.revalidate&&(y=N.BR)}else t.getHeader("Cache-Control")||(y=0)}else y=0}Z.revalidate=y;let eu=(0,eT.OX)(e,"onCacheEntry");if(eu&&await eu(Z,{url:(0,eT.OX)(e,"initURL")}))return null;if(el){if("REDIRECT"===el.kind)return(Z.revalidate&&t.setHeader("Cache-Control",er(Z.revalidate)),M)?{type:"json",body:ea.Z.fromStatic(JSON.stringify(el.props)),revalidate:Z.revalidate}:(await (e=>{let r={destination:e.pageProps.__N_REDIRECT,statusCode:e.pageProps.__N_REDIRECT_STATUS,basePath:e.pageProps.__N_REDIRECT_BASE_PATH},n=r.statusCode||(r.permanent?K.X.PermanentRedirect:K.X.TemporaryRedirect),{basePath:a}=this.nextConfig;a&&!1!==r.basePath&&r.destination.startsWith("/")&&(r.destination=`${a}${r.destination}`),r.destination.startsWith("/")&&(r.destination=H(r.destination)),t.redirect(r.destination,n).body(r.destination).send()})(el.props),null);if("ROUTE"===el.kind){let r={...el.headers};return this.minimalMode&&P||delete r[N.Et],await ti(e,t,new Response(el.body,{headers:(0,g.EK)(r),status:el.status||200})),null}if(S){if(el.postponed&&D)throw Error("Invariant: postponed state should not be present on a resume request");if(el.headers){let e={...el.headers};for(let[r,n]of(this.minimalMode&&P||delete e[N.Et],Object.entries(e)))if(void 0!==n){if(Array.isArray(n))for(let e of n)t.appendHeader(r,e);else"number"==typeof n&&(n=n.toString()),t.appendHeader(r,n)}}if(this.minimalMode&&P&&(null==(p=el.headers)?void 0:p[N.Et])&&t.setHeader(N.Et,el.headers[N.Et]),el.status&&(t.statusCode=el.status),el.postponed&&j&&t.setHeader(A.VT,"1"),M){if(L){if(el.pageData)throw Error("Invariant: Expected pageData to be undefined");if(el.postponed)throw Error("Invariant: Expected postponed to be undefined");return{type:"rsc",body:el.html,revalidate:0}}if("string"!=typeof el.pageData)throw Error(`Invariant: expected pageData to be a string, got ${typeof el.pageData}`);return{type:"rsc",body:ea.Z.fromStatic(el.pageData),revalidate:Z.revalidate}}let e=el.html;if(!el.postponed||this.minimalMode)return{type:"html",body:e,revalidate:Z.revalidate};let r=new TransformStream;return e.chain(r.readable),Q({postponed:el.postponed}).then(async e=>{var t,n;if(!e)throw Error("Invariant: expected a result to be returned");if((null==(t=e.value)?void 0:t.kind)!=="PAGE")throw Error(`Invariant: expected a page response, got ${null==(n=e.value)?void 0:n.kind}`);await e.value.html.pipeTo(r.writable)}).catch(e=>{r.writable.abort(e).catch(e=>{console.error("couldn't abort transformer",e)})}),{type:"html",body:e,revalidate:0}}else if(M)return{type:"json",body:ea.Z.fromStatic(JSON.stringify(el.pageData)),revalidate:Z.revalidate};else return{type:"html",body:el.html,revalidate:Z.revalidate}}return(Z.revalidate&&t.setHeader("Cache-Control",er(Z.revalidate)),M)?(t.statusCode=404,t.body('{"notFound":true}').send()):(this.renderOpts.dev&&(o.__nextNotFoundSrcPage=r),await this.render404(e,t,{pathname:r,query:o},!1)),null}stripNextDataPath(e,t=!0){return(e.includes(this.buildId)&&(e=ei(e.substring(e.indexOf(this.buildId)+this.buildId.length).replace(/\.json$/,""))),this.localeNormalizer&&t)?this.localeNormalizer.normalize(e):e}getOriginalAppPaths(e){if(this.enabledDirectories.app){var t;return(null==(t=this.appPathRoutes)?void 0:t[e])||null}return null}async renderPageComponent(e,t){var r;let{query:n,pathname:a}=e,o=this.getOriginalAppPaths(a),i=Array.isArray(o),s=a;i&&(s=o[o.length-1]);let l=await this.findPageComponents({page:s,query:n,params:e.renderOpts.params||{},isAppPath:i,sriEnabled:!!(null==(r=this.nextConfig.experimental.sri)?void 0:r.algorithm),appPaths:o,shouldEnsure:!1});if(l)try{return await this.renderToResponseWithComponents(e,l)}catch(r){let e=r instanceof tv;if(!e||e&&t)throw r}return!1}async renderToResponse(e){return(0,j.Yz)().trace(ta._J.renderToResponse,{spanName:"rendering page",attributes:{"next.route":e.pathname}},async()=>this.renderToResponseImpl(e))}async renderToResponseImpl(e){var t;let{res:r,query:n,pathname:a}=e,o=!!n._nextBubbleNoFallback;delete n[A.H4],delete n._nextBubbleNoFallback;let i={i18n:null==(t=this.i18nProvider)?void 0:t.fromQuery(a,n)};try{for await(let t of this.matchers.matchAll(a,i)){let r=e.req.headers["x-invoke-output"];if(!this.minimalMode&&"string"==typeof r&&ee(r||"")&&r!==t.definition.pathname)continue;let n=await this.renderPageComponent({...e,pathname:t.definition.pathname,renderOpts:{...e.renderOpts,params:t.params}},o);if(!1!==n)return n}if(this.serverOptions.webServerConfig){e.pathname=this.serverOptions.webServerConfig.page;let t=await this.renderPageComponent(e,o);if(!1!==t)return t}}catch(i){let t=ek(i);if(i instanceof z)throw console.error("Invariant: failed to load static page",JSON.stringify({page:a,url:e.req.url,matchedPath:e.req.headers["x-matched-path"],initUrl:(0,eT.OX)(e.req,"initURL"),didRewrite:!!(0,eT.OX)(e.req,"rewroteURL"),rewroteUrl:(0,eT.OX)(e.req,"rewroteURL")},null,2)),t;if(t instanceof tv&&o)throw t;if(t instanceof q||t instanceof B)return r.statusCode=400,await this.renderErrorToResponse(e,t);r.statusCode=500,await this.hasPage("/500")&&(e.query.__nextCustomErrorRender="1",await this.renderErrorToResponse(e,t),delete e.query.__nextCustomErrorRender);let n=t instanceof tb;if(!n){if(this.minimalMode,this.renderOpts.dev)throw eE(t)&&(t.page=a),t;this.logError(ek(t))}return await this.renderErrorToResponse(e,n?t.innerError:t)}return this.getMiddleware()&&e.req.headers["x-nextjs-data"]&&(!r.statusCode||200===r.statusCode||404===r.statusCode)?(r.setHeader("x-nextjs-matched-path",`${n.__nextLocale?`/${n.__nextLocale}`:""}${a}`),r.statusCode=200,r.setHeader("content-type","application/json"),r.body("{}"),r.send(),null):(r.statusCode=404,this.renderErrorToResponse(e,null))}async renderToHTML(e,t,r,n={}){return(0,j.Yz)().trace(ta._J.renderToHTML,async()=>this.renderToHTMLImpl(e,t,r,n))}async renderToHTMLImpl(e,t,r,n={}){return this.getStaticHTML(e=>this.renderToResponse(e),{req:e,res:t,pathname:r,query:n})}async renderError(e,t,r,n,a={},o=!0){return(0,j.Yz)().trace(ta._J.renderError,async()=>this.renderErrorImpl(e,t,r,n,a,o))}async renderErrorImpl(e,t,r,n,a={},o=!0){return o&&r.setHeader("Cache-Control","no-cache, no-store, max-age=0, must-revalidate"),this.pipe(async t=>{let n=await this.renderErrorToResponse(t,e);if(this.minimalMode&&500===r.statusCode)throw e;return n},{req:t,res:r,pathname:n,query:a})}async renderErrorToResponse(e,t){return(0,j.Yz)().trace(ta._J.renderErrorToResponse,async()=>this.renderErrorToResponseImpl(e,t))}async renderErrorToResponseImpl(e,t){if(this.renderOpts.dev&&"/favicon.ico"===e.pathname)return{type:"html",body:ea.Z.fromStatic("")};let{res:r,query:n}=e;try{let a=null;404===r.statusCode&&(this.enabledDirectories.app&&(a=await this.findPageComponents({page:this.renderOpts.dev?"/not-found":"/_not-found",query:n,params:{},isAppPath:!0,shouldEnsure:!0,url:e.req.url})),!a&&await this.hasPage("/404")&&(a=await this.findPageComponents({page:"/404",query:n,params:{},isAppPath:!1,shouldEnsure:!0,url:e.req.url})));let o=`/${r.statusCode}`;if(!e.query.__nextCustomErrorRender&&!a&&Y.Er.includes(o)&&("/500"!==o||!this.renderOpts.dev)&&(a=await this.findPageComponents({page:o,query:n,params:{},isAppPath:!1,shouldEnsure:!0,url:e.req.url})),a||(a=await this.findPageComponents({page:"/_error",query:n,params:{},isAppPath:!1,shouldEnsure:!0,url:e.req.url}),o="/_error"),!a){if(this.renderOpts.dev)return{type:"html",body:ea.Z.fromStatic(` +
missing required error components, refreshing...
+ `)};throw new tb(Error("missing required error components"))}a.components.routeModule?(0,eT.kL)(e.req,"match",{definition:a.components.routeModule.definition,params:void 0}):(0,eT.d0)(e.req,"match");try{return await this.renderToResponseWithComponents({...e,pathname:o,renderOpts:{...e.renderOpts,err:t}},a)}catch(e){if(e instanceof tv)throw Error("invariant: failed to render error page");throw e}}catch(i){let t=ek(i),a=t instanceof tb;a||this.logError(t),r.statusCode=500;let o=await this.getFallbackErrorComponents(e.req.url);if(o)return(0,eT.kL)(e.req,"match",{definition:o.routeModule.definition,params:void 0}),this.renderToResponseWithComponents({...e,pathname:"/_error",renderOpts:{...e.renderOpts,err:a?t.innerError:t}},{query:n,components:o});return{type:"html",body:ea.Z.fromStatic("Internal Server Error")}}}async renderErrorToHTML(e,t,r,n,a={}){return this.getStaticHTML(t=>this.renderErrorToResponse(t,e),{req:t,res:r,pathname:n,query:a})}async render404(e,t,r,n=!0){let{pathname:a,query:o}=r||(0,V.parse)(e.url,!0);return this.nextConfig.i18n&&(o.__nextLocale||=this.nextConfig.i18n.defaultLocale,o.__nextDefaultLocale||=this.nextConfig.i18n.defaultLocale),t.statusCode=404,this.renderError(null,e,t,a,o,n)}}let tw=e=>{let t=e.length,r=0,n=0,a=8997,o=0,i=33826,s=0,l=40164,u=0,c=52210;for(;r>>16,a=65535&n,s+=o>>>16,i=65535&o,c=u+(s>>>16)&65535,l=65535&s;return(15&c)*281474976710656+4294967296*l+65536*i+(a^c>>4)},tx=(e,t=!1)=>(t?'W/"':'"')+tw(e).toString(36)+e.length.toString(36)+'"';class t_{constructor(e){this.pendingResponses=new Map,Object.assign(this,{minimalMode:e})}get(e,t,r){var n;let a=e?`${e}-${r.isOnDemandRevalidate?"1":"0"}`:null,o=a?this.pendingResponses.get(a):null;if(o)return o;let{promise:i,resolve:s,reject:l}=new e$.Y;a&&this.pendingResponses.set(a,i);let u=!1,c=e=>{a&&this.pendingResponses.set(a,Promise.resolve(e)),u||(u=!0,s(e))};return a&&this.minimalMode&&(null==(n=this.previousCacheItem)?void 0:n.key)===a&&this.previousCacheItem.expiresAt>Date.now()?(c(this.previousCacheItem.entry),this.pendingResponses.delete(a)):(async()=>{try{let n=await t(u),o=null===n?null:{...n,isMiss:!0};r.isOnDemandRevalidate||c(o),e&&n&&void 0!==n.revalidate?this.previousCacheItem={key:a||e,entry:n,expiresAt:Date.now()+1e3}:this.previousCacheItem=void 0,r.isOnDemandRevalidate&&c(o)}catch(e){u?console.error(e):l(e)}finally{a&&this.pendingResponses.delete(a)}})(),i}}var tC=r(9020),tP=r.n(tC);let tR=0,tE="x-vercel-cache-tags",tk="x-vercel-sc-headers",tT="x-vercel-revalidate",tO="x-vercel-cache-item-name";class tA{static isAvailable(e){return!!(e._requestHeaders["x-vercel-sc-host"]||process.env.SUSPENSE_CACHE_URL)}constructor(e){if(this.debug=!!process.env.NEXT_PRIVATE_DEBUG_CACHE,this.headers={},this.headers["Content-Type"]="application/json",tk in e._requestHeaders){let t=JSON.parse(e._requestHeaders[tk]);for(let e in t)this.headers[e]=t[e];delete e._requestHeaders[tk]}let t=e._requestHeaders["x-vercel-sc-host"]||process.env.SUSPENSE_CACHE_URL,r=e._requestHeaders["x-vercel-sc-basepath"]||process.env.SUSPENSE_CACHE_BASEPATH;process.env.SUSPENSE_CACHE_AUTH_TOKEN&&(this.headers.Authorization=`Bearer ${process.env.SUSPENSE_CACHE_AUTH_TOKEN}`),t?(this.cacheEndpoint=`https://${t}${r||""}`,this.debug&&console.log("using cache endpoint",this.cacheEndpoint)):this.debug&&console.log("no cache endpoint available"),e.maxMemoryCacheSize?n||(this.debug&&console.log("using memory store for fetch cache"),n=new(tP())({max:e.maxMemoryCacheSize,length({value:e}){var t;if(!e)return 25;if("REDIRECT"===e.kind)return JSON.stringify(e.props).length;if("IMAGE"===e.kind)throw Error("invariant image should not be incremental-cache");return"FETCH"===e.kind?JSON.stringify(e.data||"").length:"ROUTE"===e.kind?e.body.length:e.html.length+((null==(t=JSON.stringify(e.pageData))?void 0:t.length)||0)}})):this.debug&&console.log("not using memory store for fetch cache")}resetRequestCache(){null==n||n.reset()}async revalidateTag(e){if(this.debug&&console.log("revalidateTag",e),Date.now(){var t;return(null==o?void 0:null==(t=o.items[e])?void 0:t.revalidatedAt)&&(null==o?void 0:o.items[e].revalidatedAt)>=((null==d?void 0:d.lastModified)||Date.now())})&&(d=void 0))}return d&&(null==d?void 0:null==(r=d.value)?void 0:r.kind)==="FETCH"&&(this.loadTagsManifest(),[...l||[],...u||[]].some(e=>{var t;return!!this.revalidatedTags.includes(e)||(null==o?void 0:null==(t=o.items[e])?void 0:t.revalidatedAt)&&(null==o?void 0:o.items[e].revalidatedAt)>=((null==d?void 0:d.lastModified)||Date.now())})&&(d=void 0)),d??null}async set(...e){let[t,r,n]=e;if(null==a||a.set(t,{value:r,lastModified:Date.now()}),this.debug&&console.log("set",t),this.flushToDisk){if((null==r?void 0:r.kind)==="ROUTE"){let e=this.getFilePath(`${t}.body`,"app");await this.fs.mkdir(eH().dirname(e)),await this.fs.writeFile(e,r.body);let n={headers:r.headers,status:r.status,postponed:void 0};await this.fs.writeFile(e.replace(/\.body$/,N.EX),JSON.stringify(n,null,2));return}if((null==r?void 0:r.kind)==="PAGE"){let e="string"==typeof r.pageData,n=this.getFilePath(`${t}.html`,e?"app":"pages");if(await this.fs.mkdir(eH().dirname(n)),await this.fs.writeFile(n,r.html),await this.fs.writeFile(this.getFilePath(`${t}${e?this.experimental.ppr?N.Sx:N.hd:N.JT}`,e?"app":"pages"),e?r.pageData:JSON.stringify(r.pageData)),r.headers||r.status){let e={headers:r.headers,status:r.status,postponed:r.postponed};await this.fs.writeFile(n.replace(/\.html$/,N.EX),JSON.stringify(e))}}else if((null==r?void 0:r.kind)==="FETCH"){let e=this.getFilePath(t,"fetch");await this.fs.mkdir(eH().dirname(e)),await this.fs.writeFile(e,JSON.stringify({...r,tags:n.tags}))}}}detectFileKind(e){if(!this.appDir&&!this.pagesDir)throw Error("Invariant: Can't determine file path kind, no page directory enabled");if(!this.appDir&&this.pagesDir)return"pages";if(this.appDir&&!this.pagesDir)return"app";let t=this.getFilePath(e,"pages");if(this.fs.existsSync(t))return"pages";if(t=this.getFilePath(e,"app"),this.fs.existsSync(t))return"app";throw Error(`Invariant: Unable to determine file path kind for ${e}`)}getFilePath(e,t){switch(t){case"fetch":return eH().join(this.serverDistDir,"..","cache","fetch-cache",e);case"pages":return eH().join(this.serverDistDir,"pages",e);case"app":return eH().join(this.serverDistDir,"app",e);default:throw Error("Invariant: Can't determine file path kind")}}}function tM(e){return e.replace(/\/$/,"").replace(/\/index$/,"")||"/"}class tI{constructor({fs:e,dev:t,appDir:r,pagesDir:n,flushToDisk:a,fetchCache:o,minimalMode:i,serverDistDir:s,requestHeaders:l,requestProtocol:u,maxMemoryCacheSize:c,getPrerenderManifest:d,fetchCacheKeyPrefix:p,CurCacheHandler:f,allowedRevalidateHeaderKeys:h,experimental:g}){var m,y,v,b;this.locks=new Map,this.unlocks=new Map;let S=!!process.env.NEXT_PRIVATE_DEBUG_CACHE;this.hasCustomCacheHandler=!!f,f?S&&console.log("using custom cache handler",f.name):(e&&s&&(S&&console.log("using filesystem cache handler"),f=tN),tA.isAvailable({_requestHeaders:l})&&i&&o&&(S&&console.log("using fetch cache handler"),f=tA)),process.env.__NEXT_TEST_MAX_ISR_CACHE&&(c=parseInt(process.env.__NEXT_TEST_MAX_ISR_CACHE,10)),this.dev=t,this.minimalMode=i,this.requestHeaders=l,this.requestProtocol=u,this.allowedRevalidateHeaderKeys=h,this.prerenderManifest=d(),this.fetchCacheKeyPrefix=p;let w=[];l[N.y3]===(null==(y=this.prerenderManifest)?void 0:null==(m=y.preview)?void 0:m.previewModeId)&&(this.isOnDemandRevalidate=!0),i&&"string"==typeof l[N.of]&&l[N.X_]===(null==(b=this.prerenderManifest)?void 0:null==(v=b.preview)?void 0:v.previewModeId)&&(w=l[N.of].split(",")),f&&(this.cacheHandler=new f({dev:t,fs:e,flushToDisk:a,serverDistDir:s,revalidatedTags:w,maxMemoryCacheSize:c,_pagesDir:!!n,_appDir:!!r,_requestHeaders:l,fetchCacheKeyPrefix:p,experimental:g}))}calculateRevalidate(e,t,r){if(r)return new Date().getTime()-1e3;let{initialRevalidateSeconds:n}=this.prerenderManifest.routes[tM(e)]||{initialRevalidateSeconds:1};return"number"==typeof n?1e3*n+t:n}_getPathname(e,t){return t?e:eB(e)}resetRequestCache(){var e,t;null==(t=this.cacheHandler)||null==(e=t.resetRequestCache)||e.call(t)}async unlock(e){let t=this.unlocks.get(e);t&&(t(),this.locks.delete(e),this.unlocks.delete(e))}async lock(e){process.env.__NEXT_INCREMENTAL_CACHE_IPC_PORT&&process.env.__NEXT_INCREMENTAL_CACHE_IPC_KEY;let t=()=>Promise.resolve(),r=this.locks.get(e);if(r)await r;else{let r=new Promise(e=>{t=async()=>{e()}});this.locks.set(e,r),this.unlocks.set(e,t)}return t}async revalidateTag(e){var t,r;return process.env.__NEXT_INCREMENTAL_CACHE_IPC_PORT&&process.env.__NEXT_INCREMENTAL_CACHE_IPC_KEY,null==(r=this.cacheHandler)?void 0:null==(t=r.revalidateTag)?void 0:t.call(r,e)}async fetchCacheKey(e,t={}){let r=[],n=new TextEncoder,a=new TextDecoder;if(t.body){if("function"==typeof t.body.getReader){let e=t.body,o=[];try{await e.pipeTo(new WritableStream({write(e){"string"==typeof e?(o.push(n.encode(e)),r.push(e)):(o.push(e),r.push(a.decode(e,{stream:!0})))}})),r.push(a.decode());let i=o.reduce((e,t)=>e+t.length,0),s=new Uint8Array(i),l=0;for(let e of o)s.set(e,l),l+=e.length;t._ogBody=s}catch(e){console.error("Problem reading body",e)}}else if("function"==typeof t.body.keys){let e=t.body;for(let n of(t._ogBody=t.body,new Set([...e.keys()]))){let t=e.getAll(n);r.push(`${n}=${(await Promise.all(t.map(async e=>"string"==typeof e?e:await e.text()))).join(",")}`)}}else if("function"==typeof t.body.arrayBuffer){let e=t.body,n=await e.arrayBuffer();r.push(await e.text()),t._ogBody=new Blob([n],{type:e.type})}else"string"==typeof t.body&&(r.push(t.body),t._ogBody=t.body)}let o=JSON.stringify(["v3",this.fetchCacheKeyPrefix||"",e,t.method,"function"==typeof(t.headers||{}).keys?Object.fromEntries(t.headers):t.headers,t.mode,t.redirect,t.credentials,t.referrer,t.referrerPolicy,t.integrity,t.cache,r]);{var i;let e=n.encode(o);return i=await crypto.subtle.digest("SHA-256",e),Array.prototype.map.call(new Uint8Array(i),e=>e.toString(16).padStart(2,"0")).join("")}}async get(e,t={}){var r,n,a;let o,i;if(process.env.__NEXT_INCREMENTAL_CACHE_IPC_PORT&&process.env.__NEXT_INCREMENTAL_CACHE_IPC_KEY,this.dev&&("fetch"!==t.kindHint||"no-cache"===this.requestHeaders["cache-control"]))return null;e=this._getPathname(e,"fetch"===t.kindHint);let s=null,l=t.revalidate,u=await (null==(r=this.cacheHandler)?void 0:r.get(e,t));if((null==u?void 0:null==(n=u.value)?void 0:n.kind)==="FETCH")return[...t.tags||[],...t.softTags||[]].some(e=>{var t;return null==(t=this.revalidatedTags)?void 0:t.includes(e)})?null:(l=l||u.value.revalidate,{isStale:(Date.now()-(u.lastModified||0))/1e3>l,value:{kind:"FETCH",data:u.value.data,revalidate:l},revalidateAfter:Date.now()+1e3*l});let c=null==(a=this.prerenderManifest.routes[tM(e)])?void 0:a.initialRevalidateSeconds;return(null==u?void 0:u.lastModified)===-1?(o=-1,i=-1*N.BR):o=!!(!1!==(i=this.calculateRevalidate(e,(null==u?void 0:u.lastModified)||Date.now(),this.dev&&"fetch"!==t.kindHint))&&i2097152){if(this.dev)throw Error("fetch for over 2MB of data can not be cached");return}e=this._getPathname(e,r.fetchCache);try{var n;void 0===r.revalidate||r.fetchCache||(this.prerenderManifest.routes[e]={experimentalPPR:void 0,dataRoute:eH().posix.join("/_next/data",`${eB(e)}.json`),srcRoute:null,initialRevalidateSeconds:r.revalidate,prefetchDataRoute:void 0}),await (null==(n=this.cacheHandler)?void 0:n.set(e,t,r))}catch(t){console.warn("Failed to update prerender cache for",e,t)}}}}class tj extends tS{constructor(e){super(e),this.handleCatchallRenderRequest=async(e,t,r)=>{let{pathname:n,query:a}=r;if(!n)throw Error("pathname is undefined");let o=this.serverOptions.webServerConfig.pathname;if(n!==o&&ee(n=o)){let t=ey(n,!1),r=ev(t)(n),o=eR(a,!1,t,r);n=eP(n,o.hasValidParams?o.params:a,t),eC(e,!0,Object.keys(t.routeKeys),!0,t)}if(n=(0,eo.Q)(n),this.i18nProvider){let{detectedLocale:e}=await this.i18nProvider.analyze(n);e&&(r.query.__nextLocale=e)}let i=!!a._nextBubbleNoFallback;e4(n)&&delete a._nextBubbleNoFallback;try{return await this.render(e,t,n,a,r,!0),!0}catch(e){if(e instanceof tv&&i)return!1;throw e}},Object.assign(this.renderOpts,e.webServerConfig.extendRenderOpts)}async getIncrementalCache({requestHeaders:e}){return new tI({dev:!!this.renderOpts.dev,requestHeaders:e,requestProtocol:"https",pagesDir:this.enabledDirectories.pages,appDir:this.enabledDirectories.app,allowedRevalidateHeaderKeys:this.nextConfig.experimental.allowedRevalidateHeaderKeys,minimalMode:this.minimalMode,fetchCache:!0,fetchCacheKeyPrefix:this.nextConfig.experimental.fetchCacheKeyPrefix,maxMemoryCacheSize:this.nextConfig.cacheMaxMemorySize,flushToDisk:!1,CurCacheHandler:this.serverOptions.webServerConfig.incrementalCacheHandler,getPrerenderManifest:()=>this.getPrerenderManifest(),experimental:{ppr:!1}})}getResponseCache(){return new t_(this.minimalMode)}async hasPage(e){return e===this.serverOptions.webServerConfig.page}getBuildId(){return this.serverOptions.webServerConfig.extendRenderOpts.buildId}getEnabledDirectories(){return{app:"app"===this.serverOptions.webServerConfig.pagesType,pages:"pages"===this.serverOptions.webServerConfig.pagesType}}getPagesManifest(){return{[this.serverOptions.webServerConfig.pathname]:`server${this.serverOptions.webServerConfig.page}.js`}}getAppPathsManifest(){let e=this.serverOptions.webServerConfig.page;return{[this.serverOptions.webServerConfig.page]:`app${e}.js`}}attachRequestMeta(e,t){(0,eT.kL)(e,"initQuery",{...t.query})}getPrerenderManifest(){var e;let{prerenderManifest:t}=this.serverOptions.webServerConfig;return(null==(e=this.renderOpts)?void 0:e.dev)||!t?{version:-1,routes:{},dynamicRoutes:{},notFoundRoutes:[],preview:{previewModeId:"development-id"}}:t}getNextFontManifest(){return this.serverOptions.webServerConfig.extendRenderOpts.nextFontManifest}renderHTML(e,t,r,n,a){let{renderToHTML:o}=this.serverOptions.webServerConfig;if(!o)throw Error("Invariant: routeModule should be configured when rendering pages");return r===(a.dev?"/not-found":"/_not-found")&&(r="/404"),o(e,t,r,n,Object.assign(a,{disableOptimizedLoading:!0,runtime:"experimental-edge"}))}async sendRenderResult(e,t,r){let n;if(t.setHeader("X-Edge-Runtime","1"),r.poweredByHeader&&"html"===r.type&&t.setHeader("X-Powered-By","Next.js"),t.getHeader("Content-Type")||t.setHeader("Content-Type",r.result.contentType?r.result.contentType:"json"===r.type?"application/json":"text/html; charset=utf-8"),r.result.isDynamic)n=r.result.pipeTo(t.transformStream.writable);else{let e=r.result.toUnchunkedString();t.setHeader("Content-Length",String(new TextEncoder().encode(e).buffer.byteLength)),r.generateEtags&&t.setHeader("ETag",tx(e)),t.body(e)}t.send(),n&&await n}async findPageComponents({page:e,query:t,params:r,url:n}){let a=await this.serverOptions.webServerConfig.loadComponent(e);return a?{query:{...t||{},...r||{}},components:a}:null}async runApi(){return!0}async handleApiRequest(){return!1}loadEnvConfig(){}getPublicDir(){return""}getHasStaticDir(){return!1}async getFallback(){return""}getFontManifest(){}handleCompression(){}async handleUpgrade(){}async getFallbackErrorComponents(e){return null}getRoutesManifest(){}getMiddleware(){}getFilesystemPaths(){return new Set}async getPrefetchRsc(){return null}}class tD{constructor(e,t,r){this.method=e,this.url=t,this.body=r}get cookies(){return this._cookies?this._cookies:this._cookies=ew(this.headers)()}}class tL{constructor(e){this.destination=e}redirect(e,t){return this.setHeader("Location",e),this.statusCode=t,t===K.X.PermanentRedirect&&this.setHeader("Refresh",`0;url=${e}`),this}}class t$ extends tD{constructor(e){let t=new URL(e.url);for(let[r,n]of(super(e.method,t.href.slice(t.origin.length),e.clone().body),this.request=e,this.headers={},e.headers.entries()))this.headers[r]=n}async parseBody(e){throw Error("parseBody is not implemented in the web runtime")}}class tF extends tL{constructor(e=new TransformStream){super(e.writable),this.transformStream=e,this.headers=new Headers,this.textBody=void 0,this.sendPromise=new e$.Y,this._sent=!1}setHeader(e,t){for(let r of(this.headers.delete(e),Array.isArray(t)?t:[t]))this.headers.append(e,r);return this}removeHeader(e){return this.headers.delete(e),this}getHeaderValues(e){var t;return null==(t=this.getHeader(e))?void 0:t.split(",").map(e=>e.trimStart())}getHeader(e){return this.headers.get(e)??void 0}getHeaders(){return(0,g.lb)(this.headers)}hasHeader(e){return this.headers.has(e)}appendHeader(e,t){return this.headers.append(e,t),this}body(e){return this.textBody=e,this}send(){this.sendPromise.resolve(),this._sent=!0}get sent(){return this._sent}async toResponse(){return this.sent||await this.sendPromise.promise,new Response(this.textBody??this.transformStream.readable,{headers:this.headers,status:this.statusCode,statusText:this.statusMessage})}}let tU=Symbol.for("__next_internal_waitUntil__"),tH=globalThis[tU]||(globalThis[tU]={waitUntilCounter:0,waitUntilResolve:void 0,waitUntilPromise:null});var tq=r(2338),tB=r(613),tz=r(4399),tV=r(4421);let tW=(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/error-boundary.js`),{__esModule:tG,$$typeof:tJ}=tW,tX=tW.default;(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/error-boundary.js#ErrorBoundaryHandler`),(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/error-boundary.js#GlobalError`);let tK=tX;(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/error-boundary.js#ErrorBoundary`);var tY=r(6673);let tQ=(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/app-router.js`),{__esModule:tZ,$$typeof:t0}=tQ,t1=tQ.default;(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/app-router.js#getServerActionDispatcher`),(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/app-router.js#urlToUrlWithoutFlightMarker`),(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/app-router.js#createEmptyCacheNode`);let t2=t1,t4=(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/layout-router.js`),{__esModule:t3,$$typeof:t9}=t4,t6=t4.default,t5=(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/render-from-template-context.js`),{__esModule:t8,$$typeof:t7}=t5,re=t5.default;var rt=r(5364),rr=r(4359),rn=r(7887),ra=r(9486);let ro=(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/static-generation-searchparams-bailout-provider.js`),{__esModule:ri,$$typeof:rs}=ro,rl=ro.default;function ru(){return new Proxy({},{get(e,t){"string"==typeof t&&(0,ra.o)("searchParams."+t)}})}var rc=r(9653);let rd=(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/not-found-boundary.js`),{__esModule:rp,$$typeof:rf}=rd;rd.default;let rh=(0,tV.D)(String.raw`/Users/dhravyashah/Documents/code/anycontext/node_modules/next/dist/esm/client/components/not-found-boundary.js#NotFoundBoundary`);var rg=r(5373),rm=r(9986);function ry(e,t){let r={as:"style"};"string"==typeof t&&(r.crossOrigin=t),rm.preload(e,r)}function rv(e,t,r){let n={as:"font",type:t};"string"==typeof r&&(n.crossOrigin=r),rm.preload(e,n)}function rb(e,t){rm.preconnect(e,"string"==typeof t?{crossOrigin:t}:void 0)}r(9475);let rS=function(){throw Error("Taint can only be used with the taint flag.")};function rw(){return(0,rg.XH)({serverHooks:rc,staticGenerationAsyncStorage:rt.A})}let rx=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,4404)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(r.bind(r,7839)),"/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.bind(r,4553)),"next/dist/client/components/not-found-error"]}],r_=["/Users/dhravyashah/Documents/code/anycontext/apps/web/src/app/page.tsx"],rC="/page",rP={require:r,loadChunk:()=>Promise.resolve()},rR=new tB.AppPageRouteModule({definition:{kind:tz.x.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:rx}}),rE=e=>e?JSON.parse(e):void 0,rk=self.__BUILD_MANIFEST,rT=rE(self.__PRERENDER_MANIFEST),rO=rE(self.__REACT_LOADABLE_MANIFEST),rA=null==(l=self.__RSC_MANIFEST)?void 0:l["/page"],rN=rE(self.__RSC_SERVER_MANIFEST),rM=rE(self.__NEXT_FONT_MANIFEST),rI=function({dev:e,page:t,appMod:r,pageMod:n,errorMod:a,error500Mod:o,pagesType:i,Document:s,buildManifest:l,prerenderManifest:u,reactLoadableManifest:c,renderToHTML:d,clientReferenceManifest:p,subresourceIntegrityManifest:f,serverActionsManifest:h,serverActions:g,config:m,buildId:y,nextFontManifest:v,incrementalCacheHandler:b}){let S="app"===i,w={dev:e,buildManifest:l,reactLoadableManifest:c,subresourceIntegrityManifest:f,Document:s,App:null==r?void 0:r.default,clientReferenceManifest:p},x=new tj({dev:e,conf:m,minimalMode:!0,webServerConfig:{page:t,pathname:S?(0,O.w)(t):t,pagesType:i,prerenderManifest:u,extendRenderOpts:{buildId:y,runtime:N.Jp.experimentalEdge,supportsDynamicHTML:!0,disableOptimizedLoading:!0,serverActionsManifest:h,serverActions:g,nextFontManifest:v},renderToHTML:d,incrementalCacheHandler:b,loadComponent:async e=>e===t?{...w,Component:n.default,pageConfig:n.config||{},getStaticProps:n.getStaticProps,getServerSideProps:n.getServerSideProps,getStaticPaths:n.getStaticPaths,ComponentMod:n,isAppPath:!!n.__next_app__,page:e,routeModule:n.routeModule}:"/500"===e&&o?{...w,Component:o.default,pageConfig:o.config||{},getStaticProps:o.getStaticProps,getServerSideProps:o.getServerSideProps,getStaticPaths:o.getStaticPaths,ComponentMod:o,page:e,routeModule:o.routeModule}:"/_error"===e?{...w,Component:a.default,pageConfig:a.config||{},getStaticProps:a.getStaticProps,getServerSideProps:a.getServerSideProps,getStaticPaths:a.getStaticPaths,ComponentMod:a,page:e,routeModule:a.routeModule}:null}}).getRequestHandler();return async function(e,t){let r=new t$(e),n=new tF;x(r,n);let a=await n.toResponse();if(t&&t.waitUntil){let e=tH.waitUntilPromise;e&&t.waitUntil(e)}return e.fetchMetrics=r.fetchMetrics,a}}({pagesType:i.APP,dev:!1,page:"/page",appMod:null,pageMod:u,errorMod:null,error500Mod:null,Document:null,buildManifest:rk,prerenderManifest:rT,renderToHTML:tq.f,reactLoadableManifest:rO,clientReferenceManifest:rA,serverActionsManifest:rN,serverActions:void 0,subresourceIntegrityManifest:void 0,config:{env:{},webpack:null,eslint:{ignoreDuringBuilds:!1},typescript:{ignoreBuildErrors:!1,tsconfigPath:"tsconfig.json"},distDir:".next",cleanDistDir:!0,assetPrefix:"",cacheMaxMemorySize:52428800,configOrigin:"next.config.js",useFileSystemPublicRoutes:!0,generateEtags:!0,pageExtensions:["tsx","ts","jsx","js"],poweredByHeader:!0,compress:!0,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:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1},devIndicators:{buildActivity:!0,buildActivityPosition:"bottom-right"},onDemandEntries:{maxInactiveAge:6e4,pagesBufferLength:5},amp:{canonicalBase:""},basePath:"",sassOptions:{},trailingSlash:!1,i18n:null,productionBrowserSourceMaps:!1,optimizeFonts:!0,excludeDefaultMomentLocales:!0,serverRuntimeConfig:{},publicRuntimeConfig:{},reactProductionProfiling:!1,reactStrictMode:null,httpAgentOptions:{keepAlive:!0},outputFileTracing:!0,staticPageGenerationTimeout:60,swcMinify:!0,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:!0,serverSourceMaps:!1,caseSensitiveRoutes:!1,useDeploymentId:!1,useDeploymentIdServerActions:!1,clientRouterFilter:!0,clientRouterFilterRedirects:!1,fetchCacheKeyPrefix:"",middlewarePrefetch:"flexible",optimisticClientCache:!0,manualClientBasePath:!1,cpus:9,memoryBasedWorkersCount:!1,isrFlushToDisk:!0,workerThreads:!1,optimizeCss:!1,nextScriptWorkers:!1,scrollRestoration:!1,externalDir:!1,disableOptimizedLoading:!1,gzipSize:!0,craCompat:!1,esmExternals:!0,fullySpecified:!1,outputFileTracingRoot:"/Users/dhravyashah/Documents/code/anycontext/apps/web",swcTraceProfiling:!1,forceSwcTransforms:!1,largePageDataBytes:128e3,adjustFontFallbacks:!1,adjustFontFallbacksWithSizeAdjust:!1,typedRoutes:!1,instrumentationHook:!1,bundlePagesExternals:!1,parallelServerCompiles:!1,parallelServerBuildTraces:!1,ppr:!1,missingSuspenseWithCSRBailout:!0,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"]},configFile:"/Users/dhravyashah/Documents/code/anycontext/apps/web/next.config.js",configFileName:"next.config.js"},buildId:"yGeZZitS1W4Rar-yoH8R4",nextFontManifest:rM,incrementalCacheHandler:null}),rj=u;function rD(e){return U({...e,IncrementalCache:tI,handler:rI})}},982:(e,t,r)=>{Promise.resolve().then(r.bind(r,991))},3311:(e,t,r)=>{Promise.resolve().then(r.bind(r,7560)),Promise.resolve().then(r.bind(r,990)),Promise.resolve().then(r.bind(r,7364)),Promise.resolve().then(r.bind(r,188)),Promise.resolve().then(r.bind(r,8535)),Promise.resolve().then(r.bind(r,8486)),Promise.resolve().then(r.bind(r,7125)),Promise.resolve().then(r.bind(r,4198)),Promise.resolve().then(r.bind(r,3054)),Promise.resolve().then(r.bind(r,1271))},5722:()=>{},991:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1923),a=r(9198);let o=function({jwt:e}){return(0,a.useEffect)(()=>{},[e]),(0,n.jsx)("button",{onClick:()=>window.postMessage({jwt:e},"*"),children:"Validate Extension"})}},4203:e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o={};function i(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 s(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,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function l(e){var t,r;if(!e)return;let[[n,a],...o]=s(e),{domain:i,expires:l,httponly:d,maxage:p,path:f,samesite:h,secure:g,priority:m}=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(a),domain:i,...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},...g&&{secure:!0},...m&&{priority:c.includes(r=(r=m).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:()=>s,parseSetCookie:()=>l,stringifyCookie:()=>i}),e.exports=((e,o,i,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let i of n(o))a.call(e,i)||void 0===i||t(e,i,{get:()=>o[i],enumerable:!(s=r(o,i))||s.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 s(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])=>i(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])=>i(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 a=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(a)?a:function(e){if(!e)return[];var t,r,n,a,o,i=[],s=0;function l(){for(;s=e.length)&&i.push(e.substring(t,e.length))}return i}(a)){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,a=this._parsed;return a.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=i(r);t.append("set-cookie",e)}}(a,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(i).join("; ")}}},3970:(e,t,r)=>{"use strict";(()=>{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",s=new n.NoopContextManager;class l{constructor(){}static getInstance(){return this._instance||(this._instance=new l),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)||s}disable(){this._getContextManager().disable(),(0,a.unregisterGlobal)(i,o.DiagAPI.instance())}}t.ContextAPI=l},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 s{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,s,l;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!==(s=r.logLevel)&&void 0!==s?s:o.DiagLogLevel.INFO,e);if(u&&!r.suppressOverrideMessage){let e=null!==(l=Error().stack)&&void 0!==l?l:"";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 s),this._instance}}t.DiagAPI=s},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 s{constructor(){}static getInstance(){return this._instance||(this._instance=new s),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=s},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),s=r(369),l=r(930),u="propagation",c=new a.NoopTextMapPropagator;class d{constructor(){this.createBaggage=s.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,l.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,l.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),s=r(930),l="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)(l,this._proxyTracerProvider,s.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,n.getGlobal)(l)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,n.unregisterGlobal)(l,s.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],s=Symbol.for(`opentelemetry.js.api.${i}`),l=n._globalThis;t.registerGlobal=function(e,t,r,n=!1){var o;let i=l[s]=null!==(o=l[s])&&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=l[s])||void 0===t?void 0:t.version;if(n&&(0,o.isCompatible)(n))return null===(r=l[s])||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=l[s];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 s={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};return null!=s.prerelease||o.major!==s.major?i(e):0===o.major?o.minor===s.minor&&o.patch<=s.patch?(t.add(e),!0):i(e):o.minor<=s.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 s{addCallback(e){}removeCallback(e){}}t.NoopObservableMetric=s;class l extends s{}t.NoopObservableCounterMetric=l;class u extends s{}t.NoopObservableGaugeMetric=u;class c extends s{}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 l,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:r.g},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),s=n.ContextAPI.getInstance();class l{startSpan(e,t,r=s.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,l;if(arguments.length<2)return;2==arguments.length?l=t:3==arguments.length?(o=t,l=r):(o=t,i=r,l=n);let u=null!=i?i:s.active(),c=this.startSpan(e,o,u),d=(0,a.setSpan)(u,c);return s.with(d,l,void 0,c)}}t.NoopTracer=l},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 s(e){return e.getValue(i)||void 0}function l(e,t){return e.setValue(i,t)}t.getSpan=s,t.getActiveSpan=function(){return s(o.ContextAPI.getInstance().active())},t.setSpan=l,t.deleteSpan=function(e){return e.deleteValue(i)},t.setSpanContext=function(e,t){return l(e,new a.NonRecordingSpan(t))},t.getSpanContext=function(e){var t;return null===(t=s(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}[!-~]$/,s=/,|=/;t.validateKey=function(e){return o.test(e)},t.validateValue=function(e){return i.test(e)&&!s.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 s(e){return o.test(e)&&e!==n.INVALID_TRACEID}function l(e){return i.test(e)&&e!==n.INVALID_SPANID}t.isValidTraceId=s,t.isValidSpanId=l,t.isSpanContextValid=function(e){return s(e.traceId)&&l(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"}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}},i=!0;try{t[e].call(o.exports,o,o.exports,a),i=!1}finally{i&&delete n[e]}return o.exports}a.ab="//";var o={};(()=>{Object.defineProperty(o,"__esModule",{value:!0}),o.trace=o.propagation=o.metrics=o.diag=o.context=o.INVALID_SPAN_CONTEXT=o.INVALID_TRACEID=o.INVALID_SPANID=o.isValidSpanId=o.isValidTraceId=o.isSpanContextValid=o.createTraceState=o.TraceFlags=o.SpanStatusCode=o.SpanKind=o.SamplingDecision=o.ProxyTracerProvider=o.ProxyTracer=o.defaultTextMapSetter=o.defaultTextMapGetter=o.ValueType=o.createNoopMeter=o.DiagLogLevel=o.DiagConsoleLogger=o.ROOT_CONTEXT=o.createContextKey=o.baggageEntryMetadataFromString=void 0;var e=a(369);Object.defineProperty(o,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return e.baggageEntryMetadataFromString}});var t=a(780);Object.defineProperty(o,"createContextKey",{enumerable:!0,get:function(){return t.createContextKey}}),Object.defineProperty(o,"ROOT_CONTEXT",{enumerable:!0,get:function(){return t.ROOT_CONTEXT}});var r=a(972);Object.defineProperty(o,"DiagConsoleLogger",{enumerable:!0,get:function(){return r.DiagConsoleLogger}});var n=a(957);Object.defineProperty(o,"DiagLogLevel",{enumerable:!0,get:function(){return n.DiagLogLevel}});var i=a(102);Object.defineProperty(o,"createNoopMeter",{enumerable:!0,get:function(){return i.createNoopMeter}});var s=a(901);Object.defineProperty(o,"ValueType",{enumerable:!0,get:function(){return s.ValueType}});var l=a(194);Object.defineProperty(o,"defaultTextMapGetter",{enumerable:!0,get:function(){return l.defaultTextMapGetter}}),Object.defineProperty(o,"defaultTextMapSetter",{enumerable:!0,get:function(){return l.defaultTextMapSetter}});var u=a(125);Object.defineProperty(o,"ProxyTracer",{enumerable:!0,get:function(){return u.ProxyTracer}});var c=a(846);Object.defineProperty(o,"ProxyTracerProvider",{enumerable:!0,get:function(){return c.ProxyTracerProvider}});var d=a(996);Object.defineProperty(o,"SamplingDecision",{enumerable:!0,get:function(){return d.SamplingDecision}});var p=a(357);Object.defineProperty(o,"SpanKind",{enumerable:!0,get:function(){return p.SpanKind}});var f=a(847);Object.defineProperty(o,"SpanStatusCode",{enumerable:!0,get:function(){return f.SpanStatusCode}});var h=a(475);Object.defineProperty(o,"TraceFlags",{enumerable:!0,get:function(){return h.TraceFlags}});var g=a(98);Object.defineProperty(o,"createTraceState",{enumerable:!0,get:function(){return g.createTraceState}});var m=a(139);Object.defineProperty(o,"isSpanContextValid",{enumerable:!0,get:function(){return m.isSpanContextValid}}),Object.defineProperty(o,"isValidTraceId",{enumerable:!0,get:function(){return m.isValidTraceId}}),Object.defineProperty(o,"isValidSpanId",{enumerable:!0,get:function(){return m.isValidSpanId}});var y=a(476);Object.defineProperty(o,"INVALID_SPANID",{enumerable:!0,get:function(){return y.INVALID_SPANID}}),Object.defineProperty(o,"INVALID_TRACEID",{enumerable:!0,get:function(){return y.INVALID_TRACEID}}),Object.defineProperty(o,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return y.INVALID_SPAN_CONTEXT}});let v=a(67);Object.defineProperty(o,"context",{enumerable:!0,get:function(){return v.context}});let b=a(506);Object.defineProperty(o,"diag",{enumerable:!0,get:function(){return b.diag}});let S=a(886);Object.defineProperty(o,"metrics",{enumerable:!0,get:function(){return S.metrics}});let w=a(939);Object.defineProperty(o,"propagation",{enumerable:!0,get:function(){return w.propagation}});let x=a(845);Object.defineProperty(o,"trace",{enumerable:!0,get:function(){return x.trace}}),o.default={context:v.context,diag:b.diag,metrics:S.metrics,propagation:w.propagation,trace:x.trace}})(),e.exports=o})()},7903:e=>{"use strict";(()=>{"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{/*! + * cookie + * Copyright(c) 2012-2014 Roman Shtylman + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */t.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var a={},o=t.split(n),i=(r||{}).decode||e,s=0;s{"use strict";(()=>{var t={806:(e,t,r)=>{let n=r(190),a=Symbol("max"),o=Symbol("length"),i=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),d=Symbol("lruList"),p=Symbol("cache"),f=Symbol("updateAgeOnGet"),h=()=>1;class g{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[a]=e.max||1/0;let t=e.length||h;if(this[i]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[a]=e||1/0,v(this)}get max(){return this[a]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,v(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[i]&&(this[i]=e,this[o]=0,this[d].forEach(e=>{e.length=this[i](e.value,e.key),this[o]+=e.length})),v(this)}get lengthCalculator(){return this[i]}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 n=r.prev;w(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){let n=r.next;w(this,e,r,t),r=n}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach(e=>this[u](e.key,e.value)),this[p]=new Map,this[d]=new n,this[o]=0}dump(){return this[d].map(e=>!y(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 n=r?Date.now():0,s=this[i](t,e);if(this[p].has(e)){if(s>this[a])return b(this,this[p].get(e)),!1;let i=this[p].get(e).value;return this[u]&&!this[c]&&this[u](e,i.value),i.now=n,i.maxAge=r,i.value=t,this[o]+=s-i.length,i.length=s,this.get(e),v(this),!0}let f=new S(e,t,s,n,r);return f.length>this[a]?(this[u]&&this[u](e,t),!1):(this[o]+=f.length,this[d].unshift(f),this[p].set(e,this[d].head),v(this),!0)}has(e){return!!this[p].has(e)&&!y(this,this[p].get(e).value)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){let e=this[d].tail;return e?(b(this,e),e.value):null}del(e){b(this,this[p].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],a=n.e||0;if(0===a)this.set(n.k,n.v);else{let e=a-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[p].forEach((e,t)=>m(this,t,!1))}}let m=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(y(e,t)){if(b(e,n),!e[s])return}else r&&(e[f]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},y=(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]},v=e=>{if(e[o]>e[a])for(let t=e[d].tail;e[o]>e[a]&&null!==t;){let r=t.prev;b(e,t),t=r}},b=(e,t)=>{if(t){let r=t.value;e[u]&&e[u](r.key,r.value),e[o]-=r.length,e[p].delete(r.key),e[d].removeNode(t)}};class S{constructor(e,t,r,n,a){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=a||0}}let w=(e,t,r,n)=>{let a=r.value;y(e,a)&&(b(e,r),e[s]||(a=void 0)),a&&t.call(n,a.value,a.key,e)};e.exports=g},76:e=>{e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},190:(e,t,r)=>{function n(e){var t=this;if(t instanceof n||(t=new n),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,a=arguments.length;r1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var a=0;null!==n;a++)r=e(r,n.value,a),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;null!==n;a--)r=e(r,n.value,a),n=n.prev;return r},n.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},n.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},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var a=0,o=this.head;null!==o&&athis.length&&(t=this.length);for(var a=this.length,o=this.tail;null!==o&&a>t;a--)o=o.prev;for(;null!==o&&a>e;a--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;null!==n&&r{"use strict";!function(){var t={452:function(e){e.exports=r(6441)}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}},i=!0;try{t[e](o,o.exports,a),i=!1}finally{i&&delete n[e]}return o.exports}a.ab="//";var o={};!function(){var e,t=(e=a(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=y(e));var n,a,o,i,s,l,u,c,d,p=(a=(n=e).auth,o=n.hostname,i=n.protocol||"",s=n.pathname||"",l=n.hash||"",u=n.query||"",c=!1,a=a?encodeURIComponent(a).replace(/%3A/i,":")+"@":"",n.host?c=a+n.host:o&&(c=a+(~o.indexOf(":")?"["+o+"]":o),n.port&&(c+=":"+n.port)),u&&"object"==typeof u&&(u=t.encode(u)),d=n.search||u&&"?"+u||"",i&&":"!==i.substr(-1)&&(i+=":"),n.slashes||(!i||r.test(i))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),d&&"?"!==d[0]&&(d="?"+d),{protocol:i,host:c,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:d=d.replace("#","%23"),hash:l});return""+p.protocol+p.host+p.pathname+p.search+p.hash}var i="http://",s=i+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function c(e,t){var r="string"==typeof e?y(e):e;e="object"==typeof e?n(e):e;var a=y(t),o="";r.protocol&&!r.slashes&&(o=r.protocol,e=e.replace(r.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&a.protocol&&(o="",a.slashes||(o=a.protocol,t=t.replace(a.protocol,"")));var c=e.match(l);c&&!a.protocol&&(e=e.substr((o=c[1]+(c[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var d=new URL(e,s+"/"),p=new URL(t,d).toString().replace(s,""),f=a.protocol||r.protocol;return f+=r.slashes||a.slashes?"//":"",!o&&f?p=p.replace(i,f):o&&(p=p.replace(i,"")),u.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),o&&(p=o+("/"===p[0]?p.substr(1):p)),p}function d(){}d.prototype.parse=y,d.prototype.format=n,d.prototype.resolve=c,d.prototype.resolveObject=c;var p=/^https?|ftp|gopher|file/,f=/^(.*?)([#?].*)/,h=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,m=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function y(e,r,a){if(void 0===r&&(r=!1),void 0===a&&(a=!1),e&&"object"==typeof e&&e instanceof d)return e;var o=(e=e.trim()).match(f);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),m.test(e)&&"/"!==e.slice(-1)&&(e+="/");var i=!/(^javascript)/.test(e)&&e.match(h),l=g.test(e),u="";i&&(p.test(i[1])||(u=i[1].toLowerCase(),e=""+i[2]+i[3]),i[2]||(l=!1,p.test(i[1])?(u=i[1],e=""+i[3]):e="//"+i[3]),3!==i[2].length&&1!==i[2].length||(u=i[1],e="/"+i[3]));var c,y=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=y&&y[1],b=new d,S="",w="";try{c=new URL(e)}catch(t){S=t,u||a||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{c=new URL(e,s)}catch(e){return b.protocol=u,b.href=u,b}}b.slashes=l&&!w,b.host="w.w"===c.host?"":c.host,b.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),b.protocol=S?u||null:c.protocol,b.search=c.search.replace(/\\/g,"%5C"),b.hash=c.hash.replace(/\\/g,"%5C");var x=e.split("#");!b.search&&~x[0].indexOf("?")&&(b.search="?"),b.hash||""!==x[1]||(b.hash="#"),b.query=r?t.decode(c.search.substr(1)):b.search.substr(1),b.pathname=w+(i?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),S&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),u&&!p.test(u)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=c.port,v&&!b.host.endsWith(v)&&(b.host+=v,b.port=v.slice(1)),b.href=w?""+b.pathname+b.search+b.hash:n(b);var _=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~_.indexOf(e)||(b[e]=b[e]||null)}),b}o.parse=y,o.format=n,o.resolve=c,o.resolveObject=function(e,t){return y(c(e,t))},o.Url=d}(),e.exports=o}()},1706:e=>{"use strict";!function(){var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",a=0,o=-1,i=0,s=0;s<=e.length;++s){if(s2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",a=0):a=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),o=s,i=0;continue}}else if(2===n.length||1===n.length){n="",a=0,o=s,i=0;continue}}t&&(n.length>0?n+="/..":n="..",a=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),a=s-o-1;o=s,i=0}else 46===r&&-1!==i?++i:i=-1}return n}var n={resolve:function(){for(var e,n,a="",o=!1,i=arguments.length-1;i>=-1&&!o;i--)i>=0?n=arguments[i]:(void 0===e&&(e=""),n=e),t(n),0!==n.length&&(a=n+"/"+a,o=47===n.charCodeAt(0));return(a=r(a,!o),o)?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),a=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&a&&(e+="/"),n)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r0&&(void 0===e?e=a:e+="/"+a)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=n.resolve(e))===(r=n.resolve(r)))return"";for(var a=1;au){if(47===r.charCodeAt(s+d))return r.slice(s+d+1);if(0===d)return r.slice(s+d)}else i>u&&(47===e.charCodeAt(a+d)?c=d:0===d&&(c=0));break}var p=e.charCodeAt(a+d);if(p!==r.charCodeAt(s+d))break;47===p&&(c=d)}var f="";for(d=a+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===f.length?f+="..":f+="/..");return f.length>0?f+r.slice(s+c):(s+=c,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,a=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(r=e.charCodeAt(i))){if(!o){a=i;break}}else o=!1;return -1===a?n?"/":".":n&&1===a?"//":e.slice(0,a)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,a=0,o=-1,i=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!i){a=n+1;break}}else -1===l&&(i=!1,l=n+1),s>=0&&(u===r.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=l))}return a===o?o=l:-1===o&&(o=e.length),e.slice(a,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!i){a=n+1;break}}else -1===o&&(i=!1,o=n+1);return -1===o?"":e.slice(a,o)},extname:function(e){t(e);for(var r=-1,n=0,a=-1,o=!0,i=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){n=s+1;break}continue}-1===a&&(o=!1,a=s+1),46===l?-1===r?r=s:1!==i&&(i=1):-1!==r&&(i=-1)}return -1===r||-1===a||0===i||1===i&&r===a-1&&r===n+1?"":e.slice(r,a)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r,n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var a=e.charCodeAt(0),o=47===a;o?(n.root="/",r=1):r=0;for(var i=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=r;--c){if(47===(a=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===a?-1===i?i=c:1!==d&&(d=1):-1!==i&&(d=-1)}return -1===i||-1===l||0===d||1===d&&i===l-1&&i===s+1?-1!==l&&(0===s&&o?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(s,l)):(0===s&&o?(n.name=e.slice(1,i),n.base=e.slice(1,l)):(n.name=e.slice(s,i),n.base=e.slice(s,l)),n.ext=e.slice(i,l)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},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](o,o.exports,n),i=!1}finally{i&&delete r[e]}return o.exports}n.ab="//";var a=n(114);e.exports=a}()},6067:(e,t)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i){a+=e[o++];continue}break}if(!a)throw TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:a}),r=o;continue}if("("===n){var s=1,l="",o=r+1;if("?"===e[o])throw TypeError('Pattern cannot start with "?" at '+o);for(;o-1:void 0===b;i||(f+="(?:"+p+"(?="+d+"))?"),S||(f+="(?="+p+"|"+d+")")}return new RegExp(f,a(r))}(r(t,i),o,i)}},6441:e=>{"use strict";!function(){var t={815:function(e){e.exports=function(e,r,n,a){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(r);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var u=0;u=0?(c=h.substr(0,g),d=h.substr(g+1)):(c=h,d=""),p=decodeURIComponent(c),f=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(o,p))?t(o[p])?o[p].push(f):o[p]=[o[p],f]:o[p]=f}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,i,s){return(o=o||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e)?n(a(e),function(a){var s=encodeURIComponent(t(a))+i;return r(e[a])?n(e[a],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[a]))}).join(o):s?encodeURIComponent(t(s))+i+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n{"use strict";var n=r(9198),a={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r{"use strict";var n,a=r(9198),o=r(2879);function i(e,t){var r=3&e.length,n=e.length-r,a=t;for(t=0;t>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295,a=(65535&(a=5*(65535&(a=a<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+27492+(((a>>>16)+58964&65535)<<16)}switch(o=0,r){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:o^=255&e.charCodeAt(t),a^=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return a^=e.length,a^=a>>>16,a=2246822507*(65535&a)+((2246822507*(a>>>16)&65535)<<16)&4294967295,a^=a>>>13,((a=3266489909*(65535&a)+((3266489909*(a>>>16)&65535)<<16)&4294967295)^a>>>16)>>>0}var s=null,l=0;function u(e,t){if(0!==t.byteLength){if(512]/;function P(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=C.exec(e);if(t){var r,n="",a=0;for(r=t.index;r; rel=dns-prefetch",n=2<=(a.remainingCapacity-=r.length)),n?(o.resets.dns[e]=null,a.preconnects&&(a.preconnects+=", "),a.preconnects+=r):(ex(r=[],{href:e,rel:"dns-prefetch"}),o.preconnects.add(r))),n2(t))}},preconnect:function(e,t){var r=nx();if(r){var n=r.resumableState,a=r.renderState;if("string"==typeof e&&e){var o,i,s="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";n.connectResources[s].hasOwnProperty(e)||(n.connectResources[s][e]=null,(i=(n=a.headers)&&0; rel=preconnect","string"==typeof t&&(i+='; crossorigin="'+(""+t).replace(re,rt)+'"'),o=i,i=2<=(n.remainingCapacity-=o.length)),i?(a.resets.connect[s][e]=null,n.preconnects&&(n.preconnects+=", "),n.preconnects+=o):(ex(s=[],{rel:"preconnect",href:e,crossOrigin:t}),a.preconnects.add(s))),n2(r)}}},preload:function(e,t,r){var n=nx();if(n){var a=n.resumableState,o=n.renderState;if(t&&e){switch(t){case"image":if(r)var i,s=r.imageSrcSet,l=r.imageSizes,u=r.fetchPriority;var c=s?s+"\n"+(l||""):e;if(a.imageResources.hasOwnProperty(c))return;a.imageResources[c]=M,(a=o.headers)&&0'),j=h(""),L=h(''),B=/(<\/|<)(s)(cript)/gi;function z(e,t,r,n){return""+t+("s"===r?"\\u0073":"\\u0053")+n}var V=h('");function G(e,t,r){return{insertionMode:e,selectedValue:t,tagScope:r}}function J(e,t,r){switch(t){case"noscript":return G(2,null,1|e.tagScope);case"select":return G(2,null!=r.value?r.value:r.defaultValue,e.tagScope);case"svg":return G(3,null,e.tagScope);case"picture":return G(2,null,2|e.tagScope);case"math":return G(4,null,e.tagScope);case"foreignObject":return G(2,null,e.tagScope);case"table":return G(5,null,e.tagScope);case"thead":case"tbody":case"tfoot":return G(6,null,e.tagScope);case"colgroup":return G(8,null,e.tagScope);case"tr":return G(7,null,e.tagScope)}return 5<=e.insertionMode?G(2,null,e.tagScope):0===e.insertionMode?"html"===t?G(1,null,e.tagScope):G(2,null,e.tagScope):1===e.insertionMode?G(2,null,e.tagScope):e}var X=h("");function K(e,t,r,n){return""===t?n:(n&&e.push(X),e.push(f(P(t))),!0)}var Y=new Map,Q=h(' style="'),Z=h(":"),ee=h(";");function et(e,t){if("object"!=typeof t)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var r,n=!0;for(r in t)if(y.call(t,r)){var a=t[r];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===r.indexOf("--")){var o=f(P(r));a=f(P((""+a).trim()))}else void 0===(o=Y.get(r))&&(o=h(P(r.replace(R,"-$1").toLowerCase().replace(E,"-ms-"))),Y.set(r,o)),a="number"==typeof a?0===a||x.has(r)?f(""+a):f(a+"px"):f(P((""+a).trim()));n?(n=!1,e.push(Q,o,Z,a)):e.push(ee,o,Z,a)}}n||e.push(ea)}var er=h(" "),en=h('="'),ea=h('"'),eo=h('=""');function ei(e,t,r){r&&"function"!=typeof r&&"symbol"!=typeof r&&e.push(er,f(t),eo)}function es(e,t,r){"function"!=typeof r&&"symbol"!=typeof r&&"boolean"!=typeof r&&e.push(er,f(t),en,f(P(r)),ea)}function el(e){var t=e.nextFormID++;return e.idPrefix+t}var eu=h(P("javascript:throw new Error('A React form was unexpectedly submitted.')")),ec=h('"),eg=h("/>");function em(e,t,r){if(null!=t){if(null!=r)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if("object"!=typeof t||!("__html"in t))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");null!=(t=t.__html)&&e.push(f(""+t))}}var ey=h(' selected=""'),ev=h('addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'A React form was unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.getRootNode(),(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,\nd,b))}});');function eb(e,t){0!=(16&e.instructions)||t.externalRuntimeScript||(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,ev,D))}var eS=h(""),ew=h("");function ex(e,t){for(var r in e.push(eO("link")),t)if(y.call(t,r)){var n=t[r];if(null!=n)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ef(e,r,n)}}return e.push(eg),null}function e_(e,t,r){for(var n in e.push(eO(r)),t)if(y.call(t,n)){var a=t[n];if(null!=a)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(r+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ef(e,n,a)}}return e.push(eg),null}function eC(e,t){e.push(eO("title"));var r,n=null,a=null;for(r in t)if(y.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":a=o;break;default:ef(e,r,o)}}return e.push(eh),"function"!=typeof(t=Array.isArray(n)?2>n.length?n[0]:null:n)&&"symbol"!=typeof t&&null!=t&&e.push(f(P(""+t))),em(e,a,n),e.push(eM("title")),null}function eP(e,t){e.push(eO("script"));var r,n=null,a=null;for(r in t)if(y.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":a=o;break;default:ef(e,r,o)}}return e.push(eh),em(e,a,n),"string"==typeof n&&e.push(f(P(n))),e.push(eM("script")),null}function eR(e,t,r){e.push(eO(r));var n,a=r=null;for(n in t)if(y.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:ef(e,n,o)}}return e.push(eh),em(e,a,r),"string"==typeof r?(e.push(f(P(r))),null):r}var eE=h("\n"),ek=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,eT=new Map;function eO(e){var t=eT.get(e);if(void 0===t){if(!ek.test(e))throw Error("Invalid tag: "+e);t=h("<"+e),eT.set(e,t)}return t}var eA=h(""),eN=new Map;function eM(e){var t=eN.get(e);return void 0===t&&(t=h(""),eN.set(e,t)),t}function eI(e,t){t=t.bootstrapChunks;for(var r=0;r'),eL=h(""),e$=h(''),eU=h(""),eH=h(""),eq=h("");function eW(e,t,r){if(u(e,e$),null===r)throw Error("An ID must have been assigned before we can complete the boundary.");return u(e,t.boundaryPrefix),u(e,f(r.toString(16))),c(e,eF)}var eG=h('"),eK=h('"),eZ=h('"),e2=h(''),e3=h(""),e9=h(''),e5=h(""),e8=h(''),te=h(""),tt=h(''),tn=h(""),ta=h('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),to=h('$RS("'),ti=h('","'),ts=h('")'),tl=h('