lula2 0.9.1 → 0.9.2-nightly.1
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/dist/_app/immutable/chunks/{CH5jxNa6.js → BVB4mz5e.js} +1 -1
- package/dist/_app/immutable/chunks/BVHnoumq.js +2 -0
- package/dist/_app/immutable/chunks/{DznG4VMX.js → C0h_pRbt.js} +2 -2
- package/dist/_app/immutable/chunks/CMWllJtD.js +1 -0
- package/dist/_app/immutable/chunks/{DwpgbEKg.js → CRZmiS4j.js} +1 -1
- package/dist/_app/immutable/chunks/{Ew6_cz_0.js → Cnfh9taG.js} +1 -1
- package/dist/_app/immutable/chunks/CoZ7nipL.js +1 -0
- package/dist/_app/immutable/chunks/{Dk7vIoe_.js → DBcXRJx9.js} +37 -37
- package/dist/_app/immutable/chunks/{BNu54jRO.js → DOGsFeRA.js} +1 -1
- package/dist/_app/immutable/chunks/NDsLzwFF.js +1 -0
- package/dist/_app/immutable/chunks/{kRA7ZCNG.js → k3mXGuiP.js} +1 -1
- package/dist/_app/immutable/entry/{app.DdwUGjVV.js → app.GJ3Ym_iy.js} +2 -2
- package/dist/_app/immutable/entry/start.CJCgthi-.js +1 -0
- package/dist/_app/immutable/nodes/{0.Bg-InztK.js → 0.DRgbZxF-.js} +1 -1
- package/dist/_app/immutable/nodes/1.DtrDMZ0v.js +1 -0
- package/dist/_app/immutable/nodes/{2.Bemz3MBY.js → 2.CrAOdFjH.js} +1 -1
- package/dist/_app/immutable/nodes/{3.BV7Xo0H2.js → 3.CtHTmLF9.js} +1 -1
- package/dist/_app/immutable/nodes/{4.vapdz7iM.js → 4.vsplcA-n.js} +1 -1
- package/dist/_app/version.json +1 -1
- package/dist/cli/commands/crawl.js +115 -13
- package/dist/index.html +11 -11
- package/dist/index.js +114 -13
- package/package.json +128 -129
- package/dist/_app/immutable/chunks/CC6oS456.js +0 -1
- package/dist/_app/immutable/chunks/CL4l8hNw.js +0 -1
- package/dist/_app/immutable/chunks/DHuA7MQr.js +0 -1
- package/dist/_app/immutable/chunks/DSxRA67V.js +0 -2
- package/dist/_app/immutable/entry/start.UFoMCPl7.js +0 -1
- package/dist/_app/immutable/nodes/1.UXW6VedX.js +0 -1
package/dist/index.js
CHANGED
|
@@ -6061,17 +6061,108 @@ function getChangedBlocks(oldText, newText) {
|
|
|
6061
6061
|
const changed = [];
|
|
6062
6062
|
const oldLines = oldText.split("\n");
|
|
6063
6063
|
const newLines = newText.split("\n");
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6064
|
+
const oldBlocksByUuid = /* @__PURE__ */ new Map();
|
|
6065
|
+
const newBlocksByUuid = /* @__PURE__ */ new Map();
|
|
6066
|
+
oldBlocks.forEach((block) => {
|
|
6067
|
+
if (!oldBlocksByUuid.has(block.uuid)) {
|
|
6068
|
+
oldBlocksByUuid.set(block.uuid, []);
|
|
6069
|
+
}
|
|
6070
|
+
oldBlocksByUuid.get(block.uuid).push(block);
|
|
6071
|
+
});
|
|
6072
|
+
newBlocks.forEach((block) => {
|
|
6073
|
+
if (!newBlocksByUuid.has(block.uuid)) {
|
|
6074
|
+
newBlocksByUuid.set(block.uuid, []);
|
|
6075
|
+
}
|
|
6076
|
+
newBlocksByUuid.get(block.uuid).push(block);
|
|
6077
|
+
});
|
|
6078
|
+
for (const [uuid, newUuidBlocks] of newBlocksByUuid) {
|
|
6079
|
+
const oldUuidBlocks = oldBlocksByUuid.get(uuid) || [];
|
|
6080
|
+
if (oldUuidBlocks.length === 0) continue;
|
|
6081
|
+
if (oldUuidBlocks.length !== newUuidBlocks.length) {
|
|
6082
|
+
const exactMatches = /* @__PURE__ */ new Set();
|
|
6083
|
+
const oldBlocksWithoutMatches = [];
|
|
6084
|
+
for (let oldIndex = 0; oldIndex < oldUuidBlocks.length; oldIndex++) {
|
|
6085
|
+
const oldBlock = oldUuidBlocks[oldIndex];
|
|
6086
|
+
const oldContent = extractBlockContent(oldLines, oldBlock.startLine, oldBlock.endLine);
|
|
6087
|
+
let foundMatch = false;
|
|
6088
|
+
for (let newIndex = 0; newIndex < newUuidBlocks.length; newIndex++) {
|
|
6089
|
+
if (exactMatches.has(newIndex)) continue;
|
|
6090
|
+
const newBlock = newUuidBlocks[newIndex];
|
|
6091
|
+
const newContent = extractBlockContent(newLines, newBlock.startLine, newBlock.endLine);
|
|
6092
|
+
if (oldContent === newContent) {
|
|
6093
|
+
exactMatches.add(newIndex);
|
|
6094
|
+
foundMatch = true;
|
|
6095
|
+
break;
|
|
6096
|
+
}
|
|
6097
|
+
}
|
|
6098
|
+
if (!foundMatch) {
|
|
6099
|
+
oldBlocksWithoutMatches.push(oldIndex);
|
|
6100
|
+
}
|
|
6101
|
+
}
|
|
6102
|
+
const usedNewBlocks = new Set(exactMatches);
|
|
6103
|
+
for (const oldIndex of oldBlocksWithoutMatches) {
|
|
6104
|
+
const oldBlock = oldUuidBlocks[oldIndex];
|
|
6105
|
+
const candidates = [];
|
|
6106
|
+
for (let newIndex = 0; newIndex < newUuidBlocks.length; newIndex++) {
|
|
6107
|
+
if (!usedNewBlocks.has(newIndex)) {
|
|
6108
|
+
candidates.push({ index: newIndex, block: newUuidBlocks[newIndex] });
|
|
6109
|
+
}
|
|
6110
|
+
}
|
|
6111
|
+
if (candidates.length > 0) {
|
|
6112
|
+
const closest = candidates.reduce((best, candidate) => {
|
|
6113
|
+
const bestDistance = Math.abs(oldBlock.startLine - best.block.startLine);
|
|
6114
|
+
const candidateDistance = Math.abs(oldBlock.startLine - candidate.block.startLine);
|
|
6115
|
+
return candidateDistance < bestDistance ? candidate : best;
|
|
6116
|
+
});
|
|
6117
|
+
changed.push(closest.block);
|
|
6118
|
+
usedNewBlocks.add(closest.index);
|
|
6119
|
+
}
|
|
6120
|
+
}
|
|
6121
|
+
continue;
|
|
6122
|
+
}
|
|
6123
|
+
const pairings = findOptimalPairings(oldUuidBlocks, newUuidBlocks, oldLines, newLines);
|
|
6124
|
+
for (const { oldBlock, newBlock } of pairings) {
|
|
6125
|
+
const oldContent = extractBlockContent(oldLines, oldBlock.startLine, oldBlock.endLine);
|
|
6126
|
+
const newContent = extractBlockContent(newLines, newBlock.startLine, newBlock.endLine);
|
|
6127
|
+
if (oldContent !== newContent) {
|
|
6128
|
+
changed.push(newBlock);
|
|
6129
|
+
}
|
|
6071
6130
|
}
|
|
6072
6131
|
}
|
|
6073
6132
|
return changed;
|
|
6074
6133
|
}
|
|
6134
|
+
function findOptimalPairings(oldBlocks, newBlocks, oldLines, newLines) {
|
|
6135
|
+
const pairings = [];
|
|
6136
|
+
const usedOldBlocks = /* @__PURE__ */ new Set();
|
|
6137
|
+
const usedNewBlocks = /* @__PURE__ */ new Set();
|
|
6138
|
+
const similarities = [];
|
|
6139
|
+
for (let oldIndex = 0; oldIndex < oldBlocks.length; oldIndex++) {
|
|
6140
|
+
for (let newIndex = 0; newIndex < newBlocks.length; newIndex++) {
|
|
6141
|
+
const oldBlock = oldBlocks[oldIndex];
|
|
6142
|
+
const newBlock = newBlocks[newIndex];
|
|
6143
|
+
const oldContent = extractBlockContent(oldLines, oldBlock.startLine, oldBlock.endLine);
|
|
6144
|
+
const newContent = extractBlockContent(newLines, newBlock.startLine, newBlock.endLine);
|
|
6145
|
+
const contentSimilarity = oldContent === newContent ? 1 : 0;
|
|
6146
|
+
const positionDistance = Math.abs(oldBlock.startLine - newBlock.startLine);
|
|
6147
|
+
const maxDistance = Math.max(oldBlocks.length, newBlocks.length) * 10;
|
|
6148
|
+
const positionSimilarity = 1 - Math.min(positionDistance / maxDistance, 1);
|
|
6149
|
+
const score = contentSimilarity * 0.8 + positionSimilarity * 0.2;
|
|
6150
|
+
similarities.push({ oldIndex, newIndex, score });
|
|
6151
|
+
}
|
|
6152
|
+
}
|
|
6153
|
+
similarities.sort((a, b) => b.score - a.score);
|
|
6154
|
+
for (const { oldIndex, newIndex } of similarities) {
|
|
6155
|
+
if (!usedOldBlocks.has(oldIndex) && !usedNewBlocks.has(newIndex)) {
|
|
6156
|
+
pairings.push({
|
|
6157
|
+
oldBlock: oldBlocks[oldIndex],
|
|
6158
|
+
newBlock: newBlocks[newIndex]
|
|
6159
|
+
});
|
|
6160
|
+
usedOldBlocks.add(oldIndex);
|
|
6161
|
+
usedNewBlocks.add(newIndex);
|
|
6162
|
+
}
|
|
6163
|
+
}
|
|
6164
|
+
return pairings;
|
|
6165
|
+
}
|
|
6075
6166
|
function extractBlockContent(lines, startLine, endLine) {
|
|
6076
6167
|
return lines.slice(startLine + 1, endLine - 1).join("\n");
|
|
6077
6168
|
}
|
|
@@ -6241,13 +6332,23 @@ async function analyzeModifiedFiles(context) {
|
|
|
6241
6332
|
]);
|
|
6242
6333
|
const changedBlocks = getChangedBlocks(oldText, newText);
|
|
6243
6334
|
const removedBlocks = getRemovedBlocks(oldText, newText);
|
|
6244
|
-
|
|
6335
|
+
const hasActualComplianceChanges = changedBlocks.length > 0 || removedBlocks.length > 0;
|
|
6336
|
+
if (hasActualComplianceChanges) {
|
|
6245
6337
|
hasFindings = true;
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6338
|
+
if (changedBlocks.length > 0) {
|
|
6339
|
+
changesContent += generateChangedBlocksContent(file.filename, changedBlocks, newText);
|
|
6340
|
+
}
|
|
6341
|
+
if (removedBlocks.length > 0) {
|
|
6342
|
+
changesContent += generateRemovedBlocksContent(file.filename, removedBlocks, oldText);
|
|
6343
|
+
}
|
|
6344
|
+
} else {
|
|
6345
|
+
const oldBlocks = extractMapBlocks(oldText);
|
|
6346
|
+
const newBlocks = extractMapBlocks(newText);
|
|
6347
|
+
if (newBlocks.length > oldBlocks.length) {
|
|
6348
|
+
console.log(
|
|
6349
|
+
`Skipping ${file.filename}: only new Lula annotations added, no existing compliance content modified`
|
|
6350
|
+
);
|
|
6351
|
+
}
|
|
6251
6352
|
}
|
|
6252
6353
|
} catch (err) {
|
|
6253
6354
|
console.error(`Error processing ${file.filename}: ${err}`);
|
package/package.json
CHANGED
|
@@ -1,130 +1,129 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
2
|
+
"name": "lula2",
|
|
3
|
+
"version": "0.9.2-nightly.1",
|
|
4
|
+
"description": "A tool for managing compliance as code in your GitHub repositories.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"lula2": "./dist/lula2"
|
|
7
|
+
},
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=22.20.0"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/defenseunicorns/lula.git"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"compliance",
|
|
20
|
+
"devops",
|
|
21
|
+
"devsecops"
|
|
22
|
+
],
|
|
23
|
+
"author": "Defense Unicorns",
|
|
24
|
+
"license": "Apache-2.0",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/defenseunicorns/lula/issues"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/defenseunicorns/lula#readme",
|
|
29
|
+
"files": [
|
|
30
|
+
"/src",
|
|
31
|
+
"/dist",
|
|
32
|
+
"!src/**/*.test.ts",
|
|
33
|
+
"!dist/**/*.test.js*",
|
|
34
|
+
"!dist/**/*.test.d.ts*"
|
|
35
|
+
],
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@octokit/rest": "22.0.1",
|
|
38
|
+
"@types/ws": "8.18.1",
|
|
39
|
+
"commander": "14.0.2",
|
|
40
|
+
"cors": "2.8.5",
|
|
41
|
+
"csv-parse": "6.1.0",
|
|
42
|
+
"express": "5.2.1",
|
|
43
|
+
"express-rate-limit": "8.2.1",
|
|
44
|
+
"flowbite": "4.0.1",
|
|
45
|
+
"glob": "13.0.0",
|
|
46
|
+
"isomorphic-git": "1.36.1",
|
|
47
|
+
"js-yaml": "4.1.1",
|
|
48
|
+
"multer": "2.0.2",
|
|
49
|
+
"open": "11.0.0",
|
|
50
|
+
"undici": "7.18.2",
|
|
51
|
+
"ws": "8.19.0",
|
|
52
|
+
"xlsx-republish": "0.20.3",
|
|
53
|
+
"yaml": "2.8.2"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@commitlint/cli": "^20.0.0",
|
|
57
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
58
|
+
"@defenseunicorns/eslint-config": "^1.1.2",
|
|
59
|
+
"@eslint/compat": "^2.0.0",
|
|
60
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
61
|
+
"@eslint/js": "^9.35.0",
|
|
62
|
+
"@playwright/test": "^1.55.0",
|
|
63
|
+
"@sveltejs/adapter-static": "^3.0.9",
|
|
64
|
+
"@sveltejs/kit": "^2.37.1",
|
|
65
|
+
"@sveltejs/vite-plugin-svelte": "^6.1.4",
|
|
66
|
+
"@tailwindcss/vite": "^4.1.13",
|
|
67
|
+
"@types/cors": "^2.8.19",
|
|
68
|
+
"@types/express": "^5.0.3",
|
|
69
|
+
"@types/js-yaml": "^4.0.9",
|
|
70
|
+
"@types/jsdom": "^27.0.0",
|
|
71
|
+
"@types/multer": "^2.0.0",
|
|
72
|
+
"@types/node": "^25.0.0",
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^8.42.0",
|
|
74
|
+
"@typescript-eslint/parser": "^8.42.0",
|
|
75
|
+
"@vitest/browser": "^4.0.1",
|
|
76
|
+
"@vitest/coverage-v8": "^4.0.1",
|
|
77
|
+
"carbon-icons-svelte": "^13.5.0",
|
|
78
|
+
"carbon-preprocess-svelte": "^0.11.11",
|
|
79
|
+
"concurrently": "^9.2.1",
|
|
80
|
+
"esbuild": "^0.27.0",
|
|
81
|
+
"eslint": "^9.35.0",
|
|
82
|
+
"eslint-config-prettier": "^10.1.8",
|
|
83
|
+
"eslint-plugin-jsdoc": "^62.0.0",
|
|
84
|
+
"eslint-plugin-svelte": "^3.12.2",
|
|
85
|
+
"globals": "^17.0.0",
|
|
86
|
+
"husky": "^9.1.7",
|
|
87
|
+
"jsdom": "^27.0.0",
|
|
88
|
+
"playwright": "^1.55.0",
|
|
89
|
+
"prettier": "3.8.0",
|
|
90
|
+
"prettier-plugin-svelte": "^3.4.0",
|
|
91
|
+
"semantic-release": "^25.0.1",
|
|
92
|
+
"shellcheck": "^4.1.0",
|
|
93
|
+
"svelte": "^5.38.7",
|
|
94
|
+
"svelte-check": "^4.3.1",
|
|
95
|
+
"tailwind-merge": "^3.3.1",
|
|
96
|
+
"tailwindcss": "^4.1.13",
|
|
97
|
+
"tsx": "^4.20.5",
|
|
98
|
+
"typescript": "5.9.3",
|
|
99
|
+
"typescript-eslint": "^8.42.0",
|
|
100
|
+
"vite": "^7.1.4",
|
|
101
|
+
"vitest": "^4.0.1",
|
|
102
|
+
"vitest-browser-svelte": "^2.0.0"
|
|
103
|
+
},
|
|
104
|
+
"release": {
|
|
105
|
+
"branches": [
|
|
106
|
+
"main",
|
|
107
|
+
"next"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"scripts": {
|
|
111
|
+
"dev": "vite dev --port 5173",
|
|
112
|
+
"dev:api": "tsx --watch index.ts --debug ui --port 3000 --no-open-browser",
|
|
113
|
+
"dev:full": "concurrently \"npm run dev:api\" \"npm run dev\"",
|
|
114
|
+
"build": "npm run build:svelte && npm run build:cli && npm run postbuild:cli",
|
|
115
|
+
"build:svelte": "vite build",
|
|
116
|
+
"build:cli": "esbuild index.ts cli/**/*.ts --bundle --platform=node --target=node22 --format=esm --outdir=dist --external:express --external:commander --external:js-yaml --external:yaml --external:isomorphic-git --external:glob --external:open --external:ws --external:cors --external:multer --external:@octokit/rest --external:undici --external:xlsx-republish --external:csv-parse",
|
|
117
|
+
"postbuild:cli": "cp cli-wrapper.mjs dist/lula2 && chmod +x dist/lula2",
|
|
118
|
+
"preview": "vite preview",
|
|
119
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && tsc --noEmit",
|
|
120
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
121
|
+
"format": "prettier --write 'src/**/*.{ts,js,svelte}' 'cli/**/*.ts' 'index.ts' 'tests/**/*.ts'",
|
|
122
|
+
"format:check": "prettier --check 'src/**/*.{ts,js,svelte}' 'cli/**/*.ts' 'index.ts' 'tests/**/*.ts'",
|
|
123
|
+
"lint": "prettier --check 'src/**/*.{ts,js,svelte}' 'cli/**/*.ts' 'index.ts' 'tests/**/*.ts' && eslint src cli",
|
|
124
|
+
"semantic-release": "semantic-release",
|
|
125
|
+
"test": "npm run test:unit -- --run --coverage",
|
|
126
|
+
"test:integration": "vitest --config integration/vitest.config.integration.ts",
|
|
127
|
+
"test:unit": "vitest"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s,k as c,l as m,E as i}from"./DHuA7MQr.js";import{B as p}from"./Ew6_cz_0.js";function l(n,r,o){s&&c();var e=new p(n);m(()=>{var a=r()??null;e.ensure(a,a&&(t=>o(t,a)))},i)}export{l as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b9 as ke,o as De,d as A,g as T,b as I,ad as Z,bk as qe,bl as gt}from"./DHuA7MQr.js";class Ee{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Se{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function _t(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function mt(e){return e.split("%25").map(decodeURI).join("%25")}function wt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function he({href:e}){return e.split("#")[0]}function vt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function yt(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const bt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&F.delete(xe(e)),bt(e,t));const F=new Map;function kt(e,t){const n=xe(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...s}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&F.set(n,{body:r,init:s,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=yt(r)),Promise.resolve(new Response(r,s))}return window.fetch(e,t)}function Et(e,t,n){if(F.size>0){const a=xe(e,n),r=F.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);F.delete(a)}}return window.fetch(t,n)}function xe(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${vt(...r)}"]`}return a}const St=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Rt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Lt(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return pe(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const f=St.exec(c),[,h,w,u,g]=f;return t.push({name:u,matcher:g,optional:!!h,rest:!!w,chained:w?l===1&&o[0]==="":!1}),w?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return pe(c)}).join("")}).join("")}/?$`),params:t}}function xt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Lt(e){return e.slice(1).split("/").filter(xt)}function Ut(e,t,n){const a={},r=e.slice(1),s=r.filter(i=>i!==void 0);let o=0;for(let i=0;i<t.length;i+=1){const c=t[i];let l=r[i-o];if(c.chained&&c.rest&&o&&(l=r.slice(i-o,i+1).filter(f=>f).join("/"),o=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const f=t[i+1],h=r[i+1];f&&!f.rest&&f.optional&&h&&c.chained&&(o=0),!f&&!h&&Object.keys(a).length===s.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return a}function pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function At({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([i,[c,l,f]])=>{const{pattern:h,params:w}=Rt(i),u={id:i,exec:g=>{const m=h.exec(g);if(m)return Ut(m,w,a)},errors:[1,...f||[]].map(g=>e[g]),layouts:[0,...l||[]].map(o),leaf:s(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function s(i){const c=i<0;return c&&(i=~i),[c,e[i]]}function o(i){return i===void 0?i:[r.has(i),e[i]]}}function Ye(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ve(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const L=globalThis.__sveltekit_bs8b0c?.base??"",Tt=globalThis.__sveltekit_bs8b0c?.assets??L??"",It="1767703222239",ze="sveltekit:snapshot",He="sveltekit:scroll",Je="sveltekit:states",Ot="sveltekit:pageurl",B="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ce=location.origin;function Le(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function le(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Be={...j,"":j.hover};function Xe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Qe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Xe(e)}}function me(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const i=location.hash.split("#")[1]||"/";a.hash=`#${i}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,s=!a||!!r||ue(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===ce&&e.hasAttribute("download");return{url:a,external:s,target:r,download:o}}function ee(e){let t=null,n=null,a=null,r=null,s=null,o=null,i=e;for(;i&&i!==document.documentElement;)a===null&&(a=V(i,"preload-code")),r===null&&(r=V(i,"preload-data")),t===null&&(t=V(i,"keepfocus")),n===null&&(n=V(i,"noscroll")),s===null&&(s=V(i,"reload")),o===null&&(o=V(i,"replacestate")),i=Xe(i);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Be[a??"off"],preload_data:Be[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(o)}}function Ke(e){const t=ke(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function s(o){let i;return t.subscribe(c=>{(i===void 0||n&&c!==i)&&o(i=c)})}return{notify:a,set:r,subscribe:s}}const Ze={v:()=>{}};function Pt(){const{set:e,subscribe:t}=ke(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${Tt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==It;return o&&(e(!0),Ze.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function ue(e,t,n){return e.origin!==ce||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function rn(e){}const et=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...et];const $t=new Set([...et]);[...$t];function Ct(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Ee||e instanceof Re?e.status:500}function jt(e){return e instanceof Re?e.text:"Internal Error"}let k,Y,ge;const Nt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());Nt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Y={current:null},ge={current:!1}):(k=new class{#e=A({});get data(){return T(this.#e)}set data(t){I(this.#e,t)}#t=A(null);get form(){return T(this.#t)}set form(t){I(this.#t,t)}#n=A(null);get error(){return T(this.#n)}set error(t){I(this.#n,t)}#a=A({});get params(){return T(this.#a)}set params(t){I(this.#a,t)}#r=A({id:null});get route(){return T(this.#r)}set route(t){I(this.#r,t)}#o=A({});get state(){return T(this.#o)}set state(t){I(this.#o,t)}#s=A(-1);get status(){return T(this.#s)}set status(t){I(this.#s,t)}#i=A(new URL("https://example.com"));get url(){return T(this.#i)}set url(t){I(this.#i,t)}},Y=new class{#e=A(null);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},ge=new class{#e=A(!1);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},Ze.v=()=>ge.current=!0);function tt(e){Object.assign(k,e)}const Dt=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Ye(He)??{},z=Ye(ze)??{},C={url:Ke({}),page:Ke({}),navigating:ke(null),updated:Pt()};function Ae(e){D[e]=le()}function qt(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;z[n];)delete z[n],n+=1}function H(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function nt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}function Me(){}let Te,we,te,O,ve,v;const ne=[],ae=[];let R=null;function ye(){R?.fork?.then(e=>e?.discard()),R=null}const Q=new Map,at=new Set,Vt=new Set,G=new Set;let _={branch:[],error:null,url:null},rt=!1,re=!1,Fe=!0,J=!1,M=!1,ot=!1,Ie=!1,Oe,y,x,N;const oe=new Set,Ge=new Map;async function ln(e,t,n){globalThis.__sveltekit_bs8b0c?.data&&globalThis.__sveltekit_bs8b0c.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Te=At(e),O=document.documentElement,ve=t,we=e.nodes[0],te=e.nodes[1],we(),te(),y=history.state?.[B],x=history.state?.[W],y||(y=x=Date.now(),history.replaceState({...history.state,[B]:y,[W]:x},""));const a=D[y];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Zt(ve,n)):(await K({type:"enter",url:Le(v.hash?nn(new URL(location.href)):location.href),replace_state:!0}),r()),Qt()}function Bt(){ne.length=0,Ie=!1}function st(e){ae.some(t=>t?.snapshot)&&(z[e]=ae.map(t=>t?.snapshot?.capture()))}function it(e){z[e]?.forEach((t,n)=>{ae[n]?.snapshot?.restore(t)})}function We(){Ae(y),Ve(He,D),st(x),Ve(ze,z)}async function ct(e,t,n,a){let r;t.invalidateAll&&ye(),await K({type:"goto",url:Le(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(Ie=!0,r=[...Ge.keys()]),t.invalidate&&t.invalidate.forEach(Xt)}}),t.invalidateAll&&Z().then(Z).then(()=>{Ge.forEach(({resource:s},o)=>{r?.includes(o)&&s.refresh?.()})})}async function Kt(e){if(e.id!==R?.id){ye();const t={};if(oe.add(t),R={id:e.id,token:t,promise:ut({...e,preload:t}).then(n=>(oe.delete(t),n.type==="loaded"&&n.state.error&&ye(),n)),fork:null},qe){const n=R;n.fork=n.promise.then(a=>{if(n===R&&a.type==="loaded")try{return qe(()=>{Oe.$set(a.props),tt(a.props.page)})}catch{}return null})}}return R.promise}async function _e(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function lt(e,t,n){_=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),Oe=new v.root({target:t,props:{...e.props,stores:C,components:ae},hydrate:n,sync:!1}),await Promise.resolve(),it(x),n){const r={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};G.forEach(s=>s(r))}re=!0}function se({url:e,params:t,branch:n,status:a,error:r,route:s,form:o}){let i="never";if(L&&(e.pathname===L||e.pathname===L+"/"))i="always";else for(const u of n)u?.slash!==void 0&&(i=u.slash);e.pathname=_t(e.pathname,i),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:s},props:{constructors:Ct(n).map(u=>u.node.component),page:Ne(k)}};o!==void 0&&(c.props.form=o);let l={},f=!k,h=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const g=n[u],m=_.branch[u];g?.data!==m?.data&&(f=!0),g&&(l={...l,...g.data},f&&(c.props[`data_${h}`]=l),h+=1)}return(!_.url||e.href!==_.url.href||_.error!==r||o!==void 0&&o!==k.form||f)&&(c.props.page={error:r,params:t,route:{id:s?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:f?l:k.data}),c}async function Pe({loader:e,parent:t,url:n,params:a,route:r,server_data_node:s}){let o=null;const i={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:s,universal:c.universal?.load?{type:"data",data:o,uses:i}:null,data:o??s?.data??null,slash:c.universal?.trailingSlash??s?.slash}}function Mt(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const s=re?Et(a,r.href,t):kt(a,t);return{resolved:r,promise:s}}function Ft(e,t,n,a,r,s){if(Ie)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(s[o]!==_.params[o])return!0;for(const o of r.dependencies)if(ne.some(i=>i(new URL(o))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Gt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),s=t.searchParams.getAll(a);r.every(o=>s.includes(o))&&s.every(o=>r.includes(o))&&n.delete(a)}return n}function Wt({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:Ne(k),constructors:[]}}}async function ut({id:e,invalidating:t,url:n,params:a,route:r,preload:s}){if(R?.id===e)return oe.delete(R.token),R.promise;const{errors:o,layouts:i,leaf:c}=r,l=[...i,c];o.forEach(p=>p?.().catch(()=>{})),l.forEach(p=>p?.[1]().catch(()=>{}));const f=_.url?e!==ie(_.url):!1,h=_.route?r.id!==_.route.id:!1,w=Gt(_.url,n);let u=!1;const g=l.map(async(p,d)=>{if(!p)return;const E=_.branch[d];return p[1]===E?.loader&&!Ft(u,h,f,w,E.universal?.uses,a)?E:(u=!0,Pe({loader:p[1],url:n,params:a,route:r,parent:async()=>{const P={};for(let U=0;U<d;U+=1)Object.assign(P,(await g[U])?.data);return P},server_data_node:$e(p[0]?{type:"skip"}:null,p[0]?E?.server:void 0)}))});for(const p of g)p.catch(()=>{});const m=[];for(let p=0;p<l.length;p+=1)if(l[p])try{m.push(await g[p])}catch(d){if(d instanceof Se)return{type:"redirect",location:d.location};if(oe.has(s))return Wt({error:await X(d,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let E=Ue(d),S;if(d instanceof Ee)S=d.body;else{if(await C.updated.check())return await nt(),await H(n);S=await X(d,{params:a,url:n,route:{id:r.id}})}const P=await Yt(p,m,o);return P?se({url:n,params:a,branch:m.slice(0,P.idx).concat(P.node),status:E,error:S,route:r}):await dt(n,{id:r.id},S,E)}else m.push(void 0);return se({url:n,params:a,branch:m,status:200,error:null,route:r,form:t?void 0:null})}async function Yt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ce({status:e,error:t,url:n,route:a}){const r={};let s=null;try{const o=await Pe({loader:we,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:$e(s)}),i={node:await te(),loader:te,universal:null,server:null,data:null};return se({url:n,params:r,branch:[o,i],status:e,error:t,route:null})}catch(o){if(o instanceof Se)return ct(new URL(o.location,location.href),{},0);throw o}}async function zt(e){const t=e.href;if(Q.has(t))return Q.get(t);let n;try{const a=(async()=>{let r=await v.hooks.reroute({url:new URL(e),fetch:async(s,o)=>Mt(s,o,e).promise})??e;if(typeof r=="string"){const s=new URL(e);v.hash?s.hash=r:s.pathname=r,r=s}return r})();Q.set(t,a),n=await a}catch{Q.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,L,v.hash)){const n=await zt(e);if(!n)return;const a=Ht(n);for(const r of Te){const s=r.exec(a);if(s)return{id:ie(e),invalidating:t,route:r,params:wt(s),url:e}}}}function Ht(e){return mt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ie(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ft({url:e,type:t,intent:n,delta:a,event:r}){let s=!1;const o=je(_,n,e,t);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const i={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return J||at.forEach(c=>c(i)),s?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:s,state:o={},redirect_count:i=0,nav_token:c={},accept:l=Me,block:f=Me,event:h}){const w=N;N=c;const u=await fe(t,!1),g=e==="enter"?je(_,u,t,e):ft({url:t,type:e,delta:n?.delta,intent:u,event:h});if(!g){f(),N===c&&(N=w);return}const m=y,p=x;l(),J=!0,re&&g.navigation.type!=="enter"&&C.navigating.set(Y.current=g.navigation);let d=u&&await ut(u);if(!d){if(ue(t,L,v.hash))return await H(t,s);d=await dt(t,{id:null},await X(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=u?.url||t,N!==c)return g.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(i<20){await K({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:s,state:o,redirect_count:i+1,nav_token:c}),g.fulfil(void 0);return}d=await Ce({status:500,error:await X(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await C.updated.check()&&(await nt(),await H(t,s));if(Bt(),Ae(m),st(p),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=s?0:1,q={[B]:y+=b,[W]:x+=b,[Je]:o};(s?history.replaceState:history.pushState).call(history,q,"",t),s||qt(y,x)}const E=u&&R?.id===u.id?R.fork:null;R=null,d.props.page.state=o;let S;if(re){const b=(await Promise.all(Array.from(Vt,$=>$(g.navigation)))).filter($=>typeof $=="function");if(b.length>0){let $=function(){b.forEach(de=>{G.delete(de)})};b.push($),b.forEach(de=>{G.add(de)})}_=d.state,d.props.page&&(d.props.page.url=t);const q=E&&await E;q?S=q.commit():(Oe.$set(d.props),tt(d.props.page),S=gt?.()),ot=!0}else await lt(d,ve,!1);const{activeElement:P}=document;await S,await Z(),await Z();let U=n?n.scroll:r?le():null;if(Fe){const b=t.hash&&document.getElementById(ht(t));if(U)scrollTo(U.x,U.y);else if(b){b.scrollIntoView();const{top:q,left:$}=b.getBoundingClientRect();U={x:pageXOffset+$,y:pageYOffset+q}}else scrollTo(0,0)}const pt=document.activeElement!==P&&document.activeElement!==document.body;!a&&!pt&&tn(t,U),Fe=!0,d.props.page&&Object.assign(k,d.props.page),J=!1,e==="popstate"&&it(x),g.fulfil(void 0),G.forEach(b=>b(g.navigation)),C.navigating.set(Y.current=null)}async function dt(e,t,n,a,r){return e.origin===ce&&e.pathname===location.pathname&&!rt?await Ce({status:a,error:n,url:e,route:t}):await H(e,r)}function Jt(){let e,t,n;O.addEventListener("mousemove",i=>{const c=i.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function a(i){i.defaultPrevented||s(i.composedPath()[0],j.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(i=>{for(const c of i)c.isIntersecting&&(_e(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function s(i,c){const l=Qe(i,O),f=l===t&&c>=n;if(!l||f)return;const{url:h,external:w,download:u}=me(l,L,v.hash);if(w||u)return;const g=ee(l),m=h&&ie(_.url)===ie(h);if(!(g.reload||m))if(c<=g.preload_data){t=l,n=j.tap;const p=await fe(h,!1);if(!p)return;Kt(p)}else c<=g.preload_code&&(t=l,n=c,_e(h))}function o(){r.disconnect();for(const i of O.querySelectorAll("a")){const{url:c,external:l,download:f}=me(i,L,v.hash);if(l||f)continue;const h=ee(i);h.reload||(h.preload_code===j.viewport&&r.observe(i),h.preload_code===j.eager&&_e(c))}}G.add(o),o()}function X(e,t){if(e instanceof Ee)return e.body;const n=Ue(e),a=jt(e);return v.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function un(e,t={}){return e=new URL(Le(e)),e.origin!==ce?Promise.reject(new Error("goto: invalid URL")):ct(e,t,0)}function Xt(e){if(typeof e=="function")ne.push(e);else{const{href:t}=new URL(e,location.href);ne.push(n=>n.href===t)}}function Qt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(We(),!J){const a=je(_,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};at.forEach(s=>s(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&We()}),navigator.connection?.saveData||Jt(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Qe(t.composedPath()[0],O);if(!n)return;const{url:a,external:r,target:s,download:o}=me(n,L,v.hash);if(!a)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const i=ee(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,f]=(v.hash?a.hash.replace(/^#/,""):a.href).split("#"),h=l===he(location);if(r||i.reload&&(!h||!f)){ft({url:a,type:"link",event:t})?J=!0:t.preventDefault();return}if(f!==void 0&&h){const[,w]=_.url.href.split("#");if(w===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(f));u&&(u.scrollIntoView(),u.focus())}return}if(M=!0,Ae(y),e(a),!i.replace_state)return;M=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await K({type:"link",url:a,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??a.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ue(o,L,!1))return;const i=t.target,c=ee(i);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(i,a);o.search=new URLSearchParams(l).toString(),K({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!be){if(t.state?.[B]){const n=t.state[B];if(N={},n===y)return;const a=D[n],r=t.state[Je]??{},s=new URL(t.state[Ot]??location.href),o=t.state[W],i=_.url?he(location)===he(_.url):!1;if(o===x&&(ot||i)){r!==k.state&&(k.state=r),e(s),D[y]=le(),a&&scrollTo(a.x,a.y),y=n;return}const l=n-y;await K({type:"popstate",url:s,popped:{state:r,scroll:a,delta:l},accept:()=>{y=n,x=o},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!M){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[B]:++y,[W]:x},"",location.href))});for(const t of document.querySelectorAll("link"))Dt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(Y.current=null)});function e(t){_.url=k.url=t,C.page.set(Ne(k)),C.page.notify()}}async function Zt(e,{status:t=200,error:n,node_ids:a,params:r,route:s,server_route:o,data:i,form:c}){rt=!0;const l=new URL(location.href);let f;({params:r={},route:s={id:null}}=await fe(l,!1)||{}),f=Te.find(({id:u})=>u===s.id);let h,w=!0;try{const u=a.map(async(m,p)=>{const d=i[p];return d?.uses&&(d.uses=en(d.uses)),Pe({loader:v.nodes[m],url:l,params:r,route:s,parent:async()=>{const E={};for(let S=0;S<p;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:$e(d)})}),g=await Promise.all(u);if(f){const m=f.layouts;for(let p=0;p<m.length;p++)m[p]||g.splice(p,0,void 0)}h=se({url:l,params:r,branch:g,status:t,error:n,form:c,route:f??null})}catch(u){if(u instanceof Se){await H(new URL(u.location,location.href));return}h=await Ce({status:Ue(u),error:await X(u,{url:l,params:r,route:s}),url:l,route:s}),e.textContent="",w=!1}h.props.page&&(h.props.page.state={}),await lt(h,e,w)}function en(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let be=!1;function tn(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=ht(e);if(a&&document.getElementById(a)){const{x:s,y:o}=t??le();setTimeout(()=>{const i=history.state;be=!0,location.replace(`#${a}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(s,o),be=!1})}else{const s=document.body,o=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),o!==null?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const s=[];for(let o=0;o<r.rangeCount;o+=1)s.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===s.length){for(let o=0;o<r.rangeCount;o+=1){const i=s[o],c=r.getRangeAt(o);if(i.commonAncestorContainer!==c.commonAncestorContainer||i.startContainer!==c.startContainer||i.endContainer!==c.endContainer||i.startOffset!==c.startOffset||i.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function je(e,t,n,a){let r,s;const o=new Promise((c,l)=>{r=c,s=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:a,complete:o},fulfil:r,reject:s}}function Ne(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function nn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function ht(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{ln as a,un as g,rn as l,k as p,C as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var ct=Array.isArray,Zt=Array.prototype.indexOf,Un=Array.from,Vn=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,Wt=Object.getOwnPropertyDescriptors,Jt=Object.prototype,Qt=Array.prototype,_t=Object.getPrototypeOf,st=Object.isExtensible;function $n(e){return typeof e=="function"}const le=()=>{};function Gn(e){return e()}function vt(e){for(var t=0;t<e.length;t++)e[t]()}function dt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Kn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const E=2,$e=4,Ce=8,ht=1<<24,j=16,q=32,se=64,Ge=128,D=512,m=1024,x=2048,N=4096,C=8192,H=16384,Ke=32768,Te=65536,qe=1<<17,pt=1<<18,be=1<<19,yt=1<<20,zn=1<<25,te=32768,Ye=1<<21,ze=1<<22,B=1<<23,J=Symbol("$state"),Xn=Symbol("legacy props"),Zn=Symbol(""),ae=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Xe=3,wt=8;function en(e){throw new Error("https://svelte.dev/e/experimental_async_required")}function Ze(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function tn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function nn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function rn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function sn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function fn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function an(){throw new Error("https://svelte.dev/e/fork_discarded")}function ln(){throw new Error("https://svelte.dev/e/fork_timing")}function Jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Qn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function un(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function on(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function cn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function er(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const tr=1,nr=2,rr=4,sr=8,fr=16,ir=1,ar=2,lr=4,ur=8,or=16,cr=4,_r=1,vr=2,_n="[",vn="[!",dn="]",We={},g=Symbol(),dr="http://www.w3.org/1999/xhtml",hr="@attach";function Je(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function pr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function yr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let V=!1;function wr(e){V=e}let R;function ue(e){if(e===null)throw Je(),We;return R=e}function br(){return ue(K(R))}function Er(e){if(V){if(K(R)!==null)throw Je(),We;R=e}}function mr(e=1){if(V){for(var t=e,n=R;t--;)n=K(n);R=n}}function gr(e=!0){for(var t=0,n=R;;){if(n.nodeType===wt){var r=n.data;if(r===dn){if(t===0)return n;t-=1}else(r===_n||r===vn)&&(t+=1)}var s=K(n);e&&n.remove(),n=s}}function Tr(e){if(!e||e.nodeType!==wt)throw Je(),We;return e.data}function bt(e){return e===this.v}function Et(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function mt(e){return!Et(e,this.v)}let Ee=!1;function Ar(){Ee=!0}let y=null;function Ae(e){y=e}function xr(e,t=!1,n){y={p:y,i:!1,c:null,e:null,s:e,x:null,l:Ee&&!t?{s:null,u:null,$:[]}:null}}function Sr(e){var t=y,n=t.e;if(n!==null){t.e=null;for(var r of n)Ft(r)}return t.i=!0,y=t.p,{}}function me(){return!Ee||y!==null&&y.l===null}let X=[];function gt(){var e=X;X=[],vt(e)}function Tt(e){if(X.length===0&&!ye){var t=X;queueMicrotask(()=>{t===X&>()})}X.push(e)}function hn(){for(;X.length>0;)gt()}function pn(e){var t=h;if(t===null)return v.f|=B,e;if((t.f&Ke)===0){if((t.f&Ge)===0)throw e;t.b.error(e)}else xe(e,t)}function xe(e,t){for(;t!==null;){if((t.f&Ge)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Z=new Set;let p=null,Le=null,A=null,O=[],Fe=null,He=!1,ye=!1;class ${committed=!1;current=new Map;previous=new Map;#r=new Set;#s=new Set;#e=0;#t=0;#a=null;#f=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#t>0}process(t){O=[],Le=null,this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const r of t)this.#l(r,n);this.is_fork||this.#o(),this.is_deferred()?(this.#n(n.effects),this.#n(n.render_effects)):(Le=this,p=null,ft(n.render_effects),ft(n.effects),Le=null,this.#a?.resolve()),A=null}#l(t,n){t.f^=m;for(var r=t.first;r!==null;){var s=r.f,f=(s&(q|se))!==0,u=f&&(s&m)!==0,l=u||(s&C)!==0||this.skipped_effects.has(r);if((r.f&Ge)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!l&&r.fn!==null){f?r.f^=m:(s&$e)!==0?n.effects.push(r):ve(r)&&((r.f&j)!==0&&this.#f.add(r),ce(r));var a=r.first;if(a!==null){r=a;continue}}var i=r.parent;for(r=r.next;r===null&&i!==null;)i===n.effect&&(this.#n(n.effects),this.#n(n.render_effects),n=n.parent),r=i.next,i=i.parent}}#n(t){for(const n of t)(n.f&x)!==0?this.#f.add(n):(n.f&N)!==0&&this.#i.add(n),this.#u(n.deps),b(n,m)}#u(t){if(t!==null)for(const n of t)(n.f&E)===0||(n.f&te)===0||(n.f^=te,this.#u(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&B)===0&&(this.current.set(t,t.v),A?.set(t,t.v))}activate(){p=this,this.apply()}deactivate(){p===this&&(p=null,A=null)}flush(){if(this.activate(),O.length>0){if(Ue(),p!==null&&p!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#o(){if(this.#t===0){for(const t of this.#r)t();this.#r.clear()}this.#e===0&&this.#c()}#c(){if(Z.size>1){this.previous.clear();var t=A,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const f of Z){if(f===this){n=!1;continue}const u=[];for(const[a,i]of this.current){if(f.current.has(a))if(n&&i!==f.current.get(a))f.current.set(a,i);else continue;u.push(a)}if(u.length===0)continue;const l=[...f.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var s=O;O=[];const a=new Set,i=new Map;for(const o of u)At(o,l,a,i);if(O.length>0){p=f,f.apply();for(const o of O)f.#l(o,r);f.deactivate()}O=s}}p=null,A=t}this.committed=!0,Z.delete(this)}increment(t){this.#e+=1,t&&(this.#t+=1)}decrement(t){this.#e-=1,t&&(this.#t-=1),this.revive()}revive(){for(const t of this.#f)this.#i.delete(t),b(t,x),ne(t);for(const t of this.#i)b(t,N),ne(t);this.flush()}oncommit(t){this.#r.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#a??=dt()).promise}static ensure(){if(p===null){const t=p=new $;Z.add(p),ye||$.enqueue(()=>{p===t&&t.flush()})}return p}static enqueue(t){Tt(t)}apply(){}}function Be(e){var t=ye;ye=!0;try{var n;for(e&&(p!==null&&Ue(),n=e());;){if(hn(),O.length===0&&(p?.flush(),O.length===0))return Fe=null,n;Ue()}}finally{ye=t}}function Ue(){var e=Q;He=!0;var t=null;try{var n=0;for(Ie(!0);O.length>0;){var r=$.ensure();if(n++>1e3){var s,f;yn()}r.process(O),U.clear()}}finally{He=!1,Ie(e),Fe=null}}function yn(){try{fn()}catch(e){xe(e,Fe)}}let F=null;function ft(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(H|C))===0&&ve(r)&&(F=new Set,ce(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?qt(r):r.fn=null),F?.size>0)){U.clear();for(const s of F){if((s.f&(H|C))!==0)continue;const f=[s];let u=s.parent;for(;u!==null;)F.has(u)&&(F.delete(u),f.push(u)),u=u.parent;for(let l=f.length-1;l>=0;l--){const a=f[l];(a.f&(H|C))===0&&ce(a)}}F.clear()}}F=null}}function At(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&E)!==0?At(s,t,n,r):(f&(ze|j))!==0&&(f&x)===0&&St(s,t,r)&&(b(s,x),ne(s))}}function xt(e,t){if(e.reactions!==null)for(const n of e.reactions){const r=n.f;(r&E)!==0?xt(n,t):(r&qe)!==0&&(b(n,x),t.add(n))}}function St(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&E)!==0&&St(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ne(e){for(var t=Fe=e;t.parent!==null;){t=t.parent;var n=t.f;if(He&&t===h&&(n&j)!==0&&(n&pt)===0)return;if((n&(se|q))!==0){if((n&m)===0)return;t.f^=m}}O.push(t)}function Rr(e){en(),p!==null&&ln();var t=$.ensure();t.is_fork=!0,A=new Map;var n=!1,r=t.settled();Be(e),A=null;for(var[s,f]of t.previous)s.v=f;return{commit:async()=>{if(n){await r;return}Z.has(t)||an(),n=!0,t.is_fork=!1;for(var[u,l]of t.current)u.v=l;Be(()=>{var a=new Set;for(var i of t.current.keys())xt(i,a);Tn(a),Dt()}),t.revive(),await r},discard:()=>{!n&&Z.has(t)&&(Z.delete(t),t.discard())}}}function wn(e,t,n,r){const s=me()?Qe:mn;if(n.length===0&&e.length===0){r(t.map(s));return}var f=p,u=h,l=bn();function a(){Promise.all(n.map(i=>En(i))).then(i=>{l();try{r([...t.map(s),...i])}catch(o){(u.f&H)===0&&xe(o,u)}f?.deactivate(),Se()}).catch(i=>{xe(i,u)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{f?.deactivate(),Se()}}):a()}function bn(){var e=h,t=v,n=y,r=p;return function(f=!0){oe(e),G(t),Ae(n),f&&r?.activate()}}function Se(){oe(null),G(null),Ae(null)}function Qe(e){var t=E|x,n=v!==null&&(v.f&E)!==0?v:null;return h!==null&&(h.f|=be),{ctx:y,deps:null,effects:null,equals:bt,f:t,fn:e,reactions:null,rv:0,v:g,wv:0,parent:n??h,ac:null}}function En(e,t){let n=h;n===null&&tn();var r=n.b,s=void 0,f=tt(g),u=!v,l=new Map;return Dn(()=>{var a=dt();s=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{i===p&&i.committed&&i.deactivate(),Se()})}catch(c){a.reject(c),Se()}var i=p;if(u){var o=!r.is_pending();r.update_pending_count(1),i.increment(o),l.get(i)?.reject(ae),l.delete(i),l.set(i,a)}const _=(c,d=void 0)=>{if(i.activate(),d)d!==ae&&(f.f|=B,ke(f,d));else{(f.f&B)!==0&&(f.f^=B),ke(f,c);for(const[w,z]of l){if(l.delete(w),w===i)break;z.reject(ae)}}u&&(r.update_pending_count(-1),i.decrement(o))};a.promise.then(_,c=>_(null,c||"unknown"))}),kn(()=>{for(const a of l.values())a.reject(ae)}),new Promise(a=>{function i(o){function _(){o===s?a(f):i(s)}o.then(_,_)}i(s)})}function kr(e){const t=Qe(e);return Bt(t),t}function mn(e){const t=Qe(e);return t.equals=mt,t}function Rt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)re(t[n])}}function gn(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return(t.f&H)===0?t:null;t=t.parent}return null}function et(e){var t,n=h;oe(gn(e));try{e.f&=~te,Rt(e),t=Gt(e)}finally{oe(n)}return t}function kt(e){var t=et(e);if(e.equals(t)||(p?.is_fork||(e.v=t),e.wv=Vt()),!_e)if(A!==null)(Ne()||p?.is_fork)&&A.set(e,t);else{var n=(e.f&D)===0?N:m;b(e,n)}}let Re=new Set;const U=new Map;function Tn(e){Re=e}let Ot=!1;function tt(e,t){var n={f:0,v:e,reactions:null,equals:bt,rv:0,wv:0};return n}function Y(e,t){const n=tt(e);return Bt(n),n}function Or(e,t=!1,n=!0){const r=tt(e);return t||(r.equals=mt),Ee&&n&&y!==null&&y.l!==null&&(y.l.s??=[]).push(r),r}function Dr(e,t){return M(e,de(()=>W(e))),t}function M(e,t,n=!1){v!==null&&(!P||(v.f&qe)!==0)&&me()&&(v.f&(E|j|ze|qe))!==0&&!L?.includes(e)&&cn();let r=n?he(t):t;return ke(e,r)}function ke(e,t){if(!e.equals(t)){var n=e.v;_e?U.set(e,t):U.set(e,n),e.v=t;var r=$.ensure();r.capture(e,n),(e.f&E)!==0&&((e.f&x)!==0&&et(e),b(e,(e.f&D)!==0?m:N)),e.wv=Vt(),Nt(e,x),me()&&h!==null&&(h.f&m)!==0&&(h.f&(q|se))===0&&(k===null?Fn([e]):k.push(e)),!r.is_fork&&Re.size>0&&!Ot&&Dt()}return t}function Dt(){Ot=!1;var e=Q;Ie(!0);const t=Array.from(Re);try{for(const n of t)(n.f&m)!==0&&b(n,N),ve(n)&&ce(n)}finally{Ie(e)}Re.clear()}function Nr(e,t=1){var n=W(e),r=t===1?n++:n--;return M(e,n),r}function je(e){M(e,e.v+1)}function Nt(e,t){var n=e.reactions;if(n!==null)for(var r=me(),s=n.length,f=0;f<s;f++){var u=n[f],l=u.f;if(!(!r&&u===h)){var a=(l&x)===0;if(a&&b(u,t),(l&E)!==0){var i=u;A?.delete(i),(l&te)===0&&(l&D&&(u.f|=te),Nt(i,N))}else a&&((l&j)!==0&&F!==null&&F.add(u),ne(u))}}}function he(e){if(typeof e!="object"||e===null||J in e)return e;const t=_t(e);if(t!==Jt&&t!==Qt)return e;var n=new Map,r=ct(e),s=Y(0),f=ee,u=l=>{if(ee===f)return l();var a=v,i=ee;G(null),ot(f);var o=l();return G(a),ot(i),o};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(l,a,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&un();var o=n.get(a);return o===void 0?o=u(()=>{var _=Y(i.value);return n.set(a,_),_}):M(o,i.value,!0),!0},deleteProperty(l,a){var i=n.get(a);if(i===void 0){if(a in l){const o=u(()=>Y(g));n.set(a,o),je(s)}}else M(i,g),je(s);return!0},get(l,a,i){if(a===J)return e;var o=n.get(a),_=a in l;if(o===void 0&&(!_||pe(l,a)?.writable)&&(o=u(()=>{var d=he(_?l[a]:g),w=Y(d);return w}),n.set(a,o)),o!==void 0){var c=W(o);return c===g?void 0:c}return Reflect.get(l,a,i)},getOwnPropertyDescriptor(l,a){var i=Reflect.getOwnPropertyDescriptor(l,a);if(i&&"value"in i){var o=n.get(a);o&&(i.value=W(o))}else if(i===void 0){var _=n.get(a),c=_?.v;if(_!==void 0&&c!==g)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return i},has(l,a){if(a===J)return!0;var i=n.get(a),o=i!==void 0&&i.v!==g||Reflect.has(l,a);if(i!==void 0||h!==null&&(!o||pe(l,a)?.writable)){i===void 0&&(i=u(()=>{var c=o?he(l[a]):g,d=Y(c);return d}),n.set(a,i));var _=W(i);if(_===g)return!1}return o},set(l,a,i,o){var _=n.get(a),c=a in l;if(r&&a==="length")for(var d=i;d<_.v;d+=1){var w=n.get(d+"");w!==void 0?M(w,g):d in l&&(w=u(()=>Y(g)),n.set(d+"",w))}if(_===void 0)(!c||pe(l,a)?.writable)&&(_=u(()=>Y(void 0)),M(_,he(i)),n.set(a,_));else{c=_.v!==g;var z=u(()=>he(i));M(_,z)}var ge=Reflect.getOwnPropertyDescriptor(l,a);if(ge?.set&&ge.set.call(o,i),!c){if(r&&typeof a=="string"){var rt=n.get("length"),Me=Number(a);Number.isInteger(Me)&&Me>=rt.v&&M(rt,Me+1)}je(s)}return!0},ownKeys(l){W(s);var a=Reflect.ownKeys(l).filter(_=>{var c=n.get(_);return c===void 0||c.v!==g});for(var[i,o]of n)o.v!==g&&!(i in l)&&a.push(i);return a},setPrototypeOf(){on()}})}function it(e){try{if(e!==null&&typeof e=="object"&&J in e)return e[J]}catch{}return e}function Ir(e,t){return Object.is(it(e),it(t))}var at,An,It,Pt;function Pr(){if(at===void 0){at=window,An=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;It=pe(t,"firstChild").get,Pt=pe(t,"nextSibling").get,st(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),st(n)&&(n.__t=void 0)}}function Oe(e=""){return document.createTextNode(e)}function De(e){return It.call(e)}function K(e){return Pt.call(e)}function Cr(e,t){if(!V)return De(e);var n=De(R);if(n===null)n=R.appendChild(Oe());else if(t&&n.nodeType!==Xe){var r=Oe();return n?.before(r),ue(r),r}return ue(n),n}function Fr(e,t=!1){if(!V){var n=De(e);return n instanceof Comment&&n.data===""?K(n):n}if(t&&R?.nodeType!==Xe){var r=Oe();return R?.before(r),ue(r),r}return R}function Mr(e,t=1,n=!1){let r=V?R:e;for(var s;t--;)s=r,r=K(r);if(!V)return r;if(n&&r?.nodeType!==Xe){var f=Oe();return r===null?s?.after(f):r.before(f),ue(f),f}return ue(r),r}function xn(e){e.textContent=""}function Lr(){return!1}function jr(e,t){if(t){const n=document.body;e.autofocus=!0,Tt(()=>{document.activeElement===n&&e.focus()})}}function qr(e){V&&De(e)!==null&&xn(e)}let lt=!1;function Sn(){lt||(lt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function nt(e){var t=v,n=h;G(null),oe(null);try{return e()}finally{G(t),oe(n)}}function Yr(e,t,n,r=n){e.addEventListener(t,()=>nt(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Sn()}function Ct(e){h===null&&(v===null&&sn(),rn()),_e&&nn()}function Rn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function I(e,t,n){var r=h;r!==null&&(r.f&C)!==0&&(e|=C);var s={ctx:y,deps:null,nodes:null,f:e|x|D,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{ce(s),s.f|=Ke}catch(l){throw re(s),l}else t!==null&&ne(s);var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes===null&&f.first===f.last&&(f.f&be)===0&&(f=f.first,(e&j)!==0&&(e&Te)!==0&&f!==null&&(f.f|=Te)),f!==null&&(f.parent=r,r!==null&&Rn(f,r),v!==null&&(v.f&E)!==0&&(e&se)===0)){var u=v;(u.effects??=[]).push(f)}return s}function Ne(){return v!==null&&!P}function kn(e){const t=I(Ce,null,!1);return b(t,m),t.teardown=e,t}function On(e){Ct();var t=h.f,n=!v&&(t&q)!==0&&(t&Ke)===0;if(n){var r=y;(r.e??=[]).push(e)}else return Ft(e)}function Ft(e){return I($e|yt,e,!1)}function Hr(e){return Ct(),I(Ce|yt,e,!0)}function Br(e){$.ensure();const t=I(se|be,e,!0);return(n={})=>new Promise(r=>{n.outro?Pn(t,()=>{re(t),r(void 0)}):(re(t),r(void 0))})}function Ur(e){return I($e,e,!1)}function Vr(e,t){var n=y,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=Mt(()=>{e(),!r.ran&&(r.ran=!0,de(t))})}function $r(){var e=y;Mt(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&m)!==0&&b(n,N),ve(n)&&ce(n),t.ran=!1}})}function Dn(e){return I(ze|be,e,!0)}function Mt(e,t=0){return I(Ce|t,e,!0)}function Gr(e,t=[],n=[],r=[]){wn(r,t,n,s=>{I(Ce,()=>e(...s.map(W)),!0)})}function Kr(e,t=0){var n=I(j|t,e,!0);return n}function zr(e,t=0){var n=I(ht|t,e,!0);return n}function Xr(e){return I(q|be,e,!0)}function Lt(e){var t=e.teardown;if(t!==null){const n=_e,r=v;ut(!0),G(null);try{t.call(null)}finally{ut(n),G(r)}}}function jt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&nt(()=>{s.abort(ae)});var r=n.next;(n.f&se)!==0?n.parent=null:re(n,t),n=r}}function Nn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&q)===0&&re(t),t=n}}function re(e,t=!0){var n=!1;(t||(e.f&pt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(In(e.nodes.start,e.nodes.end),n=!0),jt(e,t&&!n),Pe(e,0),b(e,H);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();Lt(e);var s=e.parent;s!==null&&s.first!==null&&qt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function In(e,t){for(;e!==null;){var n=e===t?null:K(e);e.remove(),e=n}}function qt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Pn(e,t,n=!0){var r=[];Yt(e,r,!0);var s=()=>{n&&re(e),t&&t()},f=r.length;if(f>0){var u=()=>--f||s();for(var l of r)l.out(u)}else s()}function Yt(e,t,n){if((e.f&C)===0){e.f^=C;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var f=s.next,u=(s.f&Te)!==0||(s.f&q)!==0&&(e.f&j)!==0;Yt(s,t,u?n:!1),s=f}}}function Zr(e){Ht(e,!0)}function Ht(e,t){if((e.f&C)!==0){e.f^=C,(e.f&m)===0&&(b(e,x),ne(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Te)!==0||(n.f&q)!==0;Ht(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const u of f)(u.is_global||t)&&u.in()}}function Wr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:K(n);t.append(n),n=s}}let ie=null;function Cn(e){var t=ie;try{if(ie=new Set,de(e),t!==null)for(var n of ie)t.add(n);return ie}finally{ie=t}}function Jr(e){for(var t of Cn(e))ke(t,t.v)}let Q=!1;function Ie(e){Q=e}let _e=!1;function ut(e){_e=e}let v=null,P=!1;function G(e){v=e}let h=null;function oe(e){h=e}let L=null;function Bt(e){v!==null&&(L===null?L=[e]:L.push(e))}let T=null,S=0,k=null;function Fn(e){k=e}let Ut=1,we=0,ee=we;function ot(e){ee=e}function Vt(){return++Ut}function ve(e){var t=e.f;if((t&x)!==0)return!0;if(t&E&&(e.f&=~te),(t&N)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var f=n[s];if(ve(f)&&kt(f),f.wv>e.wv)return!0}(t&D)!==0&&A===null&&b(e,m)}return!1}function $t(e,t,n=!0){var r=e.reactions;if(r!==null&&!L?.includes(e))for(var s=0;s<r.length;s++){var f=r[s];(f.f&E)!==0?$t(f,t,!1):t===f&&(n?b(f,x):(f.f&m)!==0&&b(f,N),ne(f))}}function Gt(e){var t=T,n=S,r=k,s=v,f=L,u=y,l=P,a=ee,i=e.f;T=null,S=0,k=null,v=(i&(q|se))===0?e:null,L=null,Ae(e.ctx),P=!1,ee=++we,e.ac!==null&&(nt(()=>{e.ac.abort(ae)}),e.ac=null);try{e.f|=Ye;var o=e.fn,_=o(),c=e.deps;if(T!==null){var d;if(Pe(e,S),c!==null&&S>0)for(c.length=S+T.length,d=0;d<T.length;d++)c[S+d]=T[d];else e.deps=c=T;if(Ne()&&(e.f&D)!==0)for(d=S;d<c.length;d++)(c[d].reactions??=[]).push(e)}else c!==null&&S<c.length&&(Pe(e,S),c.length=S);if(me()&&k!==null&&!P&&c!==null&&(e.f&(E|N|x))===0)for(d=0;d<k.length;d++)$t(k[d],e);return s!==null&&s!==e&&(we++,k!==null&&(r===null?r=k:r.push(...k))),(e.f&B)!==0&&(e.f^=B),_}catch(w){return pn(w)}finally{e.f^=Ye,T=t,S=n,k=r,v=s,L=f,Ae(u),P=l,ee=a}}function Mn(e,t){let n=t.reactions;if(n!==null){var r=Zt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&E)!==0&&(T===null||!T.includes(t))&&(b(t,N),(t.f&D)!==0&&(t.f^=D,t.f&=~te),Rt(t),Pe(t,0))}function Pe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Mn(e,n[r])}function ce(e){var t=e.f;if((t&H)===0){b(e,m);var n=h,r=Q;h=e,Q=!0;try{(t&(j|ht))!==0?Nn(e):jt(e),Lt(e);var s=Gt(e);e.teardown=typeof s=="function"?s:null,e.wv=Ut;var f}finally{Q=r,h=n}}}async function Qr(){await Promise.resolve(),Be()}function es(){return $.ensure().settled()}function W(e){var t=e.f,n=(t&E)!==0;if(ie?.add(e),v!==null&&!P){var r=h!==null&&(h.f&H)!==0;if(!r&&!L?.includes(e)){var s=v.deps;if((v.f&Ye)!==0)e.rv<we&&(e.rv=we,T===null&&s!==null&&s[S]===e?S++:T===null?T=[e]:T.includes(e)||T.push(e));else{(v.deps??=[]).push(e);var f=e.reactions;f===null?e.reactions=[v]:f.includes(v)||f.push(v)}}}if(_e){if(U.has(e))return U.get(e);if(n){var u=e,l=u.v;return((u.f&m)===0&&u.reactions!==null||zt(u))&&(l=et(u)),U.set(u,l),l}}else n&&(!A?.has(e)||p?.is_fork&&!Ne())&&(u=e,ve(u)&&kt(u),Q&&Ne()&&(u.f&D)===0&&Kt(u));if(A?.has(e))return A.get(e);if((e.f&B)!==0)throw e.v;return e.v}function Kt(e){if(e.deps!==null){e.f^=D;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&D)===0&&Kt(t)}}function zt(e){if(e.v===g)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(U.has(t)||(t.f&E)!==0&&zt(t))return!0;return!1}function de(e){var t=P;try{return P=!0,e()}finally{P=t}}const Ln=-7169;function b(e,t){e.f=e.f&Ln|t}function ts(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(J in e)Ve(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&J in n&&Ve(n)}}}function Ve(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ve(e[r],t)}catch{}const n=_t(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Wt(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}function Xt(e,t,n){if(e==null)return t(void 0),n&&n(void 0),le;const r=de(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const fe=[];function jn(e,t){return{subscribe:qn(e,t).subscribe}}function qn(e,t=le){let n=null;const r=new Set;function s(l){if(Et(e,l)&&(e=l,n)){const a=!fe.length;for(const i of r)i[1](),fe.push(i,e);if(a){for(let i=0;i<fe.length;i+=2)fe[i][0](fe[i+1]);fe.length=0}}}function f(l){s(l(e))}function u(l,a=le){const i=[l,a];return r.add(i),r.size===1&&(n=t(s,f)||le),l(e),()=>{r.delete(i),r.size===0&&n&&(n(),n=null)}}return{set:s,update:f,subscribe:u}}function ns(e,t,n){const r=!Array.isArray(e),s=r?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const f=t.length<2;return jn(n,(u,l)=>{let a=!1;const i=[];let o=0,_=le;const c=()=>{if(o)return;_();const w=t(r?i[0]:i,u,l);f?u(w):_=typeof w=="function"?w:le},d=s.map((w,z)=>Xt(w,ge=>{i[z]=ge,o&=~(1<<z),a&&c()},()=>{o|=1<<z}));return a=!0,c(),function(){vt(d),_(),a=!1}})}function rs(e){let t;return Xt(e,n=>t=n)(),t}function Yn(e){y===null&&Ze(),Ee&&y.l!==null?Bn(y).m.push(e):On(()=>{const t=de(e);if(typeof t=="function")return t})}function ss(e){y===null&&Ze(),Yn(()=>()=>de(e))}function Hn(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function fs(){const e=y;return e===null&&Ze(),(t,n,r)=>{const s=e.s.$$events?.[t];if(s){const f=ct(s)?s.slice():[s],u=Hn(t,n,r);for(const l of f)l.call(e.x,u);return!u.defaultPrevented}return!0}}function Bn(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{h as $,Ar as A,p as B,Zr as C,re as D,Te as E,Pn as F,Oe as G,Xr as H,R as I,Wr as J,Lr as K,Tr as L,vn as M,gr as N,ue as O,wr as P,kn as Q,Vn as R,J as S,le as T,Or as U,Xt as V,rs as W,pe as X,Qn as Y,lr as Z,he as _,Sr as a,Ir as a$,H as a0,mn as a1,ur as a2,Ee as a3,ar as a4,ir as a5,or as a6,_e as a7,Xn as a8,tt as a9,An as aA,_r as aB,vr as aC,Ke as aD,Xe as aE,Pr as aF,_n as aG,K as aH,We as aI,Jn as aJ,xn as aK,Un as aL,Br as aM,dn as aN,Je as aO,ct as aP,nr as aQ,tr as aR,fr as aS,zn as aT,rr as aU,C as aV,sr as aW,zr as aX,Yr as aY,Le as aZ,pr as a_,Nr as aa,oe as ab,Be as ac,Qr as ad,kr as ae,Vr as af,$r as ag,fs as ah,Jr as ai,Kn as aj,Ne as ak,je as al,wt as am,$ as an,G as ao,Ae as ap,pn as aq,v as ar,ke as as,xe as at,er as au,be as av,Ge as aw,yr as ax,nt as ay,De as az,M as b,wn as b0,hr as b1,jr as b2,g as b3,Sn as b4,dr as b5,_t as b6,Zn as b7,Wt as b8,qn as b9,j as ba,cr as bb,$n as bc,Et as bd,at as be,ss as bf,In as bg,qr as bh,ns as bi,Dr as bj,Rr as bk,es as bl,Cr as c,Y as d,Ur as e,Fr as f,W as g,Mt as h,de as i,V as j,br as k,Kr as l,y as m,mr as n,Yn as o,xr as p,Tt as q,Er as r,Mr as s,Gr as t,On as u,Hr as v,vt as w,Gn as x,ts as y,Qe as z};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ak as X,g as Y,a9 as G,h as Z,i as ee,al as H,q as V,I as f,j as h,$ as v,l as te,k as U,am as B,M as re,H as p,an as A,F as L,G as w,ab as O,ao as E,ap as W,aq as ne,ar as F,m as z,J as se,as as ae,D as M,O as N,n as ie,N as oe,at as $,au as ue,E as le,av as fe,aw as ce,ax as he,Q as de,ay as _e,R as pe,az as k,aA as ve,aB as ge,aC as me,aD as ye,aE as Ee,aF as I,aG as be,aH as Te,aI as C,P as S,aJ as we,aK as Ne,aL as ke,aM as Re,p as Ae,aN as Se,aO as Oe,a as De}from"./DHuA7MQr.js";function Le(t){let e=0,r=G(0),a;return()=>{X()&&(Y(r),Z(()=>(e===0&&(a=ee(()=>t(()=>H(r)))),e+=1,()=>{V(()=>{e-=1,e===0&&(a?.(),a=void 0,H(r))})})))}}var Me=le|fe|ce;function Fe(t,e,r){new Ie(t,e,r)}class Ie{parent;#r=!1;#t;#v=h?f:null;#s;#c;#a;#n=null;#e=null;#i=null;#o=null;#u=null;#h=0;#l=0;#d=!1;#f=null;#y=Le(()=>(this.#f=G(this.#h),()=>{this.#f=null}));constructor(e,r,a){this.#t=e,this.#s=r,this.#c=a,this.parent=v.b,this.#r=!!this.#s.pending,this.#a=te(()=>{if(v.b=this,h){const n=this.#v;U(),n.nodeType===B&&n.data===re?this.#b():this.#E()}else{var s=this.#g();try{this.#n=p(()=>a(s))}catch(n){this.error(n)}this.#l>0?this.#p():this.#r=!1}return()=>{this.#u?.remove()}},Me),h&&(this.#t=f)}#E(){try{this.#n=p(()=>this.#c(this.#t))}catch(e){this.error(e)}this.#r=!1}#b(){const e=this.#s.pending;e&&(this.#e=p(()=>e(this.#t)),A.enqueue(()=>{var r=this.#g();this.#n=this.#_(()=>(A.ensure(),p(()=>this.#c(r)))),this.#l>0?this.#p():(L(this.#e,()=>{this.#e=null}),this.#r=!1)}))}#g(){var e=this.#t;return this.#r&&(this.#u=w(),this.#t.before(this.#u),e=this.#u),e}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#_(e){var r=v,a=F,s=z;O(this.#a),E(this.#a),W(this.#a.ctx);try{return e()}catch(n){return ne(n),null}finally{O(r),E(a),W(s)}}#p(){const e=this.#s.pending;this.#n!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#u),se(this.#n,this.#o)),this.#e===null&&(this.#e=p(()=>e(this.#t)))}#m(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(e);return}this.#l+=e,this.#l===0&&(this.#r=!1,this.#e&&L(this.#e,()=>{this.#e=null}),this.#o&&(this.#t.before(this.#o),this.#o=null))}update_pending_count(e){this.#m(e),this.#h+=e,this.#f&&ae(this.#f,this.#h)}get_effect_pending(){return this.#y(),Y(this.#f)}error(e){var r=this.#s.onerror;let a=this.#s.failed;if(this.#d||!r&&!a)throw e;this.#n&&(M(this.#n),this.#n=null),this.#e&&(M(this.#e),this.#e=null),this.#i&&(M(this.#i),this.#i=null),h&&(N(this.#v),ie(),N(oe()));var s=!1,n=!1;const i=()=>{if(s){he();return}s=!0,n&&ue(),A.ensure(),this.#h=0,this.#i!==null&&L(this.#i,()=>{this.#i=null}),this.#r=this.has_pending_snippet(),this.#n=this.#_(()=>(this.#d=!1,p(()=>this.#c(this.#t)))),this.#l>0?this.#p():this.#r=!1};var c=F;try{E(null),n=!0,r?.(e,i),n=!1}catch(o){$(o,this.#a&&this.#a.parent)}finally{E(c)}a&&V(()=>{this.#i=this.#_(()=>{A.ensure(),this.#d=!0;try{return p(()=>{a(this.#t,()=>e,()=>i)})}catch(o){return $(o,this.#a.parent),null}finally{this.#d=!1}})})}}function qe(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Ce=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ye(t){return Ce.includes(t)}const Pe={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ge(t){return t=t.toLowerCase(),Pe[t]??t}const xe=["touchstart","touchmove"];function Ve(t){return xe.includes(t)}const J=new Set,P=new Set;function Be(t,e,r,a={}){function s(n){if(a.capture||T.call(e,n),!n.cancelBubble)return _e(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?V(()=>{e.addEventListener(t,s,a)}):e.addEventListener(t,s,a),s}function Ue(t,e,r,a,s){var n={capture:a,passive:s},i=Be(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&de(()=>{e.removeEventListener(t,i,n)})}function ze(t){for(var e=0;e<t.length;e++)J.add(t[e]);for(var r of P)r(t)}let j=null;function T(t){var e=this,r=e.ownerDocument,a=t.type,s=t.composedPath?.()||[],n=s[0]||t.target;j=t;var i=0,c=j===t&&t.__root;if(c){var o=s.indexOf(c);if(o!==-1&&(e===document||e===window)){t.__root=e;return}var g=s.indexOf(e);if(g===-1)return;o<=g&&(i=o)}if(n=s[i]||t.target,n!==e){pe(t,"currentTarget",{configurable:!0,get(){return n||r}});var D=F,_=v;E(null),O(null);try{for(var u,l=[];n!==null;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var b=n["__"+a];b!=null&&(!n.disabled||t.target===n)&&b.call(n,t)}catch(R){u?l.push(R):u=R}if(t.cancelBubble||m===e||m===null)break;n=m}if(u){for(let R of l)queueMicrotask(()=>{throw R});throw u}}finally{t.__root=e,delete t.currentTarget,E(D),O(_)}}}function K(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function d(t,e){var r=v;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function Je(t,e){var r=(e&ge)!==0,a=(e&me)!==0,s,n=!t.startsWith("<!>");return()=>{if(h)return d(f,null),f;s===void 0&&(s=K(n?t:"<!>"+t),r||(s=k(s)));var i=a||ve?document.importNode(s,!0):s.cloneNode(!0);if(r){var c=k(i),o=i.lastChild;d(c,o)}else d(i,i);return i}}function He(t,e,r="svg"){var a=!t.startsWith("<!>"),s=`<${r}>${a?t:"<!>"+t}</${r}>`,n;return()=>{if(h)return d(f,null),f;if(!n){var i=K(s),c=k(i);n=k(c)}var o=n.cloneNode(!0);return d(o,o),o}}function Ke(t,e){return He(t,e,"svg")}function Qe(t=""){if(!h){var e=w(t+"");return d(e,e),e}var r=f;return r.nodeType!==Ee&&(r.before(r=w()),N(r)),d(r,r),r}function Xe(){if(h)return d(f,null),f;var t=document.createDocumentFragment(),e=document.createComment(""),r=w();return t.append(e,r),d(e,r),t}function Ze(t,e){if(h){var r=v;((r.f&ye)===0||r.nodes.end===null)&&(r.nodes.end=f),U();return}t!==null&&t.before(e)}let q=!0;function et(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function We(t,e){return Q(t,e)}function tt(t,e){I(),e.intro=e.intro??!1;const r=e.target,a=h,s=f;try{for(var n=k(r);n&&(n.nodeType!==B||n.data!==be);)n=Te(n);if(!n)throw C;S(!0),N(n);const i=Q(t,{...e,anchor:n});return S(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
-
`).some(c=>c.startsWith("https://svelte.dev/e/")))throw i;return i!==C&&console.warn("Failed to hydrate: ",i),e.recover===!1&&we(),I(),Ne(r),S(!1),We(t,e)}finally{S(a),N(s)}}const y=new Map;function Q(t,{target:e,anchor:r,props:a={},events:s,context:n,intro:i=!0}){I();var c=new Set,o=_=>{for(var u=0;u<_.length;u++){var l=_[u];if(!c.has(l)){c.add(l);var m=Ve(l);e.addEventListener(l,T,{passive:m});var b=y.get(l);b===void 0?(document.addEventListener(l,T,{passive:m}),y.set(l,1)):y.set(l,b+1)}}};o(ke(J)),P.add(o);var g=void 0,D=Re(()=>{var _=r??e.appendChild(w());return Fe(_,{pending:()=>{}},u=>{if(n){Ae({});var l=z;l.c=n}if(s&&(a.$$events=s),h&&d(u,null),q=i,g=t(u,a)||{},q=!0,h&&(v.nodes.end=f,f===null||f.nodeType!==B||f.data!==Se))throw Oe(),C;n&&De()}),()=>{for(var u of c){e.removeEventListener(u,T);var l=y.get(u);--l===0?(document.removeEventListener(u,T),y.delete(u)):y.set(u,l)}P.delete(o),_!==r&&_.parentNode?.removeChild(_)}});return x.set(g,D),g}let x=new WeakMap;function rt(t,e){const r=x.get(t);return r?(x.delete(t),r(e)):Promise.resolve()}const $e="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add($e);export{Ze as a,Ke as b,Xe as c,Be as d,Ue as e,Je as f,ze as g,tt as h,qe as i,Ye as j,q as k,d as l,We as m,Ge as n,K as o,et as s,Qe as t,rt as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/CL4l8hNw.js";export{o as load_css,r as start};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as h,a as c,s}from"../chunks/DSxRA67V.js";import{i as l}from"../chunks/kRA7ZCNG.js";import{p as v,f as u,t as _,a as g,c as e,r as o,s as x}from"../chunks/DHuA7MQr.js";import{p}from"../chunks/DwpgbEKg.js";var d=h("<h1> </h1> <p> </p>",1);function q(m,f){v(f,!1),l();var a=d(),r=u(a),i=e(r,!0);o(r);var t=x(r,2),n=e(t,!0);o(t),_(()=>{s(i,p.status),s(n,p.error?.message)}),c(m,a),g()}export{q as component};
|