@waelio/cli 0.1.10 โ†’ 0.1.12

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 CHANGED
@@ -1,26 +1,29 @@
1
1
  # @waelio/cli
2
2
 
3
- TypeScript CLI + browser UI toolkit for building [`waelio/siteforge`](https://github.com/waelio/siteforge) from the terminal or a local web interface.
3
+ [![npm version](https://img.shields.io/npm/v/@waelio/cli.svg?style=flat-square&color=cb3837)](https://www.npmjs.com/package/@waelio/cli)
4
+ [![license](https://img.shields.io/npm/l/@waelio/cli.svg?style=flat-square)](./LICENSE)
5
+ [![node](https://img.shields.io/node/v/@waelio/cli.svg?style=flat-square)](https://nodejs.org)
4
6
 
5
- Built with **Vite + TypeScript + Vue**.
7
+ > TypeScript CLI + browser UI toolkit for building [`waelio/siteforge`](https://github.com/waelio/siteforge) from the terminal or a local web interface.
6
8
 
7
- ## What it does
9
+ ๐Ÿ”— **Live demo:** [cli.waelio.workers.dev](https://cli.waelio.workers.dev)
8
10
 
9
- - checks that required local tools are installed
10
- - previews the build plan before running it
11
- - clones `waelio/siteforge` into a working directory
12
- - installs dependencies with `npm ci`
13
- - runs `npm run build`
14
- - shows the full workflow in a browser UI with live logs
11
+ Built with **Vite 8 ยท TypeScript ยท Vue 3 ยท Commander**.
15
12
 
16
- ## Requirements
13
+ ---
17
14
 
18
- - Node.js 20+
19
- - npm
20
- - git
21
- - Go
15
+ ## โœจ Features
22
16
 
23
- ## Install
17
+ - ๐Ÿฉบ **Doctor** โ€” checks that required local tools are installed
18
+ - ๐Ÿ“‹ **Dry-run** โ€” previews the build plan before running it
19
+ - ๐Ÿ”ง **Build** โ€” clones `waelio/siteforge`, installs deps, and runs the build
20
+ - ๐Ÿ—๏ธ **Scaffold** โ€” generates full Next.js + NestJS projects from a blueprint JSON
21
+ - ๐Ÿ–ฅ๏ธ **Browser UI** โ€” a Vue dashboard with live logs, scaffold forms, and public site listings
22
+ - ๐ŸŒ **12 locales** โ€” `ar` `de` `en` `es` `fr` `he` `id` `it` `ru` `sv` `tr` `zh` (RTL-ready)
23
+
24
+ ---
25
+
26
+ ## ๐Ÿ“ฆ Install
24
27
 
25
28
  Run without installing:
26
29
 
@@ -34,15 +37,13 @@ Or install globally:
34
37
  npm install -g @waelio/cli
35
38
  ```
36
39
 
37
- ## CLI commands
40
+ ---
38
41
 
39
- ### `waelio --help`
42
+ ## ๐Ÿš€ CLI Commands
40
43
 
41
- Print the top-level help and list all available commands:
44
+ ### `waelio --help`
42
45
 
43
- ```sh
44
- waelio --help
45
- ```
46
+ Print the top-level help and list all available commands.
46
47
 
47
48
  ### `waelio doctor`
48
49
 
@@ -60,18 +61,17 @@ Clone and build the `waelio/siteforge` website:
60
61
  waelio build
61
62
  ```
62
63
 
63
- **All options:**
64
+ **Options:**
64
65
 
65
- ```sh
66
- waelio build \
67
- --repo https://github.com/waelio/siteforge.git \ # custom repository URL (default: waelio/siteforge)
68
- --ref main \ # branch, tag, or commit to checkout
69
- --source ./my-local-siteforge \ # skip cloning, use an existing checkout
70
- --workdir ./build-tmp \ # directory to clone into
71
- --dry-run # print the plan without running anything
72
- ```
66
+ | Flag | Description | Default |
67
+ |------|-------------|---------|
68
+ | `--repo <url>` | Custom repository URL | `waelio/siteforge` |
69
+ | `--ref <ref>` | Branch, tag, or commit to checkout | `main` |
70
+ | `--source <path>` | Skip cloning, use an existing checkout | โ€” |
71
+ | `--workdir <path>` | Directory to clone into | `./tmp` |
72
+ | `--dry-run` | Print the plan without running anything | `false` |
73
73
 
74
- **Common examples:**
74
+ **Examples:**
75
75
 
76
76
  ```sh
77
77
  # default โ€” clone and build waelio/siteforge
@@ -83,153 +83,210 @@ waelio build --dry-run
83
83
  # build a specific branch
84
84
  waelio build --ref feat/new-homepage
85
85
 
86
- # build from a local checkout you already have
86
+ # build from a local checkout
87
87
  waelio build --source ~/Code/GitHub/waelio/siteforge
88
88
 
89
- # clone into a custom directory
90
- waelio build --workdir /tmp/siteforge-build
91
-
92
89
  # build a fork
93
90
  waelio build --repo https://github.com/yourname/siteforge.git
94
91
  ```
95
92
 
96
93
  ### `waelio ui`
97
94
 
98
- Start the local web UI and API server (browser dashboard with live build logs and a multi-view interface):
95
+ Start the local web UI and API server:
99
96
 
100
97
  ```sh
101
98
  waelio ui
99
+ waelio ui --port 4000 # default: 3000
102
100
  ```
103
101
 
104
- **UI Features:**
105
- - **Scaffold View:** Form-based generator to produce and deploy Siteforge blueprints to webhooks.
106
- - **Public Sites View:** A dedicated dashboard for listing and accessing successfully scaffolded client sites served via the `/api/public-sites` route.
102
+ Open `http://localhost:3000` in your browser.
107
103
 
108
- **Options:**
104
+ **UI Views:**
109
105
 
110
- ```sh
111
- waelio ui --port 4000 # default port is 3000
112
- ```
113
-
114
- Open `http://localhost:3000` in your browser after running this.
106
+ | View | Description |
107
+ |------|-------------|
108
+ | **Scaffold** | Form-based generator to produce and deploy Siteforge blueprints |
109
+ | **Public Sites** | Dashboard listing scaffolded client sites served via `/api/public-sites` |
110
+ | **Negotiation** | Manage 2-AI negotiation sessions (kickoff, auth, status, handoff) via proxied API routes |
115
111
 
116
112
  ### `waelio scaffold <blueprint>`
117
113
 
118
- Scaffold a full Next.js (frontend) + NestJS (backend) project from a siteforge blueprint JSON:
114
+ Scaffold a full Next.js (frontend) + NestJS (backend) project from a Siteforge blueprint JSON:
119
115
 
120
116
  ```sh
121
117
  waelio scaffold ./blueprint.json
122
118
  ```
123
119
 
124
- **All options:**
120
+ **Options:**
125
121
 
126
- ```sh
127
- waelio scaffold ./blueprint.json \
128
- --out ./sites \ # output root directory (default: siteforge/sites)
129
- --no-git # skip git init and the initial commit
130
- ```
122
+ | Flag | Description | Default |
123
+ |------|-------------|---------|
124
+ | `--out <dir>` | Output root directory | `siteforge/sites` |
125
+ | `--no-git` | Skip `git init` and the initial commit | `false` |
131
126
 
132
- **Common examples:**
127
+ **Examples:**
133
128
 
134
129
  ```sh
135
130
  # scaffold with defaults
136
131
  waelio scaffold ./blueprint.json
137
132
 
138
- # scaffold into a custom output directory
133
+ # scaffold into a custom directory
139
134
  waelio scaffold ./blueprint.json --out ~/projects/my-site
140
135
 
141
136
  # scaffold without initialising a git repository
142
137
  waelio scaffold ./blueprint.json --no-git
138
+ ```
139
+
140
+ The blueprint JSON describes the project name, slug, pages, features, integrations, locales, roles, brand tones, visual styles, content models, and SEO focuses. The scaffolder generates both workspaces from those selections.
143
141
 
144
- # combine options
145
- waelio scaffold ./blueprint.json --out ./sites --no-git
142
+ ---
143
+
144
+ ## ๐Ÿ›๏ธ Project Structure
145
+
146
+ ```
147
+ @waelio/cli
148
+ โ”œโ”€โ”€ src/
149
+ โ”‚ โ”œโ”€โ”€ index.ts # CLI entry point (Commander)
150
+ โ”‚ โ”œโ”€โ”€ server.ts # Express API server
151
+ โ”‚ โ”œโ”€โ”€ siteforge.ts # Build orchestration
152
+ โ”‚ โ”œโ”€โ”€ scaffold.ts # Blueprint scaffolder
153
+ โ”‚ โ”œโ”€โ”€ localRepos.ts # Local repo discovery
154
+ โ”‚ โ””โ”€โ”€ locals/ # i18n locale files (12 languages)
155
+ โ”œโ”€โ”€ ui/
156
+ โ”‚ โ”œโ”€โ”€ src/
157
+ โ”‚ โ”‚ โ”œโ”€โ”€ App.vue # Root Vue component
158
+ โ”‚ โ”‚ โ””โ”€โ”€ views/ # ScaffoldView, PublicSitesView
159
+ โ”‚ โ””โ”€โ”€ dist/ # Built static assets
160
+ โ”œโ”€โ”€ templates/ # Multi-framework scaffold templates
161
+ โ”œโ”€โ”€ public-sites/ # Scaffolded demo sites (acme-dental, agent-007, e2e-test-site)
162
+ โ”œโ”€โ”€ wrangler.toml # Cloudflare Workers deployment config
163
+ โ”œโ”€โ”€ vite.config.ts # Vite build config
164
+ โ””โ”€โ”€ package.json
146
165
  ```
147
166
 
148
- The blueprint JSON is produced by siteforge and describes the project name, slug,
149
- pages, features, integrations, locales, roles, brand tones, visual styles,
150
- content models, and SEO focuses. The scaffolder generates both workspaces from
151
- those selections.
167
+ ---
152
168
 
153
- ## Development
169
+ ## ๐Ÿ› ๏ธ Development
154
170
 
155
171
  ### Install dependencies
156
172
 
157
173
  ```sh
158
- npm install
174
+ pnpm install
159
175
  ```
160
176
 
161
177
  ### Run in development
162
178
 
163
179
  ```sh
164
- npm run dev
180
+ pnpm dev
165
181
  ```
166
182
 
167
- Starts:
183
+ Starts concurrently:
168
184
 
169
- - API/build server on `http://localhost:3000`
170
- - Vite UI on `http://localhost:5173`
185
+ - **API server** on `http://localhost:3000`
186
+ - **Vite UI** on `http://localhost:5173` (proxies `/api` โ†’ `:3000`)
171
187
 
172
188
  ### Build everything
173
189
 
174
190
  ```sh
175
- npm run build
191
+ pnpm run build
192
+ ```
193
+
194
+ ### Run the production server
195
+
196
+ ```sh
197
+ pnpm start
176
198
  ```
177
199
 
178
- ### Run the built server
200
+ ### Quality checks
179
201
 
180
202
  ```sh
181
- npm start
203
+ pnpm run typecheck # tsc --noEmit + vue-tsc for the UI
204
+ pnpm test # run *.test.ts via tsx --test
205
+ pnpm run check # typecheck + tests
182
206
  ```
183
207
 
184
- ### Other scripts
208
+ ---
209
+
210
+ ## โ˜๏ธ Deployment
211
+
212
+ The UI is deployed to **Cloudflare Workers** as a static site.
213
+
214
+ ### Deploy manually
185
215
 
186
216
  ```sh
187
- npm run typecheck # tsc --noEmit + vue-tsc for the UI
188
- npm test # run *.test.ts via tsx --test
189
- npm run check # typecheck + tests
217
+ pnpm run build
218
+ npx wrangler deploy
190
219
  ```
191
220
 
192
- ## Helper repos surfaced in the UI
221
+ The `wrangler.toml` configuration serves the built Vue app from `ui/dist`:
222
+
223
+ ```toml
224
+ name = "cli"
225
+ compatibility_date = "2024-12-01"
226
+
227
+ [assets]
228
+ directory = "./ui/dist"
229
+ ```
230
+
231
+ **Live URL:** [https://cli.waelio.workers.dev](https://cli.waelio.workers.dev)
232
+
233
+ ---
234
+
235
+ ## ๐Ÿ”Œ API Endpoints
236
+
237
+ ### Build & Scaffold
238
+
239
+ | Method | Endpoint | Description |
240
+ |--------|----------|-------------|
241
+ | `POST` | `/api/build` | Trigger a siteforge build |
242
+ | `POST` | `/api/scaffold` | Scaffold from a blueprint |
243
+ | `GET` | `/api/public-sites` | List scaffolded demo sites |
244
+ | `GET` | `/api/negotiate/health` | Check negotiation service health |
245
+ | `POST` | `/api/negotiate/kickoff` | Create session + authenticate prompt A + save handoff |
246
+ | `POST` | `/api/negotiate/auth` | Authenticate prompt A or prompt B |
247
+ | `GET` | `/api/negotiate/status?sessionId=...` | Fetch negotiation session status |
248
+ | `GET` | `/api/negotiate/handoff?sessionId=...` | Fetch shared handoff markdown |
249
+
250
+ ### Local Repository Discovery
193
251
 
194
- - `waelio/ustore` โ€” storage and state patterns
195
- - `waelio/utils` โ€” shared utilities and UI-friendly helpers
196
- - `waelio/waelio-messaging` โ€” future real-time collaboration ideas
252
+ | Method | Endpoint | Description |
253
+ |--------|----------|-------------|
254
+ | `GET` | `/api/local-repos` | Returns the local repository index |
255
+ | `GET` | `/api/local-repos/tree?repoId=...&path=...` | Browse a repo's file tree |
197
256
 
198
- ## Localization
257
+ **Safety rules:**
199
258
 
200
- UI strings are stored as per-locale JSON files under `src/locals/<lang>/<lang>.json`,
201
- with a top-level `src/locals/manifest.json` summarizing the set. The following
202
- locales ship by default:
259
+ - Repository IDs map to scanned local repos only
260
+ - Folder browsing is restricted to paths inside the selected repository
261
+ - Path traversal (`..`) is rejected
262
+ - `.git` directories are hidden from listings
263
+ - Default scan root: `~/Code/GitHub` (override with `WAELIO_LOCAL_ROOT`)
203
264
 
204
- `ar`, `de`, `en`, `es`, `fr`, `he`, `id`, `it`, `ru`, `sv`, `tr`, `zh`
265
+ ---
205
266
 
206
- RTL locales (`ar`, `he`) should be considered when adding or editing UI copy.
267
+ ## ๐ŸŒ Localization
207
268
 
208
- ## Local repository discovery
269
+ UI strings live in `src/locals/<lang>/<lang>.json` with a top-level `src/locals/manifest.json`.
209
270
 
210
- The UI and API now scan your local GitHub workspace and build a sanitized repository index.
271
+ Supported locales:
211
272
 
212
- - default local root: `/Users/waelio/Code/GitHub`
213
- - override with `WAELIO_LOCAL_ROOT`
214
- - top-level repositories are included
215
- - nested build/checkouts such as `.build`, `node_modules`, `dist`, and `.git` internals are excluded from discovery
273
+ `ar` ยท `de` ยท `en` ยท `es` ยท `fr` ยท `he` ยท `id` ยท `it` ยท `ru` ยท `sv` ยท `tr` ยท `zh`
216
274
 
217
- ### Local repo API
275
+ > RTL locales (`ar`, `he`) are supported โ€” keep them in mind when editing UI copy.
218
276
 
219
- - `GET /api/local-repos` โ€” returns the compiled local repository list
220
- - `GET /api/local-repos/tree?repoId=...&path=...` โ€” returns a sanitized physical folder listing for a selected local repository
277
+ ---
221
278
 
222
- ### Safety rules
279
+ ## ๐Ÿ“š Related Packages
223
280
 
224
- - repository IDs map to scanned local repos only
225
- - folder browsing is restricted to paths inside the selected repository
226
- - path traversal such as `..` is rejected
227
- - `.git` directories are hidden from the served listing
281
+ | Package | Description |
282
+ |---------|-------------|
283
+ | [`@waelio/utils`](https://www.npmjs.com/package/@waelio/utils) | Shared utilities and UI helpers |
284
+ | [`@waelio/ustore`](https://www.npmjs.com/package/@waelio/ustore) | Universal storage and state patterns |
285
+ | [`@waelio/agent`](https://www.npmjs.com/package/@waelio/agent) | AI agent frontend toolkit |
286
+ | [`@waelio/sync`](https://www.npmjs.com/package/@waelio/sync) | Real-time sync utilities |
228
287
 
229
- ## Notes
288
+ ---
230
289
 
231
- - The default repository URL is `https://github.com/waelio/siteforge.git`.
232
- - A custom workdir can be used when you want a persistent local checkout.
233
- - If `source` is provided, cloning is skipped and the existing checkout is built directly.
290
+ ## ๐Ÿ“„ License
234
291
 
235
- - [https://waelio.com/packages/@waelio/cli](https://waelio.com/packages/@waelio/cli)
292
+ [MIT](./LICENSE) ยฉ [Waelio](https://waelio.com)
package/dist/server.js CHANGED
@@ -263,6 +263,104 @@ async function handleApiRequest(request, response, requestUrl) {
263
263
  await handleWebhookBuild(request, response);
264
264
  return;
265
265
  }
266
+ if (request.method === "GET" && requestUrl.pathname === "/api/negotiate/health") {
267
+ const targetBaseUrl = normalizeNegotiationBaseUrl(requestUrl.searchParams.get("baseUrl"));
268
+ const payload = await requestNegotiationJson({
269
+ baseUrl: targetBaseUrl,
270
+ path: "/health",
271
+ });
272
+ sendJson(response, 200, payload);
273
+ return;
274
+ }
275
+ if (request.method === "POST" && requestUrl.pathname === "/api/negotiate/kickoff") {
276
+ const payload = await readJsonBody(request);
277
+ if (!isRecord(payload)) {
278
+ sendJson(response, 400, { error: "Request body must be a JSON object." });
279
+ return;
280
+ }
281
+ const promptText = normalizeString(payload.promptText);
282
+ const goal = normalizeString(payload.goal);
283
+ if (!promptText || !goal) {
284
+ sendJson(response, 400, { error: "promptText and goal are required." });
285
+ return;
286
+ }
287
+ const targetBaseUrl = normalizeNegotiationBaseUrl(payload.baseUrl);
288
+ const result = await requestNegotiationJson({
289
+ baseUrl: targetBaseUrl,
290
+ path: "/sessions/kickoff",
291
+ method: "POST",
292
+ body: {
293
+ prompt_text: promptText,
294
+ goal,
295
+ current_blocker: normalizeString(payload.currentBlocker) ?? "none",
296
+ next_exact_step: normalizeString(payload.nextExactStep)
297
+ ?? "Submit prompt_b via /sessions/{session_id}/prompts/prompt_b",
298
+ paste_ready_inputs: normalizeString(payload.pasteReadyInputs) ?? "",
299
+ },
300
+ });
301
+ sendJson(response, 200, result);
302
+ return;
303
+ }
304
+ if (request.method === "POST" && requestUrl.pathname === "/api/negotiate/auth") {
305
+ const payload = await readJsonBody(request);
306
+ if (!isRecord(payload)) {
307
+ sendJson(response, 400, { error: "Request body must be a JSON object." });
308
+ return;
309
+ }
310
+ const sessionId = normalizeString(payload.sessionId);
311
+ const sharedSecret = normalizeString(payload.sharedSecret);
312
+ const promptText = normalizeString(payload.promptText);
313
+ const roleCandidate = normalizeString(payload.role);
314
+ const role = roleCandidate === "prompt_a" || roleCandidate === "prompt_b"
315
+ ? roleCandidate
316
+ : null;
317
+ if (!sessionId || !sharedSecret || !promptText || !role) {
318
+ sendJson(response, 400, {
319
+ error: "sessionId, role (prompt_a|prompt_b), sharedSecret, and promptText are required.",
320
+ });
321
+ return;
322
+ }
323
+ const targetBaseUrl = normalizeNegotiationBaseUrl(payload.baseUrl);
324
+ const result = await requestNegotiationJson({
325
+ baseUrl: targetBaseUrl,
326
+ path: `/sessions/${encodeURIComponent(sessionId)}/prompts/${role}`,
327
+ method: "POST",
328
+ body: {
329
+ shared_secret: sharedSecret,
330
+ prompt_text: promptText,
331
+ },
332
+ });
333
+ sendJson(response, 200, result);
334
+ return;
335
+ }
336
+ if (request.method === "GET" && requestUrl.pathname === "/api/negotiate/status") {
337
+ const sessionId = normalizeString(requestUrl.searchParams.get("sessionId"));
338
+ if (!sessionId) {
339
+ sendJson(response, 400, { error: "sessionId query parameter is required." });
340
+ return;
341
+ }
342
+ const targetBaseUrl = normalizeNegotiationBaseUrl(requestUrl.searchParams.get("baseUrl"));
343
+ const result = await requestNegotiationJson({
344
+ baseUrl: targetBaseUrl,
345
+ path: `/sessions/${encodeURIComponent(sessionId)}`,
346
+ });
347
+ sendJson(response, 200, result);
348
+ return;
349
+ }
350
+ if (request.method === "GET" && requestUrl.pathname === "/api/negotiate/handoff") {
351
+ const sessionId = normalizeString(requestUrl.searchParams.get("sessionId"));
352
+ if (!sessionId) {
353
+ sendJson(response, 400, { error: "sessionId query parameter is required." });
354
+ return;
355
+ }
356
+ const targetBaseUrl = normalizeNegotiationBaseUrl(requestUrl.searchParams.get("baseUrl"));
357
+ const result = await requestNegotiationJson({
358
+ baseUrl: targetBaseUrl,
359
+ path: `/sessions/${encodeURIComponent(sessionId)}/handoff`,
360
+ });
361
+ sendJson(response, 200, result);
362
+ return;
363
+ }
266
364
  sendJson(response, 404, {
267
365
  error: `Unknown API route: ${requestUrl.pathname}`,
268
366
  });
@@ -486,6 +584,27 @@ function normalizeBuildOptions(value) {
486
584
  dryRun: value.dryRun === true,
487
585
  };
488
586
  }
587
+ function normalizeNegotiationBaseUrl(value) {
588
+ return normalizeString(value) ?? "http://127.0.0.1:8000";
589
+ }
590
+ async function requestNegotiationJson(options) {
591
+ const targetBaseUrl = normalizeNegotiationBaseUrl(options.baseUrl).replace(/\/+$/, "");
592
+ const targetPath = options.path.startsWith("/") ? options.path : `/${options.path}`;
593
+ const targetUrl = `${targetBaseUrl}${targetPath}`;
594
+ const response = await fetch(targetUrl, {
595
+ method: options.method ?? "GET",
596
+ headers: { "Content-Type": "application/json" },
597
+ body: options.body !== undefined ? JSON.stringify(options.body) : undefined,
598
+ });
599
+ const payload = (await response.json().catch(() => ({})));
600
+ if (!response.ok) {
601
+ const detail = typeof payload.detail === "string"
602
+ ? payload.detail
603
+ : `Negotiation API returned ${response.status}.`;
604
+ throw new Error(detail);
605
+ }
606
+ return payload;
607
+ }
489
608
  async function readJsonBody(request) {
490
609
  const chunks = [];
491
610
  for await (const chunk of request) {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@waelio/cli",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "CLI for building the waelio/siteforge website",
5
5
  "author": "Waelio <waelio@waelio.com> (https://waelio.com)",
6
6
  "homepage": "https://github.com/waelio/cli#readme",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/waelio/cli.git"
9
+ "url": "git+https://github.com/waelio/cli.git"
10
10
  },
11
11
  "bugs": {
12
12
  "url": "https://github.com/waelio/cli/issues"
@@ -0,0 +1 @@
1
+ .app-main[data-v-6f3bc53e]{color:var(--fg);grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1rem;padding:1.5rem;display:grid}.group[data-v-6f3bc53e]{border:1px solid var(--fg);border-radius:.5rem;padding:1rem}.group.wide[data-v-6f3bc53e]{grid-column:1/-1}.group-title[data-v-6f3bc53e]{margin:0 0 .5rem;font-size:1rem;font-weight:600}.group-caption[data-v-6f3bc53e]{opacity:.8;margin:0 0 .75rem;font-size:.9rem}.field[data-v-6f3bc53e]{flex-direction:column;gap:.35rem;margin-bottom:.7rem;display:flex}.field input[data-v-6f3bc53e],.field textarea[data-v-6f3bc53e],.field select[data-v-6f3bc53e]{box-sizing:border-box;border:1px solid var(--fg);width:100%;color:var(--fg);font:inherit;background:0 0;border-radius:.375rem;padding:.45rem .6rem}.actions[data-v-6f3bc53e]{flex-wrap:wrap;gap:.6rem;display:flex}.btn[data-v-6f3bc53e]{border:1px solid var(--fg);color:var(--fg);font:inherit;cursor:pointer;background:0 0;border-radius:.375rem;padding:.5rem .85rem}.btn[data-v-6f3bc53e]:disabled{opacity:.5;cursor:not-allowed}.preview[data-v-6f3bc53e]{border:1px solid var(--fg);white-space:pre-wrap;word-break:break-word;border-radius:.375rem;max-height:20rem;margin:0;padding:.75rem;font-size:.82rem;overflow:auto}.preview.error[data-v-6f3bc53e]{color:#ef4444;border-color:#ef4444}
@@ -0,0 +1 @@
1
+ import{C as e,G as t,a as n,d as r,g as i,i as a,o,s,t as c,x as l}from"./_plugin-vue_export-helper-BAgBgQXh.js";import{n as u,t as d}from"./index-BvnYOcQT.js";var f={class:`app-main`},p={class:`group wide`},m={class:`field`},h={class:`group`},g={class:`field`},_={class:`field`},v={class:`field`},y={class:`field`},b=[`disabled`],x={class:`group`},S={class:`field`},C={class:`field`},w={class:`field`},T={class:`field`},E=[`disabled`],D={class:`group`},ee={class:`actions`},te=[`disabled`],ne=[`disabled`],re={key:0,class:`group`},ie={class:`preview error`},ae={key:1,class:`group`},O={class:`preview`},k={key:2,class:`group`},A={class:`preview`},j={key:3,class:`group`},M={class:`preview`},N=c(r({__name:`NegotiationView`,setup(r){let c=e(`http://127.0.0.1:8000`),N=e(`Prompt A opens with proposal terms.`),P=e(`Reach agreement on scope, budget, and timeline`),F=e(`Awaiting prompt_b response`),I=e(`Submit prompt_b via /sessions/{session_id}/prompts/prompt_b`),L=e(``),R=e(``),z=e(`prompt_b`),B=e(`Prompt B responds with a counter-offer.`),V=e(``),H=e(``),U=e(``),W=e(!1),G=e(``),K=a(()=>N.value.trim()&&P.value.trim()),q=a(()=>L.value.trim()&&R.value.trim()&&B.value.trim()&&z.value),J=a(()=>L.value.trim());function Y(e){return JSON.stringify(e,null,2)}function X(){G.value=``}async function Z(e,t=`GET`,n){let r=await fetch(e,{method:t,headers:{"Content-Type":`application/json`},body:n?JSON.stringify(n):void 0}),i=await r.json().catch(()=>({}));if(!r.ok)throw Error(i.error??i.detail??`Request failed (${r.status})`);return i}async function oe(){if(K.value){W.value=!0,X();try{let e=await Z(`/api/negotiate/kickoff`,`POST`,{baseUrl:c.value,promptText:N.value,goal:P.value,currentBlocker:F.value,nextExactStep:I.value,pasteReadyInputs:``});L.value=e.session_id??``,R.value=e.shared_secret??``,U.value=Y(e),await Q(),await $()}catch(e){G.value=e.message}finally{W.value=!1}}}async function se(){if(q.value){W.value=!0,X();try{U.value=Y(await Z(`/api/negotiate/auth`,`POST`,{baseUrl:c.value,sessionId:L.value,role:z.value,sharedSecret:R.value,promptText:B.value})),await Q(),await $()}catch(e){G.value=e.message}finally{W.value=!1}}}async function Q(){if(J.value){X();try{V.value=Y(await Z(`/api/negotiate/status?${new URLSearchParams({baseUrl:c.value,sessionId:L.value}).toString()}`))}catch(e){G.value=e.message}}}async function $(){if(J.value){X();try{H.value=Y(await Z(`/api/negotiate/handoff?${new URLSearchParams({baseUrl:c.value,sessionId:L.value}).toString()}`))}catch(e){G.value=e.message}}}return(e,r)=>(i(),s(`main`,f,[n(`section`,p,[r[10]||=n(`h2`,{class:`group-title`},`Negotiation Workspace`,-1),r[11]||=n(`p`,{class:`group-caption`},` Run a full 2-AI session (kickoff โ†’ prompt auth โ†’ status โ†’ handoff) from this page. `,-1),n(`label`,m,[r[9]||=n(`span`,null,`Negotiation API base URL`,-1),l(n(`input`,{"onUpdate:modelValue":r[0]||=e=>c.value=e,type:`text`,autocomplete:`off`},null,512),[[u,c.value]])])]),n(`section`,h,[r[16]||=n(`h3`,{class:`group-title`},`1) Kickoff (Prompt A)`,-1),n(`label`,g,[r[12]||=n(`span`,null,`Prompt A text`,-1),l(n(`textarea`,{"onUpdate:modelValue":r[1]||=e=>N.value=e,rows:`4`},null,512),[[u,N.value]])]),n(`label`,_,[r[13]||=n(`span`,null,`Goal`,-1),l(n(`input`,{"onUpdate:modelValue":r[2]||=e=>P.value=e,type:`text`,autocomplete:`off`},null,512),[[u,P.value]])]),n(`label`,v,[r[14]||=n(`span`,null,`Current blocker`,-1),l(n(`input`,{"onUpdate:modelValue":r[3]||=e=>F.value=e,type:`text`,autocomplete:`off`},null,512),[[u,F.value]])]),n(`label`,y,[r[15]||=n(`span`,null,`Next exact step`,-1),l(n(`input`,{"onUpdate:modelValue":r[4]||=e=>I.value=e,type:`text`,autocomplete:`off`},null,512),[[u,I.value]])]),n(`button`,{type:`button`,class:`btn`,disabled:W.value||!K.value,onClick:oe},t(W.value?`Working...`:`Kickoff session`),9,b)]),n(`section`,x,[r[22]||=n(`h3`,{class:`group-title`},`2) Authenticate Prompt`,-1),n(`label`,S,[r[17]||=n(`span`,null,`Session ID`,-1),l(n(`input`,{"onUpdate:modelValue":r[5]||=e=>L.value=e,type:`text`,autocomplete:`off`},null,512),[[u,L.value]])]),n(`label`,C,[r[18]||=n(`span`,null,`Shared secret`,-1),l(n(`input`,{"onUpdate:modelValue":r[6]||=e=>R.value=e,type:`text`,autocomplete:`off`},null,512),[[u,R.value]])]),n(`label`,w,[r[20]||=n(`span`,null,`Role`,-1),l(n(`select`,{"onUpdate:modelValue":r[7]||=e=>z.value=e},[...r[19]||=[n(`option`,{value:`prompt_a`},`prompt_a`,-1),n(`option`,{value:`prompt_b`},`prompt_b`,-1)]],512),[[d,z.value]])]),n(`label`,T,[r[21]||=n(`span`,null,`Prompt text`,-1),l(n(`textarea`,{"onUpdate:modelValue":r[8]||=e=>B.value=e,rows:`4`},null,512),[[u,B.value]])]),n(`button`,{type:`button`,class:`btn`,disabled:W.value||!q.value,onClick:se},` Authenticate role `,8,E)]),n(`section`,D,[r[23]||=n(`h3`,{class:`group-title`},`3) Inspect Session`,-1),n(`div`,ee,[n(`button`,{type:`button`,class:`btn`,disabled:!J.value,onClick:Q},` Refresh status `,8,te),n(`button`,{type:`button`,class:`btn`,disabled:!J.value,onClick:$},` Refresh handoff `,8,ne)])]),G.value?(i(),s(`section`,re,[r[24]||=n(`h3`,{class:`group-title`},`Error`,-1),n(`pre`,ie,t(G.value),1)])):o(``,!0),U.value?(i(),s(`section`,ae,[r[25]||=n(`h3`,{class:`group-title`},`Last response`,-1),n(`pre`,O,t(U.value),1)])):o(``,!0),V.value?(i(),s(`section`,k,[r[26]||=n(`h3`,{class:`group-title`},`Session status`,-1),n(`pre`,A,t(V.value),1)])):o(``,!0),H.value?(i(),s(`section`,j,[r[27]||=n(`h3`,{class:`group-title`},`Handoff`,-1),n(`pre`,M,t(H.value),1)])):o(``,!0)]))}}),[[`__scopeId`,`data-v-6f3bc53e`]]);export{N as default};
@@ -0,0 +1 @@
1
+ import{C as e,G as t,W as n,a as r,d as i,g as a,h as o,n as s,s as c,t as l,v as u}from"./_plugin-vue_export-helper-BAgBgQXh.js";var d={class:`app-main`},f={class:`group`},p={class:`group-head`},m=[`disabled`],h={class:`summary-row`},g={class:`pill`},_={class:`pill`},v={key:0,class:`status-msg`},y={key:1,class:`error-msg`},b={key:2,class:`site-list`},x=[`href`],S={class:`site-state`},C={key:3,class:`status-msg`},w=l(i({__name:`PublicSitesView`,setup(i){let l=e([]),w=e(``),T=e(!0),E=e(`checking`),D=e({});function O(e){let t={};for(let n of e)t[n]=`checking`;D.value=t}async function k(e){try{let t=await fetch(`/public-sites/${encodeURIComponent(e)}/`,{cache:`no-store`,redirect:`manual`});D.value[e]=t.ok||t.status===302?`online`:`offline`}catch{D.value[e]=`offline`}}let A=()=>Object.values(D.value).filter(e=>e===`online`).length;async function j(){T.value=!0,w.value=``,E.value=`checking`;try{let e=await fetch(`/api/public-sites`,{cache:`no-store`});if(!e.ok)throw Error(`Error: ${e.status}`);E.value=`online`;let t=(await e.json()).sites||[];l.value=t,O(t),await Promise.all(t.map(e=>k(e)))}catch(e){E.value=`offline`,w.value=e.message||`Failed to load public sites`}finally{T.value=!1}}return o(j),(e,i)=>(a(),c(`main`,d,[r(`section`,f,[r(`div`,p,[i[0]||=r(`h2`,{class:`group-title`},`Public Sites`,-1),r(`button`,{type:`button`,class:`refresh-btn`,disabled:T.value,onClick:j},t(T.value?`Refreshing...`:`Refresh`),9,m)]),r(`div`,h,[r(`span`,{class:n([`pill`,`is-${E.value}`])},` Service: `+t(E.value),3),r(`span`,g,` Sites: `+t(l.value.length),1),r(`span`,_,` Online: `+t(A()),1)]),T.value?(a(),c(`div`,v,`Loading...`)):w.value?(a(),c(`div`,y,t(w.value),1)):l.value.length>0?(a(),c(`ul`,b,[(a(!0),c(s,null,u(l.value,e=>(a(),c(`li`,{key:e,class:`site-item`},[r(`span`,{class:n([`site-dot`,`is-${D.value[e]||`checking`}`])},null,2),r(`a`,{href:`/public-sites/${e}/`,target:`_blank`,class:`site-link`},t(e),9,x),r(`span`,S,t(D.value[e]||`checking`),1)]))),128))])):(a(),c(`div`,C,`No public sites found.`))])]))}}),[[`__scopeId`,`data-v-e1932d17`]]);export{w as default};
@@ -0,0 +1 @@
1
+ function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ee=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),te=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ne=/-\w/g,T=te(e=>e.replace(ne,e=>e.slice(1).toUpperCase())),re=/\B([A-Z])/g,E=te(e=>e.replace(re,`-$1`).toLowerCase()),ie=te(e=>e.charAt(0).toUpperCase()+e.slice(1)),ae=te(e=>e?`on${ie(e)}`:``),D=(e,t)=>!Object.is(e,t),oe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},O=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},se=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ce,le=()=>ce||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ue(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=g(r)?me(r):ue(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(g(e)||v(e))return e}var de=/;(?![^(]*\))/g,fe=/:([^]+)/,pe=/\/\*[^]*?\*\//g;function me(e){let t={};return e.replace(pe,``).split(de).forEach(e=>{if(e){let n=e.split(fe);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function k(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=k(e[n]);r&&(t+=r+` `)}else if(v(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var he=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,ge=e(he);he+``;function _e(e){return!!e||e===``}function ve(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ye(e[r],t[r]);return n}function ye(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=_(e),r=_(t),n||r)return e===t;if(n=d(e),r=d(t),n||r)return n&&r?ve(e,t):!1;if(n=v(e),r=v(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!ye(e[n],t[n]))return!1}}return String(e)===String(t)}function be(e,t){return e.findIndex(e=>ye(e,t))}var xe=e=>!!(e&&e.__v_isRef===!0),Se=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?xe(e)?Se(e.value):JSON.stringify(e,Ce,2):String(e),Ce=(e,t)=>xe(t)?Ce(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[we(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>we(e))}:_(t)?we(t):v(t)&&!d(t)&&!C(t)?String(t):t,we=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,A,Te=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&A&&(A.active?(this.parent=A,this.index=(A.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=A;try{return A=this,e()}finally{A=t}}}on(){++this._on===1&&(this.prevScope=A,A=this)}off(){if(this._on>0&&--this._on===0){if(A===this)A=this.prevScope;else{let e=A;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Ee(){return A}var j,De=new WeakSet,Oe=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,A&&(A.active?A.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,De.has(this)&&(De.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Me(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ue(this),Fe(this);let e=j,t=M;j=this,M=!0;try{return this.fn()}finally{Ie(this),j=e,M=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)ze(e);this.deps=this.depsTail=void 0,Ue(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?De.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Le(this)&&this.run()}get dirty(){return Le(this)}},ke=0,Ae,je;function Me(e,t=!1){if(e.flags|=8,t){e.next=je,je=e;return}e.next=Ae,Ae=e}function Ne(){ke++}function Pe(){if(--ke>0)return;if(je){let e=je;for(je=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ae;){let t=Ae;for(Ae=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Fe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ie(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),ze(r),Be(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Le(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Re(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Re(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===We)||(e.globalVersion=We,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Le(e))))return;e.flags|=2;let t=e.dep,n=j,r=M;j=e,M=!0;try{Fe(e);let n=e.fn(e._value);(t.version===0||D(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{j=n,M=r,Ie(e),e.flags&=-3}}function ze(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ze(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Be(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var M=!0,Ve=[];function He(){Ve.push(M),M=!1}function N(){let e=Ve.pop();M=e===void 0?!0:e}function Ue(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=j;j=void 0;try{t()}finally{j=e}}}var We=0,Ge=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Ke=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!j||!M||j===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==j)t=this.activeLink=new Ge(j,this),j.deps?(t.prevDep=j.depsTail,j.depsTail.nextDep=t,j.depsTail=t):j.deps=j.depsTail=t,qe(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=j.depsTail,t.nextDep=void 0,j.depsTail.nextDep=t,j.depsTail=t,j.deps===t&&(j.deps=e)}return t}trigger(e){this.version++,We++,this.notify(e)}notify(e){Ne();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Pe()}}};function qe(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)qe(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Je=new WeakMap,Ye=Symbol(``),Xe=Symbol(``),Ze=Symbol(``);function P(e,t,n){if(M&&j){let t=Je.get(e);t||Je.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Ke),r.map=t,r.key=n),r.track()}}function F(e,t,n,r,i,a){let o=Je.get(e);if(!o){We++;return}let s=e=>{e&&e.trigger()};if(Ne(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Ze||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Ze)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Ye)),f(e)&&s(o.get(Xe)));break;case`delete`:i||(s(o.get(Ye)),f(e)&&s(o.get(Xe)));break;case`set`:f(e)&&s(o.get(Ye));break}}Pe()}function Qe(e){let t=z(e);return t===e?t:(P(t,`iterate`,Ze),R(e)?t:t.map(B))}function $e(e){return P(e=z(e),`iterate`,Ze),e}function I(e,t){return Ft(e)?Rt(Pt(e)?B(t):t):B(t)}var et={__proto__:null,[Symbol.iterator](){return tt(this,Symbol.iterator,e=>I(this,e))},concat(...e){return Qe(this).concat(...e.map(e=>d(e)?Qe(e):e))},entries(){return tt(this,`entries`,e=>(e[1]=I(this,e[1]),e))},every(e,t){return L(this,`every`,e,t,void 0,arguments)},filter(e,t){return L(this,`filter`,e,t,e=>e.map(e=>I(this,e)),arguments)},find(e,t){return L(this,`find`,e,t,e=>I(this,e),arguments)},findIndex(e,t){return L(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return L(this,`findLast`,e,t,e=>I(this,e),arguments)},findLastIndex(e,t){return L(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return L(this,`forEach`,e,t,void 0,arguments)},includes(...e){return it(this,`includes`,e)},indexOf(...e){return it(this,`indexOf`,e)},join(e){return Qe(this).join(e)},lastIndexOf(...e){return it(this,`lastIndexOf`,e)},map(e,t){return L(this,`map`,e,t,void 0,arguments)},pop(){return at(this,`pop`)},push(...e){return at(this,`push`,e)},reduce(e,...t){return rt(this,`reduce`,e,t)},reduceRight(e,...t){return rt(this,`reduceRight`,e,t)},shift(){return at(this,`shift`)},some(e,t){return L(this,`some`,e,t,void 0,arguments)},splice(...e){return at(this,`splice`,e)},toReversed(){return Qe(this).toReversed()},toSorted(e){return Qe(this).toSorted(e)},toSpliced(...e){return Qe(this).toSpliced(...e)},unshift(...e){return at(this,`unshift`,e)},values(){return tt(this,`values`,e=>I(this,e))}};function tt(e,t,n){let r=$e(e),i=r[t]();return r!==e&&!R(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var nt=Array.prototype;function L(e,t,n,r,i,a){let o=$e(e),s=o!==e&&!R(e),c=o[t];if(c!==nt[t]){let t=c.apply(e,a);return s?B(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,I(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function rt(e,t,n,r){let i=$e(e),a=i!==e&&!R(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=I(e,t)),n.call(this,t,I(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?I(e,c):c}function it(e,t,n){let r=z(e);P(r,`iterate`,Ze);let i=r[t](...n);return(i===-1||i===!1)&&It(n[0])?(n[0]=z(n[0]),r[t](...n)):i}function at(e,t,n=[]){He(),Ne();let r=z(e)[t].apply(e,n);return Pe(),N(),r}var ot=e(`__proto__,__v_isRef,__isVue`),st=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function ct(e){_(e)||(e=String(e));let t=z(this);return P(t,`has`,e),t.hasOwnProperty(e)}var lt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Dt:Et:i?Tt:wt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=et[t]))return e;if(t===`hasOwnProperty`)return ct}let o=Reflect.get(e,t,V(e)?e:n);if((_(t)?st.has(t):ot(t))||(r||P(e,`get`,t),i))return o;if(V(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?Mt(e):e}return v(o)?r?Mt(o):At(o):o}},ut=class extends lt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Ft(i);if(!R(n)&&!Ft(n)&&(i=z(i),n=z(n)),!a&&V(i)&&!V(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,V(e)?e:r);return e===z(r)&&(o?D(n,i)&&F(e,`set`,t,n,i):F(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&F(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!_(t)||!st.has(t))&&P(e,`has`,t),n}ownKeys(e){return P(e,`iterate`,d(e)?`length`:Ye),Reflect.ownKeys(e)}},dt=class extends lt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ft=new ut,pt=new dt,mt=new ut(!0),ht=e=>e,gt=e=>Reflect.getPrototypeOf(e);function _t(e,t,n){return function(...r){let i=this.__v_raw,a=z(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?ht:t?Rt:B;return!t&&P(a,`iterate`,l?Xe:Ye),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function vt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function yt(e,t){let n={get(n){let r=this.__v_raw,i=z(r),a=z(n);e||(D(n,a)&&P(i,`get`,n),P(i,`get`,a));let{has:o}=gt(i),s=t?ht:e?Rt:B;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&P(z(t),`iterate`,Ye),t.size},has(t){let n=this.__v_raw,r=z(n),i=z(t);return e||(D(t,i)&&P(r,`has`,t),P(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=z(a),s=t?ht:e?Rt:B;return!e&&P(o,`iterate`,Ye),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:vt(`add`),set:vt(`set`),delete:vt(`delete`),clear:vt(`clear`)}:{add(e){let n=z(this),r=gt(n),i=z(e),a=!t&&!R(e)&&!Ft(e)?i:e;return r.has.call(n,a)||D(e,a)&&r.has.call(n,e)||D(i,a)&&r.has.call(n,i)||(n.add(a),F(n,`add`,a,a)),this},set(e,n){!t&&!R(n)&&!Ft(n)&&(n=z(n));let r=z(this),{has:i,get:a}=gt(r),o=i.call(r,e);o||=(e=z(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?D(n,s)&&F(r,`set`,e,n,s):F(r,`add`,e,n),this},delete(e){let t=z(this),{has:n,get:r}=gt(t),i=n.call(t,e);i||=(e=z(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&F(t,`delete`,e,void 0,a),o},clear(){let e=z(this),t=e.size!==0,n=e.clear();return t&&F(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=_t(r,e,t)}),n}function bt(e,t){let n=yt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var xt={get:bt(!1,!1)},St={get:bt(!1,!0)},Ct={get:bt(!0,!1)},wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap,Dt=new WeakMap;function Ot(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function kt(e){return e.__v_skip||!Object.isExtensible(e)?0:Ot(S(e))}function At(e){return Ft(e)?e:Nt(e,!1,ft,xt,wt)}function jt(e){return Nt(e,!1,mt,St,Tt)}function Mt(e){return Nt(e,!0,pt,Ct,Et)}function Nt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=kt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Pt(e){return Ft(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function R(e){return!!(e&&e.__v_isShallow)}function It(e){return e?!!e.__v_raw:!1}function z(e){let t=e&&e.__v_raw;return t?z(t):e}function Lt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&O(e,`__v_skip`,!0),e}var B=e=>v(e)?At(e):e,Rt=e=>v(e)?Mt(e):e;function V(e){return e?e.__v_isRef===!0:!1}function zt(e){return Vt(e,!1)}function Bt(e){return Vt(e,!0)}function Vt(e,t){return V(e)?e:new Ht(e,t)}var Ht=class{constructor(e,t){this.dep=new Ke,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:z(e),this._value=t?e:B(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||R(e)||Ft(e);e=n?e:z(e),D(e,t)&&(this._rawValue=e,this._value=n?e:B(e),this.dep.trigger())}};function Ut(e){return V(e)?e.value:e}var Wt={get:(e,t,n)=>t===`__v_raw`?e:Ut(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return V(i)&&!V(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Gt(e){return Pt(e)?e:new Proxy(e,Wt)}var Kt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ke(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=We-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&j!==this)return Me(this,!0),!0}get value(){let e=this.dep.track();return Re(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function qt(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new Kt(r,i,n)}var Jt={},Yt=new WeakMap,Xt=void 0;function Zt(e,t=!1,n=Xt){if(n){let t=Yt.get(n);t||Yt.set(n,t=[]),t.push(e)}}function Qt(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:R(e)||o===!1||o===0?$t(e,1):$t(e),m,g,_,v,y=!1,b=!1;if(V(e)?(g=()=>e.value,y=R(e)):Pt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Pt(e)||R(e)),g=()=>e.map(e=>{if(V(e))return e.value;if(Pt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){He();try{_()}finally{N()}}let t=Xt;Xt=m;try{return f?f(e,3,[v]):e(v)}finally{Xt=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>$t(e(),t)}let x=Ee(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{e(...t),S()}}let C=b?Array(e.length).fill(Jt):Jt,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let e=m.run();if(o||y||(b?e.some((e,t)=>D(e,C[t])):D(e,C))){_&&_();let t=Xt;Xt=m;try{let t=[e,C===Jt?void 0:b&&C[0]===Jt?[]:C,v];C=e,f?f(n,3,t):n(...t)}finally{Xt=t}}}else m.run()};return u&&u(w),m=new Oe(g),m.scheduler=l?()=>l(w,!1):w,v=e=>Zt(e,!1,m),_=m.onStop=()=>{let e=Yt.get(m);if(e){if(f)f(e,4);else for(let t of e)t();Yt.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function $t(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,V(e))$t(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)$t(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{$t(e,t,n)});else if(C(e)){for(let r in e)$t(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$t(e[r],t,n)}return e}function en(e,t,n,r){try{return r?e(...r):e()}catch(e){tn(e,t,n)}}function H(e,t,n,r){if(h(e)){let i=en(e,t,n,r);return i&&y(i)&&i.catch(e=>{tn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a<e.length;a++)i.push(H(e[a],t,n,r));return i}}function tn(e,n,r,i=!0){let a=n?n.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=n&&n.appContext.config||t;if(n){let t=n.parent,i=n.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;t;){let n=t.ec;if(n){for(let t=0;t<n.length;t++)if(n[t](e,i,a)===!1)return}t=t.parent}if(o){He(),en(o,null,10,[e,i,a]),N();return}}nn(e,r,a,i,s)}function nn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var U=[],W=-1,rn=[],an=null,on=0,sn=Promise.resolve(),cn=null;function ln(e){let t=cn||sn;return e?t.then(this?e.bind(this):e):t}function un(e){let t=W+1,n=U.length;for(;t<n;){let r=t+n>>>1,i=U[r],a=gn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function dn(e){if(!(e.flags&1)){let t=gn(e),n=U[U.length-1];!n||!(e.flags&2)&&t>=gn(n)?U.push(e):U.splice(un(t),0,e),e.flags|=1,fn()}}function fn(){cn||=sn.then(_n)}function pn(e){d(e)?rn.push(...e):an&&e.id===-1?an.splice(on+1,0,e):e.flags&1||(rn.push(e),e.flags|=1),fn()}function mn(e,t,n=W+1){for(;n<U.length;n++){let t=U[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;U.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function hn(e){if(rn.length){let e=[...new Set(rn)].sort((e,t)=>gn(e)-gn(t));if(rn.length=0,an){an.push(...e);return}for(an=e,on=0;on<an.length;on++){let e=an[on];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}an=null,on=0}}var gn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function _n(e){try{for(W=0;W<U.length;W++){let e=U[W];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),en(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;W<U.length;W++){let e=U[W];e&&(e.flags&=-2)}W=-1,U.length=0,hn(e),cn=null,(U.length||rn.length)&&_n(e)}}var G=null,vn=null;function yn(e){let t=G;return G=e,vn=e&&e.type.__scopeId||null,t}function bn(e,t=G,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Ti(-1);let i=yn(t),a;try{a=e(...n)}finally{yn(i),r._d&&Ti(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function xn(e,n){if(G===null)return e;let r=oa(G),i=e.dirs||=[];for(let e=0;e<n.length;e++){let[a,o,s,c=t]=n[e];a&&(h(a)&&(a={mounted:a,updated:a}),a.deep&&$t(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Sn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(He(),H(c,n,8,[e.el,s,e,t]),N())}}function Cn(e,t){if($){let n=$.provides,r=$.parent&&$.parent.provides;r===n&&(n=$.provides=Object.create(r)),n[e]=t}}function wn(e,t,n=!1){let r=Gi();if(r||kr){let i=kr?kr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&h(t)?t.call(r&&r.proxy):t}}var Tn=Symbol.for(`v-scx`),En=()=>wn(Tn);function Dn(e,t,n){return On(e,t,n)}function On(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(Zi){if(c===`sync`){let e=En();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=$;u.call=(e,t,n)=>H(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{q(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():dn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=Qt(e,n,u);return Zi&&(f?f.push(h):d&&h()),h}function kn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?An(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=Ji(this),s=On(i,a.bind(r),n);return o(),s}function An(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var jn=Symbol(`_vte`),Mn=e=>e.__isTeleport,Nn=Symbol(`_leaveCb`);function Pn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Pn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fn(e,t){return h(e)?s({name:e.name},t,{setup:e}):e}function In(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function Ln(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Rn=new WeakMap;function zn(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>zn(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Vn(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&zn(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?oa(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=z(v),b=v===t?i:e=>Ln(_,e)?!1:u(y,e),x=(e,t)=>!(t&&Ln(_,t));if(m!=null&&m!==p){if(Bn(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(V(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))en(p,f,12,[l,_]);else{let t=g(p),n=V(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),Rn.delete(e)};t.id=-1,Rn.set(e,t),q(t,r)}else Bn(e),i()}}}function Bn(e){let t=Rn.get(e);t&&(t.flags|=8,Rn.delete(e))}le().requestIdleCallback,le().cancelIdleCallback;var Vn=e=>!!e.type.__asyncLoader,Hn=e=>e.type.__isKeepAlive;function Un(e,t){Gn(e,`a`,t)}function Wn(e,t){Gn(e,`da`,t)}function Gn(e,t,n=$){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(qn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Hn(e.parent.vnode)&&Kn(r,t,n,e),e=e.parent}}function Kn(e,t,n,r){let i=qn(t,e,r,!0);er(()=>{c(r[t],i)},n)}function qn(e,t,n=$,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{He();let i=Ji(n),a=H(t,n,e,r);return i(),N(),a};return r?i.unshift(a):i.push(a),a}}var Jn=e=>(t,n=$)=>{(!Zi||e===`sp`)&&qn(e,(...e)=>t(...e),n)},Yn=Jn(`bm`),Xn=Jn(`m`),Zn=Jn(`bu`),Qn=Jn(`u`),$n=Jn(`bum`),er=Jn(`um`),tr=Jn(`sp`),nr=Jn(`rtg`),rr=Jn(`rtc`);function ir(e,t=$){qn(`ec`,e,t)}var ar=Symbol.for(`v-ndc`);function or(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Pt(e),r=!1,s=!1;n&&(r=!R(e),s=Ft(e),e=$e(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Rt(B(e[n])):B(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(v(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}var sr=e=>e?Xi(e)?oa(e):sr(e.parent):null,cr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>sr(e.parent),$root:e=>sr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>_r(e),$forceUpdate:e=>e.f||=()=>{dn(e.update)},$nextTick:e=>e.n||=ln.bind(e.proxy),$watch:e=>kn.bind(e)}),lr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),ur={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(lr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else fr&&(s[n]=0)}let d=cr[n],f,p;if(d)return n===`$attrs`&&P(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return lr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||lr(n,c)||u(o,c)||u(i,c)||u(cr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function dr(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var fr=!0;function pr(e){let t=_r(e),n=e.proxy,i=e.ctx;fr=!1,t.beforeCreate&&hr(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:ee,renderTracked:te,renderTriggered:ne,errorCaptured:T,serverPrefetch:re,expose:E,inheritAttrs:ie,components:ae,directives:D,filters:oe}=t;if(u&&mr(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=At(t))}if(fr=!0,o)for(let e in o){let t=o[e],a=ca({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)gr(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Cn(t,e[t])})}f&&hr(f,e,`c`);function O(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(O(Yn,p),O(Xn,m),O(Zn,g),O(Qn,_),O(Un,y),O(Wn,b),O(ir,T),O(rr,te),O(nr,ne),O($n,S),O(er,w),O(tr,re),d(E))if(E.length){let t=e.exposed||={};E.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};ee&&e.render===r&&(e.render=ee),ie!=null&&(e.inheritAttrs=ie),ae&&(e.components=ae),D&&(e.directives=D),re&&In(e)}function mr(e,t,n=r){d(e)&&(e=Sr(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?wn(r.from||n,r.default,!0):wn(r.from||n):wn(r),V(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function hr(e,t,n){H(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function gr(e,t,n,r){let i=r.includes(`.`)?An(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&Dn(i,n)}else if(h(e))Dn(i,e.bind(n));else if(v(e))if(d(e))e.forEach(e=>gr(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&Dn(i,r,e)}}function _r(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>vr(c,e,o,!0)),vr(c,t,o)),v(t)&&a.set(t,c),c}function vr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&vr(e,a,n,!0),i&&i.forEach(t=>vr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=yr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var yr={data:br,props:wr,emits:wr,methods:Cr,computed:Cr,beforeCreate:K,created:K,beforeMount:K,mounted:K,beforeUpdate:K,updated:K,beforeDestroy:K,beforeUnmount:K,destroyed:K,unmounted:K,activated:K,deactivated:K,errorCaptured:K,serverPrefetch:K,components:Cr,directives:Cr,watch:Tr,provide:br,inject:xr};function br(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function xr(e,t){return Cr(Sr(e),Sr(t))}function Sr(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function K(e,t){return e?[...new Set([].concat(e,t))]:t}function Cr(e,t){return e?s(Object.create(null),e,t):t}function wr(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:s(Object.create(null),dr(e),dr(t??{})):t}function Tr(e,t){if(!e)return t;if(!t)return e;let n=s(Object.create(null),e);for(let r in t)n[r]=K(e[r],t[r]);return n}function Er(){return{app:null,config:{isNativeTag:i,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Dr=0;function Or(e,t){return function(n,r=null){h(n)||(n=s({},n)),r!=null&&!v(r)&&(r=null);let i=Er(),a=new WeakSet,o=[],c=!1,l=i.app={_uid:Dr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:ua,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&h(e.install)?(a.add(e),e.install(l,...t)):h(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,s){if(!c){let u=l._ceVNode||X(n,r);return u.appContext=i,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(u,a):e(u,a,s),c=!0,l._container=a,a.__vue_app__=l,oa(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&(H(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=kr;kr=l;try{return e()}finally{kr=t}}};return l}}var kr=null,Ar=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${T(t)}Modifiers`]||e[`${E(t)}Modifiers`];function jr(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&Ar(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(se)));let c,l=i[c=ae(n)]||i[c=ae(T(n))];!l&&o&&(l=i[c=ae(E(n))]),l&&H(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,H(u,e,6,a)}}var Mr=new WeakMap;function Nr(e,t,n=!1){let r=n?Mr:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=Nr(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Pr(e,t){return!e||!a(t)?!1:(t=t.slice(2).replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,E(t))||u(e,t))}function Fr(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=yn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Z(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Z(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:Ir(c)}}catch(t){xi.length=0,tn(t,e,1),v=X(yi)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Lr(y,a)),b=Ii(b,y,!1,!0))}return n.dirs&&(b=Ii(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Pn(b,n.transition),v=b,yn(_),v}var Ir=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Lr=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Rr(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?zr(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Br(o,r,n)&&!Pr(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?zr(r,o,l):!0:!!o;return!1}function zr(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Br(t,e,a)&&!Pr(n,a))return!0}return!1}function Br(e,t,n){let r=e[n],i=t[n];return n===`style`&&v(r)&&v(i)?!ye(r,i):r!==i}function Vr({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var Hr={},Ur=()=>Object.create(Hr),Wr=e=>Object.getPrototypeOf(e)===Hr;function Gr(e,t,n,r=!1){let i={},a=Ur();e.propsDefaults=Object.create(null),qr(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:jt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Kr(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=z(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Pr(e.emitsOptions,o))continue;let d=t[o];if(c)if(u(a,o))d!==a[o]&&(a[o]=d,l=!0);else{let t=T(o);i[t]=Jr(c,s,t,d,e,!1)}else d!==a[o]&&(a[o]=d,l=!0)}}}else{qr(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=E(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Jr(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!u(t,e))&&(delete a[e],l=!0)}l&&F(e.attrs,`set`,``)}function qr(e,n,r,i){let[a,o]=e.propsOptions,s=!1,c;if(n)for(let t in n){if(ee(t))continue;let l=n[t],d;a&&u(a,d=T(t))?!o||!o.includes(d)?r[d]=l:(c||={})[d]=l:Pr(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=z(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=Jr(a,n,s,i[s],e,!u(i,s))}}return s}function Jr(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=u(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&h(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Ji(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===E(n))&&(r=!0))}return r}var Yr=new WeakMap;function Xr(e,r,i=!1){let a=i?Yr:r.propsCache,o=a.get(e);if(o)return o;let c=e.props,l={},f=[],p=!1;if(!h(e)){let t=e=>{p=!0;let[t,n]=Xr(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;e<c.length;e++){let n=T(c[e]);Zr(n)&&(l[n]=t)}else if(c)for(let e in c){let t=T(e);if(Zr(t)){let n=c[e],r=l[t]=d(n)||h(n)?{type:n}:s({},n),i=r.type,a=!1,o=!0;if(d(i))for(let e=0;e<i.length;++e){let t=i[e],n=h(t)&&t.name;if(n===`Boolean`){a=!0;break}else n===`String`&&(o=!1)}else a=h(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||u(r,`default`))&&f.push(t)}}let m=[l,f];return v(e)&&a.set(e,m),m}function Zr(e){return e[0]!==`$`&&!ee(e)}var Qr=e=>e===`_`||e===`_ctx`||e===`$stable`,$r=e=>d(e)?e.map(Z):[Z(e)],ei=(e,t,n)=>{if(t._n)return t;let r=bn((...e)=>$r(t(...e)),n);return r._c=!1,r},ti=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Qr(n))continue;let i=e[n];if(h(i))t[n]=ei(n,i,r);else if(i!=null){let e=$r(i);t[n]=()=>e}}},ni=(e,t)=>{let n=$r(t);e.slots.default=()=>n},ri=(e,t,n)=>{for(let r in t)(n||!Qr(r))&&(e[r]=t[r])},ii=(e,t,n)=>{let r=e.slots=Ur();if(e.vnode.shapeFlag&32){let e=t._;e?(ri(r,t,n),n&&O(r,`_`,e,!0)):ti(t,r)}else t&&ni(e,t)},ai=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:ri(a,n,r):(o=!n.$stable,ti(n,a)),s=n}else n&&(ni(e,n),s={default:1});if(o)for(let e in a)!Qr(e)&&s[e]==null&&delete a[e]},q=_i;function oi(e){return si(e)}function si(e,i){let a=le();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ai(e,t)&&(r=ye(e),k(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case vi:y(e,t,n,r);break;case yi:b(e,t,n,r);break;case bi:e??x(t,n,r,o);break;case J:ae(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?D(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,Se)}u!=null&&i?zn(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&zn(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)te(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),re(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},te=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&T(e.children,d,null,r,i,ci(e,a),s,u),_&&Sn(e,null,r,`created`),ne(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!ee(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Q(f,r,e)}_&&Sn(e,null,r,`beforeMount`);let v=ui(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&q(()=>{try{f&&Q(f,r,e),v&&g.enter(d),_&&Sn(e,null,r,`mounted`)}finally{}},i)},ne=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||gi(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;ne(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},T=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?zi(e[l]):Z(e[l]),t,n,r,i,a,o,s)},re=(e,n,r,i,a,o,s)=>{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&li(r,!1),(g=h.onVnodeBeforeUpdate)&&Q(g,r,n,e),f&&Sn(n,e,r,`beforeUpdate`),r&&li(r,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?E(e.dynamicChildren,d,l,r,i,ci(n,a),o):s||de(e,n,l,null,r,i,ci(n,a),o,!1),u>0){if(u&16)ie(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==n.children&&p(l,n.children)}else !s&&d==null&&ie(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&q(()=>{g&&Q(g,r,n,e),f&&Sn(n,e,r,`updated`)},i)},E=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===J||!Ai(c,l)||c.shapeFlag&198)?m(c.el):n,null,r,i,a,o,!0)}},ie=(e,n,r,i,a)=>{if(n!==r){if(n!==t)for(let t in n)!ee(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(ee(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},ae=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),T(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(E(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&di(e,t,!0)):de(e,t,n,f,i,a,s,c,l)},D=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):O(t,n,r,i,a,o,c):se(e,t,c)},O=(e,t,n,r,i,a,o)=>{let s=e.component=Wi(e,r,i);if(Hn(e)&&(s.ctx.renderer=Se),Qi(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ce,o),!e.el){let r=s.subTree=X(yi);b(null,r,t,n),e.placeholder=r.el}}else ce(s,e,t,n,i,a,o)},se=(e,t,n)=>{let r=t.component=e.component;if(Rr(e,t,n))if(r.asyncDep&&!r.asyncResolved){ue(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ce=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=pi(e);if(n){t&&(t.el=c.el,ue(e,t,o)),n.asyncDep.then(()=>{q(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;li(e,!1),t?(t.el=c.el,ue(e,t,o)):t=c,n&&oe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Q(d,s,t,c),li(e,!0);let f=Fr(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ye(p),e,i,a),t.el=f.el,u===null&&Vr(e,f.el),r&&q(r,i),(d=t.props&&t.props.onVnodeUpdated)&&q(()=>Q(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Vn(t);if(li(e,!1),l&&oe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Q(o,d,t),li(e,!0),s&&we){let t=()=>{e.subTree=Fr(e),we(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Fr(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&q(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;q(()=>Q(o,d,e),i)}(t.shapeFlag&256||d&&Vn(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&q(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Oe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>dn(u),li(e,!0),l()},ue=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Kr(e,t.props,r,n),ai(e,t.children,n),He(),mn(e),N()},de=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){pe(l,d,n,r,i,a,o,s,c);return}else if(f&256){fe(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ve(l,i,a),d!==l&&p(n,d)):u&16?m&16?pe(l,d,n,r,i,a,o,s,c):ve(l,i,a,!0):(u&8&&p(n,``),m&16&&T(d,n,r,i,a,o,s,c))},fe=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let n=t[p]=l?zi(t[p]):Z(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?ve(e,a,o,!0,!1,f):T(t,r,i,a,o,s,c,l,f)},pe=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?zi(t[u]):Z(t[u]);if(Ai(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?zi(t[p]):Z(t[p]);if(Ai(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?zi(t[u]):Z(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)k(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?zi(t[u]):Z(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let n=e[u];if(y>=b){k(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Ai(n,t[_])){i=_;break}i===void 0?k(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?fi(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||hi(f):i;C[u]===0?v(null,n,r,p,a,o,s,c,l):x&&(_<0||u!==w[_]?me(n,r,p,2):_--)}}},me=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){me(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,Se);return}if(c===J){o(a,t,n);for(let e=0;e<u.length;e++)me(u[e],t,n,r);o(e.anchor,t,n);return}if(c===bi){S(e,t,n);return}if(r!==2&&d&1&&l)if(r===0)l.beforeEnter(a),o(a,t,n),q(()=>l.enter(a),i);else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{a._isLeaving&&a[Nn](!0),r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},k=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(He(),zn(s,null,n,e,!0),N()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Vn(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Q(_,t,e),u&6)_e(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Sn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Se,r):l&&!l.hasOnce&&(a!==J||d>0&&d&64)?ve(l,t,n,!1,!0):(a===J&&d&384||!i&&u&16)&&ve(c,t,n),r&&he(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&q(()=>{_&&Q(_,t,e),h&&Sn(e,null,t,`unmounted`),v&&(e.el=null)},n)},he=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===J){ge(n,r);return}if(t===bi){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},ge=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},_e=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;mi(c),mi(l),r&&oe(r),i.stop(),a&&(a.flags|=8,k(o,e,t,n)),s&&q(s,t),q(()=>{e.isUnmounted=!0},t)},ve=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)k(e[o],t,n,r,i)},ye=e=>{if(e.shapeFlag&6)return ye(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[jn];return n?h(n):t},be=!1,xe=(e,t,n)=>{let r;e==null?t._vnode&&(k(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,be||=(be=!0,mn(r),hn(),!1)},Se={p:v,um:k,m:me,r:he,mt:O,mc:T,pc:de,pbc:E,n:ye,o:e},Ce,we;return i&&([Ce,we]=i(Se)),{render:xe,hydrate:Ce,createApp:Or(xe,Ce)}}function ci({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function li({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ui(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function di(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=zi(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&di(t,a)),a.type===vi&&(a.patchFlag===-1&&(a=i[e]=zi(a)),a.el=t.el),a.type===yi&&!a.el&&(a.el=t.el)}}function fi(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function pi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:pi(t)}function mi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function hi(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?hi(t.subTree):null}var gi=e=>e.__isSuspense;function _i(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):pn(e)}var J=Symbol.for(`v-fgt`),vi=Symbol.for(`v-txt`),yi=Symbol.for(`v-cmt`),bi=Symbol.for(`v-stc`),xi=[],Y=null;function Si(e=!1){xi.push(Y=e?null:[])}function Ci(){xi.pop(),Y=xi[xi.length-1]||null}var wi=1;function Ti(e,t=!1){wi+=e,e<0&&Y&&t&&(Y.hasOnce=!0)}function Ei(e){return e.dynamicChildren=wi>0?Y||n:null,Ci(),wi>0&&Y&&Y.push(e),e}function Di(e,t,n,r,i,a){return Ei(Ni(e,t,n,r,i,a,!0))}function Oi(e,t,n,r,i){return Ei(X(e,t,n,r,i,!0))}function ki(e){return e?e.__v_isVNode===!0:!1}function Ai(e,t){return e.type===t.type&&e.key===t.key}var ji=({key:e})=>e??null,Mi=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||V(e)||h(e)?{i:G,r:e,k:t,f:!!n}:e);function Ni(e,t=null,n=null,r=0,i=null,a=e===J?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ji(t),ref:t&&Mi(t),scopeId:vn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:G};return s?(Bi(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),wi>0&&!o&&Y&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Y.push(c),c}var X=Pi;function Pi(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ar)&&(e=yi),ki(e)){let r=Ii(e,t,!0);return n&&Bi(r,n),wi>0&&!a&&Y&&(r.shapeFlag&6?Y[Y.indexOf(e)]=r:Y.push(r)),r.patchFlag=-2,r}if(sa(e)&&(e=e.__vccOpts),t){t=Fi(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=k(e)),v(n)&&(It(n)&&!d(n)&&(n=s({},n)),t.style=ue(n))}let o=g(e)?1:gi(e)?128:Mn(e)?64:v(e)?4:h(e)?2:0;return Ni(e,t,n,r,i,o,a,!0)}function Fi(e){return e?It(e)||Wr(e)?s({},e):e:null}function Ii(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Vi(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ji(l),ref:t&&t.ref?n&&a?d(a)?a.concat(Mi(t)):[a,Mi(t)]:Mi(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==J?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ii(e.ssContent),ssFallback:e.ssFallback&&Ii(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Pn(u,c.clone(u)),u}function Li(e=` `,t=0){return X(vi,null,e,t)}function Ri(e=``,t=!1){return t?(Si(),Oi(yi,null,e)):X(yi,null,e)}function Z(e){return e==null||typeof e==`boolean`?X(yi):d(e)?X(J,null,e.slice()):ki(e)?zi(e):X(vi,null,String(e))}function zi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ii(e)}function Bi(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Bi(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Wr(t)?t._ctx=G:r===3&&G&&(G.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else h(t)?(t={default:t,_ctx:G},n=32):(t=String(t),r&64?(n=16,t=[Li(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vi(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=k([t.class,r.class]));else if(e===`style`)t.style=ue([t.style,r.style]);else if(a(e)){let n=t[e],i=r[e];i&&n!==i&&!(d(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!o(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Q(e,t,n,r=null){H(e,t,7,[n,r])}var Hi=Er(),Ui=0;function Wi(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||Hi,o={uid:Ui++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Te(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Xr(i,a),emitsOptions:Nr(i,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:i.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=n?n.root:o,o.emit=jr.bind(null,o),e.ce&&e.ce(o),o}var $=null,Gi=()=>$||G,Ki,qi;{let e=le(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Ki=t(`__VUE_INSTANCE_SETTERS__`,e=>$=e),qi=t(`__VUE_SSR_SETTERS__`,e=>Zi=e)}var Ji=e=>{let t=$;return Ki(e),e.scope.on(),()=>{e.scope.off(),Ki(t)}},Yi=()=>{$&&$.scope.off(),Ki(null)};function Xi(e){return e.vnode.shapeFlag&4}var Zi=!1;function Qi(e,t=!1,n=!1){t&&qi(t);let{props:r,children:i}=e.vnode,a=Xi(e);Gr(e,r,a,t),ii(e,i,n||t);let o=a?$i(e,t):void 0;return t&&qi(!1),o}function $i(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ur);let{setup:r}=n;if(r){He();let n=e.setupContext=r.length>1?aa(e):null,i=Ji(e),a=en(r,e,0,[e.props,n]),o=y(a);if(N(),i(),(o||e.sp)&&!Vn(e)&&In(e),o){if(a.then(Yi,Yi),t)return a.then(n=>{ea(e,n,t)}).catch(t=>{tn(t,e,0)});e.asyncDep=a}else ea(e,a,t)}else ra(e,t)}function ea(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Gt(t)),ra(e,n)}var ta,na;function ra(e,t,n){let i=e.type;if(!e.render){if(!t&&ta&&!i.render){let t=i.template||_r(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=ta(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,na&&na(e)}{let t=Ji(e);He();try{pr(e)}finally{N(),t()}}}var ia={get(e,t){return P(e,`get`,``),e[t]}};function aa(e){return{attrs:new Proxy(e.attrs,ia),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function oa(e){return e.exposed?e.exposeProxy||=new Proxy(Gt(Lt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in cr)return cr[n](e)},has(e,t){return t in e||t in cr}}):e.proxy}function sa(e){return h(e)&&`__vccOpts`in e}var ca=(e,t)=>qt(e,t,Zi);function la(e,t,n){try{Ti(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?ki(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ki(n)&&(n=[n]),X(e,t,n))}finally{Ti(1)}}var ua=`3.5.34`,da=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{E as A,_ as B,zt as C,T as D,Ut as E,o as F,Se as G,be as H,a as I,p as L,oe as M,d as N,ie as O,h as P,ge as R,At as S,Bt as T,se as U,ye as V,k as W,Cn as _,Ni as a,bn as b,oi as c,Fn as d,la as f,Si as g,Xn as h,ca as i,_e as j,s as k,Li as l,ln as m,J as n,Ri as o,wn as p,H as r,Di as s,da as t,X as u,or as v,jt as w,xn as x,Dn as y,g as z};
@@ -1 +1 @@
1
- .app-header[data-v-7c4c82e0]{border-bottom:1px solid var(--fg);color:var(--fg);justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.header-left[data-v-7c4c82e0]{align-items:center;gap:1.5rem;display:flex}.app-title[data-v-7c4c82e0]{letter-spacing:.02em;color:var(--fg);margin:0;font-size:1.5rem;font-weight:600}.app-nav[data-v-7c4c82e0]{gap:1rem;display:flex}.app-nav a[data-v-7c4c82e0]{color:var(--fg);opacity:.7;font-weight:500;text-decoration:none}.app-nav a.router-link-exact-active[data-v-7c4c82e0]{opacity:1;text-decoration:underline}.app-nav a[data-v-7c4c82e0]:hover{opacity:1}.theme-toggle[data-v-7c4c82e0]{font:inherit;color:var(--fg);border:1px solid var(--fg);cursor:pointer;background:0 0;border-radius:.375rem;padding:.4rem .9rem}.theme-toggle[data-v-7c4c82e0]:hover{opacity:.75}.app-main[data-v-5e6ed138]{color:var(--fg);grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem;padding:1.5rem;display:grid}.group[data-v-5e6ed138]{border:1px solid var(--fg);border-radius:.5rem;padding:1rem 1.25rem}.group-title[data-v-5e6ed138]{margin:0 0 .75rem;font-size:1rem;font-weight:600}.group-list[data-v-5e6ed138]{flex-direction:column;gap:.4rem;margin:0;padding:0;list-style:none;display:flex}.check[data-v-5e6ed138]{cursor:pointer;align-items:center;gap:.5rem;font-size:.95rem;display:flex}.check input[data-v-5e6ed138]{accent-color:var(--fg)}.required-tag[data-v-5e6ed138]{opacity:.65;margin-left:auto;font-size:.75rem}.app-footer[data-v-5e6ed138]{border-top:1px solid var(--fg);color:var(--fg);padding:1.5rem}.actions[data-v-5e6ed138]{flex-wrap:wrap;gap:.75rem;display:flex}.btn[data-v-5e6ed138]{font:inherit;color:var(--fg);border:1px solid var(--fg);cursor:pointer;background:0 0;border-radius:.375rem;padding:.5rem 1rem}.btn[data-v-5e6ed138]:disabled{opacity:.4;cursor:not-allowed}.btn[data-v-5e6ed138]:hover:not(:disabled){opacity:.75}.preview[data-v-5e6ed138]{border:1px solid var(--fg);white-space:pre-wrap;word-break:break-word;border-radius:.375rem;max-height:24rem;margin-top:1rem;padding:1rem;font-size:.85rem;overflow:auto}.build-status[data-v-5e6ed138]{margin-top:1.25rem}.build-state[data-v-5e6ed138]{text-transform:uppercase;letter-spacing:.05em;margin:0 0 .5rem;font-size:.9rem}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#fff;--fg:#000}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#000;--fg:#fff}*{box-sizing:border-box}html,body,#app{background:var(--bg);min-height:100%;color:var(--fg);margin:0}body{min-height:100vh;font-family:system-ui,-apple-system,sans-serif}
1
+ .app-header[data-v-270c9514]{border-bottom:1px solid var(--fg);color:var(--fg);justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.header-left[data-v-270c9514]{align-items:center;gap:1.5rem;display:flex}.app-title[data-v-270c9514]{letter-spacing:.02em;color:var(--fg);margin:0;font-size:1.5rem;font-weight:600}.app-nav[data-v-270c9514]{gap:1rem;display:flex}.app-nav a[data-v-270c9514]{color:var(--fg);opacity:.7;font-weight:500;text-decoration:none}.app-nav a.router-link-exact-active[data-v-270c9514]{opacity:1;text-decoration:underline}.app-nav a[data-v-270c9514]:hover{opacity:1}.theme-toggle[data-v-270c9514]{font:inherit;color:var(--fg);border:1px solid var(--fg);cursor:pointer;background:0 0;border-radius:.375rem;padding:.4rem .9rem}.theme-toggle[data-v-270c9514]:hover{opacity:.75}.app-main[data-v-5e6ed138]{color:var(--fg);grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem;padding:1.5rem;display:grid}.group[data-v-5e6ed138]{border:1px solid var(--fg);border-radius:.5rem;padding:1rem 1.25rem}.group-title[data-v-5e6ed138]{margin:0 0 .75rem;font-size:1rem;font-weight:600}.group-list[data-v-5e6ed138]{flex-direction:column;gap:.4rem;margin:0;padding:0;list-style:none;display:flex}.check[data-v-5e6ed138]{cursor:pointer;align-items:center;gap:.5rem;font-size:.95rem;display:flex}.check input[data-v-5e6ed138]{accent-color:var(--fg)}.required-tag[data-v-5e6ed138]{opacity:.65;margin-left:auto;font-size:.75rem}.app-footer[data-v-5e6ed138]{border-top:1px solid var(--fg);color:var(--fg);padding:1.5rem}.actions[data-v-5e6ed138]{flex-wrap:wrap;gap:.75rem;display:flex}.btn[data-v-5e6ed138]{font:inherit;color:var(--fg);border:1px solid var(--fg);cursor:pointer;background:0 0;border-radius:.375rem;padding:.5rem 1rem}.btn[data-v-5e6ed138]:disabled{opacity:.4;cursor:not-allowed}.btn[data-v-5e6ed138]:hover:not(:disabled){opacity:.75}.preview[data-v-5e6ed138]{border:1px solid var(--fg);white-space:pre-wrap;word-break:break-word;border-radius:.375rem;max-height:24rem;margin-top:1rem;padding:1rem;font-size:.85rem;overflow:auto}.build-status[data-v-5e6ed138]{margin-top:1.25rem}.build-state[data-v-5e6ed138]{text-transform:uppercase;letter-spacing:.05em;margin:0 0 .5rem;font-size:.9rem}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#fff;--fg:#000}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#000;--fg:#fff}*{box-sizing:border-box}html,body,#app{background:var(--bg);min-height:100%;color:var(--fg);margin:0}body{min-height:100vh;font-family:system-ui,-apple-system,sans-serif}
@@ -0,0 +1,3 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PublicSitesView-BXY3L-PZ.js","assets/_plugin-vue_export-helper-BAgBgQXh.js","assets/PublicSitesView-EfFQbc8j.css","assets/NegotiationView-tKWzSlqD.js","assets/NegotiationView-DmgA_ert.css"])))=>i.map(i=>d[i]);
2
+ import{A as e,B as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,L as l,M as u,N as d,O as f,P as p,R as ee,S as te,T as ne,U as m,V as re,_ as h,a as g,b as _,c as v,d as y,f as b,g as x,h as ie,i as S,j as C,k as ae,l as oe,m as se,n as w,o as T,p as E,r as ce,s as D,t as O,u as k,v as A,w as le,x as ue,y as de,z as j}from"./_plugin-vue_export-helper-BAgBgQXh.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var M=void 0,N=typeof window<`u`&&window.trustedTypes;if(N)try{M=N.createPolicy(`vue`,{createHTML:e=>e})}catch{}var P=M?e=>M.createHTML(e):e=>e,fe=`http://www.w3.org/2000/svg`,pe=`http://www.w3.org/1998/Math/MathML`,F=typeof document<`u`?document:null,me=F&&F.createElement(`template`),he={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?F.createElementNS(fe,e):t===`mathml`?F.createElementNS(pe,e):n?F.createElement(e,{is:n}):F.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>F.createTextNode(e),createComment:e=>F.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>F.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{me.innerHTML=P(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=me.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ge=Symbol(`_vtc`);function _e(e,t,n){let r=e[ge];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var ve=Symbol(`_vod`),ye=Symbol(`_vsh`),be=Symbol(``),xe=/(?:^|;)\s*display\s*:/;function Se(e,t,n){let r=e.style,i=j(n),a=!1;if(n&&!i){if(t)if(j(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??I(r,t,``)}else for(let e in t)n[e]??I(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?I(r,i,``):De(e,i,!j(t)&&t?t[i]:void 0,o)||I(r,i,o)}}else if(i){if(t!==n){let e=r[be];e&&(n+=`;`+e),r.cssText=n,a=xe.test(n)}}else t&&e.removeAttribute(`style`);ve in e&&(e[ve]=a?r.display:``,e[ye]&&(r.display=`none`))}var Ce=/\s*!important$/;function I(t,n,r){if(d(r))r.forEach(e=>I(t,n,e));else if(r??=``,n.startsWith(`--`))t.setProperty(n,r);else{let i=Ee(t,n);Ce.test(r)?t.setProperty(e(i),r.replace(Ce,``),`important`):t[i]=r}}var we=[`Webkit`,`Moz`,`ms`],Te={};function Ee(e,t){let n=Te[t];if(n)return n;let i=r(t);if(i!==`filter`&&i in e)return Te[t]=i;i=f(i);for(let n=0;n<we.length;n++){let r=we[n]+i;if(r in e)return Te[t]=r}return t}function De(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&j(r)&&n===r}var Oe=`http://www.w3.org/1999/xlink`;function ke(e,n,r,i,a,o=ee(n)){i&&n.startsWith(`xlink:`)?r==null?e.removeAttributeNS(Oe,n.slice(6,n.length)):e.setAttributeNS(Oe,n,r):r==null||o&&!C(r)?e.removeAttribute(n):e.setAttribute(n,o?``:t(r)?String(r):r)}function Ae(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?P(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=C(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function L(e,t,n,r){e.addEventListener(t,n,r)}function je(e,t,n,r){e.removeEventListener(t,n,r)}var Me=Symbol(`_vei`);function Ne(e,t,n,r,i=null){let a=e[Me]||(e[Me]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Fe(t);r?L(e,n,a[t]=ze(r,i),s):o&&(je(e,n,o,s),a[t]=void 0)}}var Pe=/(?:Once|Passive|Capture)$/;function Fe(t){let n;if(Pe.test(t)){n={};let e;for(;e=t.match(Pe);)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0}return[t[2]===`:`?t.slice(3):e(t.slice(2)),n]}var Ie=0,Le=Promise.resolve(),Re=()=>Ie||=(Le.then(()=>Ie=0),Date.now());function ze(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;ce(Be(e,n.value),t,5,[e])};return n.value=e,n.attached=Re(),n}function Be(e,t){if(d(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var Ve=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,He=(e,t,n,i,o,s)=>{let l=o===`svg`;t===`class`?_e(e,i,l):t===`style`?Se(e,n,i):c(t)?a(t)||Ne(e,t,n,i,s):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Ue(e,t,i,l))?(Ae(e,t,i),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&ke(e,t,i,l,s,t!==`value`)):e._isVueCE&&(We(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!j(i)))?Ae(e,r(t),i,s,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),ke(e,t,i,l))};function Ue(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Ve(t)&&p(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Ve(t)&&j(n)?!1:t in e}function We(e,t){let n=e._def.props;if(!n)return!1;let i=r(t);return Array.isArray(n)?n.some(e=>r(e)===i):Object.keys(n).some(e=>r(e)===i)}var Ge=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>u(t,e):t};function Ke(e){e.target.composing=!0}function qe(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var R=Symbol(`_assign`);function Je(e,t,n){return t&&(e=e.trim()),n&&(e=m(e)),e}var Ye={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[R]=Ge(i);let a=r||i.props&&i.props.type===`number`;L(e,t?`change`:`input`,t=>{t.target.composing||e[R](Je(e.value,n,a))}),(n||a)&&L(e,`change`,()=>{e.value=Je(e.value,n,a)}),t||(L(e,`compositionstart`,Ke),L(e,`compositionend`,qe),L(e,`change`,qe))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[R]=Ge(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?m(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Xe={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=l(t);L(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?m(Qe(e)):Qe(e));e[R](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,se(()=>{e._assigning=!1})}),e[R]=Ge(r)},mounted(e,{value:t}){Ze(e,t)},beforeUpdate(e,t,n){e[R]=Ge(n)},updated(e,{value:t}){e._assigning||Ze(e,t)}};function Ze(e,t){let n=e.multiple,r=d(t);if(!(n&&!r&&!l(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Qe(a);if(n)if(r){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=s(t,o)>-1}else a.selected=t.has(o);else if(re(Qe(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qe(e){return`_value`in e?e._value:e.value}var $e=ae({patchProp:He},he),et;function tt(){return et||=v($e)}var nt=((...e)=>{let t=tt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=it(e);if(!r)return;let i=t._component;!p(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,rt(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function rt(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function it(e){return j(e)?document.querySelector(e):e}var z=typeof document<`u`;function at(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function ot(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&at(e.default)}var B=Object.assign;function st(e,t){let n={};for(let r in t){let i=t[r];n[r]=H(i)?i.map(e):e(i)}return n}var V=()=>{},H=Array.isArray;function ct(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var lt=/#/g,ut=/&/g,dt=/\//g,ft=/=/g,pt=/\?/g,mt=/\+/g,ht=/%5B/g,gt=/%5D/g,_t=/%5E/g,vt=/%60/g,yt=/%7B/g,bt=/%7C/g,xt=/%7D/g,St=/%20/g;function Ct(e){return e==null?``:encodeURI(``+e).replace(bt,`|`).replace(ht,`[`).replace(gt,`]`)}function wt(e){return Ct(e).replace(yt,`{`).replace(xt,`}`).replace(_t,`^`)}function Tt(e){return Ct(e).replace(mt,`%2B`).replace(St,`+`).replace(lt,`%23`).replace(ut,`%26`).replace(vt,"`").replace(yt,`{`).replace(xt,`}`).replace(_t,`^`)}function Et(e){return Tt(e).replace(ft,`%3D`)}function Dt(e){return Ct(e).replace(lt,`%23`).replace(pt,`%3F`)}function Ot(e){return Dt(e).replace(dt,`%2F`)}function U(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var kt=/\/$/,At=e=>e.replace(kt,``);function jt(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Rt(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:U(o)}}function Mt(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Nt(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Pt(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&W(t.matched[r],n.matched[i])&&Ft(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function W(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ft(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!It(e[n],t[n]))return!1;return!0}function It(e,t){return H(e)?Lt(e,t):H(t)?Lt(t,e):e?.valueOf()===t?.valueOf()}function Lt(e,t){return H(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Rt(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var G={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},zt=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Bt=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Vt(e){if(!e)if(z){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),At(e)}var Ht=/^[^#]+#/;function Ut(e,t){return e.replace(Ht,`#`)+t}function Wt(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Gt=()=>({left:window.scrollX,top:window.scrollY});function Kt(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Wt(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function qt(e,t){return(history.state?history.state.position-t:-1)+e}var Jt=new Map;function Yt(e,t){Jt.set(e,t)}function Xt(e){let t=Jt.get(e);return Jt.delete(e),t}function Zt(e){return typeof e==`string`||e&&typeof e==`object`}function Qt(e){return typeof e==`string`||typeof e==`symbol`}var K=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),$t=Symbol(``);K.MATCHER_NOT_FOUND,K.NAVIGATION_GUARD_REDIRECT,K.NAVIGATION_ABORTED,K.NAVIGATION_CANCELLED,K.NAVIGATION_DUPLICATED;function q(e,t){return B(Error(),{type:e,[$t]:!0},t)}function J(e,t){return e instanceof Error&&$t in e&&(t==null||!!(e.type&t))}function en(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(mt,` `),i=r.indexOf(`=`),a=U(i<0?r:r.slice(0,i)),o=i<0?null:U(r.slice(i+1));if(a in t){let e=t[a];H(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function tn(e){let t=``;for(let n in e){let r=e[n];if(n=Et(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(H(r)?r.map(e=>e&&Tt(e)):[r&&Tt(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function nn(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=H(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var rn=Symbol(``),an=Symbol(``),on=Symbol(``),sn=Symbol(``),cn=Symbol(``);function Y(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function X(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(q(K.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Zt(e)?c(q(K.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function ln(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(at(s)){let c=(s.__vccOpts||s)[t];c&&a.push(X(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=ot(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&X(c,n,r,o,e,i)()}))}}return a}function un(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>W(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>W(e,s))||i.push(s))}return[n,r,i]}var dn=()=>location.protocol+`//`+location.host;function fn(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Nt(n,``)}return Nt(n,e)+r+i}function pn(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=fn(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:zt.pop,direction:u?u>0?Bt.forward:Bt.back:Bt.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(B({},e.state,{scroll:Gt()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function mn(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Gt():null}}function hn(e){let{history:t,location:n}=window,r={value:fn(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:dn()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,B({},t.state,mn(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=B({},i.value,t.state,{forward:e,scroll:Gt()});a(o.current,o,!0),a(e,B({},mn(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function gn(e){e=Vt(e);let t=hn(e),n=pn(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=B({location:``,base:e,go:r,createHref:Ut.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}var Z=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),_n={type:Z.Static,value:``},vn=/[a-zA-Z0-9_]/;function yn(e){if(!e)return[[]];if(e===`/`)return[[_n]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Z.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Z.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:vn.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var bn=`[^/]+?`,xn={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),Sn=/[.+*?^${}()[\]/\\]/g;function Cn(e,t){let n=B({},xn,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Z.Static)r||(i+=`/`),i+=o.value.replace(Sn,`\\$&`),s+=$.Static;else if(o.type===Z.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||bn;if(u!==bn){s+=$.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Z.Static)n+=e.value;else if(e.type===Z.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(H(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=H(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function wn(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function Tn(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=wn(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(En(r))return 1;if(En(i))return-1}return i.length-r.length}function En(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Dn={strict:!1,end:!0,sensitive:!1};function On(e,t,n){let r=B(Cn(yn(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function kn(e,t){let n=[],r=new Map;t=ct(Dn,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=jn(e);s.aliasOf=r&&r.record;let l=ct(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(jn(B({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=On(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Nn(d)&&o(e.name)),Ln(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:V}function o(e){if(Qt(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Fn(e,n);n.splice(t,0,e),e.record.name&&!Nn(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw q(K.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=B(An(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&An(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw q(K.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=B({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Pn(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function An(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function jn(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Mn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function Mn(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Nn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pn(e){return e.reduce((e,t)=>B(e,t.meta),{})}function Fn(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Tn(e,t[i])<0?r=i:n=i+1}let i=In(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function In(e){let t=e;for(;t=t.parent;)if(Ln(t)&&Tn(e,t)===0)return t}function Ln({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Rn(e){let t=E(on),n=E(sn),r=S(()=>{let n=i(e.to);return t.resolve(n)}),a=S(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(W.bind(null,i));if(o>-1)return o;let s=Un(e[t-2]);return t>1&&Un(i)===s&&a[a.length-1].path!==s?a.findIndex(W.bind(null,e[t-2])):o}),o=S(()=>a.value>-1&&Hn(n.params,r.value.params)),s=S(()=>a.value>-1&&a.value===n.matched.length-1&&Ft(n.params,r.value.params));function c(n={}){if(Vn(n)){let n=t[i(e.replace)?`replace`:`push`](i(e.to)).catch(V);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:S(()=>r.value.href),isActive:o,isExactActive:s,navigate:c}}function zn(e){return e.length===1?e[0]:e}var Bn=y({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Rn,setup(e,{slots:t}){let n=te(Rn(e)),{options:r}=E(on),i=S(()=>({[Wn(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Wn(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&zn(t.default(n));return e.custom?r:b(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Vn(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Hn(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!H(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Un(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Wn=(e,t,n)=>e??t??n,Gn=y({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){let a=E(cn),o=S(()=>e.route||a.value),s=E(an,0),c=S(()=>{let e=i(s),{matched:t}=o.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),l=S(()=>o.value.matched[c.value]);h(an,S(()=>c.value+1)),h(rn,l),h(cn,o);let u=n();return de(()=>[u.value,l.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!W(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let n=o.value,i=e.name,a=l.value,s=a&&a.components[i];if(!s)return Kn(r.default,{Component:s,route:n});let c=a.props[i],d=b(s,B({},c?c===!0?n.params:typeof c==`function`?c(n):c:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[i]=null)},ref:u}));return Kn(r.default,{Component:d,route:n})||d}}});function Kn(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var qn=Gn;function Jn(e){let t=kn(e.routes,e),n=e.parseQuery||en,r=e.stringifyQuery||tn,a=e.history,o=Y(),s=Y(),c=Y(),l=ne(G),u=G;z&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=st.bind(null,e=>``+e),f=st.bind(null,Ot),p=st.bind(null,U);function ee(e,n){let r,i;return Qt(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function te(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function m(){return t.getRoutes().map(e=>e.record)}function re(e){return!!t.getRecordMatcher(e)}function h(e,i){if(i=B({},i||l.value),typeof e==`string`){let r=jt(n,e,i.path),o=t.resolve({path:r.path},i),s=a.createHref(r.fullPath);return B(r,o,{params:p(o.params),hash:U(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=B({},e,{path:jt(n,e.path,i.path).path});else{let t=B({},e.params);for(let e in t)t[e]??delete t[e];o=B({},e,{params:f(t)}),i.params=f(i.params)}let s=t.resolve(o,i),c=e.hash||``;s.params=d(p(s.params));let u=Mt(r,B({},e,{hash:wt(c),path:s.path})),ee=a.createHref(u);return B({fullPath:u,hash:c,query:r===tn?nn(e.query):e.query||{}},s,{redirectedFrom:void 0,href:ee})}function g(e){return typeof e==`string`?jt(n,e,l.value.path):B({},e)}function _(e,t){if(u!==e)return q(K.NAVIGATION_CANCELLED,{from:t,to:e})}function v(e){return x(e)}function y(e){return v(B(g(e),{replace:!0}))}function b(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=g(i):{path:i},i.params={}),B({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function x(e,t){let n=u=h(e),i=l.value,a=e.state,o=e.force,s=e.replace===!0,c=b(n,i);if(c)return x(B(g(c),{state:typeof c==`object`?B({},a,c.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Pt(r,i,n)&&(f=q(K.NAVIGATION_DUPLICATED,{to:d,from:i}),ue(i,i,!0,!1)),(f?Promise.resolve(f):C(d,i)).catch(e=>J(e)?J(e,K.NAVIGATION_GUARD_REDIRECT)?e:A(e):O(e,d,i)).then(e=>{if(e){if(J(e,K.NAVIGATION_GUARD_REDIRECT))return x(B({replace:s},g(e.to),{state:typeof e.to==`object`?B({},a,e.to.state):a,force:o}),t||d)}else e=oe(d,i,!0,s,a);return ae(d,i,e),e})}function ie(e,t){let n=_(e,t);return n?Promise.reject(n):Promise.resolve()}function S(e){let t=M.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function C(e,t){let n,[r,i,a]=un(e,t);n=ln(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let c=ie.bind(null,e,t);return n.push(c),P(n).then(()=>{n=[];for(let r of o.list())n.push(X(r,e,t));return n.push(c),P(n)}).then(()=>{n=ln(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(c),P(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(H(r.beforeEnter))for(let i of r.beforeEnter)n.push(X(i,e,t));else n.push(X(r.beforeEnter,e,t));return n.push(c),P(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=ln(a,`beforeRouteEnter`,e,t,S),n.push(c),P(n))).then(()=>{n=[];for(let r of s.list())n.push(X(r,e,t));return n.push(c),P(n)}).catch(e=>J(e,K.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function ae(e,t,n){c.list().forEach(r=>S(()=>r(e,t,n)))}function oe(e,t,n,r,i){let o=_(e,t);if(o)return o;let s=t===G,c=z?history.state:{};n&&(r||s?a.replace(e.fullPath,B({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,ue(e,t,n,s),A()}let w;function T(){w||=a.listen((e,t,n)=>{if(!N.listening)return;let r=h(e),i=b(r,N.currentRoute.value);if(i){x(B(i,{replace:!0,force:!0}),r).catch(V);return}u=r;let o=l.value;z&&Yt(qt(o.fullPath,n.delta),Gt()),C(r,o).catch(e=>J(e,K.NAVIGATION_ABORTED|K.NAVIGATION_CANCELLED)?e:J(e,K.NAVIGATION_GUARD_REDIRECT)?(x(B(g(e.to),{force:!0}),r).then(e=>{J(e,K.NAVIGATION_ABORTED|K.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===zt.pop&&a.go(-1,!1)}).catch(V),Promise.reject()):(n.delta&&a.go(-n.delta,!1),O(e,r,o))).then(e=>{e||=oe(r,o,!1),e&&(n.delta&&!J(e,K.NAVIGATION_CANCELLED)?a.go(-n.delta,!1):n.type===zt.pop&&J(e,K.NAVIGATION_ABORTED|K.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),ae(r,o,e)}).catch(V)})}let E=Y(),ce=Y(),D;function O(e,t,n){A(e);let r=ce.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function k(){return D&&l.value!==G?Promise.resolve():new Promise((e,t)=>{E.add([e,t])})}function A(e){return D||(D=!e,T(),E.list().forEach(([t,n])=>e?n(e):t()),E.reset()),e}function ue(t,n,r,i){let{scrollBehavior:a}=e;if(!z||!a)return Promise.resolve();let o=!r&&Xt(qt(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return se().then(()=>a(t,n,o)).then(e=>e&&Kt(e)).catch(e=>O(e,t,n))}let de=e=>a.go(e),j,M=new Set,N={currentRoute:l,listening:!0,addRoute:ee,removeRoute:te,clearRoutes:t.clearRoutes,hasRoute:re,getRoutes:m,resolve:h,options:e,push:v,replace:y,go:de,back:()=>de(-1),forward:()=>de(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:ce.add,isReady:k,install(e){e.component(`RouterLink`,Bn),e.component(`RouterView`,qn),e.config.globalProperties.$router=N,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>i(l)}),z&&!j&&l.value===G&&(j=!0,v(a.location).catch(e=>{}));let t={};for(let e in G)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(on,N),e.provide(sn,le(t)),e.provide(cn,l);let n=e.unmount;M.add(e),e.unmount=function(){M.delete(e),M.size<1&&(u=G,w&&w(),w=null,l.value=G,j=!1,D=!1),n()}}};function P(e){return e.reduce((e,t)=>e.then(()=>S(t)),Promise.resolve())}return N}var Yn={class:`app-header`},Xn={class:`header-left`},Zn={class:`app-nav`},Qn=[`aria-label`],$n=O(y({__name:`App`,setup(e){let t=n(`light`);function r(e){t.value=e,document.documentElement.dataset.theme=e,localStorage.setItem(`waelio-theme`,e)}function a(){r(t.value===`light`?`dark`:`light`)}return ie(()=>{let e=localStorage.getItem(`waelio-theme`),t=window.matchMedia(`(prefers-color-scheme: dark)`).matches;r(e??(t?`dark`:`light`))}),(e,n)=>(x(),D(w,null,[g(`header`,Yn,[g(`div`,Xn,[n[3]||=g(`h1`,{class:`app-title`},`waelio/cli`,-1),g(`nav`,Zn,[k(i(Bn),{to:`/`},{default:_(()=>[...n[0]||=[oe(`Scaffold`,-1)]]),_:1}),k(i(Bn),{to:`/public-sites`},{default:_(()=>[...n[1]||=[oe(`Public Sites`,-1)]]),_:1}),k(i(Bn),{to:`/negotiation`},{default:_(()=>[...n[2]||=[oe(`Negotiation`,-1)]]),_:1})])]),g(`button`,{type:`button`,class:`theme-toggle`,"aria-label":t.value===`light`?`Switch to dark mode`:`Switch to light mode`,onClick:a},o(t.value===`light`?`Dark`:`Light`),9,Qn)]),k(i(qn))],64))}}),[[`__scopeId`,`data-v-270c9514`]]),er={class:`app-main`},tr={class:`group`,"aria-labelledby":`group-project`},nr={class:`check`,style:{"flex-direction":`column`,"align-items":`stretch`}},rr=[`aria-labelledby`],ir=[`id`],ar={class:`group-list`},or={class:`check`},sr=[`checked`,`disabled`,`onChange`],cr={key:0,class:`required-tag`},lr={class:`app-footer`},ur={class:`actions`},dr=[`disabled`],fr=[`disabled`],pr=[`disabled`],mr=[`disabled`],hr=[`disabled`],gr={key:0,class:`preview`},_r={key:1,class:`build-status`},vr={class:`build-state`},yr={key:0,class:`preview`},br={key:1,class:`preview`},xr=O(y({__name:`ScaffoldView`,setup(e){let t=[{key:`pages`,title:`Pages`,required:[`Contact`,`Privacy`,`Terms & Conditions`,`Login`],items:[`Home`,`About`,`Services`,`Pricing`,`Contact`,`FAQ`,`Blog`,`Catalog`,`Product Detail`,`Cart`,`Checkout`,`Account`,`Dashboard`,`Booking`,`Practitioners`,`Docs`,`Login`,`Privacy`,`Terms & Conditions`]},{key:`features`,title:`Features`,required:[`SEO`,`Authentication`,`Publishing`,`Brand Assets`,`CASL Permissions`,`Local Database`,`NativeScript Ready`],items:[`SEO`,`Analytics`,`Authentication`,`Billing`,`Search`,`Booking`,`Notifications`,`Customer Portal`,`Lead Capture`,`Case Studies`,`Blog`,`Payments`,`Customer Accounts`,`Knowledge Base`,`Admin Dashboard`,`Content Management`,`Publishing`,`Brand Assets`,`CASL Permissions`,`Local Database`,`NativeScript Ready`]},{key:`integrations`,title:`Integrations`,items:[`Stripe`,`CRM`,`Email & SMS`,`Analytics`]},{key:`locales`,title:`Locales`,items:[`en`,`ar`,`de`,`es`,`fr`,`he`,`id`,`it`,`ru`,`sv`,`tr`,`zh`]},{key:`roles`,title:`Roles`,items:[`Admin`,`Editor`,`Operations`,`Support`,`Sales`,`Reception`,`Dentist`,`Hygienist`]},{key:`brandTones`,title:`Brand tone`,items:[`Trustworthy`,`Bold`,`Premium`,`Friendly`]},{key:`visualStyles`,title:`Visual style`,items:[`Premium Editorial`,`Friendly Clinical`]},{key:`contentModels`,title:`Content model`,items:[`Service pages + blog`,`Catalog + editorial`]},{key:`seoFocuses`,title:`SEO focus`,items:[`Local + service intent`,`Transactional intent`]}],r=te(Object.fromEntries(t.map(e=>[e.key,new Set(e.required??[])])));function i(e,t){let n=r[e];n&&(n.has(t)?n.delete(t):n.add(t))}function a(e,t){return e.required?.includes(t)??!1}function s(e,t){return r[e]?.has(t)??!1}let c=n(``),l=n(!1),u=n(``);function d(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`site`}let f={pages:`selectedPages`,features:`selectedFeatures`,integrations:`selectedIntegrations`,locales:`selectedLocales`,roles:`selectedRoles`,brandTones:`selectedBrandTones`,visualStyles:`selectedVisualStyles`,contentModels:`selectedContentModels`,seoFocuses:`selectedSEOFocuses`};function p(){let e={};for(let n of t){let t=f[n.key]??n.key;e[t]=Array.from(r[n.key]??[])}let n=u.value.trim(),i={$schema:`https://waelio.dev/schemas/blueprint/v1.json`,generator:{name:`waelio-cli`,version:`0.1.2`,url:`https://github.com/waelio/cli`},id:crypto.randomUUID(),createdAt:new Date().toISOString(),projectName:n||`Siteforge Project`,slug:d(n||`Siteforge Project`),selections:e};c.value=JSON.stringify(i,null,2),l.value=!1}function ee(){c.value||p(),l.value=!0}function ne(){c.value||p();let e=new Blob([c.value],{type:`application/json`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`blueprint.json`,n.click(),URL.revokeObjectURL(t)}let m=`https://siteforge.wahbehw.workers.dev`,re=`/api/scaffold`,h=n(`idle`),_=n([]),v=n(``);function y(e){_.value.push(`[${new Date().toLocaleTimeString()}] ${e}`)}async function b(){if(!u.value.trim()){y(`error: project name is required`),h.value=`error`;return}p(),_.value=[],v.value=``,h.value=`sending`,y(`POST ${re}`);try{let e=await fetch(re,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({blueprint:JSON.parse(c.value)})});if(!e.ok){let t=await e.text();y(`error: ${e.status} ${t}`),h.value=`error`;return}let t=await e.json();v.value=JSON.stringify(t,null,2),h.value=`done`,y(`scaffolded "${t.slug}" at ${t.outDir}`)}catch(e){y(`network error: ${e.message}`),h.value=`error`}}async function ie(){if(!u.value.trim()){y(`error: project name is required`),h.value=`error`;return}p(),_.value=[],v.value=``,h.value=`sending`;let e=`${m}/public-sites/`;y(`POST webhook to ${e}`);try{let t=await fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`},body:c.value});if(!t.ok){let e=await t.text();y(`webhook error: ${t.status} ${e}`),h.value=`error`;return}let n=await t.json();v.value=JSON.stringify(n,null,2),h.value=`done`,y(`Success! Live at: ${m}${n.url}`)}catch(e){y(`webhook network error: ${e.message}`),h.value=`error`}}async function S(){if(!v.value)return;let e=new Blob([v.value],{type:`application/json`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`siteforge-package.json`,n.click(),URL.revokeObjectURL(t),await ie()}function C(){for(let e of t)r[e.key]=new Set(e.required??[]);u.value=``,c.value=``,l.value=!1,_.value=[],v.value=``,h.value=`idle`}return(e,n)=>(x(),D(w,null,[g(`main`,er,[g(`section`,tr,[n[2]||=g(`h2`,{id:`group-project`,class:`group-title`},`Project`,-1),g(`label`,nr,[n[1]||=g(`span`,null,`Name`,-1),ue(g(`input`,{"onUpdate:modelValue":n[0]||=e=>u.value=e,type:`text`,placeholder:`Acme Dental`,autocomplete:`off`,style:{"margin-top":`0.4rem`,padding:`0.4rem 0.6rem`,border:`1px solid var(--fg)`,"border-radius":`0.375rem`,background:`transparent`,color:`var(--fg)`,font:`inherit`}},null,512),[[Ye,u.value]])])]),(x(),D(w,null,A(t,e=>g(`section`,{key:e.key,class:`group`,"aria-labelledby":`group-${e.key}`},[g(`h2`,{id:`group-${e.key}`,class:`group-title`},o(e.title),9,ir),g(`ul`,ar,[(x(!0),D(w,null,A(e.items,t=>(x(),D(`li`,{key:t},[g(`label`,or,[g(`input`,{type:`checkbox`,checked:s(e.key,t),disabled:a(e,t),onChange:n=>i(e.key,t)},null,40,sr),g(`span`,null,o(t),1),a(e,t)?(x(),D(`span`,cr,` required `)):T(``,!0)])]))),128))])],8,rr)),64))]),g(`footer`,lr,[g(`div`,ur,[g(`button`,{type:`button`,class:`btn`,onClick:p},` Generate `),g(`button`,{type:`button`,class:`btn`,onClick:C},`Reset`),g(`button`,{type:`button`,class:`btn`,disabled:!c.value,onClick:ee},` View `,8,dr),g(`button`,{type:`button`,class:`btn`,disabled:!c.value,onClick:ne},` Download `,8,fr),g(`button`,{type:`button`,class:`btn`,disabled:!u.value.trim()||h.value===`connecting`||h.value===`sending`||h.value===`running`,onClick:b},` Build `,8,pr),g(`button`,{type:`button`,class:`btn`,disabled:!u.value.trim()||h.value===`connecting`||h.value===`sending`||h.value===`running`,onClick:ie,style:{background:`var(--fg)`,color:`#111`}},` Deploy to Siteforge Webhook `,8,mr),g(`button`,{type:`button`,class:`btn`,disabled:!v.value,onClick:S},` Download package `,8,hr)]),l.value&&c.value?(x(),D(`pre`,gr,o(c.value),1)):T(``,!0),h.value===`idle`?T(``,!0):(x(),D(`section`,_r,[g(`p`,vr,`Build: `+o(h.value),1),_.value.length?(x(),D(`pre`,yr,o(_.value.join(`
3
+ `)),1)):T(``,!0),v.value?(x(),D(`pre`,br,o(v.value),1)):T(``,!0)]))])],64))}}),[[`__scopeId`,`data-v-5e6ed138`]]),Sr=`modulepreload`,Cr=function(e){return`/`+e},wr={},Tr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Cr(t,n),t in wr)return;wr[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Sr,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Er=Jn({history:gn(),routes:[{path:`/`,name:`scaffold`,component:xr},{path:`/public-sites`,name:`public-sites`,component:()=>Tr(()=>import(`./PublicSitesView-BXY3L-PZ.js`),__vite__mapDeps([0,1,2]))},{path:`/negotiation`,name:`negotiation`,component:()=>Tr(()=>import(`./NegotiationView-tKWzSlqD.js`),__vite__mapDeps([3,1,4]))}]});nt($n).use(Er).mount(`#app`);export{Ye as n,Xe as t};
@@ -35,8 +35,9 @@
35
35
  sans-serif;
36
36
  }
37
37
  </style>
38
- <script type="module" crossorigin src="/assets/index-DP7Yrd8J.js"></script>
39
- <link rel="stylesheet" crossorigin href="/assets/index-BzotlfpW.css">
38
+ <script type="module" crossorigin src="/assets/index-BvnYOcQT.js"></script>
39
+ <link rel="modulepreload" crossorigin href="/assets/_plugin-vue_export-helper-BAgBgQXh.js">
40
+ <link rel="stylesheet" crossorigin href="/assets/index-BFlpvNyB.css">
40
41
  </head>
41
42
  <body>
42
43
  <div id="app"></div>
@@ -1 +0,0 @@
1
- import{a as e,c as t,d as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"./index-DP7Yrd8J.js";var d={class:`app-main`},f={class:`group`},p={class:`group-head`},m=[`disabled`],h={class:`summary-row`},g={class:`pill`},_={class:`pill`},v={key:0,class:`status-msg`},y={key:1,class:`error-msg`},b={key:2,class:`site-list`},x=[`href`],S={class:`site-state`},C={key:3,class:`status-msg`},w=l(e({__name:`PublicSitesView`,setup(e){let l=i([]),w=i(``),T=i(!0),E=i(`checking`),D=i({});function O(e){let t={};for(let n of e)t[n]=`checking`;D.value=t}async function k(e){try{let t=await fetch(`/public-sites/${encodeURIComponent(e)}/`,{cache:`no-store`,redirect:`manual`});D.value[e]=t.ok||t.status===302?`online`:`offline`}catch{D.value[e]=`offline`}}let A=()=>Object.values(D.value).filter(e=>e===`online`).length;async function j(){T.value=!0,w.value=``,E.value=`checking`;try{let e=await fetch(`/api/public-sites`,{cache:`no-store`});if(!e.ok)throw Error(`Error: ${e.status}`);E.value=`online`;let t=(await e.json()).sites||[];l.value=t,O(t),await Promise.all(t.map(e=>k(e)))}catch(e){E.value=`offline`,w.value=e.message||`Failed to load public sites`}finally{T.value=!1}}return o(j),(e,i)=>(c(),r(`main`,d,[s(`section`,f,[s(`div`,p,[i[0]||=s(`h2`,{class:`group-title`},`Public Sites`,-1),s(`button`,{type:`button`,class:`refresh-btn`,disabled:T.value,onClick:j},n(T.value?`Refreshing...`:`Refresh`),9,m)]),s(`div`,h,[s(`span`,{class:u([`pill`,`is-${E.value}`])},` Service: `+n(E.value),3),s(`span`,g,` Sites: `+n(l.value.length),1),s(`span`,_,` Online: `+n(A()),1)]),T.value?(c(),r(`div`,v,`Loading...`)):w.value?(c(),r(`div`,y,n(w.value),1)):l.value.length>0?(c(),r(`ul`,b,[(c(!0),r(a,null,t(l.value,e=>(c(),r(`li`,{key:e,class:`site-item`},[s(`span`,{class:u([`site-dot`,`is-${D.value[e]||`checking`}`])},null,2),s(`a`,{href:`/public-sites/${e}/`,target:`_blank`,class:`site-link`},n(e),9,x),s(`span`,S,n(D.value[e]||`checking`),1)]))),128))])):(c(),r(`div`,C,`No public sites found.`))])]))}}),[[`__scopeId`,`data-v-e1932d17`]]);export{w as default};
@@ -1,3 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PublicSitesView-BONa1Zoj.js","assets/PublicSitesView-EfFQbc8j.css"])))=>i.map(i=>d[i]);
2
- (function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ee=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),te=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ne=/-\w/g,T=te(e=>e.replace(ne,e=>e.slice(1).toUpperCase())),re=/\B([A-Z])/g,E=te(e=>e.replace(re,`-$1`).toLowerCase()),ie=te(e=>e.charAt(0).toUpperCase()+e.slice(1)),ae=te(e=>e?`on${ie(e)}`:``),D=(e,t)=>!Object.is(e,t),oe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},O=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},se=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ce,le=()=>ce||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ue(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=g(r)?me(r):ue(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(g(e)||v(e))return e}var de=/;(?![^(]*\))/g,fe=/:([^]+)/,pe=/\/\*[^]*?\*\//g;function me(e){let t={};return e.replace(pe,``).split(de).forEach(e=>{if(e){let n=e.split(fe);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function k(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=k(e[n]);r&&(t+=r+` `)}else if(v(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var he=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,ge=e(he);he+``;function _e(e){return!!e||e===``}function ve(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ye(e[r],t[r]);return n}function ye(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=_(e),r=_(t),n||r)return e===t;if(n=d(e),r=d(t),n||r)return n&&r?ve(e,t):!1;if(n=v(e),r=v(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!ye(e[n],t[n]))return!1}}return String(e)===String(t)}var be=e=>!!(e&&e.__v_isRef===!0),xe=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?be(e)?xe(e.value):JSON.stringify(e,Se,2):String(e),Se=(e,t)=>be(t)?Se(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ce(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ce(e))}:_(t)?Ce(t):v(t)&&!d(t)&&!C(t)?String(t):t,Ce=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,A,we=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&A&&(A.active?(this.parent=A,this.index=(A.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=A;try{return A=this,e()}finally{A=t}}}on(){++this._on===1&&(this.prevScope=A,A=this)}off(){if(this._on>0&&--this._on===0){if(A===this)A=this.prevScope;else{let e=A;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Te(){return A}var j,Ee=new WeakSet,De=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,A&&(A.active?A.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ee.has(this)&&(Ee.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||je(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ue(this),Pe(this);let e=j,t=M;j=this,M=!0;try{return this.fn()}finally{Fe(this),j=e,M=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Re(e);this.deps=this.depsTail=void 0,Ue(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ee.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ie(this)&&this.run()}get dirty(){return Ie(this)}},Oe=0,ke,Ae;function je(e,t=!1){if(e.flags|=8,t){e.next=Ae,Ae=e;return}e.next=ke,ke=e}function Me(){Oe++}function Ne(){if(--Oe>0)return;if(Ae){let e=Ae;for(Ae=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ke;){let t=ke;for(ke=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Pe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Fe(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Re(r),ze(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ie(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Le(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Le(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===We)||(e.globalVersion=We,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ie(e))))return;e.flags|=2;let t=e.dep,n=j,r=M;j=e,M=!0;try{Pe(e);let n=e.fn(e._value);(t.version===0||D(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{j=n,M=r,Fe(e),e.flags&=-3}}function Re(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Re(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ze(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var M=!0,Be=[];function Ve(){Be.push(M),M=!1}function He(){let e=Be.pop();M=e===void 0?!0:e}function Ue(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=j;j=void 0;try{t()}finally{j=e}}}var We=0,Ge=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Ke=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!j||!M||j===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==j)t=this.activeLink=new Ge(j,this),j.deps?(t.prevDep=j.depsTail,j.depsTail.nextDep=t,j.depsTail=t):j.deps=j.depsTail=t,qe(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=j.depsTail,t.nextDep=void 0,j.depsTail.nextDep=t,j.depsTail=t,j.deps===t&&(j.deps=e)}return t}trigger(e){this.version++,We++,this.notify(e)}notify(e){Me();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ne()}}};function qe(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)qe(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Je=new WeakMap,Ye=Symbol(``),Xe=Symbol(``),Ze=Symbol(``);function N(e,t,n){if(M&&j){let t=Je.get(e);t||Je.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Ke),r.map=t,r.key=n),r.track()}}function Qe(e,t,n,r,i,a){let o=Je.get(e);if(!o){We++;return}let s=e=>{e&&e.trigger()};if(Me(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Ze||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Ze)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Ye)),f(e)&&s(o.get(Xe)));break;case`delete`:i||(s(o.get(Ye)),f(e)&&s(o.get(Xe)));break;case`set`:f(e)&&s(o.get(Ye));break}}Ne()}function $e(e){let t=F(e);return t===e?t:(N(t,`iterate`,Ze),P(e)?t:t.map(Vt))}function et(e){return N(e=F(e),`iterate`,Ze),e}function tt(e,t){return Rt(e)?Ht(Lt(e)?Vt(t):t):Vt(t)}var nt={__proto__:null,[Symbol.iterator](){return rt(this,Symbol.iterator,e=>tt(this,e))},concat(...e){return $e(this).concat(...e.map(e=>d(e)?$e(e):e))},entries(){return rt(this,`entries`,e=>(e[1]=tt(this,e[1]),e))},every(e,t){return at(this,`every`,e,t,void 0,arguments)},filter(e,t){return at(this,`filter`,e,t,e=>e.map(e=>tt(this,e)),arguments)},find(e,t){return at(this,`find`,e,t,e=>tt(this,e),arguments)},findIndex(e,t){return at(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return at(this,`findLast`,e,t,e=>tt(this,e),arguments)},findLastIndex(e,t){return at(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return at(this,`forEach`,e,t,void 0,arguments)},includes(...e){return st(this,`includes`,e)},indexOf(...e){return st(this,`indexOf`,e)},join(e){return $e(this).join(e)},lastIndexOf(...e){return st(this,`lastIndexOf`,e)},map(e,t){return at(this,`map`,e,t,void 0,arguments)},pop(){return ct(this,`pop`)},push(...e){return ct(this,`push`,e)},reduce(e,...t){return ot(this,`reduce`,e,t)},reduceRight(e,...t){return ot(this,`reduceRight`,e,t)},shift(){return ct(this,`shift`)},some(e,t){return at(this,`some`,e,t,void 0,arguments)},splice(...e){return ct(this,`splice`,e)},toReversed(){return $e(this).toReversed()},toSorted(e){return $e(this).toSorted(e)},toSpliced(...e){return $e(this).toSpliced(...e)},unshift(...e){return ct(this,`unshift`,e)},values(){return rt(this,`values`,e=>tt(this,e))}};function rt(e,t,n){let r=et(e),i=r[t]();return r!==e&&!P(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var it=Array.prototype;function at(e,t,n,r,i,a){let o=et(e),s=o!==e&&!P(e),c=o[t];if(c!==it[t]){let t=c.apply(e,a);return s?Vt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,tt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function ot(e,t,n,r){let i=et(e),a=i!==e&&!P(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=tt(e,t)),n.call(this,t,tt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?tt(e,c):c}function st(e,t,n){let r=F(e);N(r,`iterate`,Ze);let i=r[t](...n);return(i===-1||i===!1)&&zt(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function ct(e,t,n=[]){Ve(),Me();let r=F(e)[t].apply(e,n);return Ne(),He(),r}var lt=e(`__proto__,__v_isRef,__isVue`),ut=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function dt(e){_(e)||(e=String(e));let t=F(this);return N(t,`has`,e),t.hasOwnProperty(e)}var ft=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?At:kt:i?Ot:Dt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=nt[t]))return e;if(t===`hasOwnProperty`)return dt}let o=Reflect.get(e,t,I(e)?e:n);if((_(t)?ut.has(t):lt(t))||(r||N(e,`get`,t),i))return o;if(I(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?Ft(e):e}return v(o)?r?Ft(o):Nt(o):o}},pt=class extends ft{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Rt(i);if(!P(n)&&!Rt(n)&&(i=F(i),n=F(n)),!a&&I(i)&&!I(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,I(e)?e:r);return e===F(r)&&(o?D(n,i)&&Qe(e,`set`,t,n,i):Qe(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Qe(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!_(t)||!ut.has(t))&&N(e,`has`,t),n}ownKeys(e){return N(e,`iterate`,d(e)?`length`:Ye),Reflect.ownKeys(e)}},mt=class extends ft{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ht=new pt,gt=new mt,_t=new pt(!0),vt=e=>e,yt=e=>Reflect.getPrototypeOf(e);function bt(e,t,n){return function(...r){let i=this.__v_raw,a=F(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?vt:t?Ht:Vt;return!t&&N(a,`iterate`,l?Xe:Ye),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function xt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function St(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(D(n,a)&&N(i,`get`,n),N(i,`get`,a));let{has:o}=yt(i),s=t?vt:e?Ht:Vt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&N(F(t),`iterate`,Ye),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(D(t,i)&&N(r,`has`,t),N(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=F(a),s=t?vt:e?Ht:Vt;return!e&&N(o,`iterate`,Ye),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:xt(`add`),set:xt(`set`),delete:xt(`delete`),clear:xt(`clear`)}:{add(e){let n=F(this),r=yt(n),i=F(e),a=!t&&!P(e)&&!Rt(e)?i:e;return r.has.call(n,a)||D(e,a)&&r.has.call(n,e)||D(i,a)&&r.has.call(n,i)||(n.add(a),Qe(n,`add`,a,a)),this},set(e,n){!t&&!P(n)&&!Rt(n)&&(n=F(n));let r=F(this),{has:i,get:a}=yt(r),o=i.call(r,e);o||=(e=F(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?D(n,s)&&Qe(r,`set`,e,n,s):Qe(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=yt(t),i=n.call(t,e);i||=(e=F(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Qe(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&&Qe(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=bt(r,e,t)}),n}function Ct(e,t){let n=St(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var wt={get:Ct(!1,!1)},Tt={get:Ct(!1,!0)},Et={get:Ct(!0,!1)},Dt=new WeakMap,Ot=new WeakMap,kt=new WeakMap,At=new WeakMap;function jt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Mt(e){return e.__v_skip||!Object.isExtensible(e)?0:jt(S(e))}function Nt(e){return Rt(e)?e:It(e,!1,ht,wt,Dt)}function Pt(e){return It(e,!1,_t,Tt,Ot)}function Ft(e){return It(e,!0,gt,Et,kt)}function It(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=Mt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Lt(e){return Rt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function Rt(e){return!!(e&&e.__v_isReadonly)}function P(e){return!!(e&&e.__v_isShallow)}function zt(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function Bt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&O(e,`__v_skip`,!0),e}var Vt=e=>v(e)?Nt(e):e,Ht=e=>v(e)?Ft(e):e;function I(e){return e?e.__v_isRef===!0:!1}function Ut(e){return Gt(e,!1)}function Wt(e){return Gt(e,!0)}function Gt(e,t){return I(e)?e:new Kt(e,t)}var Kt=class{constructor(e,t){this.dep=new Ke,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:Vt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||P(e)||Rt(e);e=n?e:F(e),D(e,t)&&(this._rawValue=e,this._value=n?e:Vt(e),this.dep.trigger())}};function qt(e){return I(e)?e.value:e}var Jt={get:(e,t,n)=>t===`__v_raw`?e:qt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return I(i)&&!I(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Yt(e){return Lt(e)?e:new Proxy(e,Jt)}var Xt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ke(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=We-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&j!==this)return je(this,!0),!0}get value(){let e=this.dep.track();return Le(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Zt(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new Xt(r,i,n)}var Qt={},$t=new WeakMap,en=void 0;function tn(e,t=!1,n=en){if(n){let t=$t.get(n);t||$t.set(n,t=[]),t.push(e)}}function nn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:P(e)||o===!1||o===0?rn(e,1):rn(e),m,g,_,v,y=!1,b=!1;if(I(e)?(g=()=>e.value,y=P(e)):Lt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Lt(e)||P(e)),g=()=>e.map(e=>{if(I(e))return e.value;if(Lt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){Ve();try{_()}finally{He()}}let t=en;en=m;try{return f?f(e,3,[v]):e(v)}finally{en=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>rn(e(),t)}let x=Te(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{e(...t),S()}}let C=b?Array(e.length).fill(Qt):Qt,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let e=m.run();if(o||y||(b?e.some((e,t)=>D(e,C[t])):D(e,C))){_&&_();let t=en;en=m;try{let t=[e,C===Qt?void 0:b&&C[0]===Qt?[]:C,v];C=e,f?f(n,3,t):n(...t)}finally{en=t}}}else m.run()};return u&&u(w),m=new De(g),m.scheduler=l?()=>l(w,!1):w,v=e=>tn(e,!1,m),_=m.onStop=()=>{let e=$t.get(m);if(e){if(f)f(e,4);else for(let t of e)t();$t.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function rn(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,I(e))rn(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)rn(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{rn(e,t,n)});else if(C(e)){for(let r in e)rn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rn(e[r],t,n)}return e}function an(e,t,n,r){try{return r?e(...r):e()}catch(e){sn(e,t,n)}}function on(e,t,n,r){if(h(e)){let i=an(e,t,n,r);return i&&y(i)&&i.catch(e=>{sn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a<e.length;a++)i.push(on(e[a],t,n,r));return i}}function sn(e,n,r,i=!0){let a=n?n.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=n&&n.appContext.config||t;if(n){let t=n.parent,i=n.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;t;){let n=t.ec;if(n){for(let t=0;t<n.length;t++)if(n[t](e,i,a)===!1)return}t=t.parent}if(o){Ve(),an(o,null,10,[e,i,a]),He();return}}cn(e,r,a,i,s)}function cn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var L=[],ln=-1,un=[],dn=null,fn=0,pn=Promise.resolve(),mn=null;function hn(e){let t=mn||pn;return e?t.then(this?e.bind(this):e):t}function gn(e){let t=ln+1,n=L.length;for(;t<n;){let r=t+n>>>1,i=L[r],a=Sn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function _n(e){if(!(e.flags&1)){let t=Sn(e),n=L[L.length-1];!n||!(e.flags&2)&&t>=Sn(n)?L.push(e):L.splice(gn(t),0,e),e.flags|=1,vn()}}function vn(){mn||=pn.then(Cn)}function yn(e){d(e)?un.push(...e):dn&&e.id===-1?dn.splice(fn+1,0,e):e.flags&1||(un.push(e),e.flags|=1),vn()}function bn(e,t,n=ln+1){for(;n<L.length;n++){let t=L[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;L.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function xn(e){if(un.length){let e=[...new Set(un)].sort((e,t)=>Sn(e)-Sn(t));if(un.length=0,dn){dn.push(...e);return}for(dn=e,fn=0;fn<dn.length;fn++){let e=dn[fn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}dn=null,fn=0}}var Sn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Cn(e){try{for(ln=0;ln<L.length;ln++){let e=L[ln];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),an(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;ln<L.length;ln++){let e=L[ln];e&&(e.flags&=-2)}ln=-1,L.length=0,xn(e),mn=null,(L.length||un.length)&&Cn(e)}}var R=null,wn=null;function Tn(e){let t=R;return R=e,wn=e&&e.type.__scopeId||null,t}function En(e,t=R,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Ai(-1);let i=Tn(t),a;try{a=e(...n)}finally{Tn(i),r._d&&Ai(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Dn(e,n){if(R===null)return e;let r=da(R),i=e.dirs||=[];for(let e=0;e<n.length;e++){let[a,o,s,c=t]=n[e];a&&(h(a)&&(a={mounted:a,updated:a}),a.deep&&rn(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function On(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Ve(),on(c,n,8,[e.el,s,e,t]),He())}}function kn(e,t){if(q){let n=q.provides,r=q.parent&&q.parent.provides;r===n&&(n=q.provides=Object.create(r)),n[e]=t}}function An(e,t,n=!1){let r=Xi();if(r||Fr){let i=Fr?Fr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&h(t)?t.call(r&&r.proxy):t}}var jn=Symbol.for(`v-scx`),Mn=()=>An(jn);function Nn(e,t,n){return Pn(e,t,n)}function Pn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(na){if(c===`sync`){let e=Mn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=q;u.call=(e,t,n)=>on(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{B(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():_n(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=nn(e,n,u);return na&&(f?f.push(h):d&&h()),h}function Fn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?In(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=$i(this),s=Pn(i,a.bind(r),n);return o(),s}function In(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Ln=Symbol(`_vte`),Rn=e=>e.__isTeleport,zn=Symbol(`_leaveCb`);function Bn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Bn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vn(e,t){return h(e)?s({name:e.name},t,{setup:e}):e}function Hn(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function Un(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Wn=new WeakMap;function Gn(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>Gn(e,n&&(d(n)?n[t]:n),r,a,o));return}if(qn(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Gn(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?da(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=F(v),b=v===t?i:e=>Un(_,e)?!1:u(y,e),x=(e,t)=>!(t&&Un(_,t));if(m!=null&&m!==p){if(Kn(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(I(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))an(p,f,12,[l,_]);else{let t=g(p),n=I(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),Wn.delete(e)};t.id=-1,Wn.set(e,t),B(t,r)}else Kn(e),i()}}}function Kn(e){let t=Wn.get(e);t&&(t.flags|=8,Wn.delete(e))}le().requestIdleCallback,le().cancelIdleCallback;var qn=e=>!!e.type.__asyncLoader,Jn=e=>e.type.__isKeepAlive;function Yn(e,t){Zn(e,`a`,t)}function Xn(e,t){Zn(e,`da`,t)}function Zn(e,t,n=q){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if($n(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Jn(e.parent.vnode)&&Qn(r,t,n,e),e=e.parent}}function Qn(e,t,n,r){let i=$n(t,e,r,!0);or(()=>{c(r[t],i)},n)}function $n(e,t,n=q,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ve();let i=$i(n),a=on(t,n,e,r);return i(),He(),a};return r?i.unshift(a):i.push(a),a}}var er=e=>(t,n=q)=>{(!na||e===`sp`)&&$n(e,(...e)=>t(...e),n)},tr=er(`bm`),nr=er(`m`),rr=er(`bu`),ir=er(`u`),ar=er(`bum`),or=er(`um`),sr=er(`sp`),cr=er(`rtg`),lr=er(`rtc`);function ur(e,t=q){$n(`ec`,e,t)}var dr=Symbol.for(`v-ndc`);function fr(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Lt(e),r=!1,s=!1;n&&(r=!P(e),s=Rt(e),e=et(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Ht(Vt(e[n])):Vt(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(v(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}var pr=e=>e?ta(e)?da(e):pr(e.parent):null,mr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>pr(e.parent),$root:e=>pr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Cr(e),$forceUpdate:e=>e.f||=()=>{_n(e.update)},$nextTick:e=>e.n||=hn.bind(e.proxy),$watch:e=>Fn.bind(e)}),hr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),gr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(hr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else vr&&(s[n]=0)}let d=mr[n],f,p;if(d)return n===`$attrs`&&N(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return hr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||hr(n,c)||u(o,c)||u(i,c)||u(mr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function _r(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var vr=!0;function yr(e){let t=Cr(e),n=e.proxy,i=e.ctx;vr=!1,t.beforeCreate&&xr(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:ee,renderTracked:te,renderTriggered:ne,errorCaptured:T,serverPrefetch:re,expose:E,inheritAttrs:ie,components:ae,directives:D,filters:oe}=t;if(u&&br(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Nt(t))}if(vr=!0,o)for(let e in o){let t=o[e],a=J({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Sr(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{kn(t,e[t])})}f&&xr(f,e,`c`);function O(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(O(tr,p),O(nr,m),O(rr,g),O(ir,_),O(Yn,y),O(Xn,b),O(ur,T),O(lr,te),O(cr,ne),O(ar,S),O(or,w),O(sr,re),d(E))if(E.length){let t=e.exposed||={};E.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};ee&&e.render===r&&(e.render=ee),ie!=null&&(e.inheritAttrs=ie),ae&&(e.components=ae),D&&(e.directives=D),re&&Hn(e)}function br(e,t,n=r){d(e)&&(e=Or(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?An(r.from||n,r.default,!0):An(r.from||n):An(r),I(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function xr(e,t,n){on(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Sr(e,t,n,r){let i=r.includes(`.`)?In(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&Nn(i,n)}else if(h(e))Nn(i,e.bind(n));else if(v(e))if(d(e))e.forEach(e=>Sr(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&Nn(i,r,e)}}function Cr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>wr(c,e,o,!0)),wr(c,t,o)),v(t)&&a.set(t,c),c}function wr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&wr(e,a,n,!0),i&&i.forEach(t=>wr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Tr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Tr={data:Er,props:Ar,emits:Ar,methods:kr,computed:kr,beforeCreate:z,created:z,beforeMount:z,mounted:z,beforeUpdate:z,updated:z,beforeDestroy:z,beforeUnmount:z,destroyed:z,unmounted:z,activated:z,deactivated:z,errorCaptured:z,serverPrefetch:z,components:kr,directives:kr,watch:jr,provide:Er,inject:Dr};function Er(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function Dr(e,t){return kr(Or(e),Or(t))}function Or(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function z(e,t){return e?[...new Set([].concat(e,t))]:t}function kr(e,t){return e?s(Object.create(null),e,t):t}function Ar(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:s(Object.create(null),_r(e),_r(t??{})):t}function jr(e,t){if(!e)return t;if(!t)return e;let n=s(Object.create(null),e);for(let r in t)n[r]=z(e[r],t[r]);return n}function Mr(){return{app:null,config:{isNativeTag:i,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Nr=0;function Pr(e,t){return function(n,r=null){h(n)||(n=s({},n)),r!=null&&!v(r)&&(r=null);let i=Mr(),a=new WeakSet,o=[],c=!1,l=i.app={_uid:Nr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:ma,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&h(e.install)?(a.add(e),e.install(l,...t)):h(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,s){if(!c){let u=l._ceVNode||K(n,r);return u.appContext=i,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(u,a):e(u,a,s),c=!0,l._container=a,a.__vue_app__=l,da(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&(on(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=Fr;Fr=l;try{return e()}finally{Fr=t}}};return l}}var Fr=null,Ir=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${T(t)}Modifiers`]||e[`${E(t)}Modifiers`];function Lr(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&Ir(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(se)));let c,l=i[c=ae(n)]||i[c=ae(T(n))];!l&&o&&(l=i[c=ae(E(n))]),l&&on(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,on(u,e,6,a)}}var Rr=new WeakMap;function zr(e,t,n=!1){let r=n?Rr:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=zr(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Br(e,t){return!e||!a(t)?!1:(t=t.slice(2).replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,E(t))||u(e,t))}function Vr(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=Tn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Hi(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Hi(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:Hr(c)}}catch(t){Di.length=0,sn(t,e,1),v=K(Ti)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Ur(y,a)),b=zi(b,y,!1,!0))}return n.dirs&&(b=zi(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Bn(b,n.transition),v=b,Tn(_),v}var Hr=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Ur=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Wr(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Gr(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Kr(o,r,n)&&!Br(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Gr(r,o,l):!0:!!o;return!1}function Gr(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Kr(t,e,a)&&!Br(n,a))return!0}return!1}function Kr(e,t,n){let r=e[n],i=t[n];return n===`style`&&v(r)&&v(i)?!ye(r,i):r!==i}function qr({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var Jr={},Yr=()=>Object.create(Jr),Xr=e=>Object.getPrototypeOf(e)===Jr;function Zr(e,t,n,r=!1){let i={},a=Yr();e.propsDefaults=Object.create(null),$r(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Pt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Qr(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=F(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Br(e.emitsOptions,o))continue;let d=t[o];if(c)if(u(a,o))d!==a[o]&&(a[o]=d,l=!0);else{let t=T(o);i[t]=ei(c,s,t,d,e,!1)}else d!==a[o]&&(a[o]=d,l=!0)}}}else{$r(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=E(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=ei(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!u(t,e))&&(delete a[e],l=!0)}l&&Qe(e.attrs,`set`,``)}function $r(e,n,r,i){let[a,o]=e.propsOptions,s=!1,c;if(n)for(let t in n){if(ee(t))continue;let l=n[t],d;a&&u(a,d=T(t))?!o||!o.includes(d)?r[d]=l:(c||={})[d]=l:Br(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=F(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=ei(a,n,s,i[s],e,!u(i,s))}}return s}function ei(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=u(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&h(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=$i(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===E(n))&&(r=!0))}return r}var ti=new WeakMap;function ni(e,r,i=!1){let a=i?ti:r.propsCache,o=a.get(e);if(o)return o;let c=e.props,l={},f=[],p=!1;if(!h(e)){let t=e=>{p=!0;let[t,n]=ni(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;e<c.length;e++){let n=T(c[e]);ri(n)&&(l[n]=t)}else if(c)for(let e in c){let t=T(e);if(ri(t)){let n=c[e],r=l[t]=d(n)||h(n)?{type:n}:s({},n),i=r.type,a=!1,o=!0;if(d(i))for(let e=0;e<i.length;++e){let t=i[e],n=h(t)&&t.name;if(n===`Boolean`){a=!0;break}else n===`String`&&(o=!1)}else a=h(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||u(r,`default`))&&f.push(t)}}let m=[l,f];return v(e)&&a.set(e,m),m}function ri(e){return e[0]!==`$`&&!ee(e)}var ii=e=>e===`_`||e===`_ctx`||e===`$stable`,ai=e=>d(e)?e.map(Hi):[Hi(e)],oi=(e,t,n)=>{if(t._n)return t;let r=En((...e)=>ai(t(...e)),n);return r._c=!1,r},si=(e,t,n)=>{let r=e._ctx;for(let n in e){if(ii(n))continue;let i=e[n];if(h(i))t[n]=oi(n,i,r);else if(i!=null){let e=ai(i);t[n]=()=>e}}},ci=(e,t)=>{let n=ai(t);e.slots.default=()=>n},li=(e,t,n)=>{for(let r in t)(n||!ii(r))&&(e[r]=t[r])},ui=(e,t,n)=>{let r=e.slots=Yr();if(e.vnode.shapeFlag&32){let e=t._;e?(li(r,t,n),n&&O(r,`_`,e,!0)):si(t,r)}else t&&ci(e,t)},di=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:li(a,n,r):(o=!n.$stable,si(n,a)),s=n}else n&&(ci(e,n),s={default:1});if(o)for(let e in a)!ii(e)&&s[e]==null&&delete a[e]},B=Ci;function fi(e){return pi(e)}function pi(e,i){let a=le();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Pi(e,t)&&(r=ye(e),k(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case wi:y(e,t,n,r);break;case Ti:b(e,t,n,r);break;case Ei:e??x(t,n,r,o);break;case V:ae(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?D(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,Se)}u!=null&&i?Gn(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Gn(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)te(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),re(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},te=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&T(e.children,d,null,r,i,mi(e,a),s,u),_&&On(e,null,r,`created`),ne(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!ee(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Ki(f,r,e)}_&&On(e,null,r,`beforeMount`);let v=gi(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&B(()=>{try{f&&Ki(f,r,e),v&&g.enter(d),_&&On(e,null,r,`mounted`)}finally{}},i)},ne=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Si(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;ne(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},T=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?Ui(e[l]):Hi(e[l]),t,n,r,i,a,o,s)},re=(e,n,r,i,a,o,s)=>{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&hi(r,!1),(g=h.onVnodeBeforeUpdate)&&Ki(g,r,n,e),f&&On(n,e,r,`beforeUpdate`),r&&hi(r,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?E(e.dynamicChildren,d,l,r,i,mi(n,a),o):s||de(e,n,l,null,r,i,mi(n,a),o,!1),u>0){if(u&16)ie(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==n.children&&p(l,n.children)}else !s&&d==null&&ie(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&B(()=>{g&&Ki(g,r,n,e),f&&On(n,e,r,`updated`)},i)},E=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===V||!Pi(c,l)||c.shapeFlag&198)?m(c.el):n,null,r,i,a,o,!0)}},ie=(e,n,r,i,a)=>{if(n!==r){if(n!==t)for(let t in n)!ee(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(ee(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},ae=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),T(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(E(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&_i(e,t,!0)):de(e,t,n,f,i,a,s,c,l)},D=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):O(t,n,r,i,a,o,c):se(e,t,c)},O=(e,t,n,r,i,a,o)=>{let s=e.component=Yi(e,r,i);if(Jn(e)&&(s.ctx.renderer=Se),ra(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ce,o),!e.el){let r=s.subTree=K(Ti);b(null,r,t,n),e.placeholder=r.el}}else ce(s,e,t,n,i,a,o)},se=(e,t,n)=>{let r=t.component=e.component;if(Wr(e,t,n))if(r.asyncDep&&!r.asyncResolved){ue(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ce=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=yi(e);if(n){t&&(t.el=c.el,ue(e,t,o)),n.asyncDep.then(()=>{B(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;hi(e,!1),t?(t.el=c.el,ue(e,t,o)):t=c,n&&oe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Ki(d,s,t,c),hi(e,!0);let f=Vr(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ye(p),e,i,a),t.el=f.el,u===null&&qr(e,f.el),r&&B(r,i),(d=t.props&&t.props.onVnodeUpdated)&&B(()=>Ki(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=qn(t);if(hi(e,!1),l&&oe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ki(o,d,t),hi(e,!0),s&&A){let t=()=>{e.subTree=Vr(e),A(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Vr(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&B(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;B(()=>Ki(o,d,e),i)}(t.shapeFlag&256||d&&qn(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&B(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new De(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>_n(u),hi(e,!0),l()},ue=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Qr(e,t.props,r,n),di(e,t.children,n),Ve(),bn(e),He()},de=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){pe(l,d,n,r,i,a,o,s,c);return}else if(f&256){fe(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ve(l,i,a),d!==l&&p(n,d)):u&16?m&16?pe(l,d,n,r,i,a,o,s,c):ve(l,i,a,!0):(u&8&&p(n,``),m&16&&T(d,n,r,i,a,o,s,c))},fe=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let n=t[p]=l?Ui(t[p]):Hi(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?ve(e,a,o,!0,!1,f):T(t,r,i,a,o,s,c,l,f)},pe=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Ui(t[u]):Hi(t[u]);if(Pi(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Ui(t[p]):Hi(t[p]);if(Pi(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?Ui(t[u]):Hi(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)k(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Ui(t[u]):Hi(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let n=e[u];if(y>=b){k(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Pi(n,t[_])){i=_;break}i===void 0?k(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?vi(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||xi(f):i;C[u]===0?v(null,n,r,p,a,o,s,c,l):x&&(_<0||u!==w[_]?me(n,r,p,2):_--)}}},me=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){me(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,Se);return}if(c===V){o(a,t,n);for(let e=0;e<u.length;e++)me(u[e],t,n,r);o(e.anchor,t,n);return}if(c===Ei){S(e,t,n);return}if(r!==2&&d&1&&l)if(r===0)l.beforeEnter(a),o(a,t,n),B(()=>l.enter(a),i);else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{a._isLeaving&&a[zn](!0),r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},k=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ve(),Gn(s,null,n,e,!0),He()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!qn(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Ki(_,t,e),u&6)_e(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&On(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Se,r):l&&!l.hasOnce&&(a!==V||d>0&&d&64)?ve(l,t,n,!1,!0):(a===V&&d&384||!i&&u&16)&&ve(c,t,n),r&&he(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&B(()=>{_&&Ki(_,t,e),h&&On(e,null,t,`unmounted`),v&&(e.el=null)},n)},he=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===V){ge(n,r);return}if(t===Ei){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},ge=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},_e=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;bi(c),bi(l),r&&oe(r),i.stop(),a&&(a.flags|=8,k(o,e,t,n)),s&&B(s,t),B(()=>{e.isUnmounted=!0},t)},ve=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)k(e[o],t,n,r,i)},ye=e=>{if(e.shapeFlag&6)return ye(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Ln];return n?h(n):t},be=!1,xe=(e,t,n)=>{let r;e==null?t._vnode&&(k(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,be||=(be=!0,bn(r),xn(),!1)},Se={p:v,um:k,m:me,r:he,mt:O,mc:T,pc:de,pbc:E,n:ye,o:e},Ce,A;return i&&([Ce,A]=i(Se)),{render:xe,hydrate:Ce,createApp:Pr(xe,Ce)}}function mi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function hi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function gi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _i(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Ui(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&_i(t,a)),a.type===wi&&(a.patchFlag===-1&&(a=i[e]=Ui(a)),a.el=t.el),a.type===Ti&&!a.el&&(a.el=t.el)}}function vi(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function yi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:yi(t)}function bi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function xi(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?xi(t.subTree):null}var Si=e=>e.__isSuspense;function Ci(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):yn(e)}var V=Symbol.for(`v-fgt`),wi=Symbol.for(`v-txt`),Ti=Symbol.for(`v-cmt`),Ei=Symbol.for(`v-stc`),Di=[],H=null;function U(e=!1){Di.push(H=e?null:[])}function Oi(){Di.pop(),H=Di[Di.length-1]||null}var ki=1;function Ai(e,t=!1){ki+=e,e<0&&H&&t&&(H.hasOnce=!0)}function ji(e){return e.dynamicChildren=ki>0?H||n:null,Oi(),ki>0&&H&&H.push(e),e}function W(e,t,n,r,i,a){return ji(G(e,t,n,r,i,a,!0))}function Mi(e,t,n,r,i){return ji(K(e,t,n,r,i,!0))}function Ni(e){return e?e.__v_isVNode===!0:!1}function Pi(e,t){return e.type===t.type&&e.key===t.key}var Fi=({key:e})=>e??null,Ii=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||I(e)||h(e)?{i:R,r:e,k:t,f:!!n}:e);function G(e,t=null,n=null,r=0,i=null,a=e===V?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fi(t),ref:t&&Ii(t),scopeId:wn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:R};return s?(Wi(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),ki>0&&!o&&H&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&H.push(c),c}var K=Li;function Li(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===dr)&&(e=Ti),Ni(e)){let r=zi(e,t,!0);return n&&Wi(r,n),ki>0&&!a&&H&&(r.shapeFlag&6?H[H.indexOf(e)]=r:H.push(r)),r.patchFlag=-2,r}if(fa(e)&&(e=e.__vccOpts),t){t=Ri(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=k(e)),v(n)&&(zt(n)&&!d(n)&&(n=s({},n)),t.style=ue(n))}let o=g(e)?1:Si(e)?128:Rn(e)?64:v(e)?4:h(e)?2:0;return G(e,t,n,r,i,o,a,!0)}function Ri(e){return e?zt(e)||Xr(e)?s({},e):e:null}function zi(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Gi(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Fi(l),ref:t&&t.ref?n&&a?d(a)?a.concat(Ii(t)):[a,Ii(t)]:Ii(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==V?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zi(e.ssContent),ssFallback:e.ssFallback&&zi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Bn(u,c.clone(u)),u}function Bi(e=` `,t=0){return K(wi,null,e,t)}function Vi(e=``,t=!1){return t?(U(),Mi(Ti,null,e)):K(Ti,null,e)}function Hi(e){return e==null||typeof e==`boolean`?K(Ti):d(e)?K(V,null,e.slice()):Ni(e)?Ui(e):K(wi,null,String(e))}function Ui(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zi(e)}function Wi(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Wi(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Xr(t)?t._ctx=R:r===3&&R&&(R.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else h(t)?(t={default:t,_ctx:R},n=32):(t=String(t),r&64?(n=16,t=[Bi(t)]):n=8);e.children=t,e.shapeFlag|=n}function Gi(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=k([t.class,r.class]));else if(e===`style`)t.style=ue([t.style,r.style]);else if(a(e)){let n=t[e],i=r[e];i&&n!==i&&!(d(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!o(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Ki(e,t,n,r=null){on(e,t,7,[n,r])}var qi=Mr(),Ji=0;function Yi(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||qi,o={uid:Ji++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new we(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ni(i,a),emitsOptions:zr(i,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:i.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=n?n.root:o,o.emit=Lr.bind(null,o),e.ce&&e.ce(o),o}var q=null,Xi=()=>q||R,Zi,Qi;{let e=le(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Zi=t(`__VUE_INSTANCE_SETTERS__`,e=>q=e),Qi=t(`__VUE_SSR_SETTERS__`,e=>na=e)}var $i=e=>{let t=q;return Zi(e),e.scope.on(),()=>{e.scope.off(),Zi(t)}},ea=()=>{q&&q.scope.off(),Zi(null)};function ta(e){return e.vnode.shapeFlag&4}var na=!1;function ra(e,t=!1,n=!1){t&&Qi(t);let{props:r,children:i}=e.vnode,a=ta(e);Zr(e,r,a,t),ui(e,i,n||t);let o=a?ia(e,t):void 0;return t&&Qi(!1),o}function ia(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,gr);let{setup:r}=n;if(r){Ve();let n=e.setupContext=r.length>1?ua(e):null,i=$i(e),a=an(r,e,0,[e.props,n]),o=y(a);if(He(),i(),(o||e.sp)&&!qn(e)&&Hn(e),o){if(a.then(ea,ea),t)return a.then(n=>{aa(e,n,t)}).catch(t=>{sn(t,e,0)});e.asyncDep=a}else aa(e,a,t)}else ca(e,t)}function aa(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Yt(t)),ca(e,n)}var oa,sa;function ca(e,t,n){let i=e.type;if(!e.render){if(!t&&oa&&!i.render){let t=i.template||Cr(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=oa(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,sa&&sa(e)}{let t=$i(e);Ve();try{yr(e)}finally{He(),t()}}}var la={get(e,t){return N(e,`get`,``),e[t]}};function ua(e){return{attrs:new Proxy(e.attrs,la),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function da(e){return e.exposed?e.exposeProxy||=new Proxy(Yt(Bt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mr)return mr[n](e)},has(e,t){return t in e||t in mr}}):e.proxy}function fa(e){return h(e)&&`__vccOpts`in e}var J=(e,t)=>Zt(e,t,na);function pa(e,t,n){try{Ai(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?Ni(t)?K(e,null,[t]):K(e,t):K(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ni(n)&&(n=[n]),K(e,t,n))}finally{Ai(1)}}var ma=`3.5.34`,ha=void 0,ga=typeof window<`u`&&window.trustedTypes;if(ga)try{ha=ga.createPolicy(`vue`,{createHTML:e=>e})}catch{}var _a=ha?e=>ha.createHTML(e):e=>e,va=`http://www.w3.org/2000/svg`,ya=`http://www.w3.org/1998/Math/MathML`,ba=typeof document<`u`?document:null,xa=ba&&ba.createElement(`template`),Sa={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?ba.createElementNS(va,e):t===`mathml`?ba.createElementNS(ya,e):n?ba.createElement(e,{is:n}):ba.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>ba.createTextNode(e),createComment:e=>ba.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ba.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{xa.innerHTML=_a(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=xa.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ca=Symbol(`_vtc`);function wa(e,t,n){let r=e[Ca];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ta=Symbol(`_vod`),Ea=Symbol(`_vsh`),Da=Symbol(``),Oa=/(?:^|;)\s*display\s*:/;function ka(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t)if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??ja(r,t,``)}else for(let e in t)n[e]??ja(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?ja(r,i,``):Fa(e,i,!g(t)&&t?t[i]:void 0,o)||ja(r,i,o)}}else if(i){if(t!==n){let e=r[Da];e&&(n+=`;`+e),r.cssText=n,a=Oa.test(n)}}else t&&e.removeAttribute(`style`);Ta in e&&(e[Ta]=a?r.display:``,e[Ea]&&(r.display=`none`))}var Aa=/\s*!important$/;function ja(e,t,n){if(d(n))n.forEach(n=>ja(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Pa(e,t);Aa.test(n)?e.setProperty(E(r),n.replace(Aa,``),`important`):e[r]=n}}var Ma=[`Webkit`,`Moz`,`ms`],Na={};function Pa(e,t){let n=Na[t];if(n)return n;let r=T(t);if(r!==`filter`&&r in e)return Na[t]=r;r=ie(r);for(let n=0;n<Ma.length;n++){let i=Ma[n]+r;if(i in e)return Na[t]=i}return t}function Fa(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&g(r)&&n===r}var Ia=`http://www.w3.org/1999/xlink`;function La(e,t,n,r,i,a=ge(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Ia,t.slice(6,t.length)):e.setAttributeNS(Ia,t,n):n==null||a&&!_e(n)?e.removeAttribute(t):e.setAttribute(t,a?``:_(n)?String(n):n)}function Ra(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?_a(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=_e(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function za(e,t,n,r){e.addEventListener(t,n,r)}function Ba(e,t,n,r){e.removeEventListener(t,n,r)}var Va=Symbol(`_vei`);function Ha(e,t,n,r,i=null){let a=e[Va]||(e[Va]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Wa(t);r?za(e,n,a[t]=Ja(r,i),s):o&&(Ba(e,n,o,s),a[t]=void 0)}}var Ua=/(?:Once|Passive|Capture)$/;function Wa(e){let t;if(Ua.test(e)){t={};let n;for(;n=e.match(Ua);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):E(e.slice(2)),t]}var Ga=0,Ka=Promise.resolve(),qa=()=>Ga||=(Ka.then(()=>Ga=0),Date.now());function Ja(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;on(Ya(e,n.value),t,5,[e])};return n.value=e,n.attached=qa(),n}function Ya(e,t){if(d(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var Xa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Za=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?wa(e,r,c):t===`style`?ka(e,n,r):a(t)?o(t)||Ha(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Qa(e,t,r,c))?(Ra(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&La(e,t,r,c,s,t!==`value`)):e._isVueCE&&($a(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?Ra(e,T(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),La(e,t,r,c))};function Qa(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Xa(t)&&h(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Xa(t)&&g(n)?!1:t in e}function $a(e,t){let n=e._def.props;if(!n)return!1;let r=T(t);return Array.isArray(n)?n.some(e=>T(e)===r):Object.keys(n).some(e=>T(e)===r)}var eo=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>oe(t,e):t};function to(e){e.target.composing=!0}function no(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var ro=Symbol(`_assign`);function io(e,t,n){return t&&(e=e.trim()),n&&(e=se(e)),e}var ao={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[ro]=eo(i);let a=r||i.props&&i.props.type===`number`;za(e,t?`change`:`input`,t=>{t.target.composing||e[ro](io(e.value,n,a))}),(n||a)&&za(e,`change`,()=>{e.value=io(e.value,n,a)}),t||(za(e,`compositionstart`,to),za(e,`compositionend`,no),za(e,`change`,no))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[ro]=eo(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?se(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},oo=s({patchProp:Za},Sa),so;function co(){return so||=fi(oo)}var lo=((...e)=>{let t=co().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=fo(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,uo(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function uo(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function fo(e){return g(e)?document.querySelector(e):e}var po=typeof document<`u`;function mo(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function ho(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&mo(e.default)}var Y=Object.assign;function go(e,t){let n={};for(let r in t){let i=t[r];n[r]=X(i)?i.map(e):e(i)}return n}var _o=()=>{},X=Array.isArray;function vo(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var yo=/#/g,bo=/&/g,xo=/\//g,So=/=/g,Co=/\?/g,wo=/\+/g,To=/%5B/g,Eo=/%5D/g,Do=/%5E/g,Oo=/%60/g,ko=/%7B/g,Ao=/%7C/g,jo=/%7D/g,Mo=/%20/g;function No(e){return e==null?``:encodeURI(``+e).replace(Ao,`|`).replace(To,`[`).replace(Eo,`]`)}function Po(e){return No(e).replace(ko,`{`).replace(jo,`}`).replace(Do,`^`)}function Fo(e){return No(e).replace(wo,`%2B`).replace(Mo,`+`).replace(yo,`%23`).replace(bo,`%26`).replace(Oo,"`").replace(ko,`{`).replace(jo,`}`).replace(Do,`^`)}function Io(e){return Fo(e).replace(So,`%3D`)}function Lo(e){return No(e).replace(yo,`%23`).replace(Co,`%3F`)}function Ro(e){return Lo(e).replace(xo,`%2F`)}function zo(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Bo=/\/$/,Vo=e=>e.replace(Bo,``);function Ho(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Xo(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:zo(o)}}function Uo(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Wo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Go(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ko(t.matched[r],n.matched[i])&&qo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ko(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Jo(e[n],t[n]))return!1;return!0}function Jo(e,t){return X(e)?Yo(e,t):X(t)?Yo(t,e):e?.valueOf()===t?.valueOf()}function Yo(e,t){return X(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Xo(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Zo={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Qo=function(e){return e.pop=`pop`,e.push=`push`,e}({}),$o=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function es(e){if(!e)if(po){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Vo(e)}var ts=/^[^#]+#/;function ns(e,t){return e.replace(ts,`#`)+t}function rs(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var is=()=>({left:window.scrollX,top:window.scrollY});function as(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=rs(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function os(e,t){return(history.state?history.state.position-t:-1)+e}var ss=new Map;function cs(e,t){ss.set(e,t)}function ls(e){let t=ss.get(e);return ss.delete(e),t}function us(e){return typeof e==`string`||e&&typeof e==`object`}function ds(e){return typeof e==`string`||typeof e==`symbol`}var Z=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),fs=Symbol(``);Z.MATCHER_NOT_FOUND,Z.NAVIGATION_GUARD_REDIRECT,Z.NAVIGATION_ABORTED,Z.NAVIGATION_CANCELLED,Z.NAVIGATION_DUPLICATED;function ps(e,t){return Y(Error(),{type:e,[fs]:!0},t)}function ms(e,t){return e instanceof Error&&fs in e&&(t==null||!!(e.type&t))}function hs(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(wo,` `),i=r.indexOf(`=`),a=zo(i<0?r:r.slice(0,i)),o=i<0?null:zo(r.slice(i+1));if(a in t){let e=t[a];X(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function gs(e){let t=``;for(let n in e){let r=e[n];if(n=Io(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(X(r)?r.map(e=>e&&Fo(e)):[r&&Fo(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function _s(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=X(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var vs=Symbol(``),ys=Symbol(``),bs=Symbol(``),xs=Symbol(``),Ss=Symbol(``);function Cs(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ws(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(ps(Z.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):us(e)?c(ps(Z.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Ts(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(mo(s)){let c=(s.__vccOpts||s)[t];c&&a.push(ws(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=ho(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&ws(c,n,r,o,e,i)()}))}}return a}function Es(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Ko(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Ko(e,s))||i.push(s))}return[n,r,i]}var Ds=()=>location.protocol+`//`+location.host;function Os(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Wo(n,``)}return Wo(n,e)+r+i}function ks(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Os(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Qo.pop,direction:u?u>0?$o.forward:$o.back:$o.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(Y({},e.state,{scroll:is()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function As(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?is():null}}function js(e){let{history:t,location:n}=window,r={value:Os(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ds()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,Y({},t.state,As(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=Y({},i.value,t.state,{forward:e,scroll:is()});a(o.current,o,!0),a(e,Y({},As(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Ms(e){e=es(e);let t=js(e),n=ks(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=Y({location:``,base:e,go:r,createHref:ns.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}var Ns=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),Ps={type:Ns.Static,value:``},Fs=/[a-zA-Z0-9_]/;function Is(e){if(!e)return[[]];if(e===`/`)return[[Ps]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Ns.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Ns.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:Fs.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Ls=`[^/]+?`,Rs={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),zs=/[.+*?^${}()[\]/\\]/g;function Bs(e,t){let n=Y({},Rs,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Ns.Static)r||(i+=`/`),i+=o.value.replace(zs,`\\$&`),s+=$.Static;else if(o.type===Ns.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Ls;if(u!==Ls){s+=$.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Ns.Static)n+=e.value;else if(e.type===Ns.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(X(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=X(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Vs(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function Hs(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Vs(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Us(r))return 1;if(Us(i))return-1}return i.length-r.length}function Us(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Ws={strict:!1,end:!0,sensitive:!1};function Gs(e,t,n){let r=Y(Bs(Is(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ks(e,t){let n=[],r=new Map;t=vo(Ws,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Js(e);s.aliasOf=r&&r.record;let l=vo(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Js(Y({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Gs(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Xs(d)&&o(e.name)),ec(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:_o}function o(e){if(ds(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Qs(e,n);n.splice(t,0,e),e.record.name&&!Xs(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw ps(Z.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=Y(qs(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&qs(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw ps(Z.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=Y({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Zs(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function qs(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Js(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ys(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function Ys(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Xs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Zs(e){return e.reduce((e,t)=>Y(e,t.meta),{})}function Qs(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Hs(e,t[i])<0?r=i:n=i+1}let i=$s(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function $s(e){let t=e;for(;t=t.parent;)if(ec(t)&&Hs(e,t)===0)return t}function ec({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function tc(e){let t=An(bs),n=An(xs),r=J(()=>{let n=qt(e.to);return t.resolve(n)}),i=J(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Ko.bind(null,i));if(o>-1)return o;let s=oc(e[t-2]);return t>1&&oc(i)===s&&a[a.length-1].path!==s?a.findIndex(Ko.bind(null,e[t-2])):o}),a=J(()=>i.value>-1&&ac(n.params,r.value.params)),o=J(()=>i.value>-1&&i.value===n.matched.length-1&&qo(n.params,r.value.params));function s(n={}){if(ic(n)){let n=t[qt(e.replace)?`replace`:`push`](qt(e.to)).catch(_o);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:J(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function nc(e){return e.length===1?e[0]:e}var rc=Vn({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:tc,setup(e,{slots:t}){let n=Nt(tc(e)),{options:r}=An(bs),i=J(()=>({[sc(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[sc(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&nc(t.default(n));return e.custom?r:pa(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function ic(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ac(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!X(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function oc(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var sc=(e,t,n)=>e??t??n,cc=Vn({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=An(Ss),i=J(()=>e.route||r.value),a=An(ys,0),o=J(()=>{let e=qt(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=J(()=>i.value.matched[o.value]);kn(ys,J(()=>o.value+1)),kn(vs,s),kn(Ss,i);let c=Ut();return Nn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Ko(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return lc(n.default,{Component:l,route:r});let u=o.props[a],d=pa(l,Y({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return lc(n.default,{Component:d,route:r})||d}}});function lc(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var uc=cc;function dc(e){let t=Ks(e.routes,e),n=e.parseQuery||hs,r=e.stringifyQuery||gs,i=e.history,a=Cs(),o=Cs(),s=Cs(),c=Wt(Zo),l=Zo;po&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=go.bind(null,e=>``+e),d=go.bind(null,Ro),f=go.bind(null,zo);function p(e,n){let r,i;return ds(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=Y({},a||c.value),typeof e==`string`){let r=Ho(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return Y(r,o,{params:f(o.params),hash:zo(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=Y({},e,{path:Ho(n,e.path,a.path).path});else{let t=Y({},e.params);for(let e in t)t[e]??delete t[e];o=Y({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Uo(r,Y({},e,{hash:Po(l),path:s.path})),m=i.createHref(p);return Y({fullPath:p,hash:l,query:r===gs?_s(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?Ho(n,e,c.value.path):Y({},e)}function y(e,t){if(l!==e)return ps(Z.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(Y(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),Y({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(Y(v(u),{state:typeof u==`object`?Y({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Go(r,i,n)&&(f=ps(Z.NAVIGATION_DUPLICATED,{to:d,from:i}),ce(i,i,!0,!1)),(f?Promise.resolve(f):te(d,i)).catch(e=>ms(e)?ms(e,Z.NAVIGATION_GUARD_REDIRECT)?e:se(e):oe(e,d,i)).then(e=>{if(e){if(ms(e,Z.NAVIGATION_GUARD_REDIRECT))return C(Y({replace:s},v(e.to),{state:typeof e.to==`object`?Y({},a,e.to.state):a,force:o}),t||d)}else e=T(d,i,!0,s,a);return ne(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function ee(e){let t=de.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function te(e,t){let n,[r,i,s]=Es(e,t);n=Ts(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(ws(r,e,t))});let c=w.bind(null,e,t);return n.push(c),pe(n).then(()=>{n=[];for(let r of a.list())n.push(ws(r,e,t));return n.push(c),pe(n)}).then(()=>{n=Ts(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(ws(r,e,t))});return n.push(c),pe(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(X(r.beforeEnter))for(let i of r.beforeEnter)n.push(ws(i,e,t));else n.push(ws(r.beforeEnter,e,t));return n.push(c),pe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ts(s,`beforeRouteEnter`,e,t,ee),n.push(c),pe(n))).then(()=>{n=[];for(let r of o.list())n.push(ws(r,e,t));return n.push(c),pe(n)}).catch(e=>ms(e,Z.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function ne(e,t,n){s.list().forEach(r=>ee(()=>r(e,t,n)))}function T(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===Zo,l=po?history.state:{};n&&(r||s?i.replace(e.fullPath,Y({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,ce(e,t,n,s),se()}let re;function E(){re||=i.listen((e,t,n)=>{if(!fe.listening)return;let r=_(e),a=S(r,fe.currentRoute.value);if(a){C(Y(a,{replace:!0,force:!0}),r).catch(_o);return}l=r;let o=c.value;po&&cs(os(o.fullPath,n.delta),is()),te(r,o).catch(e=>ms(e,Z.NAVIGATION_ABORTED|Z.NAVIGATION_CANCELLED)?e:ms(e,Z.NAVIGATION_GUARD_REDIRECT)?(C(Y(v(e.to),{force:!0}),r).then(e=>{ms(e,Z.NAVIGATION_ABORTED|Z.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Qo.pop&&i.go(-1,!1)}).catch(_o),Promise.reject()):(n.delta&&i.go(-n.delta,!1),oe(e,r,o))).then(e=>{e||=T(r,o,!1),e&&(n.delta&&!ms(e,Z.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Qo.pop&&ms(e,Z.NAVIGATION_ABORTED|Z.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),ne(r,o,e)}).catch(_o)})}let ie=Cs(),ae=Cs(),D;function oe(e,t,n){se(e);let r=ae.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function O(){return D&&c.value!==Zo?Promise.resolve():new Promise((e,t)=>{ie.add([e,t])})}function se(e){return D||(D=!e,E(),ie.list().forEach(([t,n])=>e?n(e):t()),ie.reset()),e}function ce(t,n,r,i){let{scrollBehavior:a}=e;if(!po||!a)return Promise.resolve();let o=!r&&ls(os(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return hn().then(()=>a(t,n,o)).then(e=>e&&as(e)).catch(e=>oe(e,t,n))}let le=e=>i.go(e),ue,de=new Set,fe={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:le,back:()=>le(-1),forward:()=>le(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ae.add,isReady:O,install(e){e.component(`RouterLink`,rc),e.component(`RouterView`,uc),e.config.globalProperties.$router=fe,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>qt(c)}),po&&!ue&&c.value===Zo&&(ue=!0,b(i.location).catch(e=>{}));let t={};for(let e in Zo)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(bs,fe),e.provide(xs,Pt(t)),e.provide(Ss,c);let n=e.unmount;de.add(e),e.unmount=function(){de.delete(e),de.size<1&&(l=Zo,re&&re(),re=null,c.value=Zo,ue=!1,D=!1),n()}}};function pe(e){return e.reduce((e,t)=>e.then(()=>ee(t)),Promise.resolve())}return fe}var fc={class:`app-header`},pc={class:`header-left`},mc={class:`app-nav`},hc=[`aria-label`],gc=Vn({__name:`App`,setup(e){let t=Ut(`light`);function n(e){t.value=e,document.documentElement.dataset.theme=e,localStorage.setItem(`waelio-theme`,e)}function r(){n(t.value===`light`?`dark`:`light`)}return nr(()=>{let e=localStorage.getItem(`waelio-theme`),t=window.matchMedia(`(prefers-color-scheme: dark)`).matches;n(e??(t?`dark`:`light`))}),(e,n)=>(U(),W(V,null,[G(`header`,fc,[G(`div`,pc,[n[2]||=G(`h1`,{class:`app-title`},`waelio/cli`,-1),G(`nav`,mc,[K(qt(rc),{to:`/`},{default:En(()=>[...n[0]||=[Bi(`Scaffold`,-1)]]),_:1}),K(qt(rc),{to:`/public-sites`},{default:En(()=>[...n[1]||=[Bi(`Public Sites`,-1)]]),_:1})])]),G(`button`,{type:`button`,class:`theme-toggle`,"aria-label":t.value===`light`?`Switch to dark mode`:`Switch to light mode`,onClick:r},xe(t.value===`light`?`Dark`:`Light`),9,hc)]),K(qt(uc))],64))}}),_c=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},vc=_c(gc,[[`__scopeId`,`data-v-7c4c82e0`]]),yc={class:`app-main`},bc={class:`group`,"aria-labelledby":`group-project`},xc={class:`check`,style:{"flex-direction":`column`,"align-items":`stretch`}},Sc=[`aria-labelledby`],Cc=[`id`],wc={class:`group-list`},Tc={class:`check`},Ec=[`checked`,`disabled`,`onChange`],Dc={key:0,class:`required-tag`},Oc={class:`app-footer`},kc={class:`actions`},Ac=[`disabled`],jc=[`disabled`],Mc=[`disabled`],Nc=[`disabled`],Pc=[`disabled`],Fc={key:0,class:`preview`},Ic={key:1,class:`build-status`},Lc={class:`build-state`},Rc={key:0,class:`preview`},zc={key:1,class:`preview`},Bc=_c(Vn({__name:`ScaffoldView`,setup(e){let t=[{key:`pages`,title:`Pages`,required:[`Contact`,`Privacy`,`Terms & Conditions`,`Login`],items:[`Home`,`About`,`Services`,`Pricing`,`Contact`,`FAQ`,`Blog`,`Catalog`,`Product Detail`,`Cart`,`Checkout`,`Account`,`Dashboard`,`Booking`,`Practitioners`,`Docs`,`Login`,`Privacy`,`Terms & Conditions`]},{key:`features`,title:`Features`,required:[`SEO`,`Authentication`,`Publishing`,`Brand Assets`,`CASL Permissions`,`Local Database`,`NativeScript Ready`],items:[`SEO`,`Analytics`,`Authentication`,`Billing`,`Search`,`Booking`,`Notifications`,`Customer Portal`,`Lead Capture`,`Case Studies`,`Blog`,`Payments`,`Customer Accounts`,`Knowledge Base`,`Admin Dashboard`,`Content Management`,`Publishing`,`Brand Assets`,`CASL Permissions`,`Local Database`,`NativeScript Ready`]},{key:`integrations`,title:`Integrations`,items:[`Stripe`,`CRM`,`Email & SMS`,`Analytics`]},{key:`locales`,title:`Locales`,items:[`en`,`ar`,`de`,`es`,`fr`,`he`,`id`,`it`,`ru`,`sv`,`tr`,`zh`]},{key:`roles`,title:`Roles`,items:[`Admin`,`Editor`,`Operations`,`Support`,`Sales`,`Reception`,`Dentist`,`Hygienist`]},{key:`brandTones`,title:`Brand tone`,items:[`Trustworthy`,`Bold`,`Premium`,`Friendly`]},{key:`visualStyles`,title:`Visual style`,items:[`Premium Editorial`,`Friendly Clinical`]},{key:`contentModels`,title:`Content model`,items:[`Service pages + blog`,`Catalog + editorial`]},{key:`seoFocuses`,title:`SEO focus`,items:[`Local + service intent`,`Transactional intent`]}],n=Nt(Object.fromEntries(t.map(e=>[e.key,new Set(e.required??[])])));function r(e,t){let r=n[e];r&&(r.has(t)?r.delete(t):r.add(t))}function i(e,t){return e.required?.includes(t)??!1}function a(e,t){return n[e]?.has(t)??!1}let o=Ut(``),s=Ut(!1),c=Ut(``);function l(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`site`}let u={pages:`selectedPages`,features:`selectedFeatures`,integrations:`selectedIntegrations`,locales:`selectedLocales`,roles:`selectedRoles`,brandTones:`selectedBrandTones`,visualStyles:`selectedVisualStyles`,contentModels:`selectedContentModels`,seoFocuses:`selectedSEOFocuses`};function d(){let e={};for(let r of t){let t=u[r.key]??r.key;e[t]=Array.from(n[r.key]??[])}let r=c.value.trim(),i={$schema:`https://waelio.dev/schemas/blueprint/v1.json`,generator:{name:`waelio-cli`,version:`0.1.2`,url:`https://github.com/waelio/cli`},id:crypto.randomUUID(),createdAt:new Date().toISOString(),projectName:r||`Siteforge Project`,slug:l(r||`Siteforge Project`),selections:e};o.value=JSON.stringify(i,null,2),s.value=!1}function f(){o.value||d(),s.value=!0}function p(){o.value||d();let e=new Blob([o.value],{type:`application/json`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`blueprint.json`,n.click(),URL.revokeObjectURL(t)}let m=`https://siteforge.wahbehw.workers.dev`,h=`/api/scaffold`,g=Ut(`idle`),_=Ut([]),v=Ut(``);function y(e){_.value.push(`[${new Date().toLocaleTimeString()}] ${e}`)}async function b(){if(!c.value.trim()){y(`error: project name is required`),g.value=`error`;return}d(),_.value=[],v.value=``,g.value=`sending`,y(`POST ${h}`);try{let e=await fetch(h,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({blueprint:JSON.parse(o.value)})});if(!e.ok){let t=await e.text();y(`error: ${e.status} ${t}`),g.value=`error`;return}let t=await e.json();v.value=JSON.stringify(t,null,2),g.value=`done`,y(`scaffolded "${t.slug}" at ${t.outDir}`)}catch(e){y(`network error: ${e.message}`),g.value=`error`}}async function x(){if(!c.value.trim()){y(`error: project name is required`),g.value=`error`;return}d(),_.value=[],v.value=``,g.value=`sending`;let e=`${m}/public-sites/`;y(`POST webhook to ${e}`);try{let t=await fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`},body:o.value});if(!t.ok){let e=await t.text();y(`webhook error: ${t.status} ${e}`),g.value=`error`;return}let n=await t.json();v.value=JSON.stringify(n,null,2),g.value=`done`,y(`Success! Live at: ${m}${n.url}`)}catch(e){y(`webhook network error: ${e.message}`),g.value=`error`}}async function S(){if(!v.value)return;let e=new Blob([v.value],{type:`application/json`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`siteforge-package.json`,n.click(),URL.revokeObjectURL(t),await x()}function C(){for(let e of t)n[e.key]=new Set(e.required??[]);c.value=``,o.value=``,s.value=!1,_.value=[],v.value=``,g.value=`idle`}return(e,n)=>(U(),W(V,null,[G(`main`,yc,[G(`section`,bc,[n[2]||=G(`h2`,{id:`group-project`,class:`group-title`},`Project`,-1),G(`label`,xc,[n[1]||=G(`span`,null,`Name`,-1),Dn(G(`input`,{"onUpdate:modelValue":n[0]||=e=>c.value=e,type:`text`,placeholder:`Acme Dental`,autocomplete:`off`,style:{"margin-top":`0.4rem`,padding:`0.4rem 0.6rem`,border:`1px solid var(--fg)`,"border-radius":`0.375rem`,background:`transparent`,color:`var(--fg)`,font:`inherit`}},null,512),[[ao,c.value]])])]),(U(),W(V,null,fr(t,e=>G(`section`,{key:e.key,class:`group`,"aria-labelledby":`group-${e.key}`},[G(`h2`,{id:`group-${e.key}`,class:`group-title`},xe(e.title),9,Cc),G(`ul`,wc,[(U(!0),W(V,null,fr(e.items,t=>(U(),W(`li`,{key:t},[G(`label`,Tc,[G(`input`,{type:`checkbox`,checked:a(e.key,t),disabled:i(e,t),onChange:n=>r(e.key,t)},null,40,Ec),G(`span`,null,xe(t),1),i(e,t)?(U(),W(`span`,Dc,` required `)):Vi(``,!0)])]))),128))])],8,Sc)),64))]),G(`footer`,Oc,[G(`div`,kc,[G(`button`,{type:`button`,class:`btn`,onClick:d},` Generate `),G(`button`,{type:`button`,class:`btn`,onClick:C},`Reset`),G(`button`,{type:`button`,class:`btn`,disabled:!o.value,onClick:f},` View `,8,Ac),G(`button`,{type:`button`,class:`btn`,disabled:!o.value,onClick:p},` Download `,8,jc),G(`button`,{type:`button`,class:`btn`,disabled:!c.value.trim()||g.value===`connecting`||g.value===`sending`||g.value===`running`,onClick:b},` Build `,8,Mc),G(`button`,{type:`button`,class:`btn`,disabled:!c.value.trim()||g.value===`connecting`||g.value===`sending`||g.value===`running`,onClick:x,style:{background:`var(--fg)`,color:`#111`}},` Deploy to Siteforge Webhook `,8,Nc),G(`button`,{type:`button`,class:`btn`,disabled:!v.value,onClick:S},` Download package `,8,Pc)]),s.value&&o.value?(U(),W(`pre`,Fc,xe(o.value),1)):Vi(``,!0),g.value===`idle`?Vi(``,!0):(U(),W(`section`,Ic,[G(`p`,Lc,`Build: `+xe(g.value),1),_.value.length?(U(),W(`pre`,Rc,xe(_.value.join(`
3
- `)),1)):Vi(``,!0),v.value?(U(),W(`pre`,zc,xe(v.value),1)):Vi(``,!0)]))])],64))}}),[[`__scopeId`,`data-v-5e6ed138`]]),Vc=`modulepreload`,Hc=function(e){return`/`+e},Uc={},Wc=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Hc(t,n),t in Uc)return;Uc[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Vc,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Gc=dc({history:Ms(),routes:[{path:`/`,name:`scaffold`,component:Bc},{path:`/public-sites`,name:`public-sites`,component:()=>Wc(()=>import(`./PublicSitesView-BONa1Zoj.js`),__vite__mapDeps([0,1]))}]});lo(vc).use(Gc).mount(`#app`);export{Vn as a,fr as c,xe as d,W as i,Ut as l,V as n,nr as o,G as r,U as s,_c as t,k as u};