@leonardofirme/package-npm 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +122 -0
- package/dist/index.d.mts +166 -0
- package/dist/index.d.ts +166 -0
- package/dist/index.js +13 -0
- package/dist/index.mjs +13 -0
- package/package.json +61 -0
package/README.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# @LeonardoFirme/package-npm
|
|
2
|
+
|
|
3
|
+
Biblioteca de componentes UI de alto padrão e utilitários de infraestrutura para ERP/SaaS. Desenvolvida exclusivamente para o ecossistema **React 19**, **NextJS 16+** e **Tailwindcss v4**.
|
|
4
|
+
|
|
5
|
+
## 🚀 Instalação Quickstart
|
|
6
|
+
|
|
7
|
+
Antes de instalar, certifique-se de ter o arquivo `.npmrc` configurado na raiz do seu projeto para autenticação no GitHub Packages.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @LeonardoFirme/package-npm
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## 🎨 Configuração do Tailwindcss v4
|
|
15
|
+
|
|
16
|
+
Para que o Tailwind identifique as classes utilitárias dentro do pacote instalado em `node_modules`, adicione a diretiva `@source` no seu arquivo CSS principal:
|
|
17
|
+
|
|
18
|
+
```css
|
|
19
|
+
@import "tailwindcss";
|
|
20
|
+
|
|
21
|
+
/* Adicione esta linha para ler os componentes da v0 Digital */
|
|
22
|
+
@source "../../node_modules/@leonardolirme/package-npm/dist";
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## 📦 Dependências Integradas
|
|
27
|
+
|
|
28
|
+
Este pacote utiliza dependências modernas para garantir performance e segurança. Elas são instaladas automaticamente, mas você pode referenciá-las conforme sua stack:
|
|
29
|
+
|
|
30
|
+
### UI & UX (Client Side)
|
|
31
|
+
|
|
32
|
+
* `sonner` & `framer-motion` (Feedback e Animações)
|
|
33
|
+
* `clsx` & `tailwind-merge` (Gestão de Classes)
|
|
34
|
+
|
|
35
|
+
### Auth & Security (Server Side / Proxy)
|
|
36
|
+
|
|
37
|
+
* `next-auth`, `bcrypt`, `jsonwebtoken`
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## 🛠️ Guia de Uso
|
|
42
|
+
|
|
43
|
+
### Componente: Button (Minimalist ERP)
|
|
44
|
+
|
|
45
|
+
Botão responsivo com suporte nativo a **Dark Mode** (bg-gray-800 -> bg-gray-50) e transições suaves.
|
|
46
|
+
|
|
47
|
+
```tsx
|
|
48
|
+
import { Button } from '@leonardofirme/package-npm';
|
|
49
|
+
|
|
50
|
+
export default function Dashboard() {
|
|
51
|
+
return (
|
|
52
|
+
<Button
|
|
53
|
+
label="Salvar Alterações"
|
|
54
|
+
className="w-full sm:w-auto"
|
|
55
|
+
onClick={() => console.log('Operação realizada')}
|
|
56
|
+
/>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Hook: useTheme (Dark Mode Global)
|
|
63
|
+
|
|
64
|
+
Gerencie o estado visual da sua plataforma de forma centralizada.
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
import { useTheme } from '@leonardofirme/package-npm';
|
|
68
|
+
|
|
69
|
+
export function ThemeToggle() {
|
|
70
|
+
const { theme, toggleTheme } = useTheme();
|
|
71
|
+
return <button onClick={toggleTheme}>Modo Atual: {theme}</button>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## ⚙️ Configuração de Publicação Automatizada
|
|
77
|
+
|
|
78
|
+
Utilizamos **GitHub Actions** para garantir que cada release seja validada via `type-check` antes do deploy.
|
|
79
|
+
|
|
80
|
+
**Caminho:** `.github/workflows/publish.yml`
|
|
81
|
+
|
|
82
|
+
```yaml
|
|
83
|
+
name: Publish Package
|
|
84
|
+
|
|
85
|
+
on:
|
|
86
|
+
push:
|
|
87
|
+
branches:
|
|
88
|
+
- main
|
|
89
|
+
|
|
90
|
+
jobs:
|
|
91
|
+
publish:
|
|
92
|
+
runs-on: ubuntu-latest
|
|
93
|
+
permissions:
|
|
94
|
+
contents: read
|
|
95
|
+
packages: write
|
|
96
|
+
steps:
|
|
97
|
+
- uses: actions/checkout@v4
|
|
98
|
+
- uses: actions/setup-node@v4
|
|
99
|
+
with:
|
|
100
|
+
node-version: '22'
|
|
101
|
+
registry-url: 'https://npm.pkg.github.com'
|
|
102
|
+
scope: '@LeonardoFirme'
|
|
103
|
+
|
|
104
|
+
- name: Install & Build
|
|
105
|
+
run: |
|
|
106
|
+
npm install
|
|
107
|
+
npm run build
|
|
108
|
+
env:
|
|
109
|
+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
110
|
+
|
|
111
|
+
- name: Publish
|
|
112
|
+
run: npm publish
|
|
113
|
+
env:
|
|
114
|
+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
Desenvolvido por [Leonardo Firme](https://github.com/LeonardoFirme) | **v0 Digital**
|
|
121
|
+
|
|
122
|
+
---
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
import { NextRequest, NextResponse } from 'next/server';
|
|
5
|
+
|
|
6
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
7
|
+
label: string;
|
|
8
|
+
variant?: 'primary' | 'outline' | 'ghost';
|
|
9
|
+
}
|
|
10
|
+
declare const Button: ({ label, variant, className, ...props }: ButtonProps) => React__default.JSX.Element;
|
|
11
|
+
|
|
12
|
+
interface InputProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
13
|
+
label?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const Input: ({ label, className, ...props }: InputProps) => React__default.JSX.Element;
|
|
16
|
+
|
|
17
|
+
declare const Card: ({ title, subtitle, children, className }: {
|
|
18
|
+
title?: string;
|
|
19
|
+
subtitle?: string;
|
|
20
|
+
children: React__default.ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
}) => React__default.JSX.Element;
|
|
23
|
+
|
|
24
|
+
declare const Badge: ({ children, className }: {
|
|
25
|
+
children: React__default.ReactNode;
|
|
26
|
+
className?: string;
|
|
27
|
+
}) => React__default.JSX.Element;
|
|
28
|
+
|
|
29
|
+
interface TextareaProps extends React__default.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
30
|
+
label?: string;
|
|
31
|
+
}
|
|
32
|
+
declare const Textarea: ({ label, className, ...props }: TextareaProps) => React__default.JSX.Element;
|
|
33
|
+
|
|
34
|
+
declare const Skeleton: ({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>) => React__default.JSX.Element;
|
|
35
|
+
|
|
36
|
+
interface ToggleProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
37
|
+
label?: string;
|
|
38
|
+
}
|
|
39
|
+
declare const Toggle: ({ label, className, ...props }: ToggleProps) => React__default.JSX.Element;
|
|
40
|
+
|
|
41
|
+
declare const Table: ({ children, className }: {
|
|
42
|
+
children: React__default.ReactNode;
|
|
43
|
+
className?: string;
|
|
44
|
+
}) => React__default.JSX.Element;
|
|
45
|
+
declare const TableHeader: ({ children, className }: {
|
|
46
|
+
children: React__default.ReactNode;
|
|
47
|
+
className?: string;
|
|
48
|
+
}) => React__default.JSX.Element;
|
|
49
|
+
declare const TableBody: ({ children, className }: {
|
|
50
|
+
children: React__default.ReactNode;
|
|
51
|
+
className?: string;
|
|
52
|
+
}) => React__default.JSX.Element;
|
|
53
|
+
declare const TableRow: ({ children, className }: {
|
|
54
|
+
children: React__default.ReactNode;
|
|
55
|
+
className?: string;
|
|
56
|
+
}) => React__default.JSX.Element;
|
|
57
|
+
declare const TableHead: ({ children, className }: {
|
|
58
|
+
children: React__default.ReactNode;
|
|
59
|
+
className?: string;
|
|
60
|
+
}) => React__default.JSX.Element;
|
|
61
|
+
declare const TableCell: ({ children, className }: {
|
|
62
|
+
children: React__default.ReactNode;
|
|
63
|
+
className?: string;
|
|
64
|
+
}) => React__default.JSX.Element;
|
|
65
|
+
|
|
66
|
+
interface ModalProps {
|
|
67
|
+
isOpen: boolean;
|
|
68
|
+
onClose: () => void;
|
|
69
|
+
title: string;
|
|
70
|
+
children: React__default.ReactNode;
|
|
71
|
+
}
|
|
72
|
+
declare const Modal: ({ isOpen, onClose, title, children }: ModalProps) => React__default.JSX.Element;
|
|
73
|
+
|
|
74
|
+
interface SelectProps extends React__default.SelectHTMLAttributes<HTMLSelectElement> {
|
|
75
|
+
label?: string;
|
|
76
|
+
options: {
|
|
77
|
+
label: string;
|
|
78
|
+
value: string | number;
|
|
79
|
+
}[];
|
|
80
|
+
}
|
|
81
|
+
declare const Select: ({ label, options, className, ...props }: SelectProps) => React__default.JSX.Element;
|
|
82
|
+
|
|
83
|
+
declare const Alert: ({ title, children, variant }: {
|
|
84
|
+
title?: string;
|
|
85
|
+
children: React__default.ReactNode;
|
|
86
|
+
variant?: "info" | "danger";
|
|
87
|
+
}) => React__default.JSX.Element;
|
|
88
|
+
|
|
89
|
+
interface BreadcrumbItem {
|
|
90
|
+
label: string;
|
|
91
|
+
href?: string;
|
|
92
|
+
active?: boolean;
|
|
93
|
+
}
|
|
94
|
+
declare const Breadcrumb: ({ items }: {
|
|
95
|
+
items: BreadcrumbItem[];
|
|
96
|
+
}) => React__default.JSX.Element;
|
|
97
|
+
|
|
98
|
+
interface CheckboxProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
99
|
+
label?: string;
|
|
100
|
+
}
|
|
101
|
+
declare const Checkbox: ({ label, className, ...props }: CheckboxProps) => React__default.JSX.Element;
|
|
102
|
+
|
|
103
|
+
declare const Dropdown: ({ label, children, className }: {
|
|
104
|
+
label: React__default.ReactNode;
|
|
105
|
+
children: React__default.ReactNode;
|
|
106
|
+
className?: string;
|
|
107
|
+
}) => React__default.JSX.Element;
|
|
108
|
+
declare const DropdownItem: ({ children, onClick, className }: {
|
|
109
|
+
children: React__default.ReactNode;
|
|
110
|
+
onClick?: () => void;
|
|
111
|
+
className?: string;
|
|
112
|
+
}) => React__default.JSX.Element;
|
|
113
|
+
|
|
114
|
+
declare const Progress: ({ value, className }: {
|
|
115
|
+
value: number;
|
|
116
|
+
className?: string;
|
|
117
|
+
}) => React__default.JSX.Element;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Provider de notificações padronizado v0 Digital.
|
|
121
|
+
* Configurado para alinhar com o tema gray-scale e bordas minimalistas.
|
|
122
|
+
*/
|
|
123
|
+
declare const Toaster: () => React__default.JSX.Element;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Utilitário global para fusão de classes Tailwind.
|
|
127
|
+
* Resolve conflitos de especificidade e condicionais de forma limpa.
|
|
128
|
+
*/
|
|
129
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Hook global para gestão de Dark Mode.
|
|
133
|
+
* Sincroniza o estado com o LocalStorage e a classe 'dark' no documento.
|
|
134
|
+
* Ideal para aplicações NextJS 16+ e Laravel + React.
|
|
135
|
+
*/
|
|
136
|
+
declare function useTheme(): {
|
|
137
|
+
theme: "light" | "dark";
|
|
138
|
+
setTheme: React$1.Dispatch<React$1.SetStateAction<"light" | "dark">>;
|
|
139
|
+
toggleTheme: () => void;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Definições de tipos globais para a biblioteca @LeonardoFirme/package-npm
|
|
144
|
+
*/
|
|
145
|
+
type SiteConfig = {
|
|
146
|
+
name: string;
|
|
147
|
+
description: string;
|
|
148
|
+
url: string;
|
|
149
|
+
};
|
|
150
|
+
type ComponentSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
151
|
+
type ComponentVariant = 'primary' | 'outline' | 'ghost' | 'danger';
|
|
152
|
+
interface BaseProps {
|
|
153
|
+
className?: string;
|
|
154
|
+
children?: React.ReactNode;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Leonardo Firme - Professional Proxy Layer
|
|
159
|
+
* Substitui o Middleware descontinuado no NextJS 16+
|
|
160
|
+
*/
|
|
161
|
+
declare const proxy: (request: NextRequest) => Promise<NextResponse<unknown>>;
|
|
162
|
+
declare const config: {
|
|
163
|
+
matcher: string[];
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export { Alert, Badge, type BaseProps, Breadcrumb, type BreadcrumbItem, Button, type ButtonProps, Card, Checkbox, type CheckboxProps, type ComponentSize, type ComponentVariant, Dropdown, DropdownItem, Input, type InputProps, Modal, Progress, Select, type SelectProps, type SiteConfig, Skeleton, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Textarea, type TextareaProps, Toaster, Toggle, type ToggleProps, cn, config, proxy, useTheme };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
import { NextRequest, NextResponse } from 'next/server';
|
|
5
|
+
|
|
6
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
7
|
+
label: string;
|
|
8
|
+
variant?: 'primary' | 'outline' | 'ghost';
|
|
9
|
+
}
|
|
10
|
+
declare const Button: ({ label, variant, className, ...props }: ButtonProps) => React__default.JSX.Element;
|
|
11
|
+
|
|
12
|
+
interface InputProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
13
|
+
label?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const Input: ({ label, className, ...props }: InputProps) => React__default.JSX.Element;
|
|
16
|
+
|
|
17
|
+
declare const Card: ({ title, subtitle, children, className }: {
|
|
18
|
+
title?: string;
|
|
19
|
+
subtitle?: string;
|
|
20
|
+
children: React__default.ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
}) => React__default.JSX.Element;
|
|
23
|
+
|
|
24
|
+
declare const Badge: ({ children, className }: {
|
|
25
|
+
children: React__default.ReactNode;
|
|
26
|
+
className?: string;
|
|
27
|
+
}) => React__default.JSX.Element;
|
|
28
|
+
|
|
29
|
+
interface TextareaProps extends React__default.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
30
|
+
label?: string;
|
|
31
|
+
}
|
|
32
|
+
declare const Textarea: ({ label, className, ...props }: TextareaProps) => React__default.JSX.Element;
|
|
33
|
+
|
|
34
|
+
declare const Skeleton: ({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>) => React__default.JSX.Element;
|
|
35
|
+
|
|
36
|
+
interface ToggleProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
37
|
+
label?: string;
|
|
38
|
+
}
|
|
39
|
+
declare const Toggle: ({ label, className, ...props }: ToggleProps) => React__default.JSX.Element;
|
|
40
|
+
|
|
41
|
+
declare const Table: ({ children, className }: {
|
|
42
|
+
children: React__default.ReactNode;
|
|
43
|
+
className?: string;
|
|
44
|
+
}) => React__default.JSX.Element;
|
|
45
|
+
declare const TableHeader: ({ children, className }: {
|
|
46
|
+
children: React__default.ReactNode;
|
|
47
|
+
className?: string;
|
|
48
|
+
}) => React__default.JSX.Element;
|
|
49
|
+
declare const TableBody: ({ children, className }: {
|
|
50
|
+
children: React__default.ReactNode;
|
|
51
|
+
className?: string;
|
|
52
|
+
}) => React__default.JSX.Element;
|
|
53
|
+
declare const TableRow: ({ children, className }: {
|
|
54
|
+
children: React__default.ReactNode;
|
|
55
|
+
className?: string;
|
|
56
|
+
}) => React__default.JSX.Element;
|
|
57
|
+
declare const TableHead: ({ children, className }: {
|
|
58
|
+
children: React__default.ReactNode;
|
|
59
|
+
className?: string;
|
|
60
|
+
}) => React__default.JSX.Element;
|
|
61
|
+
declare const TableCell: ({ children, className }: {
|
|
62
|
+
children: React__default.ReactNode;
|
|
63
|
+
className?: string;
|
|
64
|
+
}) => React__default.JSX.Element;
|
|
65
|
+
|
|
66
|
+
interface ModalProps {
|
|
67
|
+
isOpen: boolean;
|
|
68
|
+
onClose: () => void;
|
|
69
|
+
title: string;
|
|
70
|
+
children: React__default.ReactNode;
|
|
71
|
+
}
|
|
72
|
+
declare const Modal: ({ isOpen, onClose, title, children }: ModalProps) => React__default.JSX.Element;
|
|
73
|
+
|
|
74
|
+
interface SelectProps extends React__default.SelectHTMLAttributes<HTMLSelectElement> {
|
|
75
|
+
label?: string;
|
|
76
|
+
options: {
|
|
77
|
+
label: string;
|
|
78
|
+
value: string | number;
|
|
79
|
+
}[];
|
|
80
|
+
}
|
|
81
|
+
declare const Select: ({ label, options, className, ...props }: SelectProps) => React__default.JSX.Element;
|
|
82
|
+
|
|
83
|
+
declare const Alert: ({ title, children, variant }: {
|
|
84
|
+
title?: string;
|
|
85
|
+
children: React__default.ReactNode;
|
|
86
|
+
variant?: "info" | "danger";
|
|
87
|
+
}) => React__default.JSX.Element;
|
|
88
|
+
|
|
89
|
+
interface BreadcrumbItem {
|
|
90
|
+
label: string;
|
|
91
|
+
href?: string;
|
|
92
|
+
active?: boolean;
|
|
93
|
+
}
|
|
94
|
+
declare const Breadcrumb: ({ items }: {
|
|
95
|
+
items: BreadcrumbItem[];
|
|
96
|
+
}) => React__default.JSX.Element;
|
|
97
|
+
|
|
98
|
+
interface CheckboxProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
99
|
+
label?: string;
|
|
100
|
+
}
|
|
101
|
+
declare const Checkbox: ({ label, className, ...props }: CheckboxProps) => React__default.JSX.Element;
|
|
102
|
+
|
|
103
|
+
declare const Dropdown: ({ label, children, className }: {
|
|
104
|
+
label: React__default.ReactNode;
|
|
105
|
+
children: React__default.ReactNode;
|
|
106
|
+
className?: string;
|
|
107
|
+
}) => React__default.JSX.Element;
|
|
108
|
+
declare const DropdownItem: ({ children, onClick, className }: {
|
|
109
|
+
children: React__default.ReactNode;
|
|
110
|
+
onClick?: () => void;
|
|
111
|
+
className?: string;
|
|
112
|
+
}) => React__default.JSX.Element;
|
|
113
|
+
|
|
114
|
+
declare const Progress: ({ value, className }: {
|
|
115
|
+
value: number;
|
|
116
|
+
className?: string;
|
|
117
|
+
}) => React__default.JSX.Element;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Provider de notificações padronizado v0 Digital.
|
|
121
|
+
* Configurado para alinhar com o tema gray-scale e bordas minimalistas.
|
|
122
|
+
*/
|
|
123
|
+
declare const Toaster: () => React__default.JSX.Element;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Utilitário global para fusão de classes Tailwind.
|
|
127
|
+
* Resolve conflitos de especificidade e condicionais de forma limpa.
|
|
128
|
+
*/
|
|
129
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Hook global para gestão de Dark Mode.
|
|
133
|
+
* Sincroniza o estado com o LocalStorage e a classe 'dark' no documento.
|
|
134
|
+
* Ideal para aplicações NextJS 16+ e Laravel + React.
|
|
135
|
+
*/
|
|
136
|
+
declare function useTheme(): {
|
|
137
|
+
theme: "light" | "dark";
|
|
138
|
+
setTheme: React$1.Dispatch<React$1.SetStateAction<"light" | "dark">>;
|
|
139
|
+
toggleTheme: () => void;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Definições de tipos globais para a biblioteca @LeonardoFirme/package-npm
|
|
144
|
+
*/
|
|
145
|
+
type SiteConfig = {
|
|
146
|
+
name: string;
|
|
147
|
+
description: string;
|
|
148
|
+
url: string;
|
|
149
|
+
};
|
|
150
|
+
type ComponentSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
151
|
+
type ComponentVariant = 'primary' | 'outline' | 'ghost' | 'danger';
|
|
152
|
+
interface BaseProps {
|
|
153
|
+
className?: string;
|
|
154
|
+
children?: React.ReactNode;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Leonardo Firme - Professional Proxy Layer
|
|
159
|
+
* Substitui o Middleware descontinuado no NextJS 16+
|
|
160
|
+
*/
|
|
161
|
+
declare const proxy: (request: NextRequest) => Promise<NextResponse<unknown>>;
|
|
162
|
+
declare const config: {
|
|
163
|
+
matcher: string[];
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export { Alert, Badge, type BaseProps, Breadcrumb, type BreadcrumbItem, Button, type ButtonProps, Card, Checkbox, type CheckboxProps, type ComponentSize, type ComponentVariant, Dropdown, DropdownItem, Input, type InputProps, Modal, Progress, Select, type SelectProps, type SiteConfig, Skeleton, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Textarea, type TextareaProps, Toaster, Toggle, type ToggleProps, cn, config, proxy, useTheme };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";var Aa=Object.create;var ve=Object.defineProperty;var Ta=Object.getOwnPropertyDescriptor;var wa=Object.getOwnPropertyNames;var va=Object.getPrototypeOf,Sa=Object.prototype.hasOwnProperty;var p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Na=(e,t)=>{for(var r in t)ve(e,r,{get:t[r],enumerable:!0})},Or=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of wa(t))!Sa.call(e,a)&&a!==r&&ve(e,a,{get:()=>t[a],enumerable:!(n=Ta(t,a))||n.enumerable});return e};var xa=(e,t,r)=>(r=e!=null?Aa(va(e)):{},Or(t||!e||!e.__esModule?ve(r,"default",{value:e,enumerable:!0}):r,e)),Pa=e=>Or(ve({},"__esModule",{value:!0}),e);var Ur=p(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Object.defineProperty(Je,"detectDomainLocale",{enumerable:!0,get:function(){return ts}});function ts(e,t,r){if(e){r&&(r=r.toLowerCase());for(let n of e){let a=n.domain?.split(":",1)[0].toLowerCase();if(t===a||r===n.defaultLocale.toLowerCase()||n.locales?.some(s=>s.toLowerCase()===r))return n}}}});var qr=p(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Object.defineProperty(Ke,"removeTrailingSlash",{enumerable:!0,get:function(){return rs}});function rs(e){return e.replace(/\/$/,"")||"/"}});var Ne=p(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Object.defineProperty(Qe,"parsePath",{enumerable:!0,get:function(){return ns}});function ns(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-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:""}}});var et=p(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Object.defineProperty(Ze,"addPathPrefix",{enumerable:!0,get:function(){return ss}});var as=Ne();function ss(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=(0,as.parsePath)(e);return`${t}${r}${n}${a}`}});var Fr=p(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});Object.defineProperty(tt,"addPathSuffix",{enumerable:!0,get:function(){return is}});var os=Ne();function is(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=(0,os.parsePath)(e);return`${r}${t}${n}${a}`}});var xe=p(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});Object.defineProperty(rt,"pathHasPrefix",{enumerable:!0,get:function(){return us}});var cs=Ne();function us(e,t){if(typeof e!="string")return!1;let{pathname:r}=(0,cs.parsePath)(e);return r===t||r.startsWith(t+"/")}});var Gr=p(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});Object.defineProperty(nt,"addLocale",{enumerable:!0,get:function(){return ds}});var ls=et(),Br=xe();function ds(e,t,r,n){if(!t||t===r)return e;let a=e.toLowerCase();return!n&&((0,Br.pathHasPrefix)(a,"/api")||(0,Br.pathHasPrefix)(a,`/${t.toLowerCase()}`))?e:(0,ls.addPathPrefix)(e,`/${t}`)}});var Vr=p(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});Object.defineProperty(at,"formatNextPathnameInfo",{enumerable:!0,get:function(){return ps}});var $r=qr(),Wr=et(),Yr=Fr(),fs=Gr();function ps(e){let t=(0,fs.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,$r.removeTrailingSlash)(t)),e.buildId&&(t=(0,Yr.addPathSuffix)((0,Wr.addPathPrefix)(t,`/_next/data/${e.buildId}`),e.pathname==="/"?"index.json":".json")),t=(0,Wr.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,Yr.addPathSuffix)(t,"/"):(0,$r.removeTrailingSlash)(t)}});var zr=p(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});Object.defineProperty(st,"getHostname",{enumerable:!0,get:function(){return hs}});function hs(e,t){let r;if(t?.host&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else if(e.hostname)r=e.hostname;else return;return r.toLowerCase()}});var Kr=p(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});Object.defineProperty(ot,"normalizeLocalePath",{enumerable:!0,get:function(){return ms}});var Jr=new WeakMap;function ms(e,t){if(!t)return{pathname:e};let r=Jr.get(t);r||(r=t.map(d=>d.toLowerCase()),Jr.set(t,r));let n,a=e.split("/",2);if(!a[1])return{pathname:e};let s=a[1].toLowerCase(),h=r.indexOf(s);return h<0?{pathname:e}:(n=t[h],e=e.slice(n.length+1)||"/",{pathname:e,detectedLocale:n})}});var Qr=p(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});Object.defineProperty(it,"removePathPrefix",{enumerable:!0,get:function(){return Es}});var _s=xe();function Es(e,t){if(!(0,_s.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}});var en=p(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});Object.defineProperty(ct,"getNextPathnameInfo",{enumerable:!0,get:function(){return Rs}});var Zr=Kr(),gs=Qr(),bs=xe();function Rs(e,t){let{basePath:r,i18n:n,trailingSlash:a}=t.nextConfig??{},s={pathname:e,trailingSlash:e!=="/"?e.endsWith("/"):a};r&&(0,bs.pathHasPrefix)(s.pathname,r)&&(s.pathname=(0,gs.removePathPrefix)(s.pathname,r),s.basePath=r);let h=s.pathname;if(s.pathname.startsWith("/_next/data/")&&s.pathname.endsWith(".json")){let d=s.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),w=d[0];s.buildId=w,h=d[1]!=="index"?`/${d.slice(1).join("/")}`:"/",t.parseData===!0&&(s.pathname=h)}if(n){let d=t.i18nProvider?t.i18nProvider.analyze(s.pathname):(0,Zr.normalizeLocalePath)(s.pathname,n.locales);s.locale=d.detectedLocale,s.pathname=d.pathname??s.pathname,!d.detectedLocale&&s.buildId&&(d=t.i18nProvider?t.i18nProvider.analyze(h):(0,Zr.normalizeLocalePath)(h,n.locales),d.detectedLocale&&(s.locale=d.detectedLocale))}return s}});var dt=p(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});Object.defineProperty(lt,"NextURL",{enumerable:!0,get:function(){return ut}});var ys=Ur(),As=Vr(),Ts=zr(),ws=en(),tn=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function rn(e,t){return new URL(String(e).replace(tn,"localhost"),t&&String(t).replace(tn,"localhost"))}var f=Symbol("NextURLInternal"),ut=class e{constructor(t,r,n){let a,s;typeof r=="object"&&"pathname"in r||typeof r=="string"?(a=r,s=n||{}):s=n||r||{},this[f]={url:rn(t,a??s.base),options:s,basePath:""},this.analyze()}analyze(){var t,r,n,a,s;let h=(0,ws.getNextPathnameInfo)(this[f].url.pathname,{nextConfig:this[f].options.nextConfig,parseData:!process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,i18nProvider:this[f].options.i18nProvider}),d=(0,Ts.getHostname)(this[f].url,this[f].options.headers);this[f].domainLocale=this[f].options.i18nProvider?this[f].options.i18nProvider.detectDomainLocale(d):(0,ys.detectDomainLocale)((r=this[f].options.nextConfig)==null||(t=r.i18n)==null?void 0:t.domains,d);let w=((n=this[f].domainLocale)==null?void 0:n.defaultLocale)||((s=this[f].options.nextConfig)==null||(a=s.i18n)==null?void 0:a.defaultLocale);this[f].url.pathname=h.pathname,this[f].defaultLocale=w,this[f].basePath=h.basePath??"",this[f].buildId=h.buildId,this[f].locale=h.locale??w,this[f].trailingSlash=h.trailingSlash}formatPathname(){return(0,As.formatNextPathnameInfo)({basePath:this[f].basePath,buildId:this[f].buildId,defaultLocale:this[f].options.forceLocale?void 0:this[f].defaultLocale,locale:this[f].locale,pathname:this[f].url.pathname,trailingSlash:this[f].trailingSlash})}formatSearch(){return this[f].url.search}get buildId(){return this[f].buildId}set buildId(t){this[f].buildId=t}get locale(){return this[f].locale??""}set locale(t){var r,n;if(!this[f].locale||!(!((n=this[f].options.nextConfig)==null||(r=n.i18n)==null)&&r.locales.includes(t)))throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${t}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[f].locale=t}get defaultLocale(){return this[f].defaultLocale}get domainLocale(){return this[f].domainLocale}get searchParams(){return this[f].url.searchParams}get host(){return this[f].url.host}set host(t){this[f].url.host=t}get hostname(){return this[f].url.hostname}set hostname(t){this[f].url.hostname=t}get port(){return this[f].url.port}set port(t){this[f].url.port=t}get protocol(){return this[f].url.protocol}set protocol(t){this[f].url.protocol=t}get href(){let t=this.formatPathname(),r=this.formatSearch();return`${this.protocol}//${this.host}${t}${r}${this.hash}`}set href(t){this[f].url=rn(t),this.analyze()}get origin(){return this[f].url.origin}get pathname(){return this[f].url.pathname}set pathname(t){this[f].url.pathname=t}get hash(){return this[f].url.hash}set hash(t){this[f].url.hash=t}get search(){return this[f].url.search}set search(t){this[f].url.search=t}get password(){return this[f].url.password}set password(t){this[f].url.password=t}get username(){return this[f].url.username}set username(t){this[f].url.username=t}get basePath(){return this[f].basePath}set basePath(t){this[f].basePath=t.startsWith("/")?t:`/${t}`}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 e(String(this),this[f].options)}}});var sn=p(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});function vs(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}vs(ft,{ACTION_SUFFIX:function(){return Hs},APP_DIR_ALIAS:function(){return no},CACHE_ONE_YEAR:function(){return zs},DOT_NEXT_ALIAS:function(){return to},ESLINT_DEFAULT_DIRS:function(){return wo},GSP_NO_RETURNED_VALUE:function(){return go},GSSP_COMPONENT_MEMBER_ERROR:function(){return yo},GSSP_NO_RETURNED_VALUE:function(){return bo},HTML_CONTENT_TYPE_HEADER:function(){return Ns},INFINITE_CACHE:function(){return Js},INSTRUMENTATION_HOOK_FILENAME:function(){return Zs},JSON_CONTENT_TYPE_HEADER:function(){return xs},MATCHED_PATH_HEADER:function(){return Is},MIDDLEWARE_FILENAME:function(){return nn},MIDDLEWARE_LOCATION_REGEXP:function(){return Ks},NEXT_BODY_SUFFIX:function(){return Us},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return Vs},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return Fs},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return Bs},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return Ys},NEXT_CACHE_TAGS_HEADER:function(){return qs},NEXT_CACHE_TAG_MAX_ITEMS:function(){return $s},NEXT_CACHE_TAG_MAX_LENGTH:function(){return Ws},NEXT_DATA_SUFFIX:function(){return js},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return Os},NEXT_META_SUFFIX:function(){return Xs},NEXT_QUERY_PARAM_PREFIX:function(){return Ps},NEXT_RESUME_HEADER:function(){return Gs},NON_STANDARD_NODE_ENV:function(){return Ao},PAGES_DIR_ALIAS:function(){return eo},PRERENDER_REVALIDATE_HEADER:function(){return Ds},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return Cs},PROXY_FILENAME:function(){return an},PROXY_LOCATION_REGEXP:function(){return Qs},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return fo},ROOT_DIR_ALIAS:function(){return ro},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return lo},RSC_ACTION_ENCRYPTION_ALIAS:function(){return uo},RSC_ACTION_PROXY_ALIAS:function(){return oo},RSC_ACTION_VALIDATE_ALIAS:function(){return so},RSC_CACHE_WRAPPER_ALIAS:function(){return io},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return co},RSC_MOD_REF_PROXY_ALIAS:function(){return ao},RSC_SEGMENTS_DIR_SUFFIX:function(){return ks},RSC_SEGMENT_SUFFIX:function(){return Ls},RSC_SUFFIX:function(){return Ms},SERVER_PROPS_EXPORT_ERROR:function(){return Eo},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return ho},SERVER_PROPS_SSG_CONFLICT:function(){return mo},SERVER_RUNTIME:function(){return vo},SSG_FALLBACK_EXPORT_ERROR:function(){return To},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return po},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return _o},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return Ss},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Ro},WEBPACK_LAYERS:function(){return No},WEBPACK_RESOURCE_QUERIES:function(){return xo},WEB_SOCKET_MAX_RECONNECTIONS:function(){return So}});var Ss="text/plain",Ns="text/html; charset=utf-8",xs="application/json; charset=utf-8",Ps="nxtP",Os="nxtI",Is="x-matched-path",Ds="x-prerender-revalidate",Cs="x-prerender-revalidate-if-generated",ks=".segments",Ls=".segment.rsc",Ms=".rsc",Hs=".action",js=".json",Xs=".meta",Us=".body",qs="x-next-cache-tags",Fs="x-next-revalidated-tags",Bs="x-next-revalidate-tag-token",Gs="next-resume",$s=128,Ws=256,Ys=1024,Vs="_N_T_",zs=31536e3,Js=4294967294,nn="middleware",Ks=`(?:src/)?${nn}`,an="proxy",Qs=`(?:src/)?${an}`,Zs="instrumentation",eo="private-next-pages",to="private-dot-next",ro="private-next-root-dir",no="private-next-app-dir",ao="private-next-rsc-mod-ref-proxy",so="private-next-rsc-action-validate",oo="private-next-rsc-server-reference",io="private-next-rsc-cache-wrapper",co="private-next-rsc-track-dynamic-import",uo="private-next-rsc-action-encryption",lo="private-next-rsc-action-client-wrapper",fo="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",po="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",ho="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",mo="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",_o="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",Eo="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",go="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",bo="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Ro="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",yo="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",Ao='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',To="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",wo=["app","pages","components","lib","src"],vo={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},So=12,T={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},No={...T,GROUP:{builtinReact:[T.reactServerComponents,T.actionBrowser],serverOnly:[T.reactServerComponents,T.actionBrowser,T.instrument,T.middleware],neutralTarget:[T.apiNode,T.apiEdge],clientOnly:[T.serverSideRendering,T.appPagesBrowser],bundled:[T.reactServerComponents,T.actionBrowser,T.serverSideRendering,T.appPagesBrowser,T.shared,T.instrument,T.middleware],appPages:[T.reactServerComponents,T.serverSideRendering,T.appPagesBrowser,T.actionBrowser]}},xo={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}});var ht=p(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});function Po(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Po(pt,{fromNodeOutgoingHttpHeaders:function(){return Oo},normalizeNextQueryParam:function(){return Co},splitCookiesString:function(){return cn},toNodeOutgoingHttpHeaders:function(){return Io},validateURL:function(){return Do}});var on=sn();function Oo(e){let t=new Headers;for(let[r,n]of Object.entries(e)){let a=Array.isArray(n)?n:[n];for(let s of a)typeof s>"u"||(typeof s=="number"&&(s=s.toString()),t.append(r,s))}return t}function cn(e){var t=[],r=0,n,a,s,h,d;function w(){for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length}function v(){return a=e.charAt(r),a!=="="&&a!==";"&&a!==","}for(;r<e.length;){for(n=r,d=!1;w();)if(a=e.charAt(r),a===","){for(s=r,r+=1,w(),h=r;r<e.length&&v();)r+=1;r<e.length&&e.charAt(r)==="="?(d=!0,r=h,t.push(e.substring(n,s)),n=r):r=s+1}else r+=1;(!d||r>=e.length)&&t.push(e.substring(n,e.length))}return t}function Io(e){let t={},r=[];if(e)for(let[n,a]of e.entries())n.toLowerCase()==="set-cookie"?(r.push(...cn(a)),t[n]=r.length===1?r[0]:r):t[n]=a;return t}function Do(e){try{return String(new URL(String(e)))}catch(t){throw Object.defineProperty(new Error(`URL is malformed "${String(e)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:t}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function Co(e){let t=[on.NEXT_QUERY_PARAM_PREFIX,on.NEXT_INTERCEPTION_MARKER_PREFIX];for(let r of t)if(e!==r&&e.startsWith(r))return e.substring(r.length);return null}});var un=p(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});function ko(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}ko(gt,{PageSignatureError:function(){return mt},RemovedPageError:function(){return _t},RemovedUAError:function(){return Et}});var mt=class extends Error{constructor({page:t}){super(`The middleware "${t}" accepts an async API directly with the form:
|
|
2
|
+
|
|
3
|
+
export function middleware(request, event) {
|
|
4
|
+
return NextResponse.redirect('/new-location')
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
|
8
|
+
`)}},_t=class extends Error{constructor(){super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ")}},Et=class extends Error{constructor(){super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ")}}});var pn=p((Zu,fn)=>{"use strict";var bt=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,Mo=Object.getOwnPropertyNames,Ho=Object.prototype.hasOwnProperty,jo=(e,t)=>{for(var r in t)bt(e,r,{get:t[r],enumerable:!0})},Xo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Mo(t))!Ho.call(e,a)&&a!==r&&bt(e,a,{get:()=>t[a],enumerable:!(n=Lo(t,a))||n.enumerable});return e},Uo=e=>Xo(bt({},"__esModule",{value:!0}),e),ln={};jo(ln,{RequestCookies:()=>Yo,ResponseCookies:()=>Vo,parseCookie:()=>Rt,parseSetCookie:()=>dn,stringifyCookie:()=>fe});fn.exports=Uo(ln);function fe(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||e.expires===0)&&`Expires=${(typeof e.expires=="number"?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&typeof e.maxAge=="number"&&`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}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent((t=e.value)!=null?t:"")}`;return r.length===0?n:`${n}; ${r.join("; ")}`}function Rt(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let n=r.indexOf("=");if(n===-1){t.set(r,"true");continue}let[a,s]=[r.slice(0,n),r.slice(n+1)];try{t.set(a,decodeURIComponent(s??"true"))}catch{}}return t}function dn(e){if(!e)return;let[[t,r],...n]=Rt(e),{domain:a,expires:s,httponly:h,maxage:d,path:w,samesite:v,secure:j,partitioned:X,priority:x}=Object.fromEntries(n.map(([Y,_e])=>[Y.toLowerCase().replace(/-/g,""),_e])),re={name:t,value:decodeURIComponent(r),domain:a,...s&&{expires:new Date(s)},...h&&{httpOnly:!0},...typeof d=="string"&&{maxAge:Number(d)},path:w,...v&&{sameSite:Bo(v)},...j&&{secure:!0},...x&&{priority:$o(x)},...X&&{partitioned:!0}};return qo(re)}function qo(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}var Fo=["strict","lax","none"];function Bo(e){return e=e.toLowerCase(),Fo.includes(e)?e:void 0}var Go=["low","medium","high"];function $o(e){return e=e.toLowerCase(),Go.includes(e)?e:void 0}function Wo(e){if(!e)return[];var t=[],r=0,n,a,s,h,d;function w(){for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length}function v(){return a=e.charAt(r),a!=="="&&a!==";"&&a!==","}for(;r<e.length;){for(n=r,d=!1;w();)if(a=e.charAt(r),a===","){for(s=r,r+=1,w(),h=r;r<e.length&&v();)r+=1;r<e.length&&e.charAt(r)==="="?(d=!0,r=h,t.push(e.substring(n,s)),n=r):r=s+1}else r+=1;(!d||r>=e.length)&&t.push(e.substring(n,e.length))}return t}var Yo=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t){let r=Rt(t);for(let[n,a]of r)this._parsed.set(n,{name:n,value:a})}}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t=typeof e[0]=="string"?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(([a,s])=>s);let n=typeof e[0]=="string"?e[0]:(t=e[0])==null?void 0:t.name;return r.filter(([a])=>a===n).map(([a,s])=>s)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=e.length===1?[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(([a,s])=>fe(s)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(n=>t.delete(n)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([n,a])=>fe(a)).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("; ")}},Vo=class{constructor(e){this._parsed=new Map;var t,r,n;this._headers=e;let a=(n=(r=(t=e.getSetCookie)==null?void 0:t.call(e))!=null?r:e.get("set-cookie"))!=null?n:[],s=Array.isArray(a)?a:Wo(a);for(let h of s){let d=dn(h);d&&this._parsed.set(d.name,d)}}get(...e){let t=typeof e[0]=="string"?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=typeof e[0]=="string"?e[0]:(t=e[0])==null?void 0:t.name;return r.filter(a=>a.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=e.length===1?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.set(t,Jo({name:t,value:r,...n})),zo(a,this._headers),this}delete(...e){let[t,r]=typeof e[0]=="string"?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,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(fe).join("; ")}};function zo(e,t){t.delete("set-cookie");for(let[,r]of e){let n=fe(r);t.append("set-cookie",n)}}function Jo(e={name:"",value:""}){return typeof e.expires=="number"&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+e.maxAge*1e3)),(e.path===null||e.path===void 0)&&(e.path="/"),e}});var Pe=p(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});function Ko(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Ko(At,{RequestCookies:function(){return yt.RequestCookies},ResponseCookies:function(){return yt.ResponseCookies},stringifyCookie:function(){return yt.stringifyCookie}});var yt=pn()});var _n=p(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});function Qo(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Qo(wt,{INTERNALS:function(){return pe},NextRequest:function(){return Tt}});var Zo=dt(),hn=ht(),mn=un(),ei=Pe(),pe=Symbol("internal request"),Tt=class extends Request{constructor(t,r={}){let n=typeof t!="string"&&"url"in t?t.url:String(t);(0,hn.validateURL)(n),process.env.NEXT_RUNTIME!=="edge"&&r.body&&r.duplex!=="half"&&(r.duplex="half"),t instanceof Request?super(t,r):super(n,r);let a=new Zo.NextURL(n,{headers:(0,hn.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:r.nextConfig});this[pe]={cookies:new ei.RequestCookies(this.headers),nextUrl:a,url:process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE?n:a.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,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[pe].cookies}get nextUrl(){return this[pe].nextUrl}get page(){throw new mn.RemovedPageError}get ua(){throw new mn.RemovedUAError}get url(){return this[pe].url}}});var En=p(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});Object.defineProperty(St,"ReflectAdapter",{enumerable:!0,get:function(){return vt}});var vt=class{static get(t,r,n){let a=Reflect.get(t,r,n);return typeof a=="function"?a.bind(t):a}static set(t,r,n,a){return Reflect.set(t,r,n,a)}static has(t,r){return Reflect.has(t,r)}static deleteProperty(t,r){return Reflect.deleteProperty(t,r)}}});var Rn=p(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Object.defineProperty(Ot,"NextResponse",{enumerable:!0,get:function(){return Pt}});var ti=Pe(),ri=dt(),Nt=ht(),ni=En(),gn=Pe(),bn=Symbol("internal response"),ai=new Set([301,302,303,307,308]);function xt(e,t){var r;if(!(e==null||(r=e.request)==null)&&r.headers){if(!(e.request.headers instanceof Headers))throw Object.defineProperty(new Error("request.headers must be an instance of Headers"),"__NEXT_ERROR_CODE",{value:"E119",enumerable:!1,configurable:!0});let n=[];for(let[a,s]of e.request.headers)t.set("x-middleware-request-"+a,s),n.push(a);t.set("x-middleware-override-headers",n.join(","))}}var Pt=class e extends Response{constructor(t,r={}){super(t,r);let n=this.headers,a=new gn.ResponseCookies(n),s=new Proxy(a,{get(h,d,w){switch(d){case"delete":case"set":return(...v)=>{let j=Reflect.apply(h[d],h,v),X=new Headers(n);return j instanceof gn.ResponseCookies&&n.set("x-middleware-set-cookie",j.getAll().map(x=>(0,ti.stringifyCookie)(x)).join(",")),xt(r,X),j};default:return ni.ReflectAdapter.get(h,d,w)}}});this[bn]={cookies:s,url:r.url?new ri.NextURL(r.url,{headers:(0,Nt.toNodeOutgoingHttpHeaders)(n),nextConfig:r.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[bn].cookies}static json(t,r){let n=Response.json(t,r);return new e(n.body,n)}static redirect(t,r){let n=typeof r=="number"?r:r?.status??307;if(!ai.has(n))throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'),"__NEXT_ERROR_CODE",{value:"E529",enumerable:!1,configurable:!0});let a=typeof r=="object"?r:{},s=new Headers(a?.headers);return s.set("Location",(0,Nt.validateURL)(t)),new e(null,{...a,headers:s,status:n})}static rewrite(t,r){let n=new Headers(r?.headers);return n.set("x-middleware-rewrite",(0,Nt.validateURL)(t)),xt(r,n),new e(null,{...r,headers:n})}static next(t){let r=new Headers(t?.headers);return r.set("x-middleware-next","1"),xt(t,r),new e(null,{...t,headers:r})}}});var yn=p(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});Object.defineProperty(It,"ImageResponse",{enumerable:!0,get:function(){return si}});function si(){throw Object.defineProperty(new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'),"__NEXT_ERROR_CODE",{value:"E183",enumerable:!1,configurable:!0})}});var Tn=p((il,An)=>{"use strict";(()=>{var e={226:function(a,s){(function(h,d){"use strict";var w="1.0.35",v="",j="?",X="function",x="undefined",re="object",Y="string",_e="major",i="model",u="name",o="type",c="vendor",l="version",P="architecture",ne="console",g="mobile",E="tablet",S="smarttv",V="wearable",Xe="embedded",Ue=350,Ee="Amazon",ae="Apple",gr="ASUS",br="BlackBerry",z="Browser",ge="Chrome",ga="Edge",be="Firefox",Re="Google",Rr="Huawei",qe="LG",Fe="Microsoft",yr="Motorola",ye="Opera",Be="Samsung",Ar="Sharp",Ae="Sony",_u="Viera",Ge="Xiaomi",$e="Zebra",Tr="Facebook",wr="Chromium OS",vr="Mac OS",ba=function(b,y){var _={};for(var A in b)y[A]&&y[A].length%2===0?_[A]=y[A].concat(b[A]):_[A]=b[A];return _},Te=function(b){for(var y={},_=0;_<b.length;_++)y[b[_].toUpperCase()]=b[_];return y},Sr=function(b,y){return typeof b===Y?se(y).indexOf(se(b))!==-1:!1},se=function(b){return b.toLowerCase()},Ra=function(b){return typeof b===Y?b.replace(/[^\d\.]/g,v).split(".")[0]:d},We=function(b,y){if(typeof b===Y)return b=b.replace(/^\s\s*/,v),typeof y===x?b:b.substring(0,Ue)},oe=function(b,y){for(var _=0,A,U,C,R,m,k;_<y.length&&!m;){var Ve=y[_],Pr=y[_+1];for(A=U=0;A<Ve.length&&!m&&Ve[A];)if(m=Ve[A++].exec(b),m)for(C=0;C<Pr.length;C++)k=m[++U],R=Pr[C],typeof R===re&&R.length>0?R.length===2?typeof R[1]==X?this[R[0]]=R[1].call(this,k):this[R[0]]=R[1]:R.length===3?typeof R[1]===X&&!(R[1].exec&&R[1].test)?this[R[0]]=k?R[1].call(this,k,R[2]):d:this[R[0]]=k?k.replace(R[1],R[2]):d:R.length===4&&(this[R[0]]=k?R[3].call(this,k.replace(R[1],R[2])):d):this[R]=k||d;_+=2}},Ye=function(b,y){for(var _ in y)if(typeof y[_]===re&&y[_].length>0){for(var A=0;A<y[_].length;A++)if(Sr(y[_][A],b))return _===j?d:_}else if(Sr(y[_],b))return _===j?d:_;return b},ya={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Nr={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},xr={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,l],[/opios[\/ ]+([\w\.]+)/i],[l,[u,ye+" Mini"]],[/\bopr\/([\w\.]+)/i],[l,[u,ye]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[u,"UC"+z]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+z],l],[/\bfocus\/([\w\.]+)/i],[l,[u,be+" Focus"]],[/\bopt\/([\w\.]+)/i],[l,[u,ye+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[u,ye+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[u,"MIUI "+z]],[/fxios\/([-\w\.]+)/i],[l,[u,be]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+z]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+z],l],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,Tr],l],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[u,ge+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,ge+" WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[u,"Android "+z]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[l,Ye,ya]],[/(webkit|khtml)\/([\w\.]+)/i],[u,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[u,be+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,l],[/(cobalt)\/([\w\.]+)/i],[u,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[P,"amd64"]],[/(ia32(?=;))/i],[[P,se]],[/((?:i[346]|x)86)[;\)]/i],[[P,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[P,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[P,"armhf"]],[/windows (ce|mobile); ppc;/i],[[P,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[P,/ower/,v,se]],[/(sun4\w)[;\)]/i],[[P,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[P,se]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[i,[c,Be],[o,E]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[i,[c,Be],[o,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[i,[c,ae],[o,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[i,[c,ae],[o,E]],[/(macintosh);/i],[i,[c,ae]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[i,[c,Ar],[o,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[i,[c,Rr],[o,E]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[i,[c,Rr],[o,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[i,/_/g," "],[c,Ge],[o,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[i,/_/g," "],[c,Ge],[o,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[i,[c,"OPPO"],[o,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[i,[c,"Vivo"],[o,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[i,[c,"Realme"],[o,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[i,[c,yr],[o,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[i,[c,yr],[o,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[i,[c,qe],[o,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[i,[c,qe],[o,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[i,[c,"Lenovo"],[o,E]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[i,/_/g," "],[c,"Nokia"],[o,g]],[/(pixel c)\b/i],[i,[c,Re],[o,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[i,[c,Re],[o,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[i,[c,Ae],[o,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[i,"Xperia Tablet"],[c,Ae],[o,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[i,[c,"OnePlus"],[o,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[i,[c,Ee],[o,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[i,/(.+)/g,"Fire Phone $1"],[c,Ee],[o,g]],[/(playbook);[-\w\),; ]+(rim)/i],[i,c,[o,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[i,[c,br],[o,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[i,[c,gr],[o,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[i,[c,gr],[o,g]],[/(nexus 9)/i],[i,[c,"HTC"],[o,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[i,/_/g," "],[o,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[i,[c,"Acer"],[o,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[i,[c,"Meizu"],[o,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[c,i,[o,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[c,i,[o,E]],[/(surface duo)/i],[i,[c,Fe],[o,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[i,[c,"Fairphone"],[o,g]],[/(u304aa)/i],[i,[c,"AT&T"],[o,g]],[/\bsie-(\w*)/i],[i,[c,"Siemens"],[o,g]],[/\b(rct\w+) b/i],[i,[c,"RCA"],[o,E]],[/\b(venue[\d ]{2,7}) b/i],[i,[c,"Dell"],[o,E]],[/\b(q(?:mv|ta)\w+) b/i],[i,[c,"Verizon"],[o,E]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[i,[c,"Barnes & Noble"],[o,E]],[/\b(tm\d{3}\w+) b/i],[i,[c,"NuVision"],[o,E]],[/\b(k88) b/i],[i,[c,"ZTE"],[o,E]],[/\b(nx\d{3}j) b/i],[i,[c,"ZTE"],[o,g]],[/\b(gen\d{3}) b.+49h/i],[i,[c,"Swiss"],[o,g]],[/\b(zur\d{3}) b/i],[i,[c,"Swiss"],[o,E]],[/\b((zeki)?tb.*\b) b/i],[i,[c,"Zeki"],[o,E]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],i,[o,E]],[/\b(ns-?\w{0,9}) b/i],[i,[c,"Insignia"],[o,E]],[/\b((nxa|next)-?\w{0,9}) b/i],[i,[c,"NextBook"],[o,E]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],i,[o,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],i,[o,g]],[/\b(ph-1) /i],[i,[c,"Essential"],[o,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[i,[c,"Envizen"],[o,E]],[/\b(trio[-\w\. ]+) b/i],[i,[c,"MachSpeed"],[o,E]],[/\btu_(1491) b/i],[i,[c,"Rotor"],[o,E]],[/(shield[\w ]+) b/i],[i,[c,"Nvidia"],[o,E]],[/(sprint) (\w+)/i],[c,i,[o,g]],[/(kin\.[onetw]{3})/i],[[i,/\./g," "],[c,Fe],[o,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[i,[c,$e],[o,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[i,[c,$e],[o,g]],[/smart-tv.+(samsung)/i],[c,[o,S]],[/hbbtv.+maple;(\d+)/i],[[i,/^/,"SmartTV"],[c,Be],[o,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,qe],[o,S]],[/(apple) ?tv/i],[c,[i,ae+" TV"],[o,S]],[/crkey/i],[[i,ge+"cast"],[c,Re],[o,S]],[/droid.+aft(\w)( bui|\))/i],[i,[c,Ee],[o,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[i,[c,Ar],[o,S]],[/(bravia[\w ]+)( bui|\))/i],[i,[c,Ae],[o,S]],[/(mitv-\w{5}) bui/i],[i,[c,Ge],[o,S]],[/Hbbtv.*(technisat) (.*);/i],[c,i,[o,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[c,We],[i,We],[o,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[o,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,i,[o,ne]],[/droid.+; (shield) bui/i],[i,[c,"Nvidia"],[o,ne]],[/(playstation [345portablevi]+)/i],[i,[c,Ae],[o,ne]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[i,[c,Fe],[o,ne]],[/((pebble))app/i],[c,i,[o,V]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[i,[c,ae],[o,V]],[/droid.+; (glass) \d/i],[i,[c,Re],[o,V]],[/droid.+; (wt63?0{2,3})\)/i],[i,[c,$e],[o,V]],[/(quest( 2| pro)?)/i],[i,[c,Tr],[o,V]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[o,Xe]],[/(aeobc)\b/i],[i,[c,Ee],[o,Xe]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[i,[o,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[i,[o,E]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[o,E]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[o,g]],[/(android[-\w\. ]{0,9});.+buil/i],[i,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[u,ga+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[l,Ye,Nr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[l,Ye,Nr]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,vr],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,l],[/\(bb(10);/i],[l,[u,br]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[u,be+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[u,ge+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,wr],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,l],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,l]]},N=function(b,y){if(typeof b===re&&(y=b,b=d),!(this instanceof N))return new N(b,y).getResult();var _=typeof h!==x&&h.navigator?h.navigator:d,A=b||(_&&_.userAgent?_.userAgent:v),U=_&&_.userAgentData?_.userAgentData:d,C=y?ba(xr,y):xr,R=_&&_.userAgent==A;return this.getBrowser=function(){var m={};return m[u]=d,m[l]=d,oe.call(m,A,C.browser),m[_e]=Ra(m[l]),R&&_&&_.brave&&typeof _.brave.isBrave==X&&(m[u]="Brave"),m},this.getCPU=function(){var m={};return m[P]=d,oe.call(m,A,C.cpu),m},this.getDevice=function(){var m={};return m[c]=d,m[i]=d,m[o]=d,oe.call(m,A,C.device),R&&!m[o]&&U&&U.mobile&&(m[o]=g),R&&m[i]=="Macintosh"&&_&&typeof _.standalone!==x&&_.maxTouchPoints&&_.maxTouchPoints>2&&(m[i]="iPad",m[o]=E),m},this.getEngine=function(){var m={};return m[u]=d,m[l]=d,oe.call(m,A,C.engine),m},this.getOS=function(){var m={};return m[u]=d,m[l]=d,oe.call(m,A,C.os),R&&!m[u]&&U&&U.platform!="Unknown"&&(m[u]=U.platform.replace(/chrome os/i,wr).replace(/macos/i,vr)),m},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return A},this.setUA=function(m){return A=typeof m===Y&&m.length>Ue?We(m,Ue):m,this},this.setUA(A),this};N.VERSION=w,N.BROWSER=Te([u,l,_e]),N.CPU=Te([P]),N.DEVICE=Te([i,c,o,ne,g,S,E,V,Xe]),N.ENGINE=N.OS=Te([u,l]),typeof s!==x?(x!=="object"&&a.exports&&(s=a.exports=N),s.UAParser=N):typeof define===X&&define.amd?define((function(){return N})):typeof h!==x&&(h.UAParser=N);var J=typeof h!==x&&(h.jQuery||h.Zepto);if(J&&!J.ua){var we=new N;J.ua=we.getResult(),J.ua.get=function(){return we.getUA()},J.ua.set=function(b){we.setUA(b);var y=we.getResult();for(var _ in y)J.ua[_]=y[_]}}})(typeof window=="object"?window:this)}},t={};function r(a){var s=t[a];if(s!==void 0)return s.exports;var h=t[a]={exports:{}},d=!0;try{e[a].call(h.exports,h,h.exports,r),d=!1}finally{d&&delete t[a]}return h.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(226);An.exports=n})()});var Ct=p(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});function oi(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}oi(Dt,{isBot:function(){return wn},userAgent:function(){return ui},userAgentFromString:function(){return vn}});var ii=ci(Tn());function ci(e){return e&&e.__esModule?e:{default:e}}function wn(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|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)}function vn(e){return{...(0,ii.default)(e),isBot:e===void 0?!1:wn(e)}}function ui({headers:e}){return vn(e.get("user-agent")||void 0)}});var Sn=p(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});Object.defineProperty(kt,"URLPattern",{enumerable:!0,get:function(){return li}});var li=typeof URLPattern>"u"?void 0:URLPattern});var De=p(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});function di(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}di(Lt,{bindSnapshot:function(){return pi},createAsyncLocalStorage:function(){return fi},createSnapshot:function(){return hi}});var Oe=Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0}),Ie=class{disable(){throw Oe}getStore(){}run(){throw Oe}exit(){throw Oe}enterWith(){throw Oe}static bind(t){return t}},Z=typeof globalThis<"u"&&globalThis.AsyncLocalStorage;function fi(){return Z?new Z:new Ie}function pi(e){return Z?Z.bind(e):Ie.bind(e)}function hi(){return Z?Z.snapshot():function(e,...t){return e(...t)}}});var Nn=p(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Object.defineProperty(Mt,"workAsyncStorageInstance",{enumerable:!0,get:function(){return _i}});var mi=De(),_i=(0,mi.createAsyncLocalStorage)()});var Ce=p(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Object.defineProperty(Ht,"workAsyncStorage",{enumerable:!0,get:function(){return Ei.workAsyncStorageInstance}});var Ei=Nn()});var xn=p(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});Object.defineProperty(jt,"after",{enumerable:!0,get:function(){return bi}});var gi=Ce();function bi(e){let t=gi.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(new Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"),"__NEXT_ERROR_CODE",{value:"E468",enumerable:!1,configurable:!0});let{afterContext:r}=t;return r.after(e)}});var Pn=p(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Ri(xn(),Xt);function Ri(e,t){return Object.keys(e).forEach(function(r){r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e}});var On=p(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Object.defineProperty(Ut,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return Ai}});var yi=De(),Ai=(0,yi.createAsyncLocalStorage)()});var Hn=p((O,Mn)=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});function Ti(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Ti(O,{ACTION_HEADER:function(){return wi},FLIGHT_HEADERS:function(){return xi},NEXT_ACTION_NOT_FOUND_HEADER:function(){return Li},NEXT_ACTION_REVALIDATED_HEADER:function(){return ji},NEXT_DID_POSTPONE_HEADER:function(){return Ii},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return vi},NEXT_HMR_REFRESH_HEADER:function(){return Ln},NEXT_HTML_REQUEST_ID_HEADER:function(){return Hi},NEXT_IS_PRERENDER_HEADER:function(){return ki},NEXT_REQUEST_ID_HEADER:function(){return Mi},NEXT_REWRITTEN_PATH_HEADER:function(){return Di},NEXT_REWRITTEN_QUERY_HEADER:function(){return Ci},NEXT_ROUTER_PREFETCH_HEADER:function(){return Cn},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return kn},NEXT_ROUTER_STALE_TIME_HEADER:function(){return Oi},NEXT_ROUTER_STATE_TREE_HEADER:function(){return Dn},NEXT_RSC_UNION_QUERY:function(){return Pi},NEXT_URL:function(){return Si},RSC_CONTENT_TYPE_HEADER:function(){return Ni},RSC_HEADER:function(){return In}});var In="rsc",wi="next-action",Dn="next-router-state-tree",Cn="next-router-prefetch",kn="next-router-segment-prefetch",Ln="next-hmr-refresh",vi="__next_hmr_refresh_hash__",Si="next-url",Ni="text/x-component",xi=[In,Dn,Cn,Ln,kn],Pi="_rsc",Oi="x-nextjs-stale-time",Ii="x-nextjs-postponed",Di="x-nextjs-rewritten-path",Ci="x-nextjs-rewritten-query",ki="x-nextjs-prerender",Li="x-nextjs-action-not-found",Mi="x-nextjs-request-id",Hi="x-nextjs-html-request-id",ji="x-action-revalidated";(typeof O.default=="function"||typeof O.default=="object"&&O.default!==null)&&typeof O.default.__esModule>"u"&&(Object.defineProperty(O.default,"__esModule",{value:!0}),Object.assign(O.default,O),Mn.exports=O.default)});var ke=p(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Object.defineProperty(Ft,"InvariantError",{enumerable:!0,get:function(){return qt}});var qt=class extends Error{constructor(t,r){super(`Invariant: ${t.endsWith(".")?t:t+"."} This is a bug in Next.js.`,r),this.name="InvariantError"}}});var Gt=p(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});function Xi(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Xi(Bt,{getCacheSignal:function(){return Ki},getDraftModeProviderForCacheScope:function(){return Ji},getHmrRefreshHash:function(){return Yi},getPrerenderResumeDataCache:function(){return $i},getRenderResumeDataCache:function(){return Wi},getRuntimeStagePromise:function(){return Qi},getServerComponentsHmrCache:function(){return zi},isHmrRefresh:function(){return Vi},throwForMissingRequestStore:function(){return Bi},throwInvariantForMissingStore:function(){return Gi},workUnitAsyncStorage:function(){return Ui.workUnitAsyncStorageInstance}});var Ui=On(),qi=Hn(),Fi=ke();function Bi(e){throw Object.defineProperty(new Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function Gi(){throw Object.defineProperty(new Fi.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function $i(e){switch(e.type){case"prerender":case"prerender-runtime":case"prerender-ppr":return e.prerenderResumeDataCache;case"prerender-client":return e.prerenderResumeDataCache;case"request":if(e.prerenderResumeDataCache)return e.prerenderResumeDataCache;case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":return null;default:return e}}function Wi(e){switch(e.type){case"request":case"prerender":case"prerender-runtime":case"prerender-client":if(e.renderResumeDataCache)return e.renderResumeDataCache;case"prerender-ppr":return e.prerenderResumeDataCache??null;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":return null;default:return e}}function Yi(e,t){if(e.dev)switch(t.type){case"cache":case"private-cache":case"prerender":case"prerender-runtime":return t.hmrRefreshHash;case"request":var r;return(r=t.cookies.get(qi.NEXT_HMR_REFRESH_HASH_COOKIE))==null?void 0:r.value;case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"unstable-cache":break;default:}}function Vi(e,t){if(e.dev)switch(t.type){case"cache":case"private-cache":case"request":return t.isHmrRefresh??!1;case"prerender":case"prerender-client":case"prerender-runtime":case"prerender-ppr":case"prerender-legacy":case"unstable-cache":break;default:}return!1}function zi(e,t){if(e.dev)switch(t.type){case"cache":case"private-cache":case"request":return t.serverComponentsHmrCache;case"prerender":case"prerender-client":case"prerender-runtime":case"prerender-ppr":case"prerender-legacy":case"unstable-cache":break;default:}}function Ji(e,t){if(e.isDraftMode)switch(t.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return t.draftMode;case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":break;default:}}function Ki(e){switch(e.type){case"prerender":case"prerender-client":case"prerender-runtime":return e.cacheSignal;case"request":if(e.cacheSignal)return e.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":return null;default:return e}}function Qi(e){switch(e.type){case"prerender-runtime":case"private-cache":return e.runtimeStagePromise;case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"unstable-cache":return null;default:return e}}});var Un=p((I,Xn)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});function Zi(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Zi(I,{DynamicServerError:function(){return $t},isDynamicServerError:function(){return ec}});var jn="DYNAMIC_SERVER_USAGE",$t=class extends Error{constructor(t){super(`Dynamic server usage: ${t}`),this.description=t,this.digest=jn}};function ec(e){return typeof e!="object"||e===null||!("digest"in e)||typeof e.digest!="string"?!1:e.digest===jn}(typeof I.default=="function"||typeof I.default=="object"&&I.default!==null)&&typeof I.default.__esModule>"u"&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),Xn.exports=I.default)});var Le=p((D,Fn)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});function tc(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}tc(D,{StaticGenBailoutError:function(){return Wt},isStaticGenBailoutError:function(){return rc}});var qn="NEXT_STATIC_GEN_BAILOUT",Wt=class extends Error{constructor(...t){super(...t),this.code=qn}};function rc(e){return typeof e!="object"||e===null||!("code"in e)?!1:e.code===qn}(typeof D.default=="function"||typeof D.default=="object"&&D.default!==null)&&typeof D.default.__esModule>"u"&&(Object.defineProperty(D.default,"__esModule",{value:!0}),Object.assign(D.default,D),Fn.exports=D.default)});var Vt=p(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});function nc(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}nc(Yt,{isHangingPromiseRejectionError:function(){return ac},makeDevtoolsIOAwarePromise:function(){return ic},makeHangingPromise:function(){return sc}});function ac(e){return typeof e!="object"||e===null||!("digest"in e)?!1:e.digest===Gn}var Gn="HANGING_PROMISE_REJECTION",Me=class extends Error{constructor(t,r){super(`During prerendering, ${r} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${r} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${t}".`),this.route=t,this.expression=r,this.digest=Gn}},Bn=new WeakMap;function sc(e,t,r){if(e.aborted)return Promise.reject(new Me(t,r));{let n=new Promise((a,s)=>{let h=s.bind(null,new Me(t,r)),d=Bn.get(e);if(d)d.push(h);else{let w=[h];Bn.set(e,w),e.addEventListener("abort",()=>{for(let v=0;v<w.length;v++)w[v]()},{once:!0})}});return n.catch(oc),n}}function oc(){}function ic(e,t,r){return t.stagedRendering?t.stagedRendering.delayUntilStage(r,void 0,e):new Promise(n=>{setTimeout(()=>{n(e)},0)})}});var $n=p(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});function cc(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}cc(zt,{METADATA_BOUNDARY_NAME:function(){return uc},OUTLET_BOUNDARY_NAME:function(){return dc},ROOT_LAYOUT_BOUNDARY_NAME:function(){return fc},VIEWPORT_BOUNDARY_NAME:function(){return lc}});var uc="__next_metadata_boundary__",lc="__next_viewport_boundary__",dc="__next_outlet_boundary__",fc="__next_root_layout_boundary__"});var Yn=p(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});function pc(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}pc(Jt,{atLeastOneTask:function(){return mc},scheduleImmediate:function(){return Wn},scheduleOnNextTick:function(){return hc},waitAtLeastOneReactRenderTask:function(){return _c}});var hc=e=>{Promise.resolve().then(()=>{process.env.NEXT_RUNTIME==="edge"?setTimeout(e,0):process.nextTick(e)})},Wn=e=>{process.env.NEXT_RUNTIME==="edge"?setTimeout(e,0):setImmediate(e)};function mc(){return new Promise(e=>Wn(e))}function _c(){return process.env.NEXT_RUNTIME==="edge"?new Promise(e=>setTimeout(e,0)):new Promise(e=>setImmediate(e))}});var zn=p(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});function Ec(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Ec(Qt,{BailoutToCSRError:function(){return Kt},isBailoutToCSRError:function(){return gc}});var Vn="BAILOUT_TO_CLIENT_SIDE_RENDERING",Kt=class extends Error{constructor(t){super(`Bail out to client-side rendering: ${t}`),this.reason=t,this.digest=Vn}};function gc(e){return typeof e!="object"||e===null||!("digest"in e)?!1:e.digest===Vn}});var oa=p(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});function bc(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}bc(sr,{Postpone:function(){return Oc},PreludeState:function(){return Wc},abortAndThrowOnSynchronousRequestDataAccess:function(){return Pc},abortOnSynchronousPlatformIOAccess:function(){return xc},accessedDynamicData:function(){return Cc},annotateDynamicAccess:function(){return Xc},consumeDynamicAccess:function(){return kc},createDynamicTrackingState:function(){return Ac},createDynamicValidationState:function(){return Tc},createHangingInputAbortSignal:function(){return jc},createRenderInBrowserAbortSignal:function(){return Hc},delayUntilRuntimeStage:function(){return zc},formatDynamicAPIAccesses:function(){return Lc},getFirstDynamicReason:function(){return wc},getStaticShellDisallowedDynamicReasons:function(){return Vc},isDynamicPostpone:function(){return Ic},isPrerenderInterruptedError:function(){return Dc},logDisallowedDynamicError:function(){return Zt},markCurrentScopeAsDynamic:function(){return vc},postponeWithTracking:function(){return je},throwIfDisallowedDynamic:function(){return Yc},throwToInterruptStaticGeneration:function(){return Sc},trackAllowedDynamicAccess:function(){return Bc},trackDynamicDataInDynamicRender:function(){return Nc},trackDynamicHoleInRuntimeShell:function(){return Gc},trackDynamicHoleInStaticShell:function(){return $c},useDynamicRouteParams:function(){return Uc},useDynamicSearchParams:function(){return qc}});var te=Rc(require("react")),Kn=Un(),ee=Le(),he=Gt(),Qn=Ce(),Zn=Vt(),He=$n(),Jn=Yn(),ea=zn(),me=ke();function Rc(e){return e&&e.__esModule?e:{default:e}}var yc=typeof te.default.unstable_postpone=="function";function Ac(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function Tc(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function wc(e){var t;return(t=e.dynamicAccesses[0])==null?void 0:t.expression}function vc(e,t,r){if(t)switch(t.type){case"cache":case"unstable-cache":return;case"private-cache":return;case"prerender-legacy":case"prerender-ppr":case"request":break;default:}if(!(e.forceDynamic||e.forceStatic)){if(e.dynamicShouldError)throw Object.defineProperty(new ee.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(t)switch(t.type){case"prerender-ppr":return je(e.route,r,t.dynamicTracking);case"prerender-legacy":t.revalidate=0;let n=Object.defineProperty(new Kn.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n;case"request":process.env.NODE_ENV!=="production"&&(t.usedDynamic=!0);break;default:}}}function Sc(e,t,r){let n=Object.defineProperty(new Kn.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function Nc(e){switch(e.type){case"cache":case"unstable-cache":return;case"private-cache":return;case"prerender":case"prerender-runtime":case"prerender-legacy":case"prerender-ppr":case"prerender-client":break;case"request":process.env.NODE_ENV!=="production"&&(e.usedDynamic=!0);break;default:}}function ta(e,t,r){let n=`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`,a=sa(n);r.controller.abort(a);let s=r.dynamicTracking;s&&s.dynamicAccesses.push({stack:s.isDebugDynamicAccesses?new Error().stack:void 0,expression:t})}function xc(e,t,r,n){let a=n.dynamicTracking;ta(e,t,n),a&&a.syncDynamicErrorWithStack===null&&(a.syncDynamicErrorWithStack=r)}function Pc(e,t,r,n){if(n.controller.signal.aborted===!1){ta(e,t,n);let s=n.dynamicTracking;s&&s.syncDynamicErrorWithStack===null&&(s.syncDynamicErrorWithStack=r)}throw sa(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}function Oc({reason:e,route:t}){let r=he.workUnitAsyncStorage.getStore(),n=r&&r.type==="prerender-ppr"?r.dynamicTracking:null;je(t,e,n)}function je(e,t,r){Mc(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?new Error().stack:void 0,expression:t}),te.default.unstable_postpone(ra(e,t))}function ra(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. 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`}function Ic(e){return typeof e=="object"&&e!==null&&typeof e.message=="string"?na(e.message):!1}function na(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(na(ra("%%%","^^^"))===!1)throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});var aa="NEXT_PRERENDER_INTERRUPTED";function sa(e){let t=Object.defineProperty(new Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t.digest=aa,t}function Dc(e){return typeof e=="object"&&e!==null&&e.digest===aa&&"name"in e&&"message"in e&&e instanceof Error}function Cc(e){return e.length>0}function kc(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function Lc(e){return e.filter(t=>typeof t.stack=="string"&&t.stack.length>0).map(({expression:t,stack:r})=>(r=r.split(`
|
|
9
|
+
`).slice(4).filter(n=>!(n.includes("node_modules/next/")||n.includes(" (<anonymous>)")||n.includes(" (node:"))).join(`
|
|
10
|
+
`),`Dynamic API Usage Debug - ${t}:
|
|
11
|
+
${r}`))}function Mc(){if(!yc)throw Object.defineProperty(new Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})}function Hc(){let e=new AbortController;return e.abort(Object.defineProperty(new ea.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function jc(e){switch(e.type){case"prerender":case"prerender-runtime":let t=new AbortController;if(e.cacheSignal)e.cacheSignal.inputReady().then(()=>{t.abort()});else{let r=(0,he.getRuntimeStagePromise)(e);r?r.then(()=>(0,Jn.scheduleOnNextTick)(()=>t.abort())):(0,Jn.scheduleOnNextTick)(()=>t.abort())}return t.signal;case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return;default:}}function Xc(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?new Error().stack:void 0,expression:e})}function Uc(e){let t=Qn.workAsyncStorage.getStore(),r=he.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":case"prerender":{let n=r.fallbackRouteParams;n&&n.size>0&&te.default.use((0,Zn.makeHangingPromise)(r.renderSignal,t.route,e));break}case"prerender-ppr":{let n=r.fallbackRouteParams;if(n&&n.size>0)return je(t.route,e,r.dynamicTracking);break}case"prerender-runtime":throw Object.defineProperty(new me.InvariantError(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new me.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"prerender-legacy":case"request":case"unstable-cache":break;default:}}function qc(e){let t=Qn.workAsyncStorage.getStore(),r=he.workUnitAsyncStorage.getStore();if(t)switch(r||(0,he.throwForMissingRequestStore)(e),r.type){case"prerender-client":{te.default.use((0,Zn.makeHangingPromise)(r.renderSignal,t.route,e));break}case"prerender-legacy":case"prerender-ppr":{if(t.forceStatic)return;throw Object.defineProperty(new ea.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}case"prerender":case"prerender-runtime":throw Object.defineProperty(new me.InvariantError(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new me.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"request":return;default:}}var er=/\n\s+at Suspense \(<anonymous>\)/,Fc="body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6",tr=new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${Fc}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${He.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),rr=new RegExp(`\\n\\s+at ${He.METADATA_BOUNDARY_NAME}[\\n\\s]`),nr=new RegExp(`\\n\\s+at ${He.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),ar=new RegExp(`\\n\\s+at ${He.OUTLET_BOUNDARY_NAME}[\\n\\s]`);function Bc(e,t,r,n){if(!ar.test(t))if(rr.test(t)){r.hasDynamicMetadata=!0;return}else if(nr.test(t)){r.hasDynamicViewport=!0;return}else if(tr.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(er.test(t)){r.hasAllowedDynamic=!0;return}else if(n.syncDynamicErrorWithStack){r.dynamicErrors.push(n.syncDynamicErrorWithStack);return}else{let a=`Route "${e.route}": Uncached data was accessed outside of <Suspense>. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`,s=W(a,t);r.dynamicErrors.push(s);return}}function Gc(e,t,r,n){if(!ar.test(t))if(rr.test(t)){let a=`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`,s=W(a,t);r.dynamicMetadata=s;return}else if(nr.test(t)){let a=`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`,s=W(a,t);r.dynamicErrors.push(s);return}else if(tr.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(er.test(t)){r.hasAllowedDynamic=!0;return}else if(n.syncDynamicErrorWithStack){r.dynamicErrors.push(n.syncDynamicErrorWithStack);return}else{let a=`Route "${e.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`,s=W(a,t);r.dynamicErrors.push(s);return}}function $c(e,t,r,n){if(!ar.test(t))if(rr.test(t)){let a=`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`,s=W(a,t);r.dynamicMetadata=s;return}else if(nr.test(t)){let a=`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`,s=W(a,t);r.dynamicErrors.push(s);return}else if(tr.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(er.test(t)){r.hasAllowedDynamic=!0;return}else if(n.syncDynamicErrorWithStack){r.dynamicErrors.push(n.syncDynamicErrorWithStack);return}else{let a=`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`,s=W(a,t);r.dynamicErrors.push(s);return}}function W(e,t){let r=process.env.NODE_ENV!=="production"&&te.default.captureOwnerStack?te.default.captureOwnerStack():null,n=Object.defineProperty(new Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n.stack=n.name+": "+e+(r||t),n}var Wc=(function(e){return e[e.Full=0]="Full",e[e.Empty=1]="Empty",e[e.Errored=2]="Errored",e})({});function Zt(e,t){console.error(t),e.dev||(e.hasReadableErrorStacks?console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error.`):console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
12
|
+
- Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error.
|
|
13
|
+
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`))}function Yc(e,t,r,n){if(n.syncDynamicErrorWithStack)throw Zt(e,n.syncDynamicErrorWithStack),new ee.StaticGenBailoutError;if(t!==0){if(r.hasSuspenseAboveBody)return;let a=r.dynamicErrors;if(a.length>0){for(let s=0;s<a.length;s++)Zt(e,a[s]);throw new ee.StaticGenBailoutError}if(r.hasDynamicViewport)throw console.error(`Route "${e.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new ee.StaticGenBailoutError;if(t===1)throw console.error(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new ee.StaticGenBailoutError}else if(r.hasAllowedDynamic===!1&&r.hasDynamicMetadata)throw console.error(`Route "${e.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new ee.StaticGenBailoutError}function Vc(e,t,r){if(r.hasSuspenseAboveBody)return[];if(t!==0){let n=r.dynamicErrors;if(n.length>0)return n;if(t===1)return[Object.defineProperty(new me.InvariantError(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}else if(r.hasAllowedDynamic===!1&&r.dynamicErrors.length===0&&r.dynamicMetadata)return[r.dynamicMetadata];return[]}function zc(e,t){return e.runtimeStagePromise?e.runtimeStagePromise.then(()=>t):t}});var ia=p(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});Object.defineProperty(or,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return Kc}});var Jc=De(),Kc=(0,Jc.createAsyncLocalStorage)()});var ca=p(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});Object.defineProperty(ir,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return Qc.afterTaskAsyncStorageInstance}});var Qc=ia()});var ua=p(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});function Zc(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Zc(cr,{isRequestAPICallableInsideAfter:function(){return au},throwForSearchParamsAccessInUseCache:function(){return nu},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return ru}});var eu=Le(),tu=ca();function ru(e,t){throw Object.defineProperty(new eu.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function nu(e,t){let r=Object.defineProperty(new Error(`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function au(){let e=tu.afterTaskAsyncStorage.getStore();return e?.rootTaskSpawnPhase==="action"}});var la=p(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});Object.defineProperty(ur,"createPromiseWithResolvers",{enumerable:!0,get:function(){return su}});function su(){let e,t,r=new Promise((n,a)=>{e=n,t=a});return{resolve:e,reject:t,promise:r}}});var fa=p(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});function ou(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}ou(pr,{RenderStage:function(){return iu},StagedRenderingController:function(){return fr}});var lr=ke(),da=la(),iu=(function(e){return e[e.Before=1]="Before",e[e.Static=2]="Static",e[e.Runtime=3]="Runtime",e[e.Dynamic=4]="Dynamic",e[e.Abandoned=5]="Abandoned",e})({}),fr=class{constructor(t=null,r){this.abortSignal=t,this.hasRuntimePrefetch=r,this.currentStage=1,this.staticInterruptReason=null,this.runtimeInterruptReason=null,this.staticStageEndTime=1/0,this.runtimeStageEndTime=1/0,this.runtimeStageListeners=[],this.dynamicStageListeners=[],this.runtimeStagePromise=(0,da.createPromiseWithResolvers)(),this.dynamicStagePromise=(0,da.createPromiseWithResolvers)(),this.mayAbandon=!1,t&&(t.addEventListener("abort",()=>{let{reason:n}=t;this.currentStage<3&&(this.runtimeStagePromise.promise.catch(dr),this.runtimeStagePromise.reject(n)),(this.currentStage<4||this.currentStage===5)&&(this.dynamicStagePromise.promise.catch(dr),this.dynamicStagePromise.reject(n))},{once:!0}),this.mayAbandon=!0)}onStage(t,r){if(this.currentStage>=t)r();else if(t===3)this.runtimeStageListeners.push(r);else if(t===4)this.dynamicStageListeners.push(r);else throw Object.defineProperty(new lr.InvariantError(`Invalid render stage: ${t}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}canSyncInterrupt(){if(this.currentStage===1)return!1;let t=this.hasRuntimePrefetch?4:3;return this.currentStage<t}syncInterruptCurrentStageWithReason(t){if(this.currentStage!==1){if(this.mayAbandon)return this.abandonRenderImpl();switch(this.currentStage){case 2:{this.staticInterruptReason=t,this.advanceStage(4);return}case 3:{this.hasRuntimePrefetch&&(this.runtimeInterruptReason=t,this.advanceStage(4));return}default:}}}getStaticInterruptReason(){return this.staticInterruptReason}getRuntimeInterruptReason(){return this.runtimeInterruptReason}getStaticStageEndTime(){return this.staticStageEndTime}getRuntimeStageEndTime(){return this.runtimeStageEndTime}abandonRender(){if(!this.mayAbandon)throw Object.defineProperty(new lr.InvariantError("`abandonRender` called on a stage controller that cannot be abandoned."),"__NEXT_ERROR_CODE",{value:"E938",enumerable:!1,configurable:!0});this.abandonRenderImpl()}abandonRenderImpl(){let{currentStage:t}=this;switch(t){case 2:{this.currentStage=5,this.resolveRuntimeStage();return}case 3:{this.currentStage=5;return}case 4:case 1:case 5:break;default:}}advanceStage(t){if(t<=this.currentStage)return;let r=this.currentStage;if(this.currentStage=t,r<3&&t>=3&&(this.staticStageEndTime=performance.now()+performance.timeOrigin,this.resolveRuntimeStage()),r<4&&t>=4){this.runtimeStageEndTime=performance.now()+performance.timeOrigin,this.resolveDynamicStage();return}}resolveRuntimeStage(){let t=this.runtimeStageListeners;for(let r=0;r<t.length;r++)t[r]();t.length=0,this.runtimeStagePromise.resolve()}resolveDynamicStage(){let t=this.dynamicStageListeners;for(let r=0;r<t.length;r++)t[r]();t.length=0,this.dynamicStagePromise.resolve()}getStagePromise(t){switch(t){case 3:return this.runtimeStagePromise.promise;case 4:return this.dynamicStagePromise.promise;default:throw Object.defineProperty(new lr.InvariantError(`Invalid render stage: ${t}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}}waitForStage(t){return this.getStagePromise(t)}delayUntilStage(t,r,n){let a=this.getStagePromise(t),s=cu(a,r,n);return this.abortSignal&&s.catch(dr),s}};function dr(){}function cu(e,t,r){let n=new Promise((a,s)=>{e.then(a.bind(null,r),s)});return t!==void 0&&(n.displayName=t),n}});var ma=p(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});Object.defineProperty(_r,"connection",{enumerable:!0,get:function(){return mr}});var uu=Ce(),pa=Gt(),hr=oa(),lu=Le(),ha=Vt(),du=ua(),fu=fa();function mr(){let e="connection",t=uu.workAsyncStorage.getStore(),r=pa.workUnitAsyncStorage.getStore();if(t){if(r&&r.phase==="after"&&!(0,du.isRequestAPICallableInsideAfter)())throw Object.defineProperty(new Error(`Route ${t.route} used \`connection()\` inside \`after()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but \`after()\` executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E827",enumerable:!1,configurable:!0});if(t.forceStatic)return Promise.resolve(void 0);if(t.dynamicShouldError)throw Object.defineProperty(new lu.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E847",enumerable:!1,configurable:!0});if(r)switch(r.type){case"cache":{let n=Object.defineProperty(new Error(`Route ${t.route} used \`connection()\` inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual request, but caches must be able to be produced before a request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E841",enumerable:!1,configurable:!0});throw Error.captureStackTrace(n,mr),t.invalidDynamicUsageError??=n,n}case"private-cache":{let n=Object.defineProperty(new Error(`Route ${t.route} used \`connection()\` inside "use cache: private". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual navigation request, but caches must be able to be produced before a navigation request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E837",enumerable:!1,configurable:!0});throw Error.captureStackTrace(n,mr),t.invalidDynamicUsageError??=n,n}case"unstable-cache":throw Object.defineProperty(new Error(`Route ${t.route} used \`connection()\` inside a function cached with \`unstable_cache()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E840",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-runtime":return(0,ha.makeHangingPromise)(r.renderSignal,t.route,"`connection()`");case"prerender-ppr":return(0,hr.postponeWithTracking)(t.route,"connection",r.dynamicTracking);case"prerender-legacy":return(0,hr.throwToInterruptStaticGeneration)("connection",t,r);case"request":return(0,hr.trackDynamicDataInDynamicRender)(r),process.env.NODE_ENV==="development"?r.asyncApiPromises?r.asyncApiPromises.connection:(0,ha.makeDevtoolsIOAwarePromise)(void 0,r,fu.RenderStage.Dynamic):Promise.resolve(void 0);default:}}(0,pa.throwForMissingRequestStore)(e)}});var Ea=p((H,_a)=>{"use strict";var M={NextRequest:_n().NextRequest,NextResponse:Rn().NextResponse,ImageResponse:yn().ImageResponse,userAgentFromString:Ct().userAgentFromString,userAgent:Ct().userAgent,URLPattern:Sn().URLPattern,after:Pn().after,connection:ma().connection};_a.exports=M;H.NextRequest=M.NextRequest;H.NextResponse=M.NextResponse;H.ImageResponse=M.ImageResponse;H.userAgentFromString=M.userAgentFromString;H.userAgent=M.userAgent;H.URLPattern=M.URLPattern;H.after=M.after;H.connection=M.connection});var mu={};Na(mu,{Alert:()=>Wa,Badge:()=>ka,Breadcrumb:()=>Ya,Button:()=>Ia,Card:()=>Ca,Checkbox:()=>Va,Dropdown:()=>za,DropdownItem:()=>Ja,Input:()=>Da,Modal:()=>Ga,Progress:()=>Ka,Select:()=>$a,Skeleton:()=>Ma,Table:()=>ja,TableBody:()=>Ua,TableCell:()=>Ba,TableHead:()=>Fa,TableHeader:()=>Xa,TableRow:()=>qa,Textarea:()=>La,Toaster:()=>Qa,Toggle:()=>Ha,cn:()=>Za,config:()=>hu,proxy:()=>pu,useTheme:()=>es});module.exports=Pa(mu);var Ir=require("clsx"),Dr=require("tailwind-merge"),Cr=require("react/jsx-runtime");function Oa(...e){return(0,Dr.twMerge)((0,Ir.clsx)(e))}var Ia=({label:e,variant:t="primary",className:r,...n})=>(0,Cr.jsx)("button",{...n,className:Oa("inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 border",{primary:"bg-gray-800 text-gray-50 border-gray-200 hover:bg-gray-950 dark:bg-gray-50 dark:text-gray-950 dark:border-gray-800 dark:hover:bg-gray-200",outline:"bg-transparent text-gray-800 border-gray-200 hover:bg-gray-100 dark:text-gray-50 dark:border-gray-800 dark:hover:bg-gray-900",ghost:"bg-transparent text-gray-500 border-transparent hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-900"}[t],r),children:e});var ie=require("react/jsx-runtime"),Da=({label:e,className:t,...r})=>(0,ie.jsxs)("div",{className:"w-full space-y-1.5",children:[e&&(0,ie.jsx)("label",{className:"text-sm font-medium text-gray-500 dark:text-gray-100",children:e}),(0,ie.jsx)("input",{...r,className:`flex h-10 w-full rounded-md border border-gray-200 bg-white px-3 py-2 text-sm text-gray-800 ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-400 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50 dark:placeholder:text-gray-400 ${t}`})]});var B=require("react/jsx-runtime"),Ca=({title:e,subtitle:t,children:r,className:n})=>(0,B.jsxs)("div",{className:`rounded-xl border border-gray-200 bg-white p-6 shadow-xs dark:border-gray-800 dark:bg-gray-950 ${n}`,children:[(e||t)&&(0,B.jsxs)("div",{className:"mb-4 space-y-1",children:[e&&(0,B.jsx)("h3",{className:"text-xl font-semibold tracking-tight text-gray-800 dark:text-gray-50",children:e}),t&&(0,B.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-100",children:t})]}),(0,B.jsx)("div",{className:"text-gray-400 dark:text-gray-200",children:r})]});var kr=require("react/jsx-runtime"),ka=({children:e,className:t})=>(0,kr.jsx)("span",{className:`inline-flex items-center rounded-full border border-gray-200 bg-gray-50 px-2.5 py-0.5 text-xs font-semibold text-gray-800 transition-colors dark:border-gray-800 dark:bg-gray-900 dark:text-gray-50 ${t}`,children:e});var ce=require("react/jsx-runtime"),La=({label:e,className:t,...r})=>(0,ce.jsxs)("div",{className:"w-full space-y-1.5",children:[e&&(0,ce.jsx)("label",{className:"text-sm font-medium text-gray-500 dark:text-gray-100",children:e}),(0,ce.jsx)("textarea",{...r,className:`flex min-h-24 w-full rounded-md border border-gray-200 bg-white px-3 py-2 text-sm text-gray-800 placeholder:text-gray-400 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50 dark:placeholder:text-gray-400 ${t}`})]});var Lr=require("react/jsx-runtime"),Ma=({className:e,...t})=>(0,Lr.jsx)("div",{className:`animate-pulse rounded-md bg-gray-200 dark:bg-gray-800 ${e}`,...t});var q=require("react/jsx-runtime"),Ha=({label:e,className:t,...r})=>(0,q.jsxs)("label",{className:"inline-flex cursor-pointer items-center gap-2",children:[(0,q.jsxs)("div",{className:"relative",children:[(0,q.jsx)("input",{type:"checkbox",...r,className:"peer sr-only"}),(0,q.jsx)("div",{className:"h-6 w-11 rounded-full border border-gray-200 bg-gray-100 transition-colors peer-checked:bg-gray-800 dark:border-gray-800 dark:bg-gray-900 dark:peer-checked:bg-gray-50"}),(0,q.jsx)("div",{className:"absolute top-1 left-1 h-4 w-4 rounded-full bg-white transition-transform peer-checked:translate-x-5 dark:bg-gray-950"})]}),e&&(0,q.jsx)("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-100",children:e})]});var F=require("react/jsx-runtime"),ja=({children:e,className:t})=>(0,F.jsx)("div",{className:"w-full overflow-auto",children:(0,F.jsx)("table",{className:`w-full caption-bottom text-sm border-collapse ${t}`,children:e})}),Xa=({children:e,className:t})=>(0,F.jsx)("thead",{className:`border-b border-gray-200 dark:border-gray-800 bg-gray-50/50 dark:bg-gray-900/50 ${t}`,children:e}),Ua=({children:e,className:t})=>(0,F.jsx)("tbody",{className:`[&_tr:last-child]:border-0 ${t}`,children:e}),qa=({children:e,className:t})=>(0,F.jsx)("tr",{className:`border-b border-gray-200 transition-colors hover:bg-gray-50/50 dark:border-gray-800 dark:hover:bg-gray-900/50 ${t}`,children:e}),Fa=({children:e,className:t})=>(0,F.jsx)("th",{className:`h-12 px-4 text-left align-middle font-medium text-gray-500 dark:text-gray-100 ${t}`,children:e}),Ba=({children:e,className:t})=>(0,F.jsx)("td",{className:`p-4 align-middle text-gray-400 dark:text-gray-200 ${t}`,children:e});var ue=require("framer-motion"),L=require("react/jsx-runtime"),Ga=({isOpen:e,onClose:t,title:r,children:n})=>(0,L.jsx)(ue.AnimatePresence,{children:e&&(0,L.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,L.jsx)(ue.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:"absolute inset-0 bg-black/40 backdrop-blur-sm"}),(0,L.jsxs)(ue.motion.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},className:"relative w-full max-w-lg rounded-xl border border-gray-200 bg-white p-6 shadow-xl dark:border-gray-800 dark:bg-gray-950",children:[(0,L.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,L.jsx)("h2",{className:"text-xl font-semibold text-gray-800 dark:text-gray-50",children:r}),(0,L.jsx)("button",{onClick:t,className:"text-gray-500 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-50",children:"\u2715"})]}),(0,L.jsx)("div",{className:"text-gray-400 dark:text-gray-200",children:n})]})]})});var K=require("react/jsx-runtime"),$a=({label:e,options:t,className:r,...n})=>(0,K.jsxs)("div",{className:"w-full space-y-1.5",children:[e&&(0,K.jsx)("label",{className:"text-sm font-medium text-gray-500 dark:text-gray-100",children:e}),(0,K.jsx)("select",{...n,className:`flex h-10 w-full rounded-md border border-gray-200 bg-white px-3 py-2 text-sm text-gray-800 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50 ${r}`,children:t.map(a=>(0,K.jsx)("option",{value:a.value,children:a.label},a.value))})]});var le=require("react/jsx-runtime"),Wa=({title:e,children:t,variant:r="info"})=>(0,le.jsxs)("div",{className:`relative w-full rounded-lg border p-4 ${{info:"border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-950",danger:"border-red-200 bg-red-50 text-red-900 dark:border-red-900/50 dark:bg-red-950/50 dark:text-red-200"}[r]}`,children:[e&&(0,le.jsx)("h5",{className:"mb-1 font-medium leading-none tracking-tight text-gray-800 dark:text-gray-50",children:e}),(0,le.jsx)("div",{className:"text-sm opacity-90",children:t})]});var G=require("react/jsx-runtime"),Ya=({items:e})=>(0,G.jsx)("nav",{className:"flex","aria-label":"Breadcrumb",children:(0,G.jsx)("ol",{className:"inline-flex items-center space-x-1 md:space-x-3",children:e.map((t,r)=>(0,G.jsxs)("li",{className:"inline-flex items-center",children:[r>0&&(0,G.jsx)("span",{className:"mx-2 text-gray-400",children:"/"}),(0,G.jsx)("span",{className:`text-sm font-medium ${t.active?"text-gray-800 dark:text-gray-50":"text-gray-400 hover:text-gray-800 dark:text-gray-200 dark:hover:text-gray-50"}`,children:t.label})]},r))})});var de=require("react/jsx-runtime"),Va=({label:e,className:t,...r})=>(0,de.jsxs)("label",{className:"inline-flex cursor-pointer items-center gap-2",children:[(0,de.jsx)("input",{type:"checkbox",...r,className:`h-4 w-4 rounded-sm border border-gray-200 bg-white text-gray-800 focus:ring-0 focus:ring-offset-0 dark:border-gray-800 dark:bg-gray-950 dark:checked:bg-gray-50 ${t}`}),e&&(0,de.jsx)("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-100",children:e})]});var Q=require("react"),$=require("react/jsx-runtime"),za=({label:e,children:t,className:r})=>{let[n,a]=(0,Q.useState)(!1),s=(0,Q.useRef)(null);return(0,Q.useEffect)(()=>{let h=d=>{s.current&&!s.current.contains(d.target)&&a(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]),(0,$.jsxs)("div",{className:"relative inline-block text-left",ref:s,children:[(0,$.jsx)("div",{onClick:()=>a(!n),children:e}),n&&(0,$.jsx)("div",{className:`absolute right-0 z-50 mt-2 w-56 origin-top-right rounded-md border border-gray-200 bg-white shadow-lg focus:outline-hidden dark:border-gray-800 dark:bg-gray-950 ${r}`,children:(0,$.jsx)("div",{className:"py-1",children:t})})]})},Ja=({children:e,onClick:t,className:r})=>(0,$.jsx)("button",{onClick:t,className:`block w-full px-4 py-2 text-left text-sm text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-200 dark:hover:bg-gray-900 dark:hover:text-gray-50 ${r}`,children:e});var ze=require("react/jsx-runtime"),Ka=({value:e=0,className:t})=>(0,ze.jsx)("div",{className:`h-2 w-full overflow-hidden rounded-full bg-gray-100 dark:bg-gray-900 ${t}`,children:(0,ze.jsx)("div",{className:"h-full bg-gray-800 transition-all dark:bg-gray-50",style:{width:`${e}%`}})});var Mr=require("sonner"),Hr=require("react/jsx-runtime"),Qa=()=>(0,Hr.jsx)(Mr.Toaster,{className:"toaster group",toastOptions:{classNames:{toast:"group toast bg-white text-gray-800 border-gray-200 shadow-lg dark:bg-gray-950 dark:text-gray-50 dark:border-gray-800",description:"text-gray-400 dark:text-gray-200",actionButton:"bg-gray-800 text-gray-50 dark:bg-gray-50 dark:text-gray-950",cancelButton:"bg-gray-100 text-gray-500 dark:bg-gray-900 dark:text-gray-400"}}});var jr=require("clsx"),Xr=require("tailwind-merge");function Za(...e){return(0,Xr.twMerge)((0,jr.clsx)(e))}var Se=require("react");function es(){let[e,t]=(0,Se.useState)(()=>typeof window<"u"&&localStorage.getItem("theme")||"light");return(0,Se.useEffect)(()=>{let n=window.document.documentElement;n.classList.remove("light","dark"),n.classList.add(e),localStorage.setItem("theme",e)},[e]),{theme:e,setTheme:t,toggleTheme:()=>t(n=>n==="light"?"dark":"light")}}var Er=xa(Ea()),pu=async e=>{let{pathname:t}=e.nextUrl,r=e.cookies.get("auth_token")?.value;if(t.startsWith("/dashboard")&&!r)return Er.NextResponse.redirect(new URL("/login",e.url));let n=Er.NextResponse.next();return n.headers.set("x-v0-digital-proxy","active"),n},hu={matcher:["/((?!api|_next/static|_next/image|favicon.ico).*)"]};0&&(module.exports={Alert,Badge,Breadcrumb,Button,Card,Checkbox,Dropdown,DropdownItem,Input,Modal,Progress,Select,Skeleton,Table,TableBody,TableCell,TableHead,TableHeader,TableRow,Textarea,Toaster,Toggle,cn,config,proxy,useTheme});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var pa=Object.create;var Ar=Object.defineProperty;var ha=Object.getOwnPropertyDescriptor;var ma=Object.getOwnPropertyNames;var _a=Object.getPrototypeOf,Ea=Object.prototype.hasOwnProperty;var ga=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ba=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ma(t))!Ea.call(e,a)&&a!==r&&Ar(e,a,{get:()=>t[a],enumerable:!(n=ha(t,a))||n.enumerable});return e};var Ra=(e,t,r)=>(r=e!=null?pa(_a(e)):{},ba(t||!e||!e.__esModule?Ar(r,"default",{value:e,enumerable:!0}):r,e));var Ir=p(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Object.defineProperty(Fe,"detectDomainLocale",{enumerable:!0,get:function(){return Ga}});function Ga(e,t,r){if(e){r&&(r=r.toLowerCase());for(let n of e){let a=n.domain?.split(":",1)[0].toLowerCase();if(t===a||r===n.defaultLocale.toLowerCase()||n.locales?.some(s=>s.toLowerCase()===r))return n}}}});var Dr=p(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Object.defineProperty(Be,"removeTrailingSlash",{enumerable:!0,get:function(){return $a}});function $a(e){return e.replace(/\/$/,"")||"/"}});var Ee=p(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Object.defineProperty(Ge,"parsePath",{enumerable:!0,get:function(){return Wa}});function Wa(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-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:""}}});var We=p($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});Object.defineProperty($e,"addPathPrefix",{enumerable:!0,get:function(){return Va}});var Ya=Ee();function Va(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=(0,Ya.parsePath)(e);return`${t}${r}${n}${a}`}});var Cr=p(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Object.defineProperty(Ye,"addPathSuffix",{enumerable:!0,get:function(){return Ja}});var za=Ee();function Ja(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=(0,za.parsePath)(e);return`${r}${t}${n}${a}`}});var ge=p(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Object.defineProperty(Ve,"pathHasPrefix",{enumerable:!0,get:function(){return Qa}});var Ka=Ee();function Qa(e,t){if(typeof e!="string")return!1;let{pathname:r}=(0,Ka.parsePath)(e);return r===t||r.startsWith(t+"/")}});var Lr=p(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});Object.defineProperty(ze,"addLocale",{enumerable:!0,get:function(){return es}});var Za=We(),kr=ge();function es(e,t,r,n){if(!t||t===r)return e;let a=e.toLowerCase();return!n&&((0,kr.pathHasPrefix)(a,"/api")||(0,kr.pathHasPrefix)(a,`/${t.toLowerCase()}`))?e:(0,Za.addPathPrefix)(e,`/${t}`)}});var Xr=p(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Object.defineProperty(Je,"formatNextPathnameInfo",{enumerable:!0,get:function(){return rs}});var Mr=Dr(),Hr=We(),jr=Cr(),ts=Lr();function rs(e){let t=(0,ts.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,Mr.removeTrailingSlash)(t)),e.buildId&&(t=(0,jr.addPathSuffix)((0,Hr.addPathPrefix)(t,`/_next/data/${e.buildId}`),e.pathname==="/"?"index.json":".json")),t=(0,Hr.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,jr.addPathSuffix)(t,"/"):(0,Mr.removeTrailingSlash)(t)}});var Ur=p(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Object.defineProperty(Ke,"getHostname",{enumerable:!0,get:function(){return ns}});function ns(e,t){let r;if(t?.host&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else if(e.hostname)r=e.hostname;else return;return r.toLowerCase()}});var Fr=p(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Object.defineProperty(Qe,"normalizeLocalePath",{enumerable:!0,get:function(){return as}});var qr=new WeakMap;function as(e,t){if(!t)return{pathname:e};let r=qr.get(t);r||(r=t.map(d=>d.toLowerCase()),qr.set(t,r));let n,a=e.split("/",2);if(!a[1])return{pathname:e};let s=a[1].toLowerCase(),h=r.indexOf(s);return h<0?{pathname:e}:(n=t[h],e=e.slice(n.length+1)||"/",{pathname:e,detectedLocale:n})}});var Br=p(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Object.defineProperty(Ze,"removePathPrefix",{enumerable:!0,get:function(){return os}});var ss=ge();function os(e,t){if(!(0,ss.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}});var $r=p(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});Object.defineProperty(et,"getNextPathnameInfo",{enumerable:!0,get:function(){return us}});var Gr=Fr(),is=Br(),cs=ge();function us(e,t){let{basePath:r,i18n:n,trailingSlash:a}=t.nextConfig??{},s={pathname:e,trailingSlash:e!=="/"?e.endsWith("/"):a};r&&(0,cs.pathHasPrefix)(s.pathname,r)&&(s.pathname=(0,is.removePathPrefix)(s.pathname,r),s.basePath=r);let h=s.pathname;if(s.pathname.startsWith("/_next/data/")&&s.pathname.endsWith(".json")){let d=s.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),w=d[0];s.buildId=w,h=d[1]!=="index"?`/${d.slice(1).join("/")}`:"/",t.parseData===!0&&(s.pathname=h)}if(n){let d=t.i18nProvider?t.i18nProvider.analyze(s.pathname):(0,Gr.normalizeLocalePath)(s.pathname,n.locales);s.locale=d.detectedLocale,s.pathname=d.pathname??s.pathname,!d.detectedLocale&&s.buildId&&(d=t.i18nProvider?t.i18nProvider.analyze(h):(0,Gr.normalizeLocalePath)(h,n.locales),d.detectedLocale&&(s.locale=d.detectedLocale))}return s}});var nt=p(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});Object.defineProperty(rt,"NextURL",{enumerable:!0,get:function(){return tt}});var ls=Ir(),ds=Xr(),fs=Ur(),ps=$r(),Wr=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function Yr(e,t){return new URL(String(e).replace(Wr,"localhost"),t&&String(t).replace(Wr,"localhost"))}var f=Symbol("NextURLInternal"),tt=class e{constructor(t,r,n){let a,s;typeof r=="object"&&"pathname"in r||typeof r=="string"?(a=r,s=n||{}):s=n||r||{},this[f]={url:Yr(t,a??s.base),options:s,basePath:""},this.analyze()}analyze(){var t,r,n,a,s;let h=(0,ps.getNextPathnameInfo)(this[f].url.pathname,{nextConfig:this[f].options.nextConfig,parseData:!process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,i18nProvider:this[f].options.i18nProvider}),d=(0,fs.getHostname)(this[f].url,this[f].options.headers);this[f].domainLocale=this[f].options.i18nProvider?this[f].options.i18nProvider.detectDomainLocale(d):(0,ls.detectDomainLocale)((r=this[f].options.nextConfig)==null||(t=r.i18n)==null?void 0:t.domains,d);let w=((n=this[f].domainLocale)==null?void 0:n.defaultLocale)||((s=this[f].options.nextConfig)==null||(a=s.i18n)==null?void 0:a.defaultLocale);this[f].url.pathname=h.pathname,this[f].defaultLocale=w,this[f].basePath=h.basePath??"",this[f].buildId=h.buildId,this[f].locale=h.locale??w,this[f].trailingSlash=h.trailingSlash}formatPathname(){return(0,ds.formatNextPathnameInfo)({basePath:this[f].basePath,buildId:this[f].buildId,defaultLocale:this[f].options.forceLocale?void 0:this[f].defaultLocale,locale:this[f].locale,pathname:this[f].url.pathname,trailingSlash:this[f].trailingSlash})}formatSearch(){return this[f].url.search}get buildId(){return this[f].buildId}set buildId(t){this[f].buildId=t}get locale(){return this[f].locale??""}set locale(t){var r,n;if(!this[f].locale||!(!((n=this[f].options.nextConfig)==null||(r=n.i18n)==null)&&r.locales.includes(t)))throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${t}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[f].locale=t}get defaultLocale(){return this[f].defaultLocale}get domainLocale(){return this[f].domainLocale}get searchParams(){return this[f].url.searchParams}get host(){return this[f].url.host}set host(t){this[f].url.host=t}get hostname(){return this[f].url.hostname}set hostname(t){this[f].url.hostname=t}get port(){return this[f].url.port}set port(t){this[f].url.port=t}get protocol(){return this[f].url.protocol}set protocol(t){this[f].url.protocol=t}get href(){let t=this.formatPathname(),r=this.formatSearch();return`${this.protocol}//${this.host}${t}${r}${this.hash}`}set href(t){this[f].url=Yr(t),this.analyze()}get origin(){return this[f].url.origin}get pathname(){return this[f].url.pathname}set pathname(t){this[f].url.pathname=t}get hash(){return this[f].url.hash}set hash(t){this[f].url.hash=t}get search(){return this[f].url.search}set search(t){this[f].url.search=t}get password(){return this[f].url.password}set password(t){this[f].url.password=t}get username(){return this[f].url.username}set username(t){this[f].url.username=t}get basePath(){return this[f].basePath}set basePath(t){this[f].basePath=t.startsWith("/")?t:`/${t}`}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 e(String(this),this[f].options)}}});var Jr=p(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});function hs(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}hs(at,{ACTION_SUFFIX:function(){return Ss},APP_DIR_ALIAS:function(){return Ws},CACHE_ONE_YEAR:function(){return js},DOT_NEXT_ALIAS:function(){return Gs},ESLINT_DEFAULT_DIRS:function(){return po},GSP_NO_RETURNED_VALUE:function(){return oo},GSSP_COMPONENT_MEMBER_ERROR:function(){return uo},GSSP_NO_RETURNED_VALUE:function(){return io},HTML_CONTENT_TYPE_HEADER:function(){return _s},INFINITE_CACHE:function(){return Xs},INSTRUMENTATION_HOOK_FILENAME:function(){return Fs},JSON_CONTENT_TYPE_HEADER:function(){return Es},MATCHED_PATH_HEADER:function(){return Rs},MIDDLEWARE_FILENAME:function(){return Vr},MIDDLEWARE_LOCATION_REGEXP:function(){return Us},NEXT_BODY_SUFFIX:function(){return Ps},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return Hs},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return Is},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return Ds},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return Ms},NEXT_CACHE_TAGS_HEADER:function(){return Os},NEXT_CACHE_TAG_MAX_ITEMS:function(){return ks},NEXT_CACHE_TAG_MAX_LENGTH:function(){return Ls},NEXT_DATA_SUFFIX:function(){return Ns},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return bs},NEXT_META_SUFFIX:function(){return xs},NEXT_QUERY_PARAM_PREFIX:function(){return gs},NEXT_RESUME_HEADER:function(){return Cs},NON_STANDARD_NODE_ENV:function(){return lo},PAGES_DIR_ALIAS:function(){return Bs},PRERENDER_REVALIDATE_HEADER:function(){return ys},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return As},PROXY_FILENAME:function(){return zr},PROXY_LOCATION_REGEXP:function(){return qs},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return eo},ROOT_DIR_ALIAS:function(){return $s},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return Zs},RSC_ACTION_ENCRYPTION_ALIAS:function(){return Qs},RSC_ACTION_PROXY_ALIAS:function(){return zs},RSC_ACTION_VALIDATE_ALIAS:function(){return Vs},RSC_CACHE_WRAPPER_ALIAS:function(){return Js},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return Ks},RSC_MOD_REF_PROXY_ALIAS:function(){return Ys},RSC_SEGMENTS_DIR_SUFFIX:function(){return Ts},RSC_SEGMENT_SUFFIX:function(){return ws},RSC_SUFFIX:function(){return vs},SERVER_PROPS_EXPORT_ERROR:function(){return so},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return ro},SERVER_PROPS_SSG_CONFLICT:function(){return no},SERVER_RUNTIME:function(){return ho},SSG_FALLBACK_EXPORT_ERROR:function(){return fo},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return to},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return ao},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return ms},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return co},WEBPACK_LAYERS:function(){return _o},WEBPACK_RESOURCE_QUERIES:function(){return Eo},WEB_SOCKET_MAX_RECONNECTIONS:function(){return mo}});var ms="text/plain",_s="text/html; charset=utf-8",Es="application/json; charset=utf-8",gs="nxtP",bs="nxtI",Rs="x-matched-path",ys="x-prerender-revalidate",As="x-prerender-revalidate-if-generated",Ts=".segments",ws=".segment.rsc",vs=".rsc",Ss=".action",Ns=".json",xs=".meta",Ps=".body",Os="x-next-cache-tags",Is="x-next-revalidated-tags",Ds="x-next-revalidate-tag-token",Cs="next-resume",ks=128,Ls=256,Ms=1024,Hs="_N_T_",js=31536e3,Xs=4294967294,Vr="middleware",Us=`(?:src/)?${Vr}`,zr="proxy",qs=`(?:src/)?${zr}`,Fs="instrumentation",Bs="private-next-pages",Gs="private-dot-next",$s="private-next-root-dir",Ws="private-next-app-dir",Ys="private-next-rsc-mod-ref-proxy",Vs="private-next-rsc-action-validate",zs="private-next-rsc-server-reference",Js="private-next-rsc-cache-wrapper",Ks="private-next-rsc-track-dynamic-import",Qs="private-next-rsc-action-encryption",Zs="private-next-rsc-action-client-wrapper",eo="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",to="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",ro="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",no="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",ao="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",so="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",oo="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",io="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",co="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",uo="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",lo='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',fo="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",po=["app","pages","components","lib","src"],ho={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},mo=12,T={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},_o={...T,GROUP:{builtinReact:[T.reactServerComponents,T.actionBrowser],serverOnly:[T.reactServerComponents,T.actionBrowser,T.instrument,T.middleware],neutralTarget:[T.apiNode,T.apiEdge],clientOnly:[T.serverSideRendering,T.appPagesBrowser],bundled:[T.reactServerComponents,T.actionBrowser,T.serverSideRendering,T.appPagesBrowser,T.shared,T.instrument,T.middleware],appPages:[T.reactServerComponents,T.serverSideRendering,T.appPagesBrowser,T.actionBrowser]}},Eo={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}});var ot=p(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});function go(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}go(st,{fromNodeOutgoingHttpHeaders:function(){return bo},normalizeNextQueryParam:function(){return Ao},splitCookiesString:function(){return Qr},toNodeOutgoingHttpHeaders:function(){return Ro},validateURL:function(){return yo}});var Kr=Jr();function bo(e){let t=new Headers;for(let[r,n]of Object.entries(e)){let a=Array.isArray(n)?n:[n];for(let s of a)typeof s>"u"||(typeof s=="number"&&(s=s.toString()),t.append(r,s))}return t}function Qr(e){var t=[],r=0,n,a,s,h,d;function w(){for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length}function v(){return a=e.charAt(r),a!=="="&&a!==";"&&a!==","}for(;r<e.length;){for(n=r,d=!1;w();)if(a=e.charAt(r),a===","){for(s=r,r+=1,w(),h=r;r<e.length&&v();)r+=1;r<e.length&&e.charAt(r)==="="?(d=!0,r=h,t.push(e.substring(n,s)),n=r):r=s+1}else r+=1;(!d||r>=e.length)&&t.push(e.substring(n,e.length))}return t}function Ro(e){let t={},r=[];if(e)for(let[n,a]of e.entries())n.toLowerCase()==="set-cookie"?(r.push(...Qr(a)),t[n]=r.length===1?r[0]:r):t[n]=a;return t}function yo(e){try{return String(new URL(String(e)))}catch(t){throw Object.defineProperty(new Error(`URL is malformed "${String(e)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:t}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function Ao(e){let t=[Kr.NEXT_QUERY_PARAM_PREFIX,Kr.NEXT_INTERCEPTION_MARKER_PREFIX];for(let r of t)if(e!==r&&e.startsWith(r))return e.substring(r.length);return null}});var Zr=p(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});function To(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}To(lt,{PageSignatureError:function(){return it},RemovedPageError:function(){return ct},RemovedUAError:function(){return ut}});var it=class extends Error{constructor({page:t}){super(`The middleware "${t}" accepts an async API directly with the form:
|
|
2
|
+
|
|
3
|
+
export function middleware(request, event) {
|
|
4
|
+
return NextResponse.redirect('/new-location')
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
|
8
|
+
`)}},ct=class extends Error{constructor(){super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ")}},ut=class extends Error{constructor(){super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ")}}});var nn=p((Cl,rn)=>{"use strict";var dt=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,vo=Object.getOwnPropertyNames,So=Object.prototype.hasOwnProperty,No=(e,t)=>{for(var r in t)dt(e,r,{get:t[r],enumerable:!0})},xo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of vo(t))!So.call(e,a)&&a!==r&&dt(e,a,{get:()=>t[a],enumerable:!(n=wo(t,a))||n.enumerable});return e},Po=e=>xo(dt({},"__esModule",{value:!0}),e),en={};No(en,{RequestCookies:()=>Mo,ResponseCookies:()=>Ho,parseCookie:()=>ft,parseSetCookie:()=>tn,stringifyCookie:()=>te});rn.exports=Po(en);function te(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||e.expires===0)&&`Expires=${(typeof e.expires=="number"?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&typeof e.maxAge=="number"&&`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}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent((t=e.value)!=null?t:"")}`;return r.length===0?n:`${n}; ${r.join("; ")}`}function ft(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let n=r.indexOf("=");if(n===-1){t.set(r,"true");continue}let[a,s]=[r.slice(0,n),r.slice(n+1)];try{t.set(a,decodeURIComponent(s??"true"))}catch{}}return t}function tn(e){if(!e)return;let[[t,r],...n]=ft(e),{domain:a,expires:s,httponly:h,maxage:d,path:w,samesite:v,secure:H,partitioned:j,priority:x}=Object.fromEntries(n.map(([F,se])=>[F.toLowerCase().replace(/-/g,""),se])),z={name:t,value:decodeURIComponent(r),domain:a,...s&&{expires:new Date(s)},...h&&{httpOnly:!0},...typeof d=="string"&&{maxAge:Number(d)},path:w,...v&&{sameSite:Do(v)},...H&&{secure:!0},...x&&{priority:ko(x)},...j&&{partitioned:!0}};return Oo(z)}function Oo(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}var Io=["strict","lax","none"];function Do(e){return e=e.toLowerCase(),Io.includes(e)?e:void 0}var Co=["low","medium","high"];function ko(e){return e=e.toLowerCase(),Co.includes(e)?e:void 0}function Lo(e){if(!e)return[];var t=[],r=0,n,a,s,h,d;function w(){for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length}function v(){return a=e.charAt(r),a!=="="&&a!==";"&&a!==","}for(;r<e.length;){for(n=r,d=!1;w();)if(a=e.charAt(r),a===","){for(s=r,r+=1,w(),h=r;r<e.length&&v();)r+=1;r<e.length&&e.charAt(r)==="="?(d=!0,r=h,t.push(e.substring(n,s)),n=r):r=s+1}else r+=1;(!d||r>=e.length)&&t.push(e.substring(n,e.length))}return t}var Mo=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t){let r=ft(t);for(let[n,a]of r)this._parsed.set(n,{name:n,value:a})}}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t=typeof e[0]=="string"?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(([a,s])=>s);let n=typeof e[0]=="string"?e[0]:(t=e[0])==null?void 0:t.name;return r.filter(([a])=>a===n).map(([a,s])=>s)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=e.length===1?[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(([a,s])=>te(s)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(n=>t.delete(n)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([n,a])=>te(a)).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("; ")}},Ho=class{constructor(e){this._parsed=new Map;var t,r,n;this._headers=e;let a=(n=(r=(t=e.getSetCookie)==null?void 0:t.call(e))!=null?r:e.get("set-cookie"))!=null?n:[],s=Array.isArray(a)?a:Lo(a);for(let h of s){let d=tn(h);d&&this._parsed.set(d.name,d)}}get(...e){let t=typeof e[0]=="string"?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=typeof e[0]=="string"?e[0]:(t=e[0])==null?void 0:t.name;return r.filter(a=>a.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=e.length===1?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.set(t,Xo({name:t,value:r,...n})),jo(a,this._headers),this}delete(...e){let[t,r]=typeof e[0]=="string"?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,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(te).join("; ")}};function jo(e,t){t.delete("set-cookie");for(let[,r]of e){let n=te(r);t.append("set-cookie",n)}}function Xo(e={name:"",value:""}){return typeof e.expires=="number"&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+e.maxAge*1e3)),(e.path===null||e.path===void 0)&&(e.path="/"),e}});var be=p(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});function Uo(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Uo(ht,{RequestCookies:function(){return pt.RequestCookies},ResponseCookies:function(){return pt.ResponseCookies},stringifyCookie:function(){return pt.stringifyCookie}});var pt=nn()});var on=p(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});function qo(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}qo(_t,{INTERNALS:function(){return re},NextRequest:function(){return mt}});var Fo=nt(),an=ot(),sn=Zr(),Bo=be(),re=Symbol("internal request"),mt=class extends Request{constructor(t,r={}){let n=typeof t!="string"&&"url"in t?t.url:String(t);(0,an.validateURL)(n),process.env.NEXT_RUNTIME!=="edge"&&r.body&&r.duplex!=="half"&&(r.duplex="half"),t instanceof Request?super(t,r):super(n,r);let a=new Fo.NextURL(n,{headers:(0,an.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:r.nextConfig});this[re]={cookies:new Bo.RequestCookies(this.headers),nextUrl:a,url:process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE?n:a.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,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[re].cookies}get nextUrl(){return this[re].nextUrl}get page(){throw new sn.RemovedPageError}get ua(){throw new sn.RemovedUAError}get url(){return this[re].url}}});var cn=p(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});Object.defineProperty(gt,"ReflectAdapter",{enumerable:!0,get:function(){return Et}});var Et=class{static get(t,r,n){let a=Reflect.get(t,r,n);return typeof a=="function"?a.bind(t):a}static set(t,r,n,a){return Reflect.set(t,r,n,a)}static has(t,r){return Reflect.has(t,r)}static deleteProperty(t,r){return Reflect.deleteProperty(t,r)}}});var dn=p(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});Object.defineProperty(At,"NextResponse",{enumerable:!0,get:function(){return yt}});var Go=be(),$o=nt(),bt=ot(),Wo=cn(),un=be(),ln=Symbol("internal response"),Yo=new Set([301,302,303,307,308]);function Rt(e,t){var r;if(!(e==null||(r=e.request)==null)&&r.headers){if(!(e.request.headers instanceof Headers))throw Object.defineProperty(new Error("request.headers must be an instance of Headers"),"__NEXT_ERROR_CODE",{value:"E119",enumerable:!1,configurable:!0});let n=[];for(let[a,s]of e.request.headers)t.set("x-middleware-request-"+a,s),n.push(a);t.set("x-middleware-override-headers",n.join(","))}}var yt=class e extends Response{constructor(t,r={}){super(t,r);let n=this.headers,a=new un.ResponseCookies(n),s=new Proxy(a,{get(h,d,w){switch(d){case"delete":case"set":return(...v)=>{let H=Reflect.apply(h[d],h,v),j=new Headers(n);return H instanceof un.ResponseCookies&&n.set("x-middleware-set-cookie",H.getAll().map(x=>(0,Go.stringifyCookie)(x)).join(",")),Rt(r,j),H};default:return Wo.ReflectAdapter.get(h,d,w)}}});this[ln]={cookies:s,url:r.url?new $o.NextURL(r.url,{headers:(0,bt.toNodeOutgoingHttpHeaders)(n),nextConfig:r.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[ln].cookies}static json(t,r){let n=Response.json(t,r);return new e(n.body,n)}static redirect(t,r){let n=typeof r=="number"?r:r?.status??307;if(!Yo.has(n))throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'),"__NEXT_ERROR_CODE",{value:"E529",enumerable:!1,configurable:!0});let a=typeof r=="object"?r:{},s=new Headers(a?.headers);return s.set("Location",(0,bt.validateURL)(t)),new e(null,{...a,headers:s,status:n})}static rewrite(t,r){let n=new Headers(r?.headers);return n.set("x-middleware-rewrite",(0,bt.validateURL)(t)),Rt(r,n),new e(null,{...r,headers:n})}static next(t){let r=new Headers(t?.headers);return r.set("x-middleware-next","1"),Rt(t,r),new e(null,{...t,headers:r})}}});var fn=p(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Object.defineProperty(Tt,"ImageResponse",{enumerable:!0,get:function(){return Vo}});function Vo(){throw Object.defineProperty(new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'),"__NEXT_ERROR_CODE",{value:"E183",enumerable:!1,configurable:!0})}});var hn=p((ql,pn)=>{"use strict";(()=>{var e={226:function(a,s){(function(h,d){"use strict";var w="1.0.35",v="",H="?",j="function",x="undefined",z="object",F="string",se="major",i="model",u="name",o="type",c="vendor",l="version",P="architecture",J="console",g="mobile",E="tablet",S="smarttv",B="wearable",Pe="embedded",Oe=350,oe="Amazon",K="Apple",lr="ASUS",dr="BlackBerry",G="Browser",ie="Chrome",ua="Edge",ce="Firefox",ue="Google",fr="Huawei",Ie="LG",De="Microsoft",pr="Motorola",le="Opera",Ce="Samsung",hr="Sharp",de="Sony",ru="Viera",ke="Xiaomi",Le="Zebra",mr="Facebook",_r="Chromium OS",Er="Mac OS",la=function(b,y){var _={};for(var A in b)y[A]&&y[A].length%2===0?_[A]=y[A].concat(b[A]):_[A]=b[A];return _},fe=function(b){for(var y={},_=0;_<b.length;_++)y[b[_].toUpperCase()]=b[_];return y},gr=function(b,y){return typeof b===F?Q(y).indexOf(Q(b))!==-1:!1},Q=function(b){return b.toLowerCase()},da=function(b){return typeof b===F?b.replace(/[^\d\.]/g,v).split(".")[0]:d},Me=function(b,y){if(typeof b===F)return b=b.replace(/^\s\s*/,v),typeof y===x?b:b.substring(0,Oe)},Z=function(b,y){for(var _=0,A,X,C,R,m,k;_<y.length&&!m;){var je=y[_],yr=y[_+1];for(A=X=0;A<je.length&&!m&&je[A];)if(m=je[A++].exec(b),m)for(C=0;C<yr.length;C++)k=m[++X],R=yr[C],typeof R===z&&R.length>0?R.length===2?typeof R[1]==j?this[R[0]]=R[1].call(this,k):this[R[0]]=R[1]:R.length===3?typeof R[1]===j&&!(R[1].exec&&R[1].test)?this[R[0]]=k?R[1].call(this,k,R[2]):d:this[R[0]]=k?k.replace(R[1],R[2]):d:R.length===4&&(this[R[0]]=k?R[3].call(this,k.replace(R[1],R[2])):d):this[R]=k||d;_+=2}},He=function(b,y){for(var _ in y)if(typeof y[_]===z&&y[_].length>0){for(var A=0;A<y[_].length;A++)if(gr(y[_][A],b))return _===H?d:_}else if(gr(y[_],b))return _===H?d:_;return b},fa={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},br={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Rr={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,l],[/opios[\/ ]+([\w\.]+)/i],[l,[u,le+" Mini"]],[/\bopr\/([\w\.]+)/i],[l,[u,le]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[u,"UC"+G]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+G],l],[/\bfocus\/([\w\.]+)/i],[l,[u,ce+" Focus"]],[/\bopt\/([\w\.]+)/i],[l,[u,le+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[u,le+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[u,"MIUI "+G]],[/fxios\/([-\w\.]+)/i],[l,[u,ce]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+G]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+G],l],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,mr],l],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[u,ie+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,ie+" WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[u,"Android "+G]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[l,He,fa]],[/(webkit|khtml)\/([\w\.]+)/i],[u,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[u,ce+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,l],[/(cobalt)\/([\w\.]+)/i],[u,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[P,"amd64"]],[/(ia32(?=;))/i],[[P,Q]],[/((?:i[346]|x)86)[;\)]/i],[[P,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[P,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[P,"armhf"]],[/windows (ce|mobile); ppc;/i],[[P,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[P,/ower/,v,Q]],[/(sun4\w)[;\)]/i],[[P,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[P,Q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[i,[c,Ce],[o,E]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[i,[c,Ce],[o,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[i,[c,K],[o,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[i,[c,K],[o,E]],[/(macintosh);/i],[i,[c,K]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[i,[c,hr],[o,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[i,[c,fr],[o,E]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[i,[c,fr],[o,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[i,/_/g," "],[c,ke],[o,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[i,/_/g," "],[c,ke],[o,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[i,[c,"OPPO"],[o,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[i,[c,"Vivo"],[o,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[i,[c,"Realme"],[o,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[i,[c,pr],[o,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[i,[c,pr],[o,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[i,[c,Ie],[o,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[i,[c,Ie],[o,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[i,[c,"Lenovo"],[o,E]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[i,/_/g," "],[c,"Nokia"],[o,g]],[/(pixel c)\b/i],[i,[c,ue],[o,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[i,[c,ue],[o,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[i,[c,de],[o,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[i,"Xperia Tablet"],[c,de],[o,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[i,[c,"OnePlus"],[o,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[i,[c,oe],[o,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[i,/(.+)/g,"Fire Phone $1"],[c,oe],[o,g]],[/(playbook);[-\w\),; ]+(rim)/i],[i,c,[o,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[i,[c,dr],[o,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[i,[c,lr],[o,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[i,[c,lr],[o,g]],[/(nexus 9)/i],[i,[c,"HTC"],[o,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[i,/_/g," "],[o,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[i,[c,"Acer"],[o,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[i,[c,"Meizu"],[o,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[c,i,[o,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[c,i,[o,E]],[/(surface duo)/i],[i,[c,De],[o,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[i,[c,"Fairphone"],[o,g]],[/(u304aa)/i],[i,[c,"AT&T"],[o,g]],[/\bsie-(\w*)/i],[i,[c,"Siemens"],[o,g]],[/\b(rct\w+) b/i],[i,[c,"RCA"],[o,E]],[/\b(venue[\d ]{2,7}) b/i],[i,[c,"Dell"],[o,E]],[/\b(q(?:mv|ta)\w+) b/i],[i,[c,"Verizon"],[o,E]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[i,[c,"Barnes & Noble"],[o,E]],[/\b(tm\d{3}\w+) b/i],[i,[c,"NuVision"],[o,E]],[/\b(k88) b/i],[i,[c,"ZTE"],[o,E]],[/\b(nx\d{3}j) b/i],[i,[c,"ZTE"],[o,g]],[/\b(gen\d{3}) b.+49h/i],[i,[c,"Swiss"],[o,g]],[/\b(zur\d{3}) b/i],[i,[c,"Swiss"],[o,E]],[/\b((zeki)?tb.*\b) b/i],[i,[c,"Zeki"],[o,E]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],i,[o,E]],[/\b(ns-?\w{0,9}) b/i],[i,[c,"Insignia"],[o,E]],[/\b((nxa|next)-?\w{0,9}) b/i],[i,[c,"NextBook"],[o,E]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],i,[o,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],i,[o,g]],[/\b(ph-1) /i],[i,[c,"Essential"],[o,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[i,[c,"Envizen"],[o,E]],[/\b(trio[-\w\. ]+) b/i],[i,[c,"MachSpeed"],[o,E]],[/\btu_(1491) b/i],[i,[c,"Rotor"],[o,E]],[/(shield[\w ]+) b/i],[i,[c,"Nvidia"],[o,E]],[/(sprint) (\w+)/i],[c,i,[o,g]],[/(kin\.[onetw]{3})/i],[[i,/\./g," "],[c,De],[o,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[i,[c,Le],[o,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[i,[c,Le],[o,g]],[/smart-tv.+(samsung)/i],[c,[o,S]],[/hbbtv.+maple;(\d+)/i],[[i,/^/,"SmartTV"],[c,Ce],[o,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,Ie],[o,S]],[/(apple) ?tv/i],[c,[i,K+" TV"],[o,S]],[/crkey/i],[[i,ie+"cast"],[c,ue],[o,S]],[/droid.+aft(\w)( bui|\))/i],[i,[c,oe],[o,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[i,[c,hr],[o,S]],[/(bravia[\w ]+)( bui|\))/i],[i,[c,de],[o,S]],[/(mitv-\w{5}) bui/i],[i,[c,ke],[o,S]],[/Hbbtv.*(technisat) (.*);/i],[c,i,[o,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[c,Me],[i,Me],[o,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[o,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,i,[o,J]],[/droid.+; (shield) bui/i],[i,[c,"Nvidia"],[o,J]],[/(playstation [345portablevi]+)/i],[i,[c,de],[o,J]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[i,[c,De],[o,J]],[/((pebble))app/i],[c,i,[o,B]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[i,[c,K],[o,B]],[/droid.+; (glass) \d/i],[i,[c,ue],[o,B]],[/droid.+; (wt63?0{2,3})\)/i],[i,[c,Le],[o,B]],[/(quest( 2| pro)?)/i],[i,[c,mr],[o,B]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[o,Pe]],[/(aeobc)\b/i],[i,[c,oe],[o,Pe]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[i,[o,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[i,[o,E]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[o,E]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[o,g]],[/(android[-\w\. ]{0,9});.+buil/i],[i,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[u,ua+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[l,He,br]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[l,He,br]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,Er],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,l],[/\(bb(10);/i],[l,[u,dr]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[u,ce+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[u,ie+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,_r],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,l],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,l]]},N=function(b,y){if(typeof b===z&&(y=b,b=d),!(this instanceof N))return new N(b,y).getResult();var _=typeof h!==x&&h.navigator?h.navigator:d,A=b||(_&&_.userAgent?_.userAgent:v),X=_&&_.userAgentData?_.userAgentData:d,C=y?la(Rr,y):Rr,R=_&&_.userAgent==A;return this.getBrowser=function(){var m={};return m[u]=d,m[l]=d,Z.call(m,A,C.browser),m[se]=da(m[l]),R&&_&&_.brave&&typeof _.brave.isBrave==j&&(m[u]="Brave"),m},this.getCPU=function(){var m={};return m[P]=d,Z.call(m,A,C.cpu),m},this.getDevice=function(){var m={};return m[c]=d,m[i]=d,m[o]=d,Z.call(m,A,C.device),R&&!m[o]&&X&&X.mobile&&(m[o]=g),R&&m[i]=="Macintosh"&&_&&typeof _.standalone!==x&&_.maxTouchPoints&&_.maxTouchPoints>2&&(m[i]="iPad",m[o]=E),m},this.getEngine=function(){var m={};return m[u]=d,m[l]=d,Z.call(m,A,C.engine),m},this.getOS=function(){var m={};return m[u]=d,m[l]=d,Z.call(m,A,C.os),R&&!m[u]&&X&&X.platform!="Unknown"&&(m[u]=X.platform.replace(/chrome os/i,_r).replace(/macos/i,Er)),m},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return A},this.setUA=function(m){return A=typeof m===F&&m.length>Oe?Me(m,Oe):m,this},this.setUA(A),this};N.VERSION=w,N.BROWSER=fe([u,l,se]),N.CPU=fe([P]),N.DEVICE=fe([i,c,o,J,g,S,E,B,Pe]),N.ENGINE=N.OS=fe([u,l]),typeof s!==x?(x!=="object"&&a.exports&&(s=a.exports=N),s.UAParser=N):typeof define===j&&define.amd?define((function(){return N})):typeof h!==x&&(h.UAParser=N);var $=typeof h!==x&&(h.jQuery||h.Zepto);if($&&!$.ua){var pe=new N;$.ua=pe.getResult(),$.ua.get=function(){return pe.getUA()},$.ua.set=function(b){pe.setUA(b);var y=pe.getResult();for(var _ in y)$.ua[_]=y[_]}}})(typeof window=="object"?window:this)}},t={};function r(a){var s=t[a];if(s!==void 0)return s.exports;var h=t[a]={exports:{}},d=!0;try{e[a].call(h.exports,h,h.exports,r),d=!1}finally{d&&delete t[a]}return h.exports}typeof r<"u"&&(r.ab=__dirname+"/");var n=r(226);pn.exports=n})()});var vt=p(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});function zo(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}zo(wt,{isBot:function(){return mn},userAgent:function(){return Qo},userAgentFromString:function(){return _n}});var Jo=Ko(hn());function Ko(e){return e&&e.__esModule?e:{default:e}}function mn(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|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)}function _n(e){return{...(0,Jo.default)(e),isBot:e===void 0?!1:mn(e)}}function Qo({headers:e}){return _n(e.get("user-agent")||void 0)}});var En=p(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});Object.defineProperty(St,"URLPattern",{enumerable:!0,get:function(){return Zo}});var Zo=typeof URLPattern>"u"?void 0:URLPattern});var Ae=p(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});function ei(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}ei(Nt,{bindSnapshot:function(){return ri},createAsyncLocalStorage:function(){return ti},createSnapshot:function(){return ni}});var Re=Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0}),ye=class{disable(){throw Re}getStore(){}run(){throw Re}exit(){throw Re}enterWith(){throw Re}static bind(t){return t}},W=typeof globalThis<"u"&&globalThis.AsyncLocalStorage;function ti(){return W?new W:new ye}function ri(e){return W?W.bind(e):ye.bind(e)}function ni(){return W?W.snapshot():function(e,...t){return e(...t)}}});var gn=p(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});Object.defineProperty(xt,"workAsyncStorageInstance",{enumerable:!0,get:function(){return si}});var ai=Ae(),si=(0,ai.createAsyncLocalStorage)()});var Te=p(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Object.defineProperty(Pt,"workAsyncStorage",{enumerable:!0,get:function(){return oi.workAsyncStorageInstance}});var oi=gn()});var bn=p(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Object.defineProperty(Ot,"after",{enumerable:!0,get:function(){return ci}});var ii=Te();function ci(e){let t=ii.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(new Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"),"__NEXT_ERROR_CODE",{value:"E468",enumerable:!1,configurable:!0});let{afterContext:r}=t;return r.after(e)}});var Rn=p(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});ui(bn(),It);function ui(e,t){return Object.keys(e).forEach(function(r){r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e}});var yn=p(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Object.defineProperty(Dt,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return di}});var li=Ae(),di=(0,li.createAsyncLocalStorage)()});var xn=p((O,Nn)=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});function fi(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}fi(O,{ACTION_HEADER:function(){return pi},FLIGHT_HEADERS:function(){return Ei},NEXT_ACTION_NOT_FOUND_HEADER:function(){return wi},NEXT_ACTION_REVALIDATED_HEADER:function(){return Ni},NEXT_DID_POSTPONE_HEADER:function(){return Ri},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return hi},NEXT_HMR_REFRESH_HEADER:function(){return Sn},NEXT_HTML_REQUEST_ID_HEADER:function(){return Si},NEXT_IS_PRERENDER_HEADER:function(){return Ti},NEXT_REQUEST_ID_HEADER:function(){return vi},NEXT_REWRITTEN_PATH_HEADER:function(){return yi},NEXT_REWRITTEN_QUERY_HEADER:function(){return Ai},NEXT_ROUTER_PREFETCH_HEADER:function(){return wn},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return vn},NEXT_ROUTER_STALE_TIME_HEADER:function(){return bi},NEXT_ROUTER_STATE_TREE_HEADER:function(){return Tn},NEXT_RSC_UNION_QUERY:function(){return gi},NEXT_URL:function(){return mi},RSC_CONTENT_TYPE_HEADER:function(){return _i},RSC_HEADER:function(){return An}});var An="rsc",pi="next-action",Tn="next-router-state-tree",wn="next-router-prefetch",vn="next-router-segment-prefetch",Sn="next-hmr-refresh",hi="__next_hmr_refresh_hash__",mi="next-url",_i="text/x-component",Ei=[An,Tn,wn,Sn,vn],gi="_rsc",bi="x-nextjs-stale-time",Ri="x-nextjs-postponed",yi="x-nextjs-rewritten-path",Ai="x-nextjs-rewritten-query",Ti="x-nextjs-prerender",wi="x-nextjs-action-not-found",vi="x-nextjs-request-id",Si="x-nextjs-html-request-id",Ni="x-action-revalidated";(typeof O.default=="function"||typeof O.default=="object"&&O.default!==null)&&typeof O.default.__esModule>"u"&&(Object.defineProperty(O.default,"__esModule",{value:!0}),Object.assign(O.default,O),Nn.exports=O.default)});var we=p(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});Object.defineProperty(kt,"InvariantError",{enumerable:!0,get:function(){return Ct}});var Ct=class extends Error{constructor(t,r){super(`Invariant: ${t.endsWith(".")?t:t+"."} This is a bug in Next.js.`,r),this.name="InvariantError"}}});var Mt=p(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});function xi(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}xi(Lt,{getCacheSignal:function(){return Ui},getDraftModeProviderForCacheScope:function(){return Xi},getHmrRefreshHash:function(){return Mi},getPrerenderResumeDataCache:function(){return ki},getRenderResumeDataCache:function(){return Li},getRuntimeStagePromise:function(){return qi},getServerComponentsHmrCache:function(){return ji},isHmrRefresh:function(){return Hi},throwForMissingRequestStore:function(){return Di},throwInvariantForMissingStore:function(){return Ci},workUnitAsyncStorage:function(){return Pi.workUnitAsyncStorageInstance}});var Pi=yn(),Oi=xn(),Ii=we();function Di(e){throw Object.defineProperty(new Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function Ci(){throw Object.defineProperty(new Ii.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function ki(e){switch(e.type){case"prerender":case"prerender-runtime":case"prerender-ppr":return e.prerenderResumeDataCache;case"prerender-client":return e.prerenderResumeDataCache;case"request":if(e.prerenderResumeDataCache)return e.prerenderResumeDataCache;case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":return null;default:return e}}function Li(e){switch(e.type){case"request":case"prerender":case"prerender-runtime":case"prerender-client":if(e.renderResumeDataCache)return e.renderResumeDataCache;case"prerender-ppr":return e.prerenderResumeDataCache??null;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":return null;default:return e}}function Mi(e,t){if(e.dev)switch(t.type){case"cache":case"private-cache":case"prerender":case"prerender-runtime":return t.hmrRefreshHash;case"request":var r;return(r=t.cookies.get(Oi.NEXT_HMR_REFRESH_HASH_COOKIE))==null?void 0:r.value;case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"unstable-cache":break;default:}}function Hi(e,t){if(e.dev)switch(t.type){case"cache":case"private-cache":case"request":return t.isHmrRefresh??!1;case"prerender":case"prerender-client":case"prerender-runtime":case"prerender-ppr":case"prerender-legacy":case"unstable-cache":break;default:}return!1}function ji(e,t){if(e.dev)switch(t.type){case"cache":case"private-cache":case"request":return t.serverComponentsHmrCache;case"prerender":case"prerender-client":case"prerender-runtime":case"prerender-ppr":case"prerender-legacy":case"unstable-cache":break;default:}}function Xi(e,t){if(e.isDraftMode)switch(t.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return t.draftMode;case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":break;default:}}function Ui(e){switch(e.type){case"prerender":case"prerender-client":case"prerender-runtime":return e.cacheSignal;case"request":if(e.cacheSignal)return e.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":return null;default:return e}}function qi(e){switch(e.type){case"prerender-runtime":case"private-cache":return e.runtimeStagePromise;case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"unstable-cache":return null;default:return e}}});var In=p((I,On)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});function Fi(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Fi(I,{DynamicServerError:function(){return Ht},isDynamicServerError:function(){return Bi}});var Pn="DYNAMIC_SERVER_USAGE",Ht=class extends Error{constructor(t){super(`Dynamic server usage: ${t}`),this.description=t,this.digest=Pn}};function Bi(e){return typeof e!="object"||e===null||!("digest"in e)||typeof e.digest!="string"?!1:e.digest===Pn}(typeof I.default=="function"||typeof I.default=="object"&&I.default!==null)&&typeof I.default.__esModule>"u"&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),On.exports=I.default)});var ve=p((D,Cn)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});function Gi(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Gi(D,{StaticGenBailoutError:function(){return jt},isStaticGenBailoutError:function(){return $i}});var Dn="NEXT_STATIC_GEN_BAILOUT",jt=class extends Error{constructor(...t){super(...t),this.code=Dn}};function $i(e){return typeof e!="object"||e===null||!("code"in e)?!1:e.code===Dn}(typeof D.default=="function"||typeof D.default=="object"&&D.default!==null)&&typeof D.default.__esModule>"u"&&(Object.defineProperty(D.default,"__esModule",{value:!0}),Object.assign(D.default,D),Cn.exports=D.default)});var Ut=p(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});function Wi(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Wi(Xt,{isHangingPromiseRejectionError:function(){return Yi},makeDevtoolsIOAwarePromise:function(){return Ji},makeHangingPromise:function(){return Vi}});function Yi(e){return typeof e!="object"||e===null||!("digest"in e)?!1:e.digest===Ln}var Ln="HANGING_PROMISE_REJECTION",Se=class extends Error{constructor(t,r){super(`During prerendering, ${r} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${r} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${t}".`),this.route=t,this.expression=r,this.digest=Ln}},kn=new WeakMap;function Vi(e,t,r){if(e.aborted)return Promise.reject(new Se(t,r));{let n=new Promise((a,s)=>{let h=s.bind(null,new Se(t,r)),d=kn.get(e);if(d)d.push(h);else{let w=[h];kn.set(e,w),e.addEventListener("abort",()=>{for(let v=0;v<w.length;v++)w[v]()},{once:!0})}});return n.catch(zi),n}}function zi(){}function Ji(e,t,r){return t.stagedRendering?t.stagedRendering.delayUntilStage(r,void 0,e):new Promise(n=>{setTimeout(()=>{n(e)},0)})}});var Mn=p(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});function Ki(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Ki(qt,{METADATA_BOUNDARY_NAME:function(){return Qi},OUTLET_BOUNDARY_NAME:function(){return ec},ROOT_LAYOUT_BOUNDARY_NAME:function(){return tc},VIEWPORT_BOUNDARY_NAME:function(){return Zi}});var Qi="__next_metadata_boundary__",Zi="__next_viewport_boundary__",ec="__next_outlet_boundary__",tc="__next_root_layout_boundary__"});var jn=p(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});function rc(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}rc(Ft,{atLeastOneTask:function(){return ac},scheduleImmediate:function(){return Hn},scheduleOnNextTick:function(){return nc},waitAtLeastOneReactRenderTask:function(){return sc}});var nc=e=>{Promise.resolve().then(()=>{process.env.NEXT_RUNTIME==="edge"?setTimeout(e,0):process.nextTick(e)})},Hn=e=>{process.env.NEXT_RUNTIME==="edge"?setTimeout(e,0):setImmediate(e)};function ac(){return new Promise(e=>Hn(e))}function sc(){return process.env.NEXT_RUNTIME==="edge"?new Promise(e=>setTimeout(e,0)):new Promise(e=>setImmediate(e))}});var Un=p(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});function oc(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}oc(Gt,{BailoutToCSRError:function(){return Bt},isBailoutToCSRError:function(){return ic}});var Xn="BAILOUT_TO_CLIENT_SIDE_RENDERING",Bt=class extends Error{constructor(t){super(`Bail out to client-side rendering: ${t}`),this.reason=t,this.digest=Xn}};function ic(e){return typeof e!="object"||e===null||!("digest"in e)?!1:e.digest===Xn}});var Kn=p(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});function cc(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}cc(Kt,{Postpone:function(){return bc},PreludeState:function(){return Lc},abortAndThrowOnSynchronousRequestDataAccess:function(){return gc},abortOnSynchronousPlatformIOAccess:function(){return Ec},accessedDynamicData:function(){return Ac},annotateDynamicAccess:function(){return xc},consumeDynamicAccess:function(){return Tc},createDynamicTrackingState:function(){return dc},createDynamicValidationState:function(){return fc},createHangingInputAbortSignal:function(){return Nc},createRenderInBrowserAbortSignal:function(){return Sc},delayUntilRuntimeStage:function(){return jc},formatDynamicAPIAccesses:function(){return wc},getFirstDynamicReason:function(){return pc},getStaticShellDisallowedDynamicReasons:function(){return Hc},isDynamicPostpone:function(){return Rc},isPrerenderInterruptedError:function(){return yc},logDisallowedDynamicError:function(){return $t},markCurrentScopeAsDynamic:function(){return hc},postponeWithTracking:function(){return xe},throwIfDisallowedDynamic:function(){return Mc},throwToInterruptStaticGeneration:function(){return mc},trackAllowedDynamicAccess:function(){return Dc},trackDynamicDataInDynamicRender:function(){return _c},trackDynamicHoleInRuntimeShell:function(){return Cc},trackDynamicHoleInStaticShell:function(){return kc},useDynamicRouteParams:function(){return Pc},useDynamicSearchParams:function(){return Oc}});var V=uc(ga("react")),Fn=In(),Y=ve(),ne=Mt(),Bn=Te(),Gn=Ut(),Ne=Mn(),qn=jn(),$n=Un(),ae=we();function uc(e){return e&&e.__esModule?e:{default:e}}var lc=typeof V.default.unstable_postpone=="function";function dc(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function fc(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function pc(e){var t;return(t=e.dynamicAccesses[0])==null?void 0:t.expression}function hc(e,t,r){if(t)switch(t.type){case"cache":case"unstable-cache":return;case"private-cache":return;case"prerender-legacy":case"prerender-ppr":case"request":break;default:}if(!(e.forceDynamic||e.forceStatic)){if(e.dynamicShouldError)throw Object.defineProperty(new Y.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(t)switch(t.type){case"prerender-ppr":return xe(e.route,r,t.dynamicTracking);case"prerender-legacy":t.revalidate=0;let n=Object.defineProperty(new Fn.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n;case"request":process.env.NODE_ENV!=="production"&&(t.usedDynamic=!0);break;default:}}}function mc(e,t,r){let n=Object.defineProperty(new Fn.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function _c(e){switch(e.type){case"cache":case"unstable-cache":return;case"private-cache":return;case"prerender":case"prerender-runtime":case"prerender-legacy":case"prerender-ppr":case"prerender-client":break;case"request":process.env.NODE_ENV!=="production"&&(e.usedDynamic=!0);break;default:}}function Wn(e,t,r){let n=`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`,a=Jn(n);r.controller.abort(a);let s=r.dynamicTracking;s&&s.dynamicAccesses.push({stack:s.isDebugDynamicAccesses?new Error().stack:void 0,expression:t})}function Ec(e,t,r,n){let a=n.dynamicTracking;Wn(e,t,n),a&&a.syncDynamicErrorWithStack===null&&(a.syncDynamicErrorWithStack=r)}function gc(e,t,r,n){if(n.controller.signal.aborted===!1){Wn(e,t,n);let s=n.dynamicTracking;s&&s.syncDynamicErrorWithStack===null&&(s.syncDynamicErrorWithStack=r)}throw Jn(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}function bc({reason:e,route:t}){let r=ne.workUnitAsyncStorage.getStore(),n=r&&r.type==="prerender-ppr"?r.dynamicTracking:null;xe(t,e,n)}function xe(e,t,r){vc(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?new Error().stack:void 0,expression:t}),V.default.unstable_postpone(Yn(e,t))}function Yn(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. 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`}function Rc(e){return typeof e=="object"&&e!==null&&typeof e.message=="string"?Vn(e.message):!1}function Vn(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(Vn(Yn("%%%","^^^"))===!1)throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});var zn="NEXT_PRERENDER_INTERRUPTED";function Jn(e){let t=Object.defineProperty(new Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t.digest=zn,t}function yc(e){return typeof e=="object"&&e!==null&&e.digest===zn&&"name"in e&&"message"in e&&e instanceof Error}function Ac(e){return e.length>0}function Tc(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function wc(e){return e.filter(t=>typeof t.stack=="string"&&t.stack.length>0).map(({expression:t,stack:r})=>(r=r.split(`
|
|
9
|
+
`).slice(4).filter(n=>!(n.includes("node_modules/next/")||n.includes(" (<anonymous>)")||n.includes(" (node:"))).join(`
|
|
10
|
+
`),`Dynamic API Usage Debug - ${t}:
|
|
11
|
+
${r}`))}function vc(){if(!lc)throw Object.defineProperty(new Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})}function Sc(){let e=new AbortController;return e.abort(Object.defineProperty(new $n.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function Nc(e){switch(e.type){case"prerender":case"prerender-runtime":let t=new AbortController;if(e.cacheSignal)e.cacheSignal.inputReady().then(()=>{t.abort()});else{let r=(0,ne.getRuntimeStagePromise)(e);r?r.then(()=>(0,qn.scheduleOnNextTick)(()=>t.abort())):(0,qn.scheduleOnNextTick)(()=>t.abort())}return t.signal;case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return;default:}}function xc(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?new Error().stack:void 0,expression:e})}function Pc(e){let t=Bn.workAsyncStorage.getStore(),r=ne.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":case"prerender":{let n=r.fallbackRouteParams;n&&n.size>0&&V.default.use((0,Gn.makeHangingPromise)(r.renderSignal,t.route,e));break}case"prerender-ppr":{let n=r.fallbackRouteParams;if(n&&n.size>0)return xe(t.route,e,r.dynamicTracking);break}case"prerender-runtime":throw Object.defineProperty(new ae.InvariantError(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new ae.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"prerender-legacy":case"request":case"unstable-cache":break;default:}}function Oc(e){let t=Bn.workAsyncStorage.getStore(),r=ne.workUnitAsyncStorage.getStore();if(t)switch(r||(0,ne.throwForMissingRequestStore)(e),r.type){case"prerender-client":{V.default.use((0,Gn.makeHangingPromise)(r.renderSignal,t.route,e));break}case"prerender-legacy":case"prerender-ppr":{if(t.forceStatic)return;throw Object.defineProperty(new $n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}case"prerender":case"prerender-runtime":throw Object.defineProperty(new ae.InvariantError(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new ae.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"request":return;default:}}var Wt=/\n\s+at Suspense \(<anonymous>\)/,Ic="body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6",Yt=new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${Ic}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${Ne.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),Vt=new RegExp(`\\n\\s+at ${Ne.METADATA_BOUNDARY_NAME}[\\n\\s]`),zt=new RegExp(`\\n\\s+at ${Ne.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),Jt=new RegExp(`\\n\\s+at ${Ne.OUTLET_BOUNDARY_NAME}[\\n\\s]`);function Dc(e,t,r,n){if(!Jt.test(t))if(Vt.test(t)){r.hasDynamicMetadata=!0;return}else if(zt.test(t)){r.hasDynamicViewport=!0;return}else if(Yt.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(Wt.test(t)){r.hasAllowedDynamic=!0;return}else if(n.syncDynamicErrorWithStack){r.dynamicErrors.push(n.syncDynamicErrorWithStack);return}else{let a=`Route "${e.route}": Uncached data was accessed outside of <Suspense>. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`,s=q(a,t);r.dynamicErrors.push(s);return}}function Cc(e,t,r,n){if(!Jt.test(t))if(Vt.test(t)){let a=`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`,s=q(a,t);r.dynamicMetadata=s;return}else if(zt.test(t)){let a=`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`,s=q(a,t);r.dynamicErrors.push(s);return}else if(Yt.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(Wt.test(t)){r.hasAllowedDynamic=!0;return}else if(n.syncDynamicErrorWithStack){r.dynamicErrors.push(n.syncDynamicErrorWithStack);return}else{let a=`Route "${e.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`,s=q(a,t);r.dynamicErrors.push(s);return}}function kc(e,t,r,n){if(!Jt.test(t))if(Vt.test(t)){let a=`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`,s=q(a,t);r.dynamicMetadata=s;return}else if(zt.test(t)){let a=`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`,s=q(a,t);r.dynamicErrors.push(s);return}else if(Yt.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(Wt.test(t)){r.hasAllowedDynamic=!0;return}else if(n.syncDynamicErrorWithStack){r.dynamicErrors.push(n.syncDynamicErrorWithStack);return}else{let a=`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`,s=q(a,t);r.dynamicErrors.push(s);return}}function q(e,t){let r=process.env.NODE_ENV!=="production"&&V.default.captureOwnerStack?V.default.captureOwnerStack():null,n=Object.defineProperty(new Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n.stack=n.name+": "+e+(r||t),n}var Lc=(function(e){return e[e.Full=0]="Full",e[e.Empty=1]="Empty",e[e.Errored=2]="Errored",e})({});function $t(e,t){console.error(t),e.dev||(e.hasReadableErrorStacks?console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error.`):console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
12
|
+
- Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error.
|
|
13
|
+
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`))}function Mc(e,t,r,n){if(n.syncDynamicErrorWithStack)throw $t(e,n.syncDynamicErrorWithStack),new Y.StaticGenBailoutError;if(t!==0){if(r.hasSuspenseAboveBody)return;let a=r.dynamicErrors;if(a.length>0){for(let s=0;s<a.length;s++)$t(e,a[s]);throw new Y.StaticGenBailoutError}if(r.hasDynamicViewport)throw console.error(`Route "${e.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new Y.StaticGenBailoutError;if(t===1)throw console.error(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new Y.StaticGenBailoutError}else if(r.hasAllowedDynamic===!1&&r.hasDynamicMetadata)throw console.error(`Route "${e.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new Y.StaticGenBailoutError}function Hc(e,t,r){if(r.hasSuspenseAboveBody)return[];if(t!==0){let n=r.dynamicErrors;if(n.length>0)return n;if(t===1)return[Object.defineProperty(new ae.InvariantError(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}else if(r.hasAllowedDynamic===!1&&r.dynamicErrors.length===0&&r.dynamicMetadata)return[r.dynamicMetadata];return[]}function jc(e,t){return e.runtimeStagePromise?e.runtimeStagePromise.then(()=>t):t}});var Qn=p(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Object.defineProperty(Qt,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return Uc}});var Xc=Ae(),Uc=(0,Xc.createAsyncLocalStorage)()});var Zn=p(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Object.defineProperty(Zt,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return qc.afterTaskAsyncStorageInstance}});var qc=Qn()});var ea=p(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});function Fc(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Fc(er,{isRequestAPICallableInsideAfter:function(){return Yc},throwForSearchParamsAccessInUseCache:function(){return Wc},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return $c}});var Bc=ve(),Gc=Zn();function $c(e,t){throw Object.defineProperty(new Bc.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function Wc(e,t){let r=Object.defineProperty(new Error(`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function Yc(){let e=Gc.afterTaskAsyncStorage.getStore();return e?.rootTaskSpawnPhase==="action"}});var ta=p(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});Object.defineProperty(tr,"createPromiseWithResolvers",{enumerable:!0,get:function(){return Vc}});function Vc(){let e,t,r=new Promise((n,a)=>{e=n,t=a});return{resolve:e,reject:t,promise:r}}});var na=p(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});function zc(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}zc(sr,{RenderStage:function(){return Jc},StagedRenderingController:function(){return ar}});var rr=we(),ra=ta(),Jc=(function(e){return e[e.Before=1]="Before",e[e.Static=2]="Static",e[e.Runtime=3]="Runtime",e[e.Dynamic=4]="Dynamic",e[e.Abandoned=5]="Abandoned",e})({}),ar=class{constructor(t=null,r){this.abortSignal=t,this.hasRuntimePrefetch=r,this.currentStage=1,this.staticInterruptReason=null,this.runtimeInterruptReason=null,this.staticStageEndTime=1/0,this.runtimeStageEndTime=1/0,this.runtimeStageListeners=[],this.dynamicStageListeners=[],this.runtimeStagePromise=(0,ra.createPromiseWithResolvers)(),this.dynamicStagePromise=(0,ra.createPromiseWithResolvers)(),this.mayAbandon=!1,t&&(t.addEventListener("abort",()=>{let{reason:n}=t;this.currentStage<3&&(this.runtimeStagePromise.promise.catch(nr),this.runtimeStagePromise.reject(n)),(this.currentStage<4||this.currentStage===5)&&(this.dynamicStagePromise.promise.catch(nr),this.dynamicStagePromise.reject(n))},{once:!0}),this.mayAbandon=!0)}onStage(t,r){if(this.currentStage>=t)r();else if(t===3)this.runtimeStageListeners.push(r);else if(t===4)this.dynamicStageListeners.push(r);else throw Object.defineProperty(new rr.InvariantError(`Invalid render stage: ${t}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}canSyncInterrupt(){if(this.currentStage===1)return!1;let t=this.hasRuntimePrefetch?4:3;return this.currentStage<t}syncInterruptCurrentStageWithReason(t){if(this.currentStage!==1){if(this.mayAbandon)return this.abandonRenderImpl();switch(this.currentStage){case 2:{this.staticInterruptReason=t,this.advanceStage(4);return}case 3:{this.hasRuntimePrefetch&&(this.runtimeInterruptReason=t,this.advanceStage(4));return}default:}}}getStaticInterruptReason(){return this.staticInterruptReason}getRuntimeInterruptReason(){return this.runtimeInterruptReason}getStaticStageEndTime(){return this.staticStageEndTime}getRuntimeStageEndTime(){return this.runtimeStageEndTime}abandonRender(){if(!this.mayAbandon)throw Object.defineProperty(new rr.InvariantError("`abandonRender` called on a stage controller that cannot be abandoned."),"__NEXT_ERROR_CODE",{value:"E938",enumerable:!1,configurable:!0});this.abandonRenderImpl()}abandonRenderImpl(){let{currentStage:t}=this;switch(t){case 2:{this.currentStage=5,this.resolveRuntimeStage();return}case 3:{this.currentStage=5;return}case 4:case 1:case 5:break;default:}}advanceStage(t){if(t<=this.currentStage)return;let r=this.currentStage;if(this.currentStage=t,r<3&&t>=3&&(this.staticStageEndTime=performance.now()+performance.timeOrigin,this.resolveRuntimeStage()),r<4&&t>=4){this.runtimeStageEndTime=performance.now()+performance.timeOrigin,this.resolveDynamicStage();return}}resolveRuntimeStage(){let t=this.runtimeStageListeners;for(let r=0;r<t.length;r++)t[r]();t.length=0,this.runtimeStagePromise.resolve()}resolveDynamicStage(){let t=this.dynamicStageListeners;for(let r=0;r<t.length;r++)t[r]();t.length=0,this.dynamicStagePromise.resolve()}getStagePromise(t){switch(t){case 3:return this.runtimeStagePromise.promise;case 4:return this.dynamicStagePromise.promise;default:throw Object.defineProperty(new rr.InvariantError(`Invalid render stage: ${t}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}}waitForStage(t){return this.getStagePromise(t)}delayUntilStage(t,r,n){let a=this.getStagePromise(t),s=Kc(a,r,n);return this.abortSignal&&s.catch(nr),s}};function nr(){}function Kc(e,t,r){let n=new Promise((a,s)=>{e.then(a.bind(null,r),s)});return t!==void 0&&(n.displayName=t),n}});var oa=p(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});Object.defineProperty(cr,"connection",{enumerable:!0,get:function(){return ir}});var Qc=Te(),aa=Mt(),or=Kn(),Zc=ve(),sa=Ut(),eu=ea(),tu=na();function ir(){let e="connection",t=Qc.workAsyncStorage.getStore(),r=aa.workUnitAsyncStorage.getStore();if(t){if(r&&r.phase==="after"&&!(0,eu.isRequestAPICallableInsideAfter)())throw Object.defineProperty(new Error(`Route ${t.route} used \`connection()\` inside \`after()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but \`after()\` executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E827",enumerable:!1,configurable:!0});if(t.forceStatic)return Promise.resolve(void 0);if(t.dynamicShouldError)throw Object.defineProperty(new Zc.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E847",enumerable:!1,configurable:!0});if(r)switch(r.type){case"cache":{let n=Object.defineProperty(new Error(`Route ${t.route} used \`connection()\` inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual request, but caches must be able to be produced before a request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E841",enumerable:!1,configurable:!0});throw Error.captureStackTrace(n,ir),t.invalidDynamicUsageError??=n,n}case"private-cache":{let n=Object.defineProperty(new Error(`Route ${t.route} used \`connection()\` inside "use cache: private". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual navigation request, but caches must be able to be produced before a navigation request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E837",enumerable:!1,configurable:!0});throw Error.captureStackTrace(n,ir),t.invalidDynamicUsageError??=n,n}case"unstable-cache":throw Object.defineProperty(new Error(`Route ${t.route} used \`connection()\` inside a function cached with \`unstable_cache()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E840",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-runtime":return(0,sa.makeHangingPromise)(r.renderSignal,t.route,"`connection()`");case"prerender-ppr":return(0,or.postponeWithTracking)(t.route,"connection",r.dynamicTracking);case"prerender-legacy":return(0,or.throwToInterruptStaticGeneration)("connection",t,r);case"request":return(0,or.trackDynamicDataInDynamicRender)(r),process.env.NODE_ENV==="development"?r.asyncApiPromises?r.asyncApiPromises.connection:(0,sa.makeDevtoolsIOAwarePromise)(void 0,r,tu.RenderStage.Dynamic):Promise.resolve(void 0);default:}}(0,aa.throwForMissingRequestStore)(e)}});var ca=p((M,ia)=>{"use strict";var L={NextRequest:on().NextRequest,NextResponse:dn().NextResponse,ImageResponse:fn().ImageResponse,userAgentFromString:vt().userAgentFromString,userAgent:vt().userAgent,URLPattern:En().URLPattern,after:Rn().after,connection:oa().connection};ia.exports=L;M.NextRequest=L.NextRequest;M.NextResponse=L.NextResponse;M.ImageResponse=L.ImageResponse;M.userAgentFromString=L.userAgentFromString;M.userAgent=L.userAgent;M.URLPattern=L.URLPattern;M.after=L.after;M.connection=L.connection});import{clsx as ya}from"clsx";import{twMerge as Aa}from"tailwind-merge";import{jsx as wa}from"react/jsx-runtime";function Ta(...e){return Aa(ya(e))}var ou=({label:e,variant:t="primary",className:r,...n})=>wa("button",{...n,className:Ta("inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 border",{primary:"bg-gray-800 text-gray-50 border-gray-200 hover:bg-gray-950 dark:bg-gray-50 dark:text-gray-950 dark:border-gray-800 dark:hover:bg-gray-200",outline:"bg-transparent text-gray-800 border-gray-200 hover:bg-gray-100 dark:text-gray-50 dark:border-gray-800 dark:hover:bg-gray-900",ghost:"bg-transparent text-gray-500 border-transparent hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-900"}[t],r),children:e});import{jsx as Tr,jsxs as va}from"react/jsx-runtime";var uu=({label:e,className:t,...r})=>va("div",{className:"w-full space-y-1.5",children:[e&&Tr("label",{className:"text-sm font-medium text-gray-500 dark:text-gray-100",children:e}),Tr("input",{...r,className:`flex h-10 w-full rounded-md border border-gray-200 bg-white px-3 py-2 text-sm text-gray-800 ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-400 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50 dark:placeholder:text-gray-400 ${t}`})]});import{jsx as Xe,jsxs as wr}from"react/jsx-runtime";var fu=({title:e,subtitle:t,children:r,className:n})=>wr("div",{className:`rounded-xl border border-gray-200 bg-white p-6 shadow-xs dark:border-gray-800 dark:bg-gray-950 ${n}`,children:[(e||t)&&wr("div",{className:"mb-4 space-y-1",children:[e&&Xe("h3",{className:"text-xl font-semibold tracking-tight text-gray-800 dark:text-gray-50",children:e}),t&&Xe("p",{className:"text-sm text-gray-500 dark:text-gray-100",children:t})]}),Xe("div",{className:"text-gray-400 dark:text-gray-200",children:r})]});import{jsx as Sa}from"react/jsx-runtime";var mu=({children:e,className:t})=>Sa("span",{className:`inline-flex items-center rounded-full border border-gray-200 bg-gray-50 px-2.5 py-0.5 text-xs font-semibold text-gray-800 transition-colors dark:border-gray-800 dark:bg-gray-900 dark:text-gray-50 ${t}`,children:e});import{jsx as vr,jsxs as Na}from"react/jsx-runtime";var gu=({label:e,className:t,...r})=>Na("div",{className:"w-full space-y-1.5",children:[e&&vr("label",{className:"text-sm font-medium text-gray-500 dark:text-gray-100",children:e}),vr("textarea",{...r,className:`flex min-h-24 w-full rounded-md border border-gray-200 bg-white px-3 py-2 text-sm text-gray-800 placeholder:text-gray-400 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50 dark:placeholder:text-gray-400 ${t}`})]});import{jsx as xa}from"react/jsx-runtime";var yu=({className:e,...t})=>xa("div",{className:`animate-pulse rounded-md bg-gray-200 dark:bg-gray-800 ${e}`,...t});import{jsx as he,jsxs as Sr}from"react/jsx-runtime";var wu=({label:e,className:t,...r})=>Sr("label",{className:"inline-flex cursor-pointer items-center gap-2",children:[Sr("div",{className:"relative",children:[he("input",{type:"checkbox",...r,className:"peer sr-only"}),he("div",{className:"h-6 w-11 rounded-full border border-gray-200 bg-gray-100 transition-colors peer-checked:bg-gray-800 dark:border-gray-800 dark:bg-gray-900 dark:peer-checked:bg-gray-50"}),he("div",{className:"absolute top-1 left-1 h-4 w-4 rounded-full bg-white transition-transform peer-checked:translate-x-5 dark:bg-gray-950"})]}),e&&he("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-100",children:e})]});import{jsx as U}from"react/jsx-runtime";var Nu=({children:e,className:t})=>U("div",{className:"w-full overflow-auto",children:U("table",{className:`w-full caption-bottom text-sm border-collapse ${t}`,children:e})}),xu=({children:e,className:t})=>U("thead",{className:`border-b border-gray-200 dark:border-gray-800 bg-gray-50/50 dark:bg-gray-900/50 ${t}`,children:e}),Pu=({children:e,className:t})=>U("tbody",{className:`[&_tr:last-child]:border-0 ${t}`,children:e}),Ou=({children:e,className:t})=>U("tr",{className:`border-b border-gray-200 transition-colors hover:bg-gray-50/50 dark:border-gray-800 dark:hover:bg-gray-900/50 ${t}`,children:e}),Iu=({children:e,className:t})=>U("th",{className:`h-12 px-4 text-left align-middle font-medium text-gray-500 dark:text-gray-100 ${t}`,children:e}),Du=({children:e,className:t})=>U("td",{className:`p-4 align-middle text-gray-400 dark:text-gray-200 ${t}`,children:e});import{motion as Nr,AnimatePresence as Pa}from"framer-motion";import{jsx as ee,jsxs as Ue}from"react/jsx-runtime";var Mu=({isOpen:e,onClose:t,title:r,children:n})=>ee(Pa,{children:e&&Ue("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[ee(Nr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:"absolute inset-0 bg-black/40 backdrop-blur-sm"}),Ue(Nr.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},className:"relative w-full max-w-lg rounded-xl border border-gray-200 bg-white p-6 shadow-xl dark:border-gray-800 dark:bg-gray-950",children:[Ue("div",{className:"mb-4 flex items-center justify-between",children:[ee("h2",{className:"text-xl font-semibold text-gray-800 dark:text-gray-50",children:r}),ee("button",{onClick:t,className:"text-gray-500 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-50",children:"\u2715"})]}),ee("div",{className:"text-gray-400 dark:text-gray-200",children:n})]})]})});import{jsx as qe,jsxs as Oa}from"react/jsx-runtime";var Xu=({label:e,options:t,className:r,...n})=>Oa("div",{className:"w-full space-y-1.5",children:[e&&qe("label",{className:"text-sm font-medium text-gray-500 dark:text-gray-100",children:e}),qe("select",{...n,className:`flex h-10 w-full rounded-md border border-gray-200 bg-white px-3 py-2 text-sm text-gray-800 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50 ${r}`,children:t.map(a=>qe("option",{value:a.value,children:a.label},a.value))})]});import{jsx as xr,jsxs as Ia}from"react/jsx-runtime";var Fu=({title:e,children:t,variant:r="info"})=>Ia("div",{className:`relative w-full rounded-lg border p-4 ${{info:"border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-950",danger:"border-red-200 bg-red-50 text-red-900 dark:border-red-900/50 dark:bg-red-950/50 dark:text-red-200"}[r]}`,children:[e&&xr("h5",{className:"mb-1 font-medium leading-none tracking-tight text-gray-800 dark:text-gray-50",children:e}),xr("div",{className:"text-sm opacity-90",children:t})]});import{jsx as me,jsxs as Da}from"react/jsx-runtime";var $u=({items:e})=>me("nav",{className:"flex","aria-label":"Breadcrumb",children:me("ol",{className:"inline-flex items-center space-x-1 md:space-x-3",children:e.map((t,r)=>Da("li",{className:"inline-flex items-center",children:[r>0&&me("span",{className:"mx-2 text-gray-400",children:"/"}),me("span",{className:`text-sm font-medium ${t.active?"text-gray-800 dark:text-gray-50":"text-gray-400 hover:text-gray-800 dark:text-gray-200 dark:hover:text-gray-50"}`,children:t.label})]},r))})});import{jsx as Pr,jsxs as Ca}from"react/jsx-runtime";var Vu=({label:e,className:t,...r})=>Ca("label",{className:"inline-flex cursor-pointer items-center gap-2",children:[Pr("input",{type:"checkbox",...r,className:`h-4 w-4 rounded-sm border border-gray-200 bg-white text-gray-800 focus:ring-0 focus:ring-offset-0 dark:border-gray-800 dark:bg-gray-950 dark:checked:bg-gray-50 ${t}`}),e&&Pr("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-100",children:e})]});import{useState as ka,useRef as La,useEffect as Ma}from"react";import{jsx as _e,jsxs as Ha}from"react/jsx-runtime";var Zu=({label:e,children:t,className:r})=>{let[n,a]=ka(!1),s=La(null);return Ma(()=>{let h=d=>{s.current&&!s.current.contains(d.target)&&a(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]),Ha("div",{className:"relative inline-block text-left",ref:s,children:[_e("div",{onClick:()=>a(!n),children:e}),n&&_e("div",{className:`absolute right-0 z-50 mt-2 w-56 origin-top-right rounded-md border border-gray-200 bg-white shadow-lg focus:outline-hidden dark:border-gray-800 dark:bg-gray-950 ${r}`,children:_e("div",{className:"py-1",children:t})})]})},el=({children:e,onClick:t,className:r})=>_e("button",{onClick:t,className:`block w-full px-4 py-2 text-left text-sm text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-200 dark:hover:bg-gray-900 dark:hover:text-gray-50 ${r}`,children:e});import{jsx as Or}from"react/jsx-runtime";var nl=({value:e=0,className:t})=>Or("div",{className:`h-2 w-full overflow-hidden rounded-full bg-gray-100 dark:bg-gray-900 ${t}`,children:Or("div",{className:"h-full bg-gray-800 transition-all dark:bg-gray-50",style:{width:`${e}%`}})});import{Toaster as ja}from"sonner";import{jsx as Xa}from"react/jsx-runtime";var il=()=>Xa(ja,{className:"toaster group",toastOptions:{classNames:{toast:"group toast bg-white text-gray-800 border-gray-200 shadow-lg dark:bg-gray-950 dark:text-gray-50 dark:border-gray-800",description:"text-gray-400 dark:text-gray-200",actionButton:"bg-gray-800 text-gray-50 dark:bg-gray-50 dark:text-gray-950",cancelButton:"bg-gray-100 text-gray-500 dark:bg-gray-900 dark:text-gray-400"}}});import{clsx as Ua}from"clsx";import{twMerge as qa}from"tailwind-merge";function fl(...e){return qa(Ua(e))}import{useState as Fa,useEffect as Ba}from"react";function ml(){let[e,t]=Fa(()=>typeof window<"u"&&localStorage.getItem("theme")||"light");return Ba(()=>{let n=window.document.documentElement;n.classList.remove("light","dark"),n.classList.add(e),localStorage.setItem("theme",e)},[e]),{theme:e,setTheme:t,toggleTheme:()=>t(n=>n==="light"?"dark":"light")}}var ur=Ra(ca()),ud=async e=>{let{pathname:t}=e.nextUrl,r=e.cookies.get("auth_token")?.value;if(t.startsWith("/dashboard")&&!r)return ur.NextResponse.redirect(new URL("/login",e.url));let n=ur.NextResponse.next();return n.headers.set("x-v0-digital-proxy","active"),n},ld={matcher:["/((?!api|_next/static|_next/image|favicon.ico).*)"]};export{Fu as Alert,mu as Badge,$u as Breadcrumb,ou as Button,fu as Card,Vu as Checkbox,Zu as Dropdown,el as DropdownItem,uu as Input,Mu as Modal,nl as Progress,Xu as Select,yu as Skeleton,Nu as Table,Pu as TableBody,Du as TableCell,Iu as TableHead,xu as TableHeader,Ou as TableRow,gu as Textarea,il as Toaster,wu as Toggle,fl as cn,ld as config,ud as proxy,ml as useTheme};
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@leonardofirme/package-npm",
|
|
3
|
+
"version": "1.1.9",
|
|
4
|
+
"description": "Biblioteca modular de componentes e utilitários de alto nível para ecossistemas modernos.",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public",
|
|
15
|
+
"registry": "https://registry.npmjs.org/"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/LeonardoFirme/package-npm.git"
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"dev": "tsup src/index.tsx --watch --dts",
|
|
30
|
+
"build": "tsup src/index.tsx --format cjs,esm --minify --dts --clean",
|
|
31
|
+
"lint": "eslint src",
|
|
32
|
+
"type-check": "tsc --noEmit",
|
|
33
|
+
"prepublishOnly": "npm run build && npm run type-check"
|
|
34
|
+
},
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/react": "^19.0.10",
|
|
38
|
+
"@types/react-dom": "^19.0.4",
|
|
39
|
+
"@types/node": "^22.13.4",
|
|
40
|
+
"react": "^19.0.0",
|
|
41
|
+
"react-dom": "^19.0.0",
|
|
42
|
+
"tsup": "^8.4.0",
|
|
43
|
+
"typescript": "^5.7.3",
|
|
44
|
+
"eslint": "^9.20.1"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"react": "^19.0.0",
|
|
48
|
+
"react-dom": "^19.0.0"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"clsx": "^2.1.1",
|
|
52
|
+
"framer-motion": "^12.4.7",
|
|
53
|
+
"sonner": "^2.0.1",
|
|
54
|
+
"tailwind-merge": "^3.0.2",
|
|
55
|
+
"bcrypt-ts": "^5.0.3",
|
|
56
|
+
"jose": "^6.0.0"
|
|
57
|
+
},
|
|
58
|
+
"optionalDependencies": {
|
|
59
|
+
"next-auth": "^5.0.0-beta.25"
|
|
60
|
+
}
|
|
61
|
+
}
|